@ckeditor/ckeditor5-revision-history 44.0.0-alpha.9 → 44.1.0-alpha.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/augmentation.d.ts +1 -1
- package/dist/changeitem.d.ts +1 -1
- package/dist/editor/revisionviewereditor.d.ts +1 -1
- package/dist/editor/revisionviewereditorui.d.ts +1 -1
- package/dist/editor/revisionviewereditoruiview.d.ts +1 -1
- package/dist/index.css +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/revision.d.ts +1 -1
- package/dist/revisiondiff.d.ts +1 -1
- package/dist/revisionhistory.d.ts +1 -1
- package/dist/revisionhistoryadapter.d.ts +1 -1
- package/dist/revisionhistoryconfig.d.ts +1 -1
- package/dist/revisionsrepository.d.ts +1 -1
- package/dist/revisiontracker.d.ts +1 -1
- package/dist/revisionviewer.d.ts +1 -1
- 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/dist/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
- package/dist/ui/revision/revisionauthorview.d.ts +1 -1
- package/dist/ui/revision/revisionnameview.d.ts +1 -1
- package/dist/ui/revision/revisionview.d.ts +1 -1
- package/dist/ui/revision/subrevisioncollapserview.d.ts +1 -1
- package/dist/ui/revision/subrevisionview.d.ts +1 -1
- package/dist/ui/revision/utils.d.ts +1 -1
- package/dist/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +1 -1
- package/dist/ui/revisionhistory/revisionhistoryui.d.ts +1 -1
- package/dist/ui/revisionssidebar/revisionssidebar.d.ts +1 -1
- package/dist/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/dist/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +1 -1
- package/dist/ui/revisionssidebar/revisionssidebarview.d.ts +1 -1
- package/dist/ui/revisionssidebar/utils.d.ts +1 -1
- package/dist/ui/revisionviewer/changedetailsview.d.ts +1 -1
- package/dist/ui/revisionviewer/changesnavigationview.d.ts +1 -1
- package/dist/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/dist/ui/revisionviewer/revisionviewerui.d.ts +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/package.json +8 -8
- package/src/augmentation.d.ts +1 -1
- package/src/changeitem.d.ts +1 -1
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +1 -1
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.d.ts +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/revision.d.ts +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.d.ts +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +1 -1
- package/src/revisionhistoryconfig.d.ts +1 -1
- package/src/revisionsrepository.d.ts +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.d.ts +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/changesnavigation.css +1 -1
- package/theme/revision/revision.css +1 -1
- package/theme/revision/revisionactions.css +1 -1
- package/theme/revision/revisionauthor.css +1 -1
- package/theme/revision/revisionname.css +1 -1
- package/theme/revision/subrevision.css +1 -1
- package/theme/revision/subrevisioncollapser.css +1 -1
- package/theme/revisionhistorysaverevisionform.css +1 -1
- package/theme/revisionssidebar/revisionssidebar.css +1 -1
- package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
- package/theme/revisionssidebar/revisionssidebartimeperiod.css +1 -1
- package/theme/revisionviewer.css +1 -1
- package/theme/revisionviewerloadingoverlay.css +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x1604e4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1fe598){super(),this['id']=_0x1fe598['id']||_0x4c5b41(),this['creator']=_0x1fe598['creator']||null,this['authors']=_0x1fe598['authors']||[],this['diffData']=_0x1fe598['diffData']||null,this['toVersion']=_0x1fe598['toVersion']||0x0,this['fromVersion']=_0x1fe598['fromVersion']||0x0,this['set']('name',_0x1fe598['name']||''),this['set']('createdAt',_0x1fe598['createdAt']||new Date()),this['set']('attributes',_0x1fe598['attributes']||{});}['setName'](_0x1b0484){this['_update']({'name':_0x1b0484});}['setAttribute'](_0x459ceb,_0x18b2b4){const _0x340cb5=_0x3327e9(this['attributes']);_0x352a3b(_0x340cb5,_0x459ceb,_0x18b2b4),this['_update']({'attributes':_0x340cb5});}['removeAttribute'](_0x10bea6){const _0x219be1=_0x3327e9(this['attributes']);_0x3f1f49(_0x219be1,_0x10bea6),this['_update']({'attributes':_0x219be1});}['_update'](_0x444572,_0x4df435=!0x1){let _0x4e3db4=!0x1;const _0x33af16={'id':this['id']},_0x1575c4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x52cc04 of _0x1575c4){const _0x15874c=_0x444572[_0x52cc04];void 0x0!==_0x15874c&&_0x15874c!==this[_0x52cc04]&&(this[_0x52cc04]=_0x15874c,_0x33af16[_0x52cc04]=_0x15874c,_0x4e3db4=!0x0);}_0x4e3db4&&(_0x33af16['authors']&&(_0x33af16['authorsIds']=_0x33af16['authors']['map'](_0x475b1f=>_0x475b1f['id']),delete _0x33af16['authors']),this['fire']('_update',_0x33af16,_0x4df435));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4df8c0=>_0x4df8c0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4e17c7{['_revisions'];static get['requires'](){return[_0x2edfe1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xf5bf6a){super(_0xf5bf6a),this['_revisions']=new _0x510f19();}['afterInit'](){!async function(_0x4f7c49){const _0x162cdb=_0xa3734([0x42,0x6f,0x63,0x50,0x45,0x67,0x6d,0x62,0x48,0x4a,0x65,0x4f,0x53,0x59,0x57,0x56,0x47,0x4b,0x37,0x51,0x55,0x6b,0x70,0x36,0x76,0x54,0x31,0x38,0x52,0x39,0x7a,0x44,0x46,0x4d,0x64,0x32,0x6a,0x4e,0x43,0x4c,0x41,0x61,0x34,0x77,0x71,0x75,0x74,0x78,0x33,0x49,0x6e,0x6c,0x68,0x73,0x58,0x30,0x5a,0x35,0x66,0x79,0x72,0x69]),_0x26359d=0xeb829,_0x27c57a=0x1c9ecc82,_0x36f52c=0x1c9994c2^_0x27c57a,_0x2bfc51=window[_0xa3734([0x44,0x61,0x74,0x65])][_0xa3734([0x6e,0x6f,0x77])](),_0x250c4a=_0x4f7c49[_0xa3734([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5071e9=new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20fca6=>{_0x250c4a[_0xa3734([0x6f,0x6e,0x63,0x65])](_0xa3734([0x72,0x65,0x61,0x64,0x79]),_0x20fca6);}),_0x3a6196={[_0xa3734([0x6b,0x74,0x79])]:_0xa3734([0x45,0x43]),[_0xa3734([0x75,0x73,0x65])]:_0xa3734([0x73,0x69,0x67]),[_0xa3734([0x63,0x72,0x76])]:_0xa3734([0x50,0x2d,0x32,0x35,0x36]),[_0xa3734([0x78])]:_0xa3734([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]),[_0xa3734([0x79])]:_0xa3734([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]),[_0xa3734([0x61,0x6c,0x67])]:_0xa3734([0x45,0x53,0x32,0x35,0x36])},_0x36e547=_0x250c4a[_0xa3734([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa3734([0x67,0x65,0x74])](_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b9177(){let _0x4442b5,_0x294331=null,_0x3266cf=null;try{if(_0x36e547==_0xa3734([0x47,0x50,0x4c]))return _0xa3734([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4442b5=_0x2925cf(),!_0x4442b5)return _0xa3734([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4442b5[_0xa3734([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3266cf=_0xacfe86(_0x4442b5[_0xa3734([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4442b5[_0xa3734([0x6a,0x74,0x69])])),await _0x407a6f()?_0x4780bd()?_0x1c7143()?_0xa3734([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x545791()?(_0x4442b5[_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa3734([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x294331=_0x32b6bb(_0xa3734([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4442b5[_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa3734([0x74,0x72,0x69,0x61,0x6c])&&(_0x294331=_0x32b6bb(_0xa3734([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4442b5[_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa3734([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x294331=_0x32b6bb(_0xa3734([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13bfa0()):_0xa3734([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa3734([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa3734([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x295835){return _0xa3734([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c7143(){const _0x488bf6=[_0xa3734([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa3734([0x74,0x72,0x69,0x61,0x6c])][_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4442b5[_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bfc51/0x3e8:0xe10*_0x36f52c;return _0x4442b5[_0xa3734([0x65,0x78,0x70])]<_0x488bf6;}function _0x4780bd(){const _0xb08bec=_0x4442b5[_0xa3734([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb08bec)return!0x1;if(_0xb08bec[_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3734([0x2a])))return!0x0;if(_0xb08bec[_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3734([0x52,0x48])))return!0x0;if(_0xb08bec[_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3734([0x52,0x52,0x48]))){if(_0x630ccd())return!0x0;if(_0x59064c()||_0x5aebde())return!0x0;}return!0x1;}function _0x545791(){const _0x2e1f0f=_0x4442b5[_0xa3734([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e1f0f||0x0==_0x2e1f0f[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x535b56}=new URL(window[_0xa3734([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e1f0f[_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535b56))return!0x0;const _0x2a6c2a=_0x535b56[_0xa3734([0x73,0x70,0x6c,0x69,0x74])](_0xa3734([0x2e]));return _0x2e1f0f[_0xa3734([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48a125=>_0x48a125[_0xa3734([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3734([0x2a])))[_0xa3734([0x6d,0x61,0x70])](_0x233036=>_0x233036[_0xa3734([0x73,0x70,0x6c,0x69,0x74])](_0xa3734([0x2e])))[_0xa3734([0x73,0x6f,0x6d,0x65])](_0x32528=>_0x2a6c2a[_0xa3734([0x65,0x76,0x65,0x72,0x79])]((_0x2ad478,_0x1748ad)=>_0x32528[_0x1748ad]===_0x2ad478||_0x32528[_0x1748ad]===_0xa3734([0x2a])));}function _0x13bfa0(){return _0x294331&&_0x3266cf?new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1aeb87,_0x4262bc)=>{_0x294331[_0xa3734([0x74,0x68,0x65,0x6e])](_0x1aeb87,_0x4262bc),_0x3266cf[_0xa3734([0x74,0x68,0x65,0x6e])](_0x481327=>{_0x481327!=_0xa3734([0x56,0x61,0x6c,0x69,0x64])&&_0x1aeb87(_0x481327);},_0x4262bc);}):_0x294331||_0x3266cf||_0xa3734([0x56,0x61,0x6c,0x69,0x64]);}}function _0xacfe86(_0x9eeb,_0x2b0efc){return new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a70d=>{if(_0x4c4ab1())return _0x12a70d(_0xa3734([0x56,0x61,0x6c,0x69,0x64]));_0x5b4b61(),_0x250c4a[_0xa3734([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa3734([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13096c=!0x1;const _0x5d66ff=_0x4c5b41();function _0x5028e9(_0x46cce3){return!!_0x46cce3&&(typeof _0x46cce3===_0xa3734([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46cce3===_0xa3734([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46cce3[_0xa3734([0x74,0x68,0x65,0x6e])]===_0xa3734([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46cce3[_0xa3734([0x63,0x61,0x74,0x63,0x68])]===_0xa3734([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x900ba8(_0x52d026){_0xe6fe16(_0x52d026)[_0xa3734([0x74,0x68,0x65,0x6e])](_0x6ccc5b=>{if(!_0x6ccc5b||_0x6ccc5b[_0xa3734([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa3734([0x6f,0x6b]))return _0xa3734([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55e4da(_0x5f3c7c(_0x5d66ff+_0x2b0efc))!=_0x6ccc5b[_0xa3734([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa3734([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa3734([0x56,0x61,0x6c,0x69,0x64]);})[_0xa3734([0x74,0x68,0x65,0x6e])](_0x19d2cb=>(_0x17ee31(),_0x19d2cb),()=>{const _0x2acac1=_0x2017ee();return null==_0x2acac1?(_0x17ee31(),_0xa3734([0x56,0x61,0x6c,0x69,0x64])):_0xa3734(_0x2bfc51-_0x2acac1>(0x38924882^_0x27c57a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa3734([0x74,0x68,0x65,0x6e])](_0x12a70d)[_0xa3734([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12a70d(_0xa3734([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26db6a=0x1ca82202^_0x27c57a;function _0x17ee31(){const _0x2aed87=_0xa3734([0x6c,0x6c,0x63,0x74,0x2d])+_0x55e4da(_0x5f3c7c(_0x9eeb)),_0x38c90b=_0x5a4d05(_0x55e4da(window[_0xa3734([0x4d,0x61,0x74,0x68])][_0xa3734([0x63,0x65,0x69,0x6c])](_0x2bfc51/_0x26db6a)));window[_0xa3734([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3734([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aed87,_0x38c90b);}function _0x2017ee(){const _0x2fe770=_0xa3734([0x6c,0x6c,0x63,0x74,0x2d])+_0x55e4da(_0x5f3c7c(_0x9eeb)),_0xda29e7=window[_0xa3734([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3734([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe770);return _0xda29e7?window[_0xa3734([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a4d05(_0xda29e7),0x10)*_0x26db6a:null;}function _0xe6fe16(_0x4603c9){return new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f9efc,_0x39daa6)=>{_0x4603c9[_0xa3734([0x74,0x68,0x65,0x6e])](_0x2f9efc,_0x39daa6),window[_0xa3734([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39daa6,0x1c9f1842^_0x27c57a);});}}_0x250c4a[_0xa3734([0x6f,0x6e])](_0xa3734([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7a7edc,_0x20025c)=>{if(_0x20025c[0x0]!=_0x9eeb)return _0x12a70d(_0xa3734([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20025c[0x1]={..._0x20025c[0x1],[_0xa3734([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d66ff};},{[_0xa3734([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3734([0x68,0x69,0x67,0x68])}),_0x250c4a[_0xa3734([0x6f,0x6e])](_0xa3734([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46c966=>{_0x5028e9(_0x46c966[_0xa3734([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13096c=!0x0,_0x900ba8(_0x46c966[_0xa3734([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa3734([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3734([0x6c,0x6f,0x77])}),_0x5071e9[_0xa3734([0x74,0x68,0x65,0x6e])](()=>{_0x13096c||_0x12a70d(_0xa3734([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c4ab1(){return _0x250c4a[_0xa3734([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3734([0x76,0x69,0x65,0x77])][_0xa3734([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa3734([0x61,0x75,0x74,0x6f]);}function _0x5b4b61(){_0x250c4a[_0xa3734([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3734([0x76,0x69,0x65,0x77])][_0xa3734([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa3734([0x61,0x75,0x74,0x6f]);}}function _0x32b6bb(_0x34eacb){const _0x40ce8d=[new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x510182=>setTimeout(_0x510182,0x1c97f24e^_0x27c57a)),_0x5071e9[_0xa3734([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4f33=>{const _0x119320=0x1c9ecc85^_0x27c57a,_0x1be0ee=_0x4f7c49[_0xa3734([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x261c34(){_0x1be0ee[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x119320&&_0x4a4f33();}_0x261c34(),_0x1be0ee[_0xa3734([0x6f,0x6e])](_0xa3734([0x61,0x64,0x64]),_0x261c34);})),new window[(_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1076=>{function _0x5005a7(){for(const _0x23c7c1 in window)if(window[_0xa3734([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa3734([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x23c7c1))&&window[_0x23c7c1]==_0x26359d)return _0x5a1076();_0x250c4a[_0xa3734([0x73,0x74,0x61,0x74,0x65])]!=_0xa3734([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa3734([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5005a7,0x1c9edf0a^_0x27c57a);}_0x22a37c(_0xa3734([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5005a7();})];return window[_0xa3734([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa3734([0x72,0x61,0x63,0x65])](_0x40ce8d)[_0xa3734([0x74,0x68,0x65,0x6e])](()=>_0x34eacb);}async function _0x21644b(){if(await _0x5071e9,_0x22a37c(_0xa3734([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44c3af=_0x4f7c49[_0xa3734([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x6578e0=_0x4f7c49[_0xa3734([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])](_0x44c3af[_0xa3734([0x69,0x64])]),_0x2374e3=_0x35bd30(_0xa3734([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2374e3[_0xa3734([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44c3af['id'],_0x6578e0?_0x6578e0['id']:null,!0x0),_0x2374e3[_0xa3734([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa3734([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2374e3[_0xa3734([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2374e3[_0xa3734([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3cd0b3,void(_0x2374e3[_0xa3734([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3cd0b3);}if(_0x22a37c(_0xa3734([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17dec5=_0x35bd30(_0xa3734([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17dec5[_0xa3734([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa3734([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17dec5[_0xa3734([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17dec5[_0xa3734([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3cd0b3,_0x17dec5[_0xa3734([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3cd0b3;}_0x250c4a[_0xa3734([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3734([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd0b3,_0x250c4a[_0xa3734([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3734([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd0b3,_0x250c4a[_0xa3734([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa3734([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x630ccd(){return _0x22a37c(_0xa3734([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x35bd30(_0xa3734([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa3734([0x73,0x74,0x61,0x74,0x65])]==_0xa3734([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59064c(){return _0x22a37c(_0xa3734([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 _0x5aebde(){return _0x22a37c(_0xa3734([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd096bf(_0x348627){const _0x3fd210=_0xd86a2e();_0x250c4a[_0x3fd210]=_0xa3734([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])+_0x348627,_0x348627[_0xa3734([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa3734([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xd86a2e()]=_0x26359d),_0x348627!=_0xa3734([0x56,0x61,0x6c,0x69,0x64])&&_0x21644b();}function _0xd86a2e(){const _0x35a215=window[_0xa3734([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa3734([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa3734([0x6e,0x6f,0x77])]())[_0xa3734([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa3734([0x2e]),'');let _0x4097ce=_0xa3734([0x42]);for(let _0x345187=0x0;_0x345187<_0x35a215[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x345187+=0x2){let _0x4a4e4d=window[_0xa3734([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35a215[_0xa3734([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x345187,_0x345187+0x2));_0x4a4e4d>=_0x162cdb[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a4e4d-=_0x162cdb[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4097ce+=_0x162cdb[_0x4a4e4d];}return _0x4097ce;}function _0x2925cf(){const _0x1834f7=_0x36e547[_0xa3734([0x73,0x70,0x6c,0x69,0x74])](_0xa3734([0x2e]));if(0x3!=_0x1834f7[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56a412(_0x1834f7[0x1]);function _0x56a412(_0x3c9098){const _0x6d8655=_0x146d57(_0x3c9098);return _0x6d8655&&_0x4bb1af()?_0x6d8655:null;function _0x4bb1af(){const _0x38ad72=_0x6d8655[_0xa3734([0x6a,0x74,0x69])],_0x3ed77f=window[_0xa3734([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38ad72[_0xa3734([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38ad72[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc65eab={..._0x6d8655,[_0xa3734([0x6a,0x74,0x69])]:_0x38ad72[_0xa3734([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38ad72[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc65eab[_0xa3734([0x76,0x63])],_0x5f3c7c(_0xc65eab)==_0x3ed77f;}}}async function _0x407a6f(){let _0x4dfc4b=!0x0;try{const _0x17511e=_0x36e547[_0xa3734([0x73,0x70,0x6c,0x69,0x74])](_0xa3734([0x2e])),[_0x37c4ba,_0x4dbd39,_0x5a7114]=_0x17511e;return _0x252aa0(_0x37c4ba),await _0x21c286(_0x37c4ba,_0x4dbd39,_0x5a7114),_0x4dfc4b;}catch(_0x4230a7){return!0x1;}function _0x252aa0(_0x4926bb){const _0x213dd2=_0x146d57(_0x4926bb);_0x213dd2&&_0x213dd2[_0xa3734([0x61,0x6c,0x67])]==_0xa3734([0x45,0x53,0x32,0x35,0x36])||(_0x4dfc4b=!0x1);}async function _0x21c286(_0x24192e,_0x58ff2a,_0xed0546){const _0x4e4714=window[_0xa3734([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa3734([0x66,0x72,0x6f,0x6d])](_0x71ebe5(_0xed0546),_0x1552a4=>_0x1552a4[_0xa3734([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ec5b3=new window[(_0xa3734([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa3734([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24192e+_0xa3734([0x2e])+_0x58ff2a),_0x3bba2b=window[_0xa3734([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa3734([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bba2b)return;const _0x5e4604=await _0x3bba2b[_0xa3734([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa3734([0x6a,0x77,0x6b]),_0x3a6196,{[_0xa3734([0x6e,0x61,0x6d,0x65])]:_0xa3734([0x45,0x43,0x44,0x53,0x41]),[_0xa3734([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa3734([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa3734([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bba2b[_0xa3734([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa3734([0x6e,0x61,0x6d,0x65])]:_0xa3734([0x45,0x43,0x44,0x53,0x41]),[_0xa3734([0x68,0x61,0x73,0x68])]:{[_0xa3734([0x6e,0x61,0x6d,0x65])]:_0xa3734([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e4604,_0x4e4714,_0x1ec5b3)||(_0x4dfc4b=!0x1);}}function _0x146d57(_0x579427){return _0x579427[_0xa3734([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa3734([0x65,0x79]))?JSON[_0xa3734([0x70,0x61,0x72,0x73,0x65])](_0x71ebe5(_0x579427)):null;}function _0x71ebe5(_0x2e2283){return window[_0xa3734([0x61,0x74,0x6f,0x62])](_0x2e2283[_0xa3734([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa3734([0x2b]))[_0xa3734([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa3734([0x2f])));}function _0x5f3c7c(_0x12ac8b){let _0x38f1b4=0x1505;function _0x46d407(_0x472652){for(let _0x524fb4=0x0;_0x524fb4<_0x472652[_0xa3734([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x524fb4++){const _0x5c1d3c=_0x472652[_0xa3734([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x524fb4);_0x38f1b4=(_0x38f1b4<<0x5)+_0x38f1b4+_0x5c1d3c,_0x38f1b4&=_0x38f1b4;}}function _0xac2cdb(_0x4932bd){Array[_0xa3734([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4932bd)?_0x4932bd[_0xa3734([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xac2cdb):_0x4932bd&&typeof _0x4932bd==_0xa3734([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa3734([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4932bd)[_0xa3734([0x73,0x6f,0x72,0x74])]()[_0xa3734([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ad31f,_0x4c493e])=>{_0x46d407(_0x1ad31f),_0xac2cdb(_0x4c493e);}):_0x46d407(window[_0xa3734([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4932bd));}return _0xac2cdb(_0x12ac8b),_0x38f1b4>>>0x0;}function _0x55e4da(_0x152a63){return _0x152a63[_0xa3734([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa3734([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa3734([0x30]));}function _0x5a4d05(_0x3145d2){return _0x3145d2[_0xa3734([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa3734([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa3734([0x6a,0x6f,0x69,0x6e])]('');}function _0x22a37c(_0x1248f2){return _0x250c4a[_0xa3734([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa3734([0x68,0x61,0x73])](_0x1248f2);}function _0x35bd30(_0x458dae){return _0x250c4a[_0xa3734([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa3734([0x67,0x65,0x74])](_0x458dae);}function _0x3cd0b3(){}function _0xa3734(_0x2835ab){return _0x2835ab['map'](_0x378bce=>String['fromCharCode'](_0x378bce))['join']('');}_0xd096bf(await _0x4b9177());}(this);}['createRevision'](_0xb94a6d){const _0x41afce=this['editor']['plugins']['get']('Users');return new a({'id':_0xb94a6d['id'],'name':_0xb94a6d['name'],'creator':_0xb94a6d['creatorId']?_0x41afce['getUser'](_0xb94a6d['creatorId']):null,'diffData':_0xb94a6d['diffData']||_0xb94a6d['data'],'authors':_0xb94a6d['authorsIds']['map'](_0x245295=>_0x41afce['getUser'](_0x245295)),'createdAt':new Date(_0xb94a6d['createdAt']),'attributes':_0xb94a6d['attributes'],'fromVersion':_0xb94a6d['fromVersion'],'toVersion':_0xb94a6d['toVersion']});}['addRevision'](_0x1d853e,_0xc7e884=0x0){this['_revisions']['add'](_0x1d853e,_0xc7e884);}['getRevision'](_0x4d619b){return this['_revisions']['get'](_0x4d619b);}['getRevisions'](_0x85e70f={'toJSON':!0x1}){const _0x1ecd51=Array['from'](this['_revisions']);return _0x1ecd51['reverse'](),_0x85e70f['toJSON']?_0x1ecd51['map'](_0x1c6a78=>_0x1c6a78['toJSON']()):_0x1ecd51;}['getIndex'](_0x29dbd6){return this['_revisions']['getIndex'](_0x29dbd6);}['getEarlierVisibleRevision'](_0x3c4b43){const [,_0x3a7271]=this['getRevisionsIterator'](_0x3c4b43,{'direction':'earlier'});return _0x3a7271;}['getLaterVisibleRevision'](_0x78500e){const [,_0x22d0ed]=this['getRevisionsIterator'](_0x78500e,{'direction':'later'});return _0x22d0ed;}['getRevisionsInDiff'](_0x3c8109){const _0xc487ee=[];for(const _0x2b29d5 of this['getRevisionsIterator'](_0x3c8109['newRevisionId']))if(_0xc487ee['push'](_0x2b29d5),_0x2b29d5['id']===_0x3c8109['oldRevisionId'])break;return _0xc487ee;}*['getRevisionsIterator'](_0x47cfd2,{direction:_0x2ae445='earlier',filter:_0x2125d1=()=>!0x0}={}){const _0x30a38f='earlier'===_0x2ae445?0x1:-0x1;let _0x17043b=this['_revisions']['get'](_0x47cfd2),_0x1656ea=this['getIndex'](_0x17043b);for(yield _0x17043b;_0x17043b;){if(_0x1656ea+=_0x30a38f,_0x17043b=this['getRevision'](_0x1656ea),!_0x17043b)return;_0x2125d1(_0x17043b)&&(yield _0x17043b);}}}function R(_0x3ed5ed,_0x2d34b5,_0x506f0d){const t=_0x3ed5ed['t'];switch(_0x2d34b5){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'},_0x506f0d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x506f0d);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':_0x3cb2a9,'a':_0x3121ff,'e':_0x43ffa6,'r':_0x113701,'u':_0x46f8b2};class l extends _0x4e17c7{['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[_0x2edfe1,j,_0x3ba5ec];}constructor(_0x53ad9b){super(_0x53ad9b),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 _0x198d31=_0x4c5b41();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x198d31},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 _0x323060=this['repository']['getRevision'](0x0),_0x20d06f=_0x323060&&null===_0x323060['creator']?_0x323060:null;if(this['_continueCurrentRevision']=!!_0x20d06f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x34b2f8=this['_source']['getCurrentRevisionId'](),_0x3aedff=this['repository']['getRevision'](_0x34b2f8);if(_0x3aedff)this['_startingVersion']=_0x3aedff['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3b4e4a=this['_source']['history']['_operations']['find'](_0x126f31=>!_0x126f31['_isInit']),_0xacedbb=_0x3b4e4a?_0x3b4e4a['baseVersion']:this['_source']['history']['version'];_0x323060?(_0x323060['toVersion']<_0xacedbb&&_0x323060['_update']({'toVersion':_0xacedbb}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x20d06f['id'],this['_startingVersion']=_0x20d06f['fromVersion']):(this['_startingVersion']=_0x323060['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xacedbb,this['_continueCurrentRevision']=!0x1);}}else _0x20d06f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x20d06f['toVersion'],this['editor']['model']['document']['history']['version']),_0x20d06f['fromVersion']===_0x20d06f['toVersion']?(0x0!==_0x20d06f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x20d06f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x20d06f['id'],this['_startingVersion']=_0x20d06f['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',_0x38d294=>!_0x38d294),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50d99f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a5fd0;for(const _0x4c3b05 in _0x50d99f){const _0x54079e=_0x4c3b05,_0x599a7c=_0x50d99f[_0x54079e];if('revisionHistoryLicenseKeyValid'==_0x599a7c||'revisionHistoryLicenseKeyInvalid'==_0x599a7c||'revisionHistoryLicenseKeyExpired'==_0x599a7c||'revisionHistoryLicenseKeyDomainLimit'==_0x599a7c||'revisionHistoryLicenseKeyNotAllowed'==_0x599a7c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x599a7c||'revisionHistoryLicenseKeyTrialLimit'==_0x599a7c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x599a7c||'revisionHistoryLicenseKeyUsageLimit'==_0x599a7c){delete _0x50d99f[_0x54079e],_0x5a5fd0=_0x599a7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5a5fd0&&_0x50d99f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x143d4b=this['repository']['getRevision'](0x0),_0x27008d=await this['getRevisionDocumentData'](_0x143d4b),_0xd09f4e=await this['getRevisionRootsAttributes'](_0x143d4b);this['_replaceEditorDataWithRevisionData'](_0x27008d,_0xd09f4e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5efe0d){this['_source']=_0x5efe0d;}async['update'](){const _0x13d0df=await this['_source']['getLatestVersion']();if(_0x13d0df>this['currentRevision']['toVersion']){await this['_loadState']();const _0x346d36=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13d0df});_0x346d36['authors']=_0x346d36['authorsIds']['map'](_0x51888c=>this['editor']['plugins']['get']('Users')['getUser'](_0x51888c)),this['currentRevision']['_update'](_0x346d36);}}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'](_0x3d17ca={},_0x1e1ea9=null){const _0x3475a4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1e1ea9>this['currentRevision']['toVersion']&&(_0x1e1ea9=null),null===_0x1e1ea9&&(_0x1e1ea9=await this['_source']['getLatestVersion']());const _0x46818c=this['_getFromVersion'](_0x1e1ea9),_0x3c46fd=this['buildRevisionData']({'from':_0x46818c,'to':_0x1e1ea9});if(this['currentRevision']['toVersion']<_0x1e1ea9){const _0x1e59f3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1e1ea9,'to':_0x1e1ea9});_0x1e59f3['authors']=[],_0x1e59f3['authorsIds']=[],_0x1e59f3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1e59f3,!0x0),delete _0x1e59f3['authors'],_0x3475a4['push'](_0x1e59f3);}_0x3d17ca['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3d17ca['name']=_0x3d17ca['name']||null,_0x3d17ca['id']=_0x3d17ca['id']||_0x4c5b41(),_0x3d17ca={..._0x3d17ca,..._0x3c46fd};const _0x51c4b4=this['addRevisionData'](_0x3d17ca);_0x3475a4['push'](_0x3d17ca);const _0x2a0760=this['repository']['getIndex'](_0x51c4b4);if(0x0!==_0x2a0760){const _0x6cd55b=this['repository']['getRevision'](_0x2a0760-0x1);if(_0x6cd55b['fromVersion']!==_0x1e1ea9){const _0x26b007=this['_revisionDataBuilder']['getData'](_0x1e1ea9,_0x6cd55b['toVersion']),_0x3fbf0a={'id':_0x6cd55b['id'],'diffData':_0x26b007['diffData'],'authorsIds':_0x26b007['authorsIds'],'authors':_0x26b007['authorsIds']['map'](_0x109128=>this['editor']['plugins']['get']('Users')['getUser'](_0x109128)),'fromVersion':_0x1e1ea9};_0x6cd55b===this['currentRevision']&&(_0x3fbf0a['createdAt']=new Date(_0x3d17ca['createdAt']['getTime']()+0xa)),_0x6cd55b['_update'](_0x3fbf0a,!0x0),delete _0x3fbf0a['authors'],_0x3475a4['push'](_0x3fbf0a);}}if(this['adapter']){for(const _0x5f407d of _0x3475a4)this['_bufferUpdate'](_0x5f407d['id'],_0x5f407d,!0x0);this['sendBufferedUpdates']();}return _0x51c4b4;}['addRevisionData'](_0xf57ad){const _0x351d3e=this['repository']['createRevision'](_0xf57ad);return this['adapter']&&_0x351d3e['on']('_update',(_0x198328,_0x5a908f,_0x17e47c)=>{_0x17e47c||(this['_bufferUpdate'](_0x5a908f['id'],_0x5a908f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x351d3e,this['_findInsertionIndex'](_0x351d3e)),_0x351d3e;}async['getRevisionDocumentData'](_0xd2e630){await this['_loadRevisionData'](_0xd2e630);const _0x4b5882={};for(const _0x1b21f6 in _0xd2e630['diffData']){if(_0xd2e630['diffData'][_0x1b21f6]['attachChange']&&!_0xd2e630['diffData'][_0x1b21f6]['attachChange']['isAttached'])continue;const _0x311435=this['_removeRevisionMarkers'](JSON['parse'](_0xd2e630['diffData'][_0x1b21f6]['insertions'])),_0x33d31f=this['editor']['editing']['view']['document'],_0x3c9e1e=new _0x5d7012(_0x33d31f,_0x311435['map'](_0x5d75ec=>V(_0x5d75ec,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b5882[_0x1b21f6]=this['editor']['data']['processor']['toData'](_0x3c9e1e),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b5882;}async['getRevisionRootsAttributes'](_0x207728){await this['_loadRevisionData'](_0x207728);const _0x2411a0={};for(const _0x1e250b in _0x207728['diffData'])_0x207728['diffData'][_0x1e250b]['attachChange']&&!_0x207728['diffData'][_0x1e250b]['attachChange']['isAttached']||(_0x2411a0[_0x1e250b]=_0x207728['diffData'][_0x1e250b]['attributesAfter']||{});return _0x2411a0;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x339dd8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4205ff=0x0;_0x4205ff<_0x339dd8['length'];_0x4205ff++){const _0x5d25d2=_0x339dd8[_0x4205ff];let _0x141af4=!0x1;for(const _0x4c4bc6 of Object['keys'](_0x5d25d2))void 0x0===_0x5d25d2[_0x4c4bc6]?delete _0x5d25d2[_0x4c4bc6]:'id'!==_0x4c4bc6&&(_0x141af4=!0x0);_0x141af4||(_0x339dd8[_0x4205ff]=null);}if(_0x339dd8=_0x339dd8['filter'](_0x329ee4=>null!==_0x329ee4),!_0x339dd8['length'])return;for(let _0x25623a=0x0;_0x25623a<_0x339dd8['length'];_0x25623a++){const _0x3670c4=_0x339dd8[_0x25623a];void 0x0!==_0x3670c4['fromVersion']&&void 0x0===_0x3670c4['toVersion']&&(_0x3670c4['toVersion']=this['repository']['getRevision'](_0x3670c4['id'])['toVersion']),void 0x0!==_0x3670c4['toVersion']&&void 0x0===_0x3670c4['fromVersion']&&(_0x3670c4['fromVersion']=this['repository']['getRevision'](_0x3670c4['id'])['fromVersion']);}const _0x361c1d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x339dd8,_0x361c1d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x563c1a=>{if(_0x563c1a){for(const _0x141d65 of _0x563c1a)this['setRevisionData']({'id':_0x141d65['id'],'createdAt':_0x141d65['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1df4d2,_0x68ee09){let _0x3154ec=this['editor']['config']['get']('initialData'),_0x2714ee=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3154ec){_0x3154ec={};for(const _0x5d42a9 of this['editor']['model']['document']['getRootNames']())_0x3154ec[_0x5d42a9]='';}if('string'==typeof _0x3154ec&&(_0x3154ec={'main':_0x3154ec}),void 0x0===_0x2714ee){_0x2714ee={};for(const _0x2372bd of this['editor']['model']['document']['getRootNames']())_0x2714ee[_0x2372bd]={};}let _0x3dd4a7=!0x1;const _0x18d406=Object['keys'](_0x3154ec),_0x4e3dec=Object['keys'](_0x1df4d2);for(const _0x36327c of _0x18d406){if(_0x3154ec[_0x36327c]!==_0x1df4d2[_0x36327c]&&''!==_0x3154ec[_0x36327c]['trim']()){_0x3dd4a7=!0x0;break;}if(!_0x3ed3c3(_0x2714ee[_0x36327c],_0x68ee09[_0x36327c])&&Object['keys'](_0x2714ee[_0x36327c])['length']>0x0){_0x3dd4a7=!0x0;break;}}_0x3dd4a7||(_0x3dd4a7=_0x4e3dec['some'](_0x328bc7=>!this['editor']['model']['document']['getRoot'](_0x328bc7))),_0x3dd4a7&&_0x355e99('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3154ec,'editorRootsAttributes':_0x2714ee,'revisionData':_0x1df4d2,'revisionRootsAttributes':_0x68ee09}),this['editor']['config']['set']('initialData',_0x1df4d2),this['editor']['config']['set']('rootsAttributes',_0x68ee09);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1787cd=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1787cd['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4148b9){const _0x170469=this['repository']['getRevisions']();_0x170469['reverse']();let _0x477204=0x0;for(;_0x477204<_0x170469['length'];){const _0x26bd1d=_0x170469[_0x477204];if(_0x26bd1d===this['currentRevision']){_0x477204++;continue;}if(_0x26bd1d['id']===this['_initialRevisionId'])break;const _0x4b0bab=_0x4148b9['toVersion']-_0x26bd1d['toVersion']||_0x4148b9['fromVersion']-_0x26bd1d['fromVersion'];if(_0x4b0bab>0x0)break;if(_0x4b0bab<0x0)_0x477204++;else{if(!_0x4148b9['creator']&&_0x26bd1d['creator'])break;if(_0x26bd1d['creator']||!_0x4148b9['creator']){if(_0x4148b9['createdAt']>_0x26bd1d['createdAt'])break;_0x477204++;}else _0x477204++;}}return _0x477204;}['setRevisionData'](_0xf34423){const _0x87bffd=this['repository']['getRevision'](_0xf34423['id']);if(_0xf34423['createdAt']&&(_0xf34423['createdAt']=new Date(_0xf34423['createdAt'])),_0xf34423['authorsIds']){const _0x4fa6b5=this['editor']['plugins']['get']('Users');_0xf34423['authors']=_0xf34423['authorsIds']['map'](_0x32614e=>_0x4fa6b5['getUser'](_0x32614e));}_0x87bffd['_update'](_0xf34423,!0x0);}['buildRevisionData']({revision:_0x354189=null,from:_0x110dcb=null,to:_0x2c7d03=null}){_0x110dcb=null!==_0x110dcb?_0x110dcb:_0x354189['fromVersion'],_0x2c7d03=null!==_0x2c7d03?_0x2c7d03:_0x354189['toVersion'];const _0x1e7452=this['_revisionDataBuilder']['getData'](_0x110dcb,_0x2c7d03),_0x4ab2cc={'diffData':_0x1e7452['diffData'],'authorsIds':_0x1e7452['authorsIds'],'fromVersion':_0x110dcb,'toVersion':_0x2c7d03};if(!_0x354189||_0x2c7d03!==_0x354189['toVersion']){const _0x4c0ad3=_0x2c7d03-0x1,_0x2258d0=this['_source']['history']['getOperation'](_0x4c0ad3);_0x4ab2cc['createdAt']=_0x2258d0&&_0x2258d0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x110dcb===this['_loadedStateData']['fromVersion']){for(const _0xf09ba9 of this['_loadedStateData']['authors'])_0x4ab2cc['authorsIds']['includes'](_0xf09ba9['id'])||_0x4ab2cc['authorsIds']['push'](_0xf09ba9['id']);}return _0x4ab2cc;}['_loadRevisionData'](_0xb0a1b9){if(!_0xb0a1b9||_0xb0a1b9['diffData'])return Promise['resolve']();{const _0x132a48=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x132a48,'revisionId':_0xb0a1b9['id']})['then'](_0x31d51c=>{_0xb0a1b9['diffData']=_0x31d51c['diffData'];});}}['_bufferUpdate'](_0x3dc3fd,_0x2f94c2,_0x2340fc){if(this['_bufferedUpdates']['has'](_0x3dc3fd)){const _0x31fe53=this['_bufferedUpdates']['get'](_0x3dc3fd);_0x2f94c2=_0x2340fc?{..._0x31fe53,..._0x2f94c2}:{..._0x2f94c2,..._0x31fe53};}this['_bufferedUpdates']['set'](_0x3dc3fd,_0x2f94c2);}['_getFromVersion'](_0x38b7b2){const _0x3e5ffe=this['repository']['getRevisions']();_0x3e5ffe['reverse'](),_0x3e5ffe['shift']();const _0x249e53=_0x3e5ffe['find'](_0x506e4d=>_0x506e4d['toVersion']<=_0x38b7b2)['toVersion'];return _0x249e53<this['_startingVersion']?this['_startingVersion']:_0x249e53;}['_createInitialRevision'](_0x3dc9b2){const _0x2f0ad1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2f0ad1)this['_initialRevisionId']=_0x2f0ad1['id'];else{const _0x1c5b54=!this['editor']['model']['document']['roots']['find'](_0x13d44d=>this['editor']['model']['hasContent'](_0x13d44d)),_0x55f3ff=this['editor']['plugins']['get']('Users')['me']['id'],_0x240449=R(this['editor']['locale'],_0x1c5b54?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3dc9b2,'to':_0x3dc9b2,'id':this['_initialRevisionId'],'name':_0x240449,'creatorId':_0x55f3ff});}}['_createCurrentRevision'](_0x530a63){const _0x268c26=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x268c26),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x530a63,'to':_0x530a63,'id':_0x268c26,'name':'','creatorId':null}));}['_makeRevision']({name:_0x37773f,from:_0x2177df,to:_0x25933d,creatorId:_0x3f4ff8,id:_0x517d6b}){const _0x56800a=this['buildRevisionData']({'from':_0x2177df,'to':_0x25933d});_0x56800a['name']=_0x37773f,_0x56800a['creatorId']=_0x3f4ff8,_0x56800a['id']=_0x517d6b;const _0x349226=this['addRevisionData'](_0x56800a);return this['adapter']&&this['_bufferUpdate'](_0x56800a['id'],_0x56800a,!0x0),_0x349226;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x43efe2){return(_0x43efe2=_0x43efe2['filter'](_0x1a05c8=>!_0x1a05c8['name']||'revision-start'!==_0x1a05c8['name']&&'revision-end'!==_0x1a05c8['name']))['forEach'](_0x5b08e7=>{'string'!=typeof _0x5b08e7&&(_0x5b08e7['children']=this['_removeRevisionMarkers'](_0x5b08e7['children']),_0x5b08e7['attributes']=_0x5b08e7['attributes']['filter'](_0x271000=>!_0x271000[0x0]['startsWith']('data-revision-')));}),_0x43efe2;}}function V(_0x38814b,_0x43c98c){const _0x2d9666=_0x43c98c['editing']['view']['document'];if('string'==typeof _0x38814b)return new _0x448105(_0x2d9666,_0x38814b);{const _0x2d18b6=_0x38814b['children']['map'](_0x83bf3a=>V(_0x83bf3a,_0x43c98c));return new(C[_0x38814b['type']]||_0x24222b)(_0x2d9666,_0x38814b['name'],_0x38814b['attributes'],_0x2d18b6);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x202395){this['editor']=_0x202395,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'](_0x4e61a6){this['source']=_0x4e61a6;const _0x39499e=new Map(),_0x35ccab=new Map(),_0x5836e1=this['editor']['model']['document']['roots']['map'](_0x13cf93=>_0x13cf93['rootName']);for(const _0x41d3a7 of _0x5836e1){const _0x54ff4c=this['editor']['model']['document']['getRoot'](_0x41d3a7),_0x4d2609=F(_0x54ff4c);_0x39499e['set'](_0x41d3a7,_0x4d2609),_0x35ccab['set'](_0x41d3a7,Object['fromEntries'](_0x54ff4c['getAttributes']()));}const _0x36d4b1=Array['from'](this['editor']['model']['markers'])['map'](_0x1e9a18=>[_0x1e9a18['name'],_0x1e9a18['getRange']()]),_0x401597=this['source']['version'];this['_saveMetaData'](_0x401597,_0x39499e,_0x36d4b1,_0x35ccab),this['_startingRevisionId']=this['_revisionId'];const _0x4453c1=new Map(),_0x59bbed=new Map();for(const _0x41c6e6 of _0x5836e1){const _0x438875=B(_0x41c6e6);_0x4453c1['set'](_0x41c6e6,_0x438875),_0x59bbed['set'](_0x41c6e6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4453c1,[],_0x59bbed);}['getData'](_0x313fd1,_0x74c6ac){if(this['_lastFrom']===_0x313fd1&&this['_lastTo']<=_0x74c6ac)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x74c6ac,!0x0);else{if(!this['_savedMetaData']['has'](_0x313fd1)){const _0x50276b=this['_getPreviousFrom'](_0x313fd1);this['_calculateMetaData'](_0x50276b,_0x313fd1,!0x1);}this['_calculateMetaData'](_0x313fd1,_0x74c6ac,!0x0);}return this['_lastFrom']=_0x313fd1,this['_lastTo']=_0x74c6ac,this['_getState']();}['loadState'](_0x107e42){this['_reset'](),this['_lastFrom']=_0x107e42['fromVersion'],this['_lastTo']=_0x107e42['toVersion'];for(const _0x15d86d in _0x107e42['diffData']){const _0x22156e=_0x107e42['diffData'][_0x15d86d]['attachChange'],_0x341555=_0x3327e9(_0x107e42['diffData'][_0x15d86d]['attributesBefore'])||{},_0x28f694=this['_makeModelFromViewString'](_0x107e42['diffData'][_0x15d86d]['deletions']);_0x28f694['rootName']=_0x15d86d,_0x28f694['_isAttached']=!_0x22156e||!_0x22156e['isAttached'],_0x28f694['isAttached']=()=>_0x28f694['_isAttached'],this['_baseRoots']['set'](_0x15d86d,_0x28f694),this['_baseRootsAttributes']['set'](_0x15d86d,_0x341555),_0x22156e&&this['_touchedRoots']['set'](_0x15d86d,_0x22156e);const _0x59f861=this['_makeIdsRoot'](_0x28f694);this['_baseIdsRoots']['set'](_0x15d86d,_0x59f861);for(const [_0x44607a,_0x1679f2]of _0x28f694['markers']){if(!_0x44607a['startsWith']('revision:'))continue;const _0x4cb9d2=_0x44607a['split'](':')[0x2];for(const _0x59321e of _0x1679f2['getWalker']({'singleCharacters':!0x0})){const _0x57a6e8=this['_getVidAttributeName'](_0x59321e),_0x4c90f4='elementEnd'==_0x59321e['type']?_0x59321e['previousPosition']['path']['slice'](0x0,-0x1):_0x59321e['previousPosition']['path'],_0x5d9725=_0x59f861['getNodeByPath'](_0x4c90f4)['getAttribute'](_0x57a6e8);this['_touched']['set'](_0x5d9725,{'userId':_0x4cb9d2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x20a458=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x48e346=>!this['_touched']['has'](_0x48e346));let _0x2179d0=0x0;const _0x47cc4b=new Map();for(const _0x3f9f7b in _0x107e42['diffData']){const _0x7fc6c8=_0x107e42['diffData'][_0x3f9f7b]['attachChange'],_0x49d139=_0x3327e9(_0x107e42['diffData'][_0x3f9f7b]['attributesAfter'])||{},_0x5e6eea=this['_makeModelFromViewString'](_0x107e42['diffData'][_0x3f9f7b]['insertions']);_0x5e6eea['rootName']=_0x3f9f7b,_0x5e6eea['_isAttached']=!_0x7fc6c8||_0x7fc6c8['isAttached'],_0x5e6eea['isAttached']=()=>_0x5e6eea['_isAttached'],this['_diffRoots']['set'](_0x3f9f7b,_0x5e6eea),this['_diffRootsAttributes']['set'](_0x3f9f7b,_0x49d139);const _0x46baf6=this['_makeIdsRoot'](_0x5e6eea,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f9f7b,_0x46baf6),_0x47cc4b['set'](_0x3f9f7b,_0x5e6eea['isAttached']()?_0x49d139:{});for(const [_0x3a8238,_0x14a16a]of _0x5e6eea['markers']){if(!_0x3a8238['startsWith']('revision:'))continue;const _0x2e46f3=_0x3a8238['split'](':')[0x2];for(const _0x5eb287 of _0x14a16a['getWalker']({'singleCharacters':!0x0})){const _0x247288=this['_getVidAttributeName'](_0x5eb287),_0x4f75dc=this['_revisionId']++,_0x3a239c='elementEnd'==_0x5eb287['type']?_0x5eb287['previousPosition']['path']['slice'](0x0,-0x1):_0x5eb287['previousPosition']['path'];_0x46baf6['getNodeByPath'](_0x3a239c)['_setAttribute'](_0x247288,_0x4f75dc),this['_touched']['set'](_0x4f75dc,{'userId':_0x2e46f3});}}for(const _0x4bdb12 of this['editor']['model']['createRangeIn'](_0x5e6eea)['getWalker']({'singleCharacters':!0x0})){const _0xd6048d=this['_getVidAttributeName'](_0x4bdb12),_0x58d8d3='elementEnd'==_0x4bdb12['type']?_0x4bdb12['previousPosition']['path']['slice'](0x0,-0x1):_0x4bdb12['previousPosition']['path'],_0x2bd1fc=_0x46baf6['getNodeByPath'](_0x58d8d3);_0x2bd1fc['getAttribute'](_0xd6048d)>0x0||_0x2bd1fc['_setAttribute'](_0xd6048d,_0x20a458[_0x2179d0++]);}for(const [_0x535cc7,_0x21e495]of _0x5e6eea['markers'])_0x535cc7['startsWith']('revision:')||this['_markers']['set'](_0x535cc7,_0x21e495);}const _0x23cfbb=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x23cfbb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x23cfbb,0x1));const _0xdc43e4=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xdc43e4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdc43e4,0x1));const _0x2ed344=Array['from'](this['_diffRoots'])['map'](([_0x1d1d64,_0x199d99])=>[_0x1d1d64,F(_0x199d99)]);this['_saveMetaData'](this['_lastTo'],_0x2ed344,this['_markers'],_0x47cc4b);}['_makeModelFromViewString'](_0x533581){const _0x348890=JSON['parse'](_0x533581),_0x444a34=this['editor']['editing']['view']['document'],_0x4e4aa5=new _0x5d7012(_0x444a34,_0x348890['map'](_0x14976b=>V(_0x14976b,this['editor'])));return this['editor']['data']['toModel'](_0x4e4aa5);}['_saveMetaData'](_0x3e1056,_0x41f3b6,_0x5f3dae,_0xfe3ccb){const _0x2460fa=new Map(_0x41f3b6),_0x19d7b4=new Map(_0x3327e9(_0xfe3ccb)),_0x555b1b=new Map();for(const [_0x3391ca,_0x4937d0]of _0x5f3dae)_0x555b1b['set'](_0x3391ca,{'start':_0x4937d0['start']['clone'](),'end':_0x4937d0['end']['clone'](),'rootName':_0x4937d0['root']['rootName']});this['_savedMetaData']['set'](_0x3e1056,{'roots':_0x2460fa,'markers':_0x555b1b,'rootsAttributes':_0x19d7b4});}['_removeMetaData'](_0x335866){this['_savedMetaData']['delete'](_0x335866);}['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'](_0x3904ee,_0x4ea1dc=null){let _0x56f7d1=null;_0x3904ee['is']('documentFragment')||(_0x56f7d1=new ft(_0x3904ee['name'],{'vid_start':null===_0x4ea1dc?this['_revisionId']++:_0x4ea1dc++}));const _0x52e054=[];for(const _0x2217cf of _0x3904ee['getChildren']())if(_0x2217cf['is']('element')){_0x52e054['push'](this['_makeIdsRoot'](_0x2217cf,_0x4ea1dc));const _0x2fa5ee=_0x52e054[_0x52e054['length']-0x1];null!==_0x4ea1dc&&(_0x4ea1dc=_0x2fa5ee['is']('element','$text')?_0x2fa5ee['getAttribute']('vid')+0x1:_0x2fa5ee['getAttribute']('vid_end')+0x1);}else{for(let _0xf6c46c=0x0;_0xf6c46c<_0x2217cf['offsetSize'];_0xf6c46c++)_0x52e054['push'](new ft('$text',{'vid':null===_0x4ea1dc?this['_revisionId']++:_0x4ea1dc++}));}if(_0x3904ee['is']('documentFragment')){const _0x54654f=B(_0x3904ee['rootName']);return _0x54654f['_insertChild'](0x0,_0x52e054),_0x54654f;}return _0x56f7d1['_setAttribute']('vid_end',null===_0x4ea1dc?this['_revisionId']++:_0x4ea1dc++),_0x56f7d1['_insertChild'](0x0,_0x52e054),_0x56f7d1;}['_calculateMetaData'](_0x4f7ceb,_0x278758,_0x58d123){this['_reset']();const {roots:_0x1e9c1b,markers:_0x4629c3,rootsAttributes:_0x440f4d}=this['_savedMetaData']['get'](_0x4f7ceb);this['_baseRoots']=new Map(_0x1e9c1b),this['_baseRootsAttributes']=new Map(_0x3327e9(_0x440f4d));for(const [_0x493431,_0x4d959a]of this['_baseRoots'])if('$graveyard'!==_0x493431&&(this['_diffRoots']['set'](_0x493431,F(_0x4d959a)),this['_diffRootsAttributes']=new Map(_0x3327e9(_0x440f4d)),_0x58d123)){const _0x5e2827=this['_revisionId'];this['_idsRoots']['set'](_0x493431,this['_makeIdsRoot'](_0x4d959a)),this['_baseIdsRoots']['set'](_0x493431,this['_makeIdsRoot'](_0x4d959a,_0x5e2827));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x58d123&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x592a2c,_0x5d2200]of _0x4629c3){const _0x48041a=this['_baseRoots']['get'](_0x5d2200['rootName']),_0x3f3bcc=this['_diffRoots']['get'](_0x5d2200['rootName']),_0x279e6c=new vt(this['_fixPosition'](_0x5d2200['start'],_0x48041a),this['_fixPosition'](_0x5d2200['end'],_0x48041a)),_0x43ff2b=this['_fixRange'](_0x279e6c,_0x3f3bcc);_0x48041a['markers']['set'](_0x592a2c,_0x279e6c),this['_markers']['set'](_0x592a2c,_0x43ff2b);}this['_applyOperations'](_0x4f7ceb,_0x278758,_0x58d123);}['_applyOperations'](_0xaa5d7e,_0x524042,_0x43c95f){for(const _0x4b5223 of this['source']['getOperations'](_0xaa5d7e,_0x524042))this['_handleOperation'](_0x4b5223,_0x43c95f);for(const _0x254bd9 of this['_diffRoots']['values']())_0x254bd9['markers']['clear']();for(const [_0x37c3c0,_0x5401ab]of this['_markers']){this['_diffRoots']['get'](_0x5401ab['root']['rootName'])['markers']['set'](_0x37c3c0,_0x5401ab['clone']());}const _0x5b7173=new Map(),_0x19b55b=new Map();for(const [_0x936cc6,_0x59f8dd]of this['_diffRoots'])_0x5b7173['set'](_0x936cc6,F(_0x59f8dd)),_0x19b55b['set'](_0x936cc6,this['_diffRootsAttributes']['get'](_0x936cc6));this['_saveMetaData'](_0x524042,_0x5b7173,this['_markers'],_0x19b55b);}['_getPreviousFrom'](_0x16d97f){const _0x1b92de=Array['from'](this['_savedMetaData']['keys']());_0x1b92de['sort']((_0xf72180,_0x57b10b)=>_0xf72180-_0x57b10b),_0x1b92de['reverse']();for(const _0x2b1f84 of _0x1b92de)if(_0x2b1f84<_0x16d97f)return _0x2b1f84;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4cf2c5,_0x43abba){const _0x456b75=Array['from'](_0x43abba['markers'])['map'](([_0x273cef,_0x50b635])=>[_0x273cef,this['_fixRange'](_0x50b635,_0x4cf2c5)]);_0x4cf2c5['markers']=new Map(_0x456b75);}['_transformMarkers'](_0x2e64fc){for(const _0x2564ba of this['_markers']['values']()){const _0xa2e7b6=_0x2564ba['getTransformedByOperation'](_0x2e64fc),_0x16799c=vt['_createFromRanges'](_0xa2e7b6);_0x2564ba['start']=_0x16799c['start'],_0x2564ba['end']=_0x16799c['end'];}}['_handleOperation'](_0x488543,_0x380320){if('addRoot'!=_0x488543['type']&&'detachRoot'!=_0x488543['type']){if('insert'==_0x488543['type']){const _0x5d7e71=_0x488543['position']['root']['rootName'];this['_diffRoots']['has'](_0x5d7e71)||(this['_diffRoots']['set'](_0x5d7e71,B(_0x5d7e71,!0x0)),this['_diffRootsAttributes']['set'](_0x5d7e71,{}),_0x380320&&this['_idsRoots']['set'](_0x5d7e71,B(_0x5d7e71,!0x0)));}else{if('addRootAttribute'==_0x488543['type']||'removeRootAttribute'==_0x488543['type']||'changeRootAttribute'==_0x488543['type'])return void this['_handleRootAttributeOperation'](_0x488543);'marker'==_0x488543['type']&&this['_handleMarkerOperation'](_0x488543);}if('marker'!==_0x488543['type']){const _0x170762=this['_cloneOperation'](_0x488543,this['_diffRoots']);_0x170762['_execute'](),this['_transformMarkers'](_0x170762);}if(_0x380320)switch(_0x488543['type']){case'insert':this['_handleInsertOperation'](_0x488543);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x488543);break;case'merge':this['_handleMergeOperation'](_0x488543);break;case'split':this['_handleSplitOperation'](_0x488543);}}else this['_handleRootOperation'](_0x488543,_0x380320);}['_cloneOperation'](_0x2b75e7,_0x5e7af8){const _0x1368a4=_0x2b75e7['clone']();return _0x1368a4['_authorId']=_0x2b75e7['_authorId'],this['_fixOperation'](_0x1368a4,_0x5e7af8),_0x1368a4;}['_getBaseVids'](_0x17cf31){return _0x17cf31['map'](_0x5ac8c9=>{const _0x23568b=this['_getVidAttributeName'](_0x5ac8c9);return Number(_0x5ac8c9['item']['getAttribute'](_0x23568b));});}['_generateTape'](_0x51010e,_0x50514e){if(_0x51010e['is']('element','$text'))_0x50514e['push']({'item':_0x51010e,'type':'text'});else{_0x51010e['is']('element')&&_0x50514e['push']({'item':_0x51010e,'type':'elementStart'});for(const _0xad3d19 of _0x51010e['getChildren']())this['_generateTape'](_0xad3d19,_0x50514e);_0x51010e['is']('element')&&_0x50514e['push']({'item':_0x51010e,'type':'elementEnd'});}return _0x50514e;}['_getState'](){const _0x3cc3f0=new Map(this['_touched']),_0x53e00c=new Map(_0x3cc3f0),_0x4d2ee0=new Map(),_0x28ebf6={'insertions':{},'deletions':{}},_0x45ce7c={'insertions':{},'deletions':{}},_0x1c5d18=new Map(),_0x73b615=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x73b615['delete']('$graveyard');for(const _0x4717fb of _0x73b615){const _0x4ded0f=this['_diffRoots']['get'](_0x4717fb)||B(_0x4717fb,!0x1),_0x1d2bbe=this['_baseRoots']['get'](_0x4717fb)||B(_0x4717fb,!0x1);_0x4ded0f['isAttached']()||_0x1d2bbe['isAttached']()?(_0x28ebf6['insertions'][_0x4717fb]=F(_0x4ded0f),_0x28ebf6['deletions'][_0x4717fb]=F(_0x1d2bbe),this['_copyMarkers'](_0x28ebf6['deletions'][_0x4717fb],_0x1d2bbe),this['_copyMarkers'](_0x28ebf6['insertions'][_0x4717fb],_0x4ded0f),_0x45ce7c['insertions'][_0x4717fb]=this['_generateTape'](this['_idsRoots']['get'](_0x4717fb),[]),_0x45ce7c['deletions'][_0x4717fb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4717fb)||B(_0x4717fb,!0x1),[])):_0x73b615['delete'](_0x4717fb);}for(const _0x56f310 of _0x73b615){const _0xf5586c=_0x45ce7c['insertions'][_0x56f310];for(const _0x3358a1 of _0xf5586c){const _0xd4d57b=this['_getVidAttributeName'](_0x3358a1),_0x566263=_0x3358a1['item']['getAttribute'](_0xd4d57b);_0x53e00c['delete'](_0x566263),_0x566263>=this['_startingRevisionId']&&_0x4d2ee0['set'](_0x566263,_0x3cc3f0['get'](_0x566263));}}for(const _0x595290 of _0x73b615){const _0xae93d2=_0x45ce7c['insertions'][_0x595290],_0x42151b=this['_getBaseVids'](_0x45ce7c['deletions'][_0x595290]);let _0x13b7ff=0x0;for(const _0x31eaa1 of _0xae93d2){const _0x2e333f=this['_getVidAttributeName'](_0x31eaa1),_0x391843=_0x31eaa1['item']['getAttribute'](_0x2e333f);if(!_0x4d2ee0['has'](_0x391843)&&!_0x1c5d18['has'](_0x391843)){if(_0x53e00c['has'](_0x391843))_0x13b7ff++;else{if(_0x391843!=_0x42151b[_0x13b7ff]){const _0x2085f2=_0x3cc3f0['get'](_0x391843)||_0x3cc3f0['get'](_0x42151b[_0x13b7ff]);for(;_0x391843!=_0x42151b[_0x13b7ff];)_0x53e00c['has'](_0x42151b[_0x13b7ff])||(_0x1c5d18['set'](_0x42151b[_0x13b7ff],_0x2085f2),_0x3cc3f0['set'](_0x42151b[_0x13b7ff],_0x2085f2)),_0x13b7ff++;}_0x13b7ff++;}}}}for(const _0x6655a of _0x73b615){const _0xe78e16=_0x45ce7c['insertions'][_0x6655a];for(const _0x39d8ef of _0xe78e16){const _0x1626f4=this['_getVidAttributeName'](_0x39d8ef),_0x43d988=_0x39d8ef['item']['getAttribute'](_0x1626f4);if(_0x1c5d18['has'](_0x43d988)){const _0x49aa6b=_0x1c5d18['get'](_0x43d988);_0x53e00c['has'](_0x43d988)||_0x53e00c['set'](_0x43d988,{..._0x49aa6b}),_0x4d2ee0['set'](_0x43d988,{..._0x49aa6b});}}}for(const _0x522a26 of _0x53e00c['keys']())_0x522a26>=this['_startingRevisionId']&&_0x53e00c['delete'](_0x522a26);const _0xb56720=new Map();for(const _0x4a7c0c of _0x73b615){let _0xb5d899=_0x45ce7c['insertions'][_0x4a7c0c];for(const _0x2c8498 of _0xb5d899)if(_0x2c8498['item']['is']('element','tableCell')){const _0x12f488=this['_getVidAttributeName'](_0x2c8498),_0x44c3cb=_0x2c8498['item']['getAttribute'](_0x12f488);if(_0x4d2ee0['has'](_0x44c3cb)){const _0x148cf6=_0x2c8498['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cb3b2=_0xb56720['get'](_0x148cf6)||new Set();_0x1cb3b2['add'](_0x4d2ee0['get'](_0x44c3cb)['userId']),_0xb56720['set'](_0x148cf6,_0x1cb3b2);}}_0xb5d899=_0x45ce7c['deletions'][_0x4a7c0c];for(const _0x4c9168 of _0xb5d899)if(_0x4c9168['item']['is']('element','tableCell')){const _0x38f78e=this['_getVidAttributeName'](_0x4c9168),_0x24adc5=_0x4c9168['item']['getAttribute'](_0x38f78e);if(_0x53e00c['has'](_0x24adc5)){const _0x58a992=_0x4c9168['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f2fb2=_0xb56720['get'](_0x58a992)||new Set();_0x4f2fb2['add'](_0x53e00c['get'](_0x24adc5)['userId']),_0xb56720['set'](_0x58a992,_0x4f2fb2);}}for(const _0x200939 of _0xb56720['keys']())(_0x4d2ee0['has'](_0x200939)||_0x53e00c['has'](_0x200939))&&_0xb56720['delete'](_0x200939);}for(const _0x20f8d8 of _0x73b615){const _0x18269b=_0x45ce7c['insertions'][_0x20f8d8];let _0x4c68c6=null,_0xed6122=null;for(const _0x397aeb of _0x18269b){const _0x32af61=this['_getVidAttributeName'](_0x397aeb),_0x545820=_0x397aeb['item']['getAttribute'](_0x32af61),_0x3fa17b=_0xb56720['get'](_0x545820);_0x3fa17b&&'elementStart'==_0x397aeb['type']&&(_0x4c68c6=Array['from'](_0x3fa17b)[0x0],_0xed6122=_0x397aeb['item']['getAttribute']('vid_end')),_0x4c68c6&&(_0x53e00c['set'](_0x545820,{'userId':_0x4c68c6}),_0x4d2ee0['set'](_0x545820,{'userId':_0x4c68c6})),_0x545820==_0xed6122&&(_0x4c68c6=null,_0xed6122=null);}}const _0x1975f0={},_0x3e964c=new Set();for(const _0x193cb9 of _0x73b615){const _0x2bbc69=_0x28ebf6['deletions'][_0x193cb9],_0x3524f1=_0x28ebf6['insertions'][_0x193cb9];for(const {userId:_0x1dd258}of this['_touchedMarkers']['values']())null!==_0x1dd258&&_0x3e964c['add'](_0x1dd258);for(const {userId:_0x5d6cf5}of this['_touchedRoots']['values']())null!==_0x5d6cf5&&_0x3e964c['add'](_0x5d6cf5);this['_markChanges'](_0x3524f1,_0x45ce7c['insertions'][_0x193cb9],_0x4d2ee0,'insertion',_0x3e964c),this['_markChanges'](_0x2bbc69,_0x45ce7c['deletions'][_0x193cb9],_0x53e00c,'deletion',_0x3e964c),_0x1975f0[_0x193cb9]={'insertions':this['_prepareViewToSave'](_0x3524f1),'deletions':this['_prepareViewToSave'](_0x2bbc69),'attachChange':this['_touchedRoots']['get'](_0x193cb9)||null,'attributesBefore':_0x3327e9(this['_baseRootsAttributes']['get'](_0x193cb9))||{},'attributesAfter':_0x3327e9(this['_diffRootsAttributes']['get'](_0x193cb9))};}return{'diffData':_0x1975f0,'authorsIds':Array['from'](_0x3e964c)};}['_processRootBeforeSave'](_0x52889d){for(const [,_0x57acc8]of _0x52889d['markers']){const _0x3cd3d6=_0x57acc8['start']['getAncestors']()['filter'](_0x2df320=>'tableCell'==_0x2df320['name']);for(const _0x4d8104 of _0x3cd3d6)0x1==_0x4d8104['childCount']&&_0x4d8104['getChild'](0x0)['is']('element','paragraph')&&_0x4d8104['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3ea53b){this['_processRootBeforeSave'](_0x3ea53b);const _0x46e4dc=this['editor']['data']['toView'](_0x3ea53b,{}),_0x124677=Array['from'](_0x46e4dc['getChildren']())['map'](_0x582355=>this['_getViewJson'](_0x582355));return JSON['stringify'](_0x124677);}['_getViewJson'](_0x4c7d6c){if(_0x4c7d6c['is']('$text'))return _0x4c7d6c['data'];{const _0x1b4573=_0x4c7d6c;return{'type':Object['keys'](C)['find'](_0x1547a3=>_0x4c7d6c instanceof C[_0x1547a3]),'name':_0x1b4573['name'],'attributes':Array['from'](_0x1b4573['getAttributes']()),'children':Array['from'](_0x1b4573['getChildren']())['map'](_0x500f80=>this['_getViewJson'](_0x500f80))};}}['_markChanges'](_0xc4f7a7,_0x5b3765,_0x51f086,_0x588d85,_0x307619){let _0x57d37c=null,_0x8d5e0e=null,_0x1a4929=0x0;const _0x22be38=this['editor']['model'];for(let _0x10cdf7=0x0;_0x10cdf7<_0x5b3765['length'];_0x10cdf7++){const _0x3bb069=this['_getVidAttributeName'](_0x5b3765[_0x10cdf7]),_0x5a825a=_0x5b3765[_0x10cdf7]['item']['getAttribute'](_0x3bb069),_0x3056a1=_0x51f086['get'](_0x5a825a),_0x6e1c73=_0x10cdf7==_0x5b3765['length']-0x1;(!_0x57d37c&&_0x3056a1&&(_0x57d37c=_0x3056a1,_0x8d5e0e=_0x5b3765[_0x10cdf7]),_0x57d37c&&(!_0x3056a1||_0x3056a1['userId']!=_0x57d37c['userId']))&&(_0x49ffd2(_0x3056a1,J(_0x8d5e0e,_0xc4f7a7,_0x22be38),J(_0x5b3765[_0x10cdf7],_0xc4f7a7,_0x22be38)),_0x57d37c=_0x3056a1||null,_0x8d5e0e=_0x3056a1?_0x5b3765[_0x10cdf7]:null),_0x57d37c&&_0x6e1c73&&_0x49ffd2(_0x3056a1,J(_0x8d5e0e,_0xc4f7a7,_0x22be38),q(_0x5b3765[_0x10cdf7],_0xc4f7a7,_0x22be38));}function _0x49ffd2(_0x1dc2ac,_0xb289a8,_0x287f48){const _0x3fbe84=_0x57d37c['userId'],_0x370f24='revision:'+_0x588d85+':'+_0x3fbe84+':'+_0x1a4929++,_0x5efde1=_0x22be38['createRange'](_0xb289a8,_0x287f48);_0xc4f7a7['markers']['set'](_0x370f24,_0x5efde1),null!==_0x3fbe84&&_0x307619['add'](_0x3fbe84);}}['_getVidAttributeName'](_0x4214ec){switch(_0x4214ec['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13926b,_0x1aa1ea){_0x13926b['baseVersion']=null;for(const _0x5a0947 in _0x13926b){const _0xdfe48a=_0x13926b[_0x5a0947];if(_0xdfe48a instanceof gt){const _0x1fb995=_0x1aa1ea['get'](_0xdfe48a['root']['rootName']);_0x13926b[_0x5a0947]=this['_fixPosition'](_0xdfe48a,_0x1fb995);}if(_0xdfe48a instanceof vt){const _0x469ba7=_0x1aa1ea['get'](_0xdfe48a['root']['rootName']);_0x13926b[_0x5a0947]=this['_fixRange'](_0xdfe48a,_0x469ba7);}'root'===_0x5a0947&&(_0x13926b['root']=_0x1aa1ea['get'](_0x13926b['root']['rootName']));}}['_fixRange'](_0x3d3802,_0x19394c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d3802['start'],_0x19394c),this['_fixPosition'](_0x3d3802['end'],_0x19394c));}['_fixPosition'](_0x4b8f67,_0x19f685){return this['editor']['model']['createPositionFromPath'](_0x19f685,_0x4b8f67['path'],_0x4b8f67['stickiness']);}['_handleInsertOperation'](_0x1bc437){const _0xcb6e35=this['_idsRoots']['get'](_0x1bc437['position']['root']['rootName']),_0xd49fc6=this['_fixPosition'](_0x1bc437['position'],_0xcb6e35),_0xdfc1a=null===_0x1bc437['_authorId']?null:_0x1bc437['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d85ff=_0xd49fc6['parent'],_0x20a9ab=this['_revisionId'],_0x2065c9=[];for(const _0x5c7d8d of _0x1bc437['nodes'])if(_0x5c7d8d['is']('element'))_0x2065c9['push'](this['_makeIdsRoot'](_0x5c7d8d));else{for(let _0x46e47b=0x0;_0x46e47b<_0x5c7d8d['offsetSize'];_0x46e47b++)_0x2065c9['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5f0dbb=this['_revisionId'];for(let _0x3213b8=_0x20a9ab;_0x3213b8<_0x5f0dbb;_0x3213b8++)this['_touched']['set'](_0x3213b8,{'userId':_0xdfc1a});_0x4d85ff['_insertChild'](_0xd49fc6['offset'],_0x2065c9);}['_handleMoveOperation'](_0x366866){(_0x366866=this['_cloneOperation'](_0x366866,this['_idsRoots']))['_execute']();const _0x17fc0b=null===_0x366866['_authorId']?null:_0x366866['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d770d=_0x366866['getMovedRangeStart'](),_0x271cf0=_0x2d770d['parent'],_0xcf6ffc=_0x2d770d['offset'];!function _0x4b7f33(_0x4d48c4,_0x4481bb,_0x594cdb,_0x51b848){for(let _0x59fe7e=_0x594cdb;_0x59fe7e<_0x51b848;_0x59fe7e++){const _0x5f1da1=_0x4481bb['getChild'](_0x59fe7e);_0x5f1da1['is']('element','$text')?_0x4d48c4['set'](_0x5f1da1['getAttribute']('vid'),{'userId':_0x17fc0b}):(_0x4d48c4['set'](_0x5f1da1['getAttribute']('vid_start'),{'userId':_0x17fc0b}),_0x4b7f33(_0x4d48c4,_0x5f1da1,0x0,_0x5f1da1['childCount']),_0x4d48c4['set'](_0x5f1da1['getAttribute']('vid_end'),{'userId':_0x17fc0b}));}}(this['_touched'],_0x271cf0,_0xcf6ffc,_0xcf6ffc+_0x366866['howMany']);}['_handleMergeOperation'](_0x5a4cde){const _0x855ffc=null===(_0x5a4cde=this['_cloneOperation'](_0x5a4cde,this['_idsRoots']))['_authorId']?null:_0x5a4cde['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ad119=_0x5a4cde['targetPosition']['parent'],_0x53c120=_0x5a4cde['sourcePosition']['parent'],_0x6a03b=_0x3ad119['getAttribute']('vid_end'),_0x3cef52=_0x53c120['getAttribute']('vid_start');_0x3ad119['_setAttribute']('vid_end',_0x53c120['getAttribute']('vid_end')),_0x53c120['_setAttribute']('vid_end',_0x6a03b),this['_touched']['set'](_0x3cef52,{'userId':_0x855ffc}),this['_touched']['set'](_0x6a03b,{'userId':_0x855ffc}),_0x5a4cde['_execute']();}['_handleSplitOperation'](_0x32747c){const _0x125257=null===(_0x32747c=this['_cloneOperation'](_0x32747c,this['_idsRoots']))['_authorId']?null:_0x32747c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e38c6=_0x32747c['graveyardPosition'],_0x41af17=_0x32747c['splitPosition']['parent'];_0x32747c['_execute']();const _0xb3cec5=_0x41af17['getAttribute']('vid_end'),_0x6f53bb=_0x32747c['insertionPosition']['nodeAfter'];if(_0x5e38c6){const _0x5b3a0d=_0x6f53bb['getAttribute']('vid_end'),_0x87c425=_0x41af17['getAttribute']('vid_end');_0x41af17['_setAttribute']('vid_end',_0x5b3a0d),_0x6f53bb['_setAttribute']('vid_end',_0x87c425),this['_touched']['set'](_0x41af17['getAttribute']('vid_end'),{'userId':_0x125257}),this['_touched']['set'](_0x6f53bb['getAttribute']('vid_start'),{'userId':_0x125257});}else{const _0x140d5d=this['_revisionId']++,_0x5c92a5=this['_revisionId']++;_0x41af17['_setAttribute']('vid_end',_0x140d5d),_0x6f53bb['_setAttribute']('vid_start',_0x5c92a5),_0x6f53bb['_setAttribute']('vid_end',_0xb3cec5),this['_touched']['set'](_0x140d5d,{'userId':_0x125257}),this['_touched']['set'](_0x5c92a5,{'userId':_0x125257});}}['_handleMarkerOperation'](_0x4b82a9){if(!_0x4b82a9['affectsData'])return;const _0x40764f=(_0x4b82a9=this['_cloneOperation'](_0x4b82a9,this['_diffRoots']))['oldRange']?_0x4b82a9['oldRange']['root']:null,_0x5ca145=_0x4b82a9['newRange']?_0x4b82a9['newRange']['root']:null;_0x40764f&&this['_markers']['delete'](_0x4b82a9['name']),_0x5ca145&&this['_markers']['set'](_0x4b82a9['name'],_0x4b82a9['newRange']['clone']());const _0x2cb9f0=null===_0x4b82a9['_authorId']?null:_0x4b82a9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x347e95=_0x4b82a9['name'];if(!this['_touchedMarkers']['has'](_0x347e95))return void this['_touchedMarkers']['set'](_0x347e95,{'range':_0x4b82a9['oldRange'],'userId':_0x2cb9f0});const _0x473999=this['_touchedMarkers']['get'](_0x347e95),_0x3a3343=_0x473999['range'],_0x58e1ac=_0x4b82a9['newRange'];null==_0x3a3343&&null==_0x58e1ac||_0x3a3343&&_0x58e1ac&&_0x3a3343['isEqual'](_0x58e1ac)?this['_touchedMarkers']['delete'](_0x4b82a9['name']):_0x473999['userId']=_0x2cb9f0;}['_handleRootOperation'](_0xe96910,_0x10590e){this['_diffRoots']['has'](_0xe96910['rootName'])?this['_diffRoots']['get'](_0xe96910['rootName'])['_isAttached']=_0xe96910['isAdd']:(this['_diffRoots']['set'](_0xe96910['rootName'],B(_0xe96910['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xe96910['rootName'],{}),_0x10590e&&this['_idsRoots']['set'](_0xe96910['rootName'],B(_0xe96910['rootName'],!0x0)));const _0x234eb2=null===_0xe96910['_authorId']?null:_0xe96910['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28e8e5=this['_touchedRoots']['get'](_0xe96910['rootName']);_0x28e8e5&&_0x28e8e5['userId']===_0x234eb2?this['_touchedRoots']['delete'](_0xe96910['rootName']):this['_touchedRoots']['set'](_0xe96910['rootName'],{'userId':_0x234eb2,'isAttached':_0xe96910['isAdd']});}['_handleRootAttributeOperation'](_0x14ef5b){const _0x39a42d=this['_diffRootsAttributes']['get'](_0x14ef5b['root']['rootName']);null===_0x14ef5b['newValue']?delete _0x39a42d[_0x14ef5b['key']]:_0x39a42d[_0x14ef5b['key']]=_0x14ef5b['newValue'];}}function F(_0x233216){const _0x2f5e3d=B(_0x233216['rootName'],_0x233216['isAttached']());for(const _0x1cce5b of _0x233216['getChildren']()){const _0x54de59=_0x1cce5b['_clone'](!0x0);_0x2f5e3d['_appendChild'](_0x54de59);}return _0x2f5e3d;}function B(_0x3bdffd,_0x4beebd=!0x0){const _0x34adf8=new mt();return _0x34adf8['rootName']=_0x3bdffd,_0x34adf8['_isAttached']=_0x4beebd,_0x34adf8['isAttached']=()=>_0x34adf8['_isAttached'],_0x34adf8;}function J(_0x27ec7d,_0x27ab20,_0x2ff29f){const _0x211b2d='elementEnd'==_0x27ec7d['type']?_0x2ff29f['createPositionAt'](_0x27ec7d['item'],'end'):_0x2ff29f['createPositionBefore'](_0x27ec7d['item']);return _0x2ff29f['createPositionFromPath'](_0x27ab20,_0x211b2d['path'],_0x211b2d['stickiness']);}function q(_0x364244,_0x51dd97,_0x1c365c){const _0x3760ed='elementStart'==_0x364244['type']?_0x1c365c['createPositionAt'](_0x364244['item'],0x0):_0x1c365c['createPositionAfter'](_0x364244['item']);return _0x1c365c['createPositionFromPath'](_0x51dd97,_0x3760ed['path'],_0x3760ed['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x289209,_0x9b4cb1){super(_0x289209),this['focusTracker']=new _0x517e8a(),this['keystrokes']=new _0xdf8882(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x9b4cb1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3f2453(this);}['render'](){super['render'](),_0x2f836c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5e083a=_0x18b2e3=>_0x18b2e3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5e083a),this['keystrokes']['set']('arrowleft',_0x5e083a),this['keystrokes']['set']('arrowup',_0x5e083a),this['keystrokes']['set']('arrowdown',_0x5e083a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x296bfa){this['revisionNameInputView']['fieldView']['element']['value']=_0x296bfa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x19273a){const _0x2ef3ec=new _0x11555d(this['locale'],_0x2f692f),_0x3592a8=_0x2ef3ec['fieldView'];_0x3592a8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4c3722=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x19273a&&(_0x4c3722+='\x20('+R(this['locale'],'optional')+')'),(_0x2ef3ec['label']=_0x4c3722,_0x3592a8['on']('input',()=>{this['revisionNameInputValue']=_0x3592a8['element']['value']['trim']();}),_0x2ef3ec);}}class u extends _0x4e17c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4dc2b4=this['editor'],_0x41366b=_0x4dc2b4['plugins']['get']('RevisionTracker');_0x4dc2b4['ui']['componentFactory']['add']('revisionHistory',_0x58b079=>{const _0x14e641=_0x32fc3c(_0x58b079),_0x46c049=_0x14e641['panelView']['children'],_0x2fedb7=new _0x30e1f8(_0x58b079),_0x3b5688=new _0x19040f(_0x58b079),_0x57848e=new te(_0x58b079),_0x5c4ce2=new _0x19040f(_0x58b079),_0x39afee=new te(_0x58b079);return _0x14e641['bind']('isEnabled')['to'](_0x41366b,'isReady',_0x41366b,'isEnabled',_0x4dc2b4,'isReadOnly',(_0x2525d7,_0x3b7dee,_0x15b89b)=>_0x2525d7&&_0x3b7dee&&!_0x15b89b),_0x14e641['buttonView']['set']({'icon':_0x3bf8ea['history'],'label':R(_0x58b079,'Revision\x20history'),'tooltip':!0x0}),_0x57848e['set']({'label':R(_0x58b079,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x57848e['bind']('isEnabled')['to'](_0x41366b,'isReady',_0x41366b,'isEnabled',_0x4dc2b4,'isReadOnly',(_0xdac863,_0x24e93a,_0x10ff34)=>_0xdac863&&_0x24e93a&&!_0x10ff34),_0x57848e['on']('execute',()=>this['_showDialog']()),_0x39afee['set']({'label':R(_0x58b079,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x39afee['bind']('isEnabled')['to'](_0x41366b,'isReady',_0x4dc2b4,'isReadOnly',(_0x2b3a0e,_0x393e9f)=>_0x2b3a0e&&!_0x393e9f),_0x39afee['on']('execute',()=>{_0x4dc2b4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x14e641['isOpen']=!0x1,_0x4dc2b4['editing']['view']['focus']();}),_0x3b5688['children']['add'](_0x57848e),_0x5c4ce2['children']['add'](_0x39afee),_0x2fedb7['role']='menu',_0x2fedb7['items']['addMany']([_0x3b5688,_0x5c4ce2]),_0x46c049['add'](_0x2fedb7),_0x14e641;}),_0x4dc2b4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x403efd=this['editor'],_0x186067=_0x403efd['locale'],_0x145c08=new _0x353bde(_0x186067),_0x3e17fe=new _0x3924bf(_0x186067);_0x145c08['buttonView']['set']({'icon':_0x3bf8ea['history'],'label':R(_0x186067,'Revision\x20history')});const _0x2d5e2e=new _0x495609(_0x186067,_0x145c08),_0x3e2cb2=new _0x5e75f3(_0x186067);_0x3e2cb2['set']({'label':R(_0x186067,'Save\x20current\x20revision')}),_0x3e2cb2['delegate']('execute')['to'](_0x145c08),_0x3e2cb2['on']('execute',()=>{this['_showDialog']();}),_0x2d5e2e['children']['add'](_0x3e2cb2),_0x3e17fe['items']['add'](_0x2d5e2e);const _0x3b0518=new _0x495609(_0x186067,_0x145c08),_0x1b2e6e=new _0x5e75f3(_0x186067);return _0x1b2e6e['set']({'label':R(_0x186067,'Open\x20revision\x20history')}),_0x1b2e6e['delegate']('execute')['to'](_0x145c08),_0x1b2e6e['on']('execute',()=>{_0x403efd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3b0518['children']['add'](_0x1b2e6e),_0x3e17fe['items']['add'](_0x3b0518),_0x145c08['panelView']['children']['add'](_0x3e17fe),_0x145c08;}['_showDialog'](){const _0x507ae5=this['editor'],_0x42cc54=_0x507ae5['locale'],_0x2344a5=_0x507ae5['plugins']['get']('Dialog'),_0x3daa79=_0x507ae5['plugins']['get']('RevisionTracker');function _0x3ddbf3(_0x287b4e){_0x507ae5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x287b4e['revisionName']?_0x287b4e['revisionNameInputView']['errorText']=R(_0x42cc54,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x507ae5['plugins']['get'](l)['saveRevision']({'name':_0x287b4e['revisionName']}),_0x2344a5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3ddbf3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2344a5['show']({'id':'revisionSave','title':R(_0x42cc54,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x507ae5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2344a5['hide']()},{'label':R(_0x507ae5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x28a741){_0x28a741['bind']('isEnabled')['to'](_0x3daa79,'isReady',_0x3daa79,'isEnabled',_0x507ae5,'isReadOnly',(_0xe4abd3,_0x18c9c5,_0x234c26)=>_0xe4abd3&&_0x18c9c5&&!_0x234c26);},'onExecute':()=>_0x3ddbf3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44c9a7=this['editor'],_0xea87a1=_0x44c9a7['locale'];this['_saveRevisionFormView']=new hs(_0xea87a1,_0x44c9a7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x4b4c3d,_0x586f81){super(_0x4b4c3d),this['_model']=_0x586f81,this['changeId']=_0x586f81['id'];const _0x51c4c2=this['bindTemplate'],_0x5f38ae=R(_0x4b4c3d,_0x586f81['data']['isSuggestion']?'Suggested\x20by':'add'==_0x586f81['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x586f81['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x51c4c2['to']('type',_0x32b3f8=>'ck-revision-change__'+_0x32b3f8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f38ae}]},{'text':'\x20'+_0x586f81['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1604e4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x370ef2){super(),this['id']=_0x370ef2['id']||_0x4c5b41(),this['author']=_0x370ef2['author'],this['type']=_0x370ef2['type'],this['data']=_0x370ef2['data']||{},this['rootName']=_0x370ef2['rootName'],this['set']('createdAt',_0x370ef2['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(_0x54b6da,_0x4c4e02){this['newRevisionId']=_0x54b6da,this['oldRevisionId']=_0x4c4e02,this['changes']=new _0x510f19();}['_setChanges'](_0x4e175c){for(const _0x15590b of _0x4e175c)this['changes']['add'](_0x15590b);}}const Z={'c':_0x3cb2a9,'a':_0x3121ff,'e':_0x43ffa6,'r':_0x113701,'u':_0x46f8b2};class d extends _0x4e17c7{['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[_0x2edfe1,_0x3444f0,j];}constructor(_0x328afb){super(_0x328afb),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',(_0x2ee039,_0x3119b7,_0x22212f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4fc3f6=>{for(const _0x366b8e of this['editor']['editing']['view']['document']['roots'])_0x22212f?_0x4fc3f6['removeClass']('ck-editor__editable__overlay',_0x366b8e):_0x4fc3f6['addClass']('ck-editor__editable__overlay',_0x366b8e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x503cbf=>null!==_0x503cbf),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2df819,_0x3cbae1,_0x590365)=>_0x2df819&&_0x590365?_0x3cbae1['changes']['getIndex'](_0x590365):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf2347e,_0x2f087c)=>_0xf2347e?_0x2f087c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3444f0);}['init'](){const _0x54aaee=this['editor'],_0x546c97=new yt(_0x54aaee,{'direction':'backward'}),_0x38a291=new yt(_0x54aaee,{'direction':'forward'});(_0x54aaee['commands']['add']('showPreviousChange',_0x546c97),_0x54aaee['commands']['add']('showNextChange',_0x38a291),_0x54aaee['commands']['add']('restoreRevision',new _t(_0x54aaee)),this['on']('change:numberOfChanges',()=>{_0x546c97['refresh'](),_0x38a291['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x54aaee['enableReadOnlyMode']('revision-viewer'),_0x54aaee['plugins']['has']('WidgetToolbarRepository'))&&_0x54aaee['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5994b5){await this['loadRevisionData'](_0x5994b5);const _0x390b83={};for(const _0x3b07fc in _0x5994b5['diffData']){if(_0x5994b5['diffData'][_0x3b07fc]['attachChange']&&!_0x5994b5['diffData'][_0x3b07fc]['attachChange']['isAttached'])continue;const _0x2355c1=this['_removeRevisionMarkers'](JSON['parse'](_0x5994b5['diffData'][_0x3b07fc]['insertions'])),_0x45ed57=this['editor']['editing']['view']['document'],_0x3a0cc7=new _0x5d7012(_0x45ed57,_0x2355c1['map'](_0x1b7b8c=>this['_getViewObj'](_0x1b7b8c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x390b83[_0x3b07fc]=this['editor']['data']['processor']['toData'](_0x3a0cc7),this['editor']['data']['processor']['useFillerType']('default');}return _0x390b83;}async['getRevisionRootsAttributes'](_0x25308e){await this['loadRevisionData'](_0x25308e);const _0x21e69c={};for(const _0x5610ca in _0x25308e['diffData'])_0x25308e['diffData'][_0x5610ca]['attachChange']&&!_0x25308e['diffData'][_0x5610ca]['attachChange']['isAttached']||(_0x21e69c[_0x5610ca]=_0x25308e['diffData'][_0x5610ca]['attributesAfter']||{});return _0x21e69c;}['_removeRevisionMarkers'](_0x29113a){return(_0x29113a=_0x29113a['filter'](_0x2b040e=>!_0x2b040e['name']||'revision-start'!==_0x2b040e['name']&&'revision-end'!==_0x2b040e['name']))['forEach'](_0x35eb7f=>{'string'!=typeof _0x35eb7f&&(_0x35eb7f['children']=this['_removeRevisionMarkers'](_0x35eb7f['children']),_0x35eb7f['attributes']=_0x35eb7f['attributes']['filter'](_0x5a2be7=>!_0x5a2be7[0x0]['startsWith']('data-revision-')));}),_0x29113a;}async['compare'](_0x2bb7c5,_0xebe0ec,_0x3cc722=!0x1){if(!this['isEnabled'])return;const _0xdd1adc=this['diff'],_0x26785e=this['repository'],_0x572dfe='string'==typeof _0x2bb7c5?_0x26785e['getRevision'](_0x2bb7c5):_0x2bb7c5,_0x1a4079='string'==typeof _0xebe0ec?_0x26785e['getRevision'](_0xebe0ec):_0xebe0ec,_0x3cda9d=_0x572dfe['id'],_0x451d2b=_0x1a4079?_0x1a4079['id']:null;if(!_0x3cc722&&this['diff']&&this['diff']['newRevisionId']===_0x3cda9d&&this['diff']['oldRevisionId']===_0x451d2b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3cda9d,_0x451d2b);const _0x56e27f=this['_getRevisionsRange'](_0x572dfe,_0x1a4079,!0x0)['map'](_0x4abf42=>this['loadRevisionData'](_0x4abf42));return _0x56e27f['push'](new Promise(_0x3d1625=>{setTimeout(_0x3d1625,0x14);})),Promise['all'](_0x56e27f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4cf2e1=this['_getDiff'](_0x3cda9d,_0x451d2b);for(const _0x348cc6 of _0x4cf2e1['changes'])this['_changeIdToChange']['set'](_0x348cc6['id'],_0x348cc6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c01a4=>{for(const _0x1f91b3 of this['editor']['model']['document']['getRootNames']())_0x4c01a4['detachRoot'](_0x1f91b3);for(const _0x8e7bff of Object['keys'](_0x4cf2e1['model'])){const _0x51d6b3=_0x4c01a4['addRoot'](_0x8e7bff);for(const _0x38754d of Object['keys'](_0x4cf2e1['attributes'][_0x8e7bff]))_0x4c01a4['setAttribute'](_0x38754d,_0x4cf2e1['attributes'][_0x8e7bff][_0x38754d],_0x51d6b3);_0x4c01a4['insert'](_0x4cf2e1['model'][_0x8e7bff],_0x51d6b3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4cf2e1['changes'])),this['isReady']=!0x0;})['catch'](_0x43f55a=>{console['error'](_0x43f55a),this['_cleanUp'](),_0xdd1adc&&(this['diff']=_0xdd1adc),this['isReady']=!0x0;});}['addRevisionData'](_0x3c4de7,_0x5418e1){const _0xbcf0ab=this['repository']['createRevision'](_0x3c4de7);return _0xbcf0ab['on']('_update',(_0x41650c,_0x26db1a,_0x52e059)=>_0x5418e1(_0x26db1a,_0x52e059,_0xbcf0ab)),this['repository']['addRevision'](_0xbcf0ab),_0xbcf0ab;}['loadRevisionData'](_0x376d1f){if(!_0x376d1f||_0x376d1f['diffData'])return Promise['resolve']();{const _0x28dc28=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28dc28,'revisionId':_0x376d1f['id']})['then'](_0x10696f=>{_0x376d1f['_update']({'diffData':_0x10696f['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},_0x3e9f91=>{for(const _0x224b69 of this['editor']['model']['document']['getRootNames']())_0x3e9f91['detachRoot'](_0x224b69);});}['_sortAndFilterDiffChanges'](_0x29d644){const _0x3a27c0=[],_0x328be0=new Map();for(const _0xdd2ea5 of this['editor']['model']['document']['getRootNames']()){const _0x515a1b=this['editor']['editing']['view']['getDomRoot'](_0xdd2ea5);if(!_0x515a1b)continue;const _0x5da9ff=_0x515a1b['getClientRects']()['item'](0x0);_0x5da9ff&&(_0x3a27c0['push'](_0xdd2ea5),_0x328be0['set'](_0xdd2ea5,_0x5da9ff));}return _0x3a27c0['sort']((_0x1183b1,_0x3b373d)=>{const _0x5ff9af=_0x328be0['get'](_0x1183b1),_0x1f6598=_0x328be0['get'](_0x3b373d);return _0x5ff9af['y']-_0x1f6598['y']||_0x5ff9af['x']-_0x1f6598['x'];}),(_0x29d644=_0x29d644['filter'](_0x1cdbe0=>_0x3a27c0['includes'](_0x1cdbe0['rootName'])))['sort']((_0xbece38,_0x419ad2)=>_0x3a27c0['indexOf'](_0xbece38['rootName'])-_0x3a27c0['indexOf'](_0x419ad2['rootName'])),_0x29d644;}['_makeTape'](_0x89abfa){const _0x320d56=Array['from'](_0x89abfa['markers'])['filter'](([_0x5ec338,_0xd6eda3])=>_0x5ec338['startsWith']('revision:')&&!_0xd6eda3['isCollapsed']),_0x1baefc=Array['from'](this['editor']['model']['createRangeIn'](_0x89abfa)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x320d56['length'])for(const _0x21684f of _0x1baefc){const [_0x4778e1,_0x27e7aa]=_0x320d56[0x0],[,_0x3ce8dd,_0x3f1189]=_0x4778e1['split'](':');if(_0x27e7aa['end']['isEqual'](_0x21684f['nextPosition'])&&_0x320d56['shift'](),(_0x21684f['previousPosition']['isEqual'](_0x27e7aa['start'])||_0x21684f['previousPosition']['isAfter'](_0x27e7aa['start']))&&('insertion'==_0x3ce8dd?_0x21684f['isAdded']={'userId':_0x3f1189}:'deletion'==_0x3ce8dd&&(_0x21684f['isRemoved']={'userId':_0x3f1189})),0x0==_0x320d56['length'])break;}return _0x1baefc;}['_refreshStartEndIndex'](_0x2e0dc5){const _0x391285=new Map();for(let _0x4d229a=0x0;_0x4d229a<_0x2e0dc5['length'];_0x4d229a++)'text'===_0x2e0dc5[_0x4d229a]['type']?(_0x2e0dc5[_0x4d229a]['item']['startIndex']=_0x4d229a,_0x2e0dc5[_0x4d229a]['item']['endIndex']=_0x4d229a):('elementStart'===_0x2e0dc5[_0x4d229a]['type']?_0x2e0dc5[_0x4d229a]['item']['startIndex']=_0x4d229a:'elementEnd'===_0x2e0dc5[_0x4d229a]['type']&&(_0x2e0dc5[_0x4d229a]['item']['endIndex']=_0x4d229a),_0x391285['set'](_0x2e0dc5[_0x4d229a]['id'],_0x4d229a));for(const _0x200d56 of _0x391285['values']())'elementStart'===_0x2e0dc5[_0x200d56]['type']?_0x2e0dc5[_0x200d56]['item']['endIndex']=_0x391285['get'](_0x2e0dc5[_0x200d56]['pairId']):'elementEnd'===_0x2e0dc5[_0x200d56]['type']&&(_0x2e0dc5[_0x200d56]['item']['startIndex']=_0x391285['get'](_0x2e0dc5[_0x200d56]['pairId']));}['_processTape'](_0x736e00){for(let _0x392b7b=0x0;_0x392b7b<_0x736e00['length'];_0x392b7b++){if('elementStart'===_0x736e00[_0x392b7b]['type'])_0x736e00[_0x392b7b]['item']['startIndex']=_0x392b7b;else{if('elementEnd'===_0x736e00[_0x392b7b]['type']){_0x736e00[_0x392b7b]['item']['endIndex']=_0x392b7b;const _0x4235b3=_0x736e00[_0x392b7b]['item']['startIndex'];_0x736e00[_0x4235b3]['pairId']=_0x736e00[_0x392b7b]['id'],_0x736e00[_0x392b7b]['pairId']=_0x736e00[_0x4235b3]['id'];}else _0x736e00[_0x392b7b]['item']['startIndex']=_0x392b7b,_0x736e00[_0x392b7b]['item']['endIndex']=_0x392b7b,_0x736e00[_0x392b7b]['pairId']=null;}_0x736e00[_0x392b7b]['markersStart']||(_0x736e00[_0x392b7b]['markersStart']=[],_0x736e00[_0x392b7b]['markersEnd']=[]);}}['_markInsertions'](_0x2787e0,_0x5eb1eb){const _0x579f50=_0x2787e0['filter'](_0x16783b=>!_0x16783b['isAdded']);for(let _0x5efdac=0x0;_0x5efdac<_0x5eb1eb['length'];_0x5efdac++)_0x5eb1eb[_0x5efdac]['isAdded']&&(_0x579f50[_0x5efdac]['isAdded']=_0x5eb1eb[_0x5efdac]['isAdded']);}['_makeModelFromViewString'](_0xbcc782){const _0x217e5a=JSON['parse'](_0xbcc782),_0x14f898=this['editor']['editing']['view']['document'],_0x3f3f37=new _0x5d7012(_0x14f898,_0x217e5a['map'](_0x11ace4=>this['_getViewObj'](_0x11ace4)));return this['editor']['data']['toModel'](_0x3f3f37);}['_getViewObj'](_0x2c2d0f){const _0x303874=this['editor']['editing']['view']['document'];if('string'==typeof _0x2c2d0f)return new _0x448105(_0x303874,_0x2c2d0f);{const _0x3d2c6e=_0x2c2d0f['children']['map'](_0x205678=>this['_getViewObj'](_0x205678));return new(Z[_0x2c2d0f['type']]||_0x24222b)(_0x303874,_0x2c2d0f['name'],_0x2c2d0f['attributes'],_0x3d2c6e);}}['_getDiff'](_0x458393,_0x4f2453=null){const _0x1eee26=this['repository']['getRevision'](_0x458393),_0x2617b5=_0x4f2453?this['repository']['getRevision'](_0x4f2453):null,_0x2310ef=this['_getRevisionsRange'](_0x1eee26,_0x2617b5),_0x35f8c6=_0x2310ef[_0x2310ef['length']-0x1],_0x3b7108=new Map(),_0x4d946a={'model':{},'attributes':{},'changes':[]},_0xb679fc=new Set(),_0x339b84=new Map();for(let _0x29b573=_0x2310ef['length']-0x1;_0x29b573>=0x0;_0x29b573--){const _0x444603=_0x2310ef[_0x29b573];for(const _0x31c0b2 of Object['keys'](_0x444603['diffData']))if(_0x444603['diffData'][_0x31c0b2]['attachChange']){const _0x4fd120=_0x444603['diffData'][_0x31c0b2]['attachChange'];_0x4fd120['isAttached']?(_0xb679fc['add'](_0x31c0b2),_0x339b84['has'](_0x31c0b2)&&_0x339b84['get'](_0x31c0b2)['userId']==_0x4fd120['userId']?_0x339b84['delete'](_0x31c0b2):_0x339b84['set'](_0x31c0b2,_0x4fd120)):_0x339b84['has'](_0x31c0b2)?(_0xb679fc['delete'](_0x31c0b2),_0x339b84['delete'](_0x31c0b2)):(_0xb679fc['add'](_0x31c0b2),_0x339b84['set'](_0x31c0b2,_0x4fd120));}else _0xb679fc['add'](_0x31c0b2);}for(const _0x4e7260 of _0xb679fc){const _0x212a03=_0x339b84['has'](_0x4e7260)&&!_0x339b84['get'](_0x4e7260)['isAttached'];let _0x279d90=_0x212a03?_0x2310ef['length']-0x1:0x0;const _0x2d86b4=_0x212a03?-0x1:0x1;for(;_0x2310ef[_0x279d90];){const _0x158d95=_0x2310ef[_0x279d90];if(_0x158d95['diffData'][_0x4e7260]){const _0x52842e=_0x212a03?_0x158d95['diffData'][_0x4e7260]['attributesBefore']:_0x158d95['diffData'][_0x4e7260]['attributesAfter'];_0x4d946a['attributes'][_0x4e7260]=_0x52842e?_0x3327e9(_0x52842e):{};break;}_0x279d90+=_0x2d86b4;}}for(const _0x504399 of _0x2310ef){_0x504399['model']={};for(const _0x5be98c of _0x504399['authors'])_0x3b7108['set'](_0x5be98c['id'],_0x5be98c);for(const _0xd224ba of _0xb679fc){const _0x1faa30=_0x504399['diffData'][_0xd224ba]?_0x504399['diffData'][_0xd224ba]['insertions']:'[]',_0x2f941f=_0x504399['diffData'][_0xd224ba]?_0x504399['diffData'][_0xd224ba]['deletions']:'[]';_0x504399['model'][_0xd224ba]={'insertions':this['_makeModelFromViewString'](_0x1faa30),'deletions':this['_makeModelFromViewString'](_0x2f941f)};}}for(const _0x22e877 of _0xb679fc){let _0x7658c=null,_0x4671e6=0x0;const _0x356b29=new Map(Array['from'](_0x1eee26['model'][_0x22e877]['insertions']['markers'])['filter'](([_0x115f7d])=>!_0x115f7d['startsWith']('revision:')));let _0x34006e=0x0;for(const _0x714e1d of _0x2310ef){const _0x1be07f=this['_makeTape'](_0x714e1d['model'][_0x22e877]['insertions']);_0x714e1d==_0x1eee26?(_0x7658c=_0x1be07f,_0x4671e6=_0x7658c['length'],_0x7658c['forEach'](_0x2af225=>{_0x2af225['id']=_0x34006e++;}),this['_processTape'](_0x7658c)):this['_markInsertions'](_0x7658c,_0x1be07f);const _0x1ef155=_0x7658c['filter'](_0x5c404c=>!_0x5c404c['isAdded'])['map'](_0x4f2689=>_0x4f2689['id']);let _0x5a489b=0x0;const _0x5b53f6=this['_makeTape'](_0x714e1d['model'][_0x22e877]['deletions']);_0x5b53f6['forEach'](_0xd870c5=>{_0xd870c5['isRemoved']?_0xd870c5['id']=_0x4671e6++:_0xd870c5['id']=_0x1ef155[_0x5a489b++];}),this['_processTape'](_0x5b53f6),this['_setDistance'](_0x7658c,'isAdded'),this['_setDistance'](_0x5b53f6,'isRemoved'),_0x714e1d==_0x1eee26&&this['_markMarkers'](_0x7658c,_0x356b29),_0x7658c=this['_joinTapes'](_0x7658c,_0x5b53f6),this['_refreshStartEndIndex'](_0x7658c),this['_setDistance'](_0x7658c,'isRemoved');}_0x7658c=_0x7658c['filter'](_0x5128e0=>!(_0x5128e0['isAdded']&&_0x5128e0['isRemoved']));const _0x566305=new Map(_0x35f8c6['model'][_0x22e877]['deletions']['markers']),_0x22e2f7=new Set(_0x356b29['keys']());for(const _0x3ac2f2 of _0x566305['keys']())_0x22e2f7['delete'](_0x3ac2f2);this['_markSuggestions'](_0x7658c,_0x22e2f7),this['_fixObsoleteTags'](_0x7658c),_0x7658c=this['_removeMissingPairs'](_0x7658c),_0x7658c=this['_markMismatchedRemovedTags'](_0x7658c),_0x7658c=this['_removeUnsupportedChanges'](_0x7658c);const {root:_0x3f8f75,changes:_0x63bd1c}=this['_makeModelFromTape'](_0x7658c,_0x3b7108,_0x22e877);_0x4d946a['model'][_0x22e877]=_0x3f8f75;const _0x244eab=_0x339b84['get'](_0x22e877);if(_0x244eab){const _0x414340=_0x3b7108['get'](_0x244eab['userId']),_0xfe205=new r({'author':_0x414340,'type':_0x244eab['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x22e877});_0x63bd1c['unshift'](_0xfe205),_0x4d946a['attributes'][_0x22e877]['revisionHistoryAttachChange']=_0xfe205['id'];}_0x4d946a['changes']=_0x4d946a['changes']['concat'](_0x63bd1c);}return _0x4d946a;}['_markMarkers'](_0x53a6dd,_0x4be20a){for(let _0x10de0b=0x0;_0x10de0b<_0x53a6dd['length'];_0x10de0b++)for(const [_0x47931f,_0x547256]of _0x4be20a)_0x547256['start']['isEqual'](_0x53a6dd[_0x10de0b]['previousPosition'])&&_0x53a6dd[_0x10de0b]['markersStart']['push'](_0x47931f),_0x547256['end']['isEqual'](_0x53a6dd[_0x10de0b]['nextPosition'])&&_0x53a6dd[_0x10de0b]['markersEnd']['push'](_0x47931f);}['_joinTapes'](_0x161101,_0xf6e55b){let _0xfda5eb=[],_0x17f5a9=0x0,_0x58a68e=0x0;for(;_0x17f5a9<_0x161101['length']||_0x58a68e<_0xf6e55b['length'];){const _0x495db9=_0x161101[_0x17f5a9]||{},_0x1c4452=_0xf6e55b[_0x58a68e]||{};if(_0x495db9['id']==_0x1c4452['id'])_0x17f5a9++,_0x58a68e++,_0xfda5eb['push'](_0x495db9);else{if(_0x1c4452['isRemoved']&&_0x495db9['isAdded']){const {commonTape:_0x53ff3d,iEnd:_0x1cf4ee,jEnd:_0x2d96d3}=this['_threeWayMerge'](_0x161101,_0x17f5a9,_0xf6e55b,_0x58a68e);_0xfda5eb=_0xfda5eb['concat'](_0x53ff3d),_0x17f5a9=_0x1cf4ee,_0x58a68e=_0x2d96d3;}else _0x1c4452['isRemoved']?(_0x58a68e++,_0xfda5eb['push'](_0x1c4452)):(_0x17f5a9++,_0xfda5eb['push'](_0x495db9));}}return _0xfda5eb;}['_markSuggestions'](_0x1677ad,_0x412d5d){const _0x592119=[];for(let _0x241d9d=0x0;_0x241d9d<_0x1677ad['length'];_0x241d9d++){for(let _0x5bda35=0x0;_0x5bda35<_0x1677ad[_0x241d9d]['markersStart']['length'];_0x5bda35++){const _0x4534bd=_0x1677ad[_0x241d9d]['markersStart'][_0x5bda35];if(!_0x412d5d['has'](_0x4534bd))continue;const {group:_0xa7fcf5,type:_0x1ac6f,authorId:_0x36521b}=_0x1d08da(_0x4534bd);'revision-suggestion'!=_0xa7fcf5||'insertion'!=_0x1ac6f&&'deletion'!=_0x1ac6f||(_0x592119['unshift']({'type':_0x1ac6f,'name':_0x4534bd,'userId':_0x36521b}),_0x1677ad[_0x241d9d]['markersStart']['splice'](_0x5bda35,0x1),_0x5bda35--);}_0x4a0b5b(_0x1677ad[_0x241d9d]);for(let _0x2751fa=0x0;_0x2751fa<_0x1677ad[_0x241d9d]['markersEnd']['length'];_0x2751fa++){const _0x41c338=_0x1677ad[_0x241d9d]['markersEnd'][_0x2751fa];if(!_0x412d5d['has'](_0x41c338))continue;const {group:_0x37c8a5,type:_0x24cde8}=_0x1d08da(_0x41c338);if('revision-suggestion'!=_0x37c8a5||'insertion'!=_0x24cde8&&'deletion'!=_0x24cde8)continue;_0x1677ad[_0x241d9d]['markersEnd']['splice'](_0x2751fa,0x1),_0x2751fa--;const _0x1b2cda=_0x592119['findIndex'](_0x41705b=>_0x41705b['name']==_0x41c338);_0x1b2cda>-0x1&&_0x592119['splice'](_0x1b2cda,0x1);}}function _0x1d08da(_0x2701d3){const _0x33838e=_0x2701d3['split'](':');return{'group':_0x33838e[0x0],'type':_0x33838e[0x1],'subType':_0x33838e['length']>=0x5?_0x33838e[0x2]:null,'id':_0x33838e['length']<0x5?_0x33838e[0x2]:_0x33838e[0x3],'authorId':_0x33838e['length']<0x5?_0x33838e[0x3]:_0x33838e[0x4],'markerCount':0x6==_0x33838e['length']?_0x33838e[0x5]:null};}function _0x4a0b5b(_0x16c452){for(let _0x47b9f1=0x0;_0x47b9f1<_0x592119['length'];_0x47b9f1++){if(_0x16c452['isAdded']&&'insertion'==_0x592119[_0x47b9f1]['type'])return _0x16c452['isAddSuggestion']=_0x592119[_0x47b9f1],void delete _0x16c452['isAdded'];if(!_0x16c452['isAdded']&&!_0x16c452['isRemoved']&&'deletion'==_0x592119[_0x47b9f1]['type'])return void(_0x16c452['isRemoveSuggestion']=_0x592119[_0x47b9f1]);}}}['_setDistance'](_0xcb37cd,_0x282647){let _0x217300=0x0,_0x40022e=!0x1;const _0x5572bd=new Map();for(const _0x594585 of _0xcb37cd)_0x594585[_0x282647]?_0x40022e&&(_0x217300++,_0x40022e=!0x1):(_0x217300++,_0x40022e=!0x0),_0x5572bd['set'](_0x594585['id'],_0x217300);for(let _0x3032a5=0x0;_0x3032a5<_0xcb37cd['length'];_0x3032a5++){if('isRemoved'==_0x282647&&_0xcb37cd[_0x3032a5]['isAdded']||'isAdded'==_0x282647&&_0xcb37cd[_0x3032a5]['isRemoved'])continue;if('text'==_0xcb37cd[_0x3032a5]['type']){_0xcb37cd[_0x3032a5]['distance']=0x0;continue;}const _0x110ae7=_0x5572bd['get'](_0xcb37cd[_0x3032a5]['pairId']),_0xe874be=_0x5572bd['get'](_0xcb37cd[_0x3032a5]['id']);_0xcb37cd[_0x3032a5]['distance']=_0x110ae7-_0xe874be;}}['_getRevisionsRange'](_0x164af3,_0x77c2a9,_0x162982=!0x1){const _0x1c1c0a=[];let _0x32596a=this['repository']['getIndex'](_0x164af3),_0x65e9da=this['repository']['getIndex'](_0x77c2a9);for(-0x1==_0x65e9da&&(_0x65e9da=this['repository']['_revisions']['length'],_0x162982=!0x1);_0x32596a<_0x65e9da;)_0x1c1c0a['push'](this['repository']['getRevision'](_0x32596a)),_0x32596a++;return _0x162982&&_0x1c1c0a['push'](this['repository']['getRevision'](_0x32596a)),_0x1c1c0a;}['_threeWayMerge'](_0x3e0f76,_0x55f906,_0x6ab987,_0x11d9ad){const _0x40c999=this['editor']['model']['schema'];let _0x41af7e=_0x55f906;for(;_0x3e0f76[_0x41af7e]&&_0x3e0f76[_0x41af7e]['isAdded'];)_0x41af7e++;let _0x500280=_0x11d9ad;for(;_0x6ab987[_0x500280]&&_0x6ab987[_0x500280]['isRemoved'];)_0x500280++;_0x456e0c(_0x3e0f76,_0x55f906,_0x41af7e),_0x456e0c(_0x6ab987,_0x11d9ad,_0x500280);const _0x418805=_0x6ab987['slice'](_0x11d9ad,_0x500280)['concat'](_0x3e0f76['slice'](_0x55f906,_0x41af7e));return _0x418805['sort']((_0x1c6c65,_0x5c5945)=>_0x1c6c65['side']!=_0x5c5945['side']?_0x1c6c65['side']-_0x5c5945['side']:_0x1c6c65['level']!=_0x5c5945['level']?_0x1c6c65['level']-_0x5c5945['level']:_0x1c6c65['distance']!=_0x5c5945['distance']?_0x5c5945['distance']-_0x1c6c65['distance']:!!_0x1c6c65['isAdded']!=!!_0x5c5945['isAdded']?-0x1==_0x1c6c65['side']||0x0==_0x1c6c65['side']?_0x1c6c65['isAdded']?-0x1:0x1:_0x1c6c65['isAdded']?0x1:-0x1:_0x1c6c65['index']-_0x5c5945['index']),{'commonTape':_0x418805,'iEnd':_0x41af7e,'jEnd':_0x500280};function _0x456e0c(_0x458450,_0x2bd18b,_0x43b635){let _0x28f3f2=-0x1,_0x29f7b8=Number['POSITIVE_INFINITY'],_0xbface0=!0x0;for(let _0x4e3e48=_0x2bd18b;_0x4e3e48<_0x43b635;_0x4e3e48++)if(_0x40c999['isInline'](_0x458450[_0x4e3e48]['item'])||(_0xbface0=!0x1),_0x458450[_0x4e3e48]['item']['startIndex']<_0x2bd18b&&(_0x28f3f2=_0x4e3e48),_0x458450[_0x4e3e48]['item']['endIndex']>=_0x43b635){_0x29f7b8=_0x4e3e48;break;}_0xbface0&&(_0x28f3f2=_0x43b635-0x1);for(let _0x14e5c2=_0x2bd18b;_0x14e5c2<_0x43b635;_0x14e5c2++)_0x458450[_0x14e5c2]['side']=_0x14e5c2<=_0x28f3f2?-0x1:_0x14e5c2<_0x29f7b8?0x0:0x1,_0x458450[_0x14e5c2]['index']=_0x14e5c2;let _0x16eee2=0x0;for(let _0x5758c6=_0x2bd18b;_0x5758c6<=_0x28f3f2;_0x5758c6++)0x0==_0x458450[_0x5758c6]['distance']?_0x458450[_0x5758c6]['level']=_0x16eee2:(_0x16eee2++,_0x458450[_0x5758c6]['level']=_0x16eee2,_0x16eee2++);for(let _0xaaaacb=_0x2bd18b;_0xaaaacb<_0x43b635;_0xaaaacb++)0x0==_0x458450[_0xaaaacb]['side']&&(_0x458450[_0xaaaacb]['level']=_0x16eee2);_0x16eee2=0x0;for(let _0x1e4cb2=_0x43b635-0x1;_0x1e4cb2>=_0x29f7b8;_0x1e4cb2--)0x0==_0x458450[_0x1e4cb2]['distance']?_0x458450[_0x1e4cb2]['level']=_0x16eee2:(_0x16eee2--,_0x458450[_0x1e4cb2]['level']=_0x16eee2,_0x16eee2--);}}['_fixObsoleteTags'](_0xdc6db0){const _0x774be6=new Map(),_0xb3cf5f=this['editor']['model']['schema'];for(let _0xd6277f=0x1;_0xd6277f<_0xdc6db0['length'];_0xd6277f++){let _0xa20b7f,_0x108233,_0x2f9b2d;const _0x38dd72=_0xdc6db0[_0xd6277f],_0x3a9733=_0xdc6db0[_0xd6277f-0x1];if('text'==_0x38dd72['type'])continue;if(_0x38dd72['type']!=_0x3a9733['type'])continue;if(!_0xb3cf5f['isBlock'](_0x3a9733['item'])||_0xb3cf5f['isLimit'](_0x3a9733['item']))continue;if(!_0xb3cf5f['isBlock'](_0x38dd72['item'])||_0xb3cf5f['isLimit'](_0x38dd72['item']))continue;if((_0xdc6db0[_0xd6277f]['isAdded']||_0xdc6db0[_0xd6277f]['isAddSuggestion'])&&_0xdc6db0[_0xd6277f-0x1]['isRemoved'])_0xa20b7f=_0xdc6db0[_0xd6277f],_0x108233=_0xdc6db0[_0xd6277f-0x1],_0x2f9b2d=_0xd6277f-0x1;else{if(!_0xdc6db0[_0xd6277f]['isRemoved']||!_0xdc6db0[_0xd6277f-0x1]['isAdded']&&!_0xdc6db0[_0xd6277f-0x1]['isAddSuggestion'])continue;_0xa20b7f=_0xdc6db0[_0xd6277f-0x1],_0x108233=_0xdc6db0[_0xd6277f],_0x2f9b2d=_0xd6277f;}const _0x2d64df=_0xa20b7f['level']==_0x108233['level'],_0x2e81c1=Math['abs'](_0xa20b7f['level'])<Math['abs'](_0x108233['level'])&&0x0==_0x108233['distance'];(_0x2d64df||_0x2e81c1)&&(_0x774be6['set'](_0x108233['id'],_0xa20b7f['id']),_0xdc6db0['splice'](_0x2f9b2d,0x1),_0xd6277f--,_0xa20b7f['isAdded']=!0x1);}for(let _0x5be0a7=0x0;_0x5be0a7<_0xdc6db0['length'];_0x5be0a7++)_0x774be6['has'](_0xdc6db0[_0x5be0a7]['pairId'])&&(_0xdc6db0[_0x5be0a7]['pairId']=_0x774be6['get'](_0xdc6db0[_0x5be0a7]['pairId']));}['_removeMissingPairs'](_0x3199ad){const _0x4aec2a=new Set(_0x3199ad['map'](_0x50d942=>_0x50d942['id']));for(let _0x2b778e=0x0;_0x2b778e<_0x3199ad['length'];_0x2b778e++)_0x4aec2a['has'](_0x3199ad[_0x2b778e]['pairId'])||0x0==_0x3199ad[_0x2b778e]['distance']||(_0x3199ad[_0x2b778e]['isIncorrect']=!0x0);return _0x3199ad['filter'](_0x87668e=>!_0x87668e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b6fb8){const _0x5b6ff2=new Set();for(let _0x55cd5e=0x0;_0x55cd5e<_0x2b6fb8['length'];_0x55cd5e++){if(_0x5b6ff2['has'](_0x2b6fb8[_0x55cd5e]['id'])&&_0x2b6fb8[_0x55cd5e]['isRemoved']&&(_0x2b6fb8[_0x55cd5e]['isIncorrect']=!0x0),_0x2b6fb8[_0x55cd5e]['isIncorrect'])continue;if(0x0==_0x2b6fb8[_0x55cd5e]['distance'])continue;if('elementStart'!=_0x2b6fb8[_0x55cd5e]['type'])continue;if(null==_0x2b6fb8[_0x55cd5e]['pairId'])continue;let _0x469b42=_0x55cd5e+0x1,_0x4127f8=0x0;for(;_0x2b6fb8[_0x469b42]['id']!=_0x2b6fb8[_0x55cd5e]['pairId'];)'elementStart'==_0x2b6fb8[_0x469b42]['type']?_0x4127f8++:'elementEnd'==_0x2b6fb8[_0x469b42]['type']&&_0x4127f8--,_0x469b42++;if(0x0!=_0x4127f8){if(_0x2b6fb8[_0x55cd5e]['isRemoved'])_0x2b6fb8[_0x55cd5e]['isIncorrect']=!0x0;else{for(;_0x469b42!=_0x55cd5e;)_0x2b6fb8[_0x469b42]['isRemoved']&&0x0!=_0x2b6fb8[_0x469b42]['distance']&&(_0x2b6fb8[_0x469b42]['isIncorrect']=!0x0,_0x5b6ff2['add'](_0x2b6fb8[_0x469b42]['pairId'])),_0x469b42--;}}}return _0x2b6fb8['filter'](_0x5df6ee=>!_0x5df6ee['isIncorrect']);}['_removeUnsupportedChanges'](_0x55b3ec){const _0x3f7ba9=this['editor']['model']['schema'];for(let _0xaf9296=0x0;_0xaf9296<_0x55b3ec['length'];_0xaf9296++){if(!(_0x55b3ec[_0xaf9296]['isAdded']||_0x55b3ec[_0xaf9296]['isAddSuggestion']||_0x55b3ec[_0xaf9296]['isRemoved']||_0x55b3ec[_0xaf9296]['isRemoveSuggestion']))continue;if(0x0==_0x55b3ec[_0xaf9296]['distance'])continue;const _0xf953b1=_0x55b3ec[_0xaf9296]['item'];_0x3f7ba9['isBlock'](_0xf953b1)||_0x3f7ba9['isLimit'](_0xf953b1)||(_0x55b3ec[_0xaf9296]['isAdded']&&delete _0x55b3ec[_0xaf9296]['isAdded'],_0x55b3ec[_0xaf9296]['isAddSuggestion']&&delete _0x55b3ec[_0xaf9296]['isAddSuggestion'],_0x55b3ec[_0xaf9296]['isRemoveSuggestion']&&delete _0x55b3ec[_0xaf9296]['isRemoveSuggestion'],_0x55b3ec[_0xaf9296]['isRemoved']&&(_0x55b3ec[_0xaf9296]['isIncorrect']=!0x0));}return _0x55b3ec['filter'](_0x249deb=>!_0x249deb['isIncorrect']);}['_makeModelFromTape'](_0x39052d,_0x586be4,_0x3cad3a){const _0x201a7c=new mt(),_0x26f76b=[],_0x1249d8=new Map(),_0x2b3a7e=this['editor']['model'],_0x41b7f5=_0x2b3a7e['schema'],_0x3dd03b=[_0x201a7c],_0x3068c6={},_0x2087f1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3857a4=null;const _0x318233=[0x0];for(let _0xb4f5fd=0x0;_0xb4f5fd<_0x39052d['length'];_0xb4f5fd++)if('elementStart'===_0x39052d[_0xb4f5fd]['type']){_0x39052d[_0xb4f5fd]['previousPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233);const _0xaad4f6=new ft(_0x39052d[_0xb4f5fd]['item']['name'],_0x39052d[_0xb4f5fd]['item']['getAttributes']());_0x3dd03b[0x0]['_appendChild'](_0xaad4f6),_0x318233['push'](0x0),_0x3dd03b['unshift'](_0xaad4f6),_0x39052d[_0xb4f5fd]['nextPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233);}else'elementEnd'===_0x39052d[_0xb4f5fd]['type']?(_0x3dd03b['shift'](),_0x39052d[_0xb4f5fd]['previousPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233),_0x318233['pop'](),_0x318233[_0x318233['length']-0x1]++,_0x39052d[_0xb4f5fd]['nextPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233)):(_0x39052d[_0xb4f5fd]['previousPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233),_0x3857a4?_0x3857a4['_data']+=_0x39052d[_0xb4f5fd]['item']['data']:_0x3857a4=new wt(_0x39052d[_0xb4f5fd]['item']['data'],_0x39052d[_0xb4f5fd]['item']['getAttributes']()),_0x39052d[_0xb4f5fd+0x1]&&'text'===_0x39052d[_0xb4f5fd+0x1]['type']&&_0x3fe3d9(_0x3857a4,_0x39052d[_0xb4f5fd+0x1]['item'])||(_0x3dd03b[0x0]['_appendChild'](_0x3857a4),_0x3857a4=null),_0x318233[_0x318233['length']-0x1]+=_0x39052d[_0xb4f5fd]['item']['offsetSize'],_0x39052d[_0xb4f5fd]['nextPosition']=_0x2b3a7e['createPositionFromPath'](_0x201a7c,_0x318233));for(let _0x1850d6=0x0;_0x1850d6<_0x39052d['length'];_0x1850d6++){const _0x3d326b=_0x39052d[_0x1850d6]['previousPosition'],_0x337af4=_0x39052d[_0x1850d6]['nextPosition'];for(const _0x1b1c20 of _0x39052d[_0x1850d6]['markersStart'])_0x1249d8['set'](_0x1b1c20,{'start':_0x3d326b,'end':null});_0x2f8951('isRemoveSuggestion',_0x1850d6,_0x3d326b,_0x337af4),_0x2f8951('isAddSuggestion',_0x1850d6,_0x3d326b,_0x337af4),_0x2f8951('isRemoved',_0x1850d6,_0x3d326b,_0x337af4),_0x2f8951('isAdded',_0x1850d6,_0x3d326b,_0x337af4);for(const _0x16a94c of _0x39052d[_0x1850d6]['markersEnd']){_0x1249d8['get'](_0x16a94c)['end']=_0x337af4;}}for(const [_0x40a161,_0x10f9be]of _0x1249d8){const _0x5ac36a=this['editor']['model']['createRange'](_0x10f9be['start'],_0x10f9be['end']);_0x201a7c['markers']['set'](_0x40a161,_0x5ac36a);}return _0x26f76b['sort']((_0x44d373,_0x30770a)=>{const _0x194828=_0x201a7c['markers']['get']('revision:'+_0x44d373['id']),_0x246a31=_0x201a7c['markers']['get']('revision:'+_0x30770a['id']);return _0x194828['start']['isBefore'](_0x246a31['start'])?-0x1:_0x194828['start']['isAfter'](_0x246a31['start'])?0x1:_0x194828['end']['isBefore'](_0x246a31['end'])?-0x1:_0x194828['end']['isAfter'](_0x246a31['end'])?0x1:'add'===_0x44d373['type']?-0x1:0x1;}),{'root':_0x201a7c,'changes':_0x26f76b};function _0x2f8951(_0x1644b6,_0x38cb40,_0x4210bc,_0x18c246){const _0x2e0552=!!_0x39052d[_0x38cb40][_0x1644b6],_0xa44761=_0x2e0552?_0x39052d[_0x38cb40][_0x1644b6]['userId']:null,_0x40e658=_0x38cb40===_0x39052d['length']-0x1,_0x2bd0d6=_0x2087f1[_0x1644b6][0x0],_0xbc56e4=_0x41b7f5['isObject'](_0x39052d[_0x38cb40]['item']);!_0x3068c6[_0x1644b6]&&_0x2e0552?_0x3068c6[_0x1644b6]={'start':_0x4210bc,'tapeItem':_0x39052d[_0x38cb40],'userId':_0xa44761,'type':_0x1644b6}:_0x3068c6[_0x1644b6]&&!_0x2e0552?(_0x3068c6[_0x1644b6]['end']=_0x4210bc,_0x33e9f6(_0x3068c6[_0x1644b6]),_0x3068c6[_0x1644b6]=null):_0x3068c6[_0x1644b6]&&_0x2e0552&&_0x3068c6[_0x1644b6]['userId']!==_0xa44761&&(_0x3068c6[_0x1644b6]['end']=_0x4210bc,_0x2bd0d6&&_0x2bd0d6['userId']===_0x3068c6[_0x1644b6]['userId']||_0x33e9f6(_0x3068c6[_0x1644b6]),_0x3068c6[_0x1644b6]={'start':_0x4210bc,'tapeItem':_0x39052d[_0x38cb40],'userId':_0xa44761,'type':_0x1644b6}),_0x3068c6[_0x1644b6]&&_0xbc56e4&&('elementStart'!==_0x39052d[_0x38cb40]['type']||_0x2bd0d6&&_0x2bd0d6['userId']===_0xa44761||_0x2087f1[_0x1644b6]['unshift']({'userId':_0xa44761,'object':_0x39052d[_0x38cb40]['item'],'change':_0x3068c6[_0x1644b6]}),'elementEnd'===_0x39052d[_0x38cb40]['type']&&_0x2bd0d6&&_0x2bd0d6['object']===_0x39052d[_0x38cb40]['item']&&(_0x2087f1[_0x1644b6]['shift'](),_0x3068c6[_0x1644b6]=_0x2bd0d6['change'])),_0x3068c6[_0x1644b6]&&_0x40e658&&(_0x3068c6[_0x1644b6]['end']=_0x18c246,_0x33e9f6(_0x3068c6[_0x1644b6]),_0x3068c6[_0x1644b6]=null);}function _0x33e9f6({start:_0x3eb1bb,end:_0x560296,tapeItem:_0x313646,userId:_0x26b64f,type:_0x24528e}){const _0xd6c3b4=_0x313646['item'],_0x451d8a=_0x2b3a7e['schema']['isBlock'](_0xd6c3b4)&&!_0x2b3a7e['schema']['isLimit'](_0xd6c3b4),_0x441728=_0x3eb1bb['nodeAfter']==_0x560296['parent']&&_0x560296['isAtStart'];if(_0x451d8a&&_0x441728)return;const _0x151c1b=_0x2b3a7e['createRange'](_0x3eb1bb,_0x560296),_0x5a774c=_0x586be4['get'](_0x26b64f),_0x2374e=new r({'author':_0x5a774c,'type':'isAdded'==_0x24528e||'isAddSuggestion'==_0x24528e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x24528e||'isRemoveSuggestion'==_0x24528e},'createdAt':new Date(),'rootName':_0x3cad3a});_0x26f76b['push'](_0x2374e),_0x201a7c['markers']['set']('revision:'+_0x2374e['id'],_0x151c1b);}function _0x3fe3d9(_0xa546f8,_0x232451){const _0x1d30a1=_0xa546f8['getAttributes'](),_0x5c522b=_0x232451['getAttributes']();for(const _0x435c6a of _0x1d30a1){if(_0x435c6a[0x1]!==_0x232451['getAttribute'](_0x435c6a[0x0]))return!0x1;_0x5c522b['next']();}return _0x5c522b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb8646b=>{const _0x28b93a=_0xb8646b['markerName']['split'](':')[0x1],_0x11fbef=this['_getChangeFromId'](_0x28b93a);if(!_0x11fbef)return null;const _0x2c69ca='add'==_0x11fbef['type']?'insertion':'deletion',_0x1b6339=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c69ca];return _0x11fbef['data']['isSuggestion']&&_0x1b6339['push']('ck-suggestion-marker-'+_0x2c69ca+'-new'),this['activeChange']==_0x11fbef&&_0x1b6339['push']('ck-suggestion-marker--active'),{'classes':_0x1b6339,'attributes':{'data-change-id':_0x28b93a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1f0be0=>{_0x1f0be0['on']('element:pre',(_0x8c6a16,_0x4158f2,_0x2b1129)=>{const _0x386605=_0x4158f2['viewItem']['getChild'](0x0);if(!_0x386605||!_0x386605['is']('element','code'))return;if(!_0x2b1129['consumable']['consume'](_0x386605,{'attributes':['vid_start','vid_end']}))return;const _0x2c6901=_0x4158f2['modelRange']['start']['nodeAfter'];_0x2b1129['writer']['setAttribute']('vid_start',_0x386605['getAttribute']('vid_start'),_0x2c6901),_0x2b1129['writer']['setAttribute']('vid_end',_0x386605['getAttribute']('vid_end'),_0x2c6901);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x296702=>{_0x296702['on']('element',(_0x11ea8f,_0x3b6822,_0x24c947)=>{if(!_0x24c947['consumable']['consume'](_0x3b6822['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3b6822['modelRange']['isCollapsed'])return;const _0xce0905=_0x3b6822['modelRange']['start']['nodeAfter'];_0xce0905['hasAttribute']('vid_start')||_0xce0905['hasAttribute']('vid')||(_0x24c947['writer']['setAttribute']('vid_start',_0x3b6822['viewItem']['getAttribute']('vid_start'),_0xce0905),_0x24c947['writer']['setAttribute']('vid_end',_0x3b6822['viewItem']['getAttribute']('vid_end'),_0xce0905));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5cd87e=>_0x5cd87e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1bf1cc,[,_0x4be7b8])=>{['vid_start','vid_end','vid']['includes'](_0x4be7b8)&&(_0x1bf1cc['return']=!0x0,_0x1bf1cc['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xb85986=>{_0xb85986['on']('attribute:vid',(_0x17dcf2,_0x2068cb,_0x2f5364)=>{if('\x20'!=_0x2068cb['item']['data']||_0x2068cb['item']['parent']['maxOffset']>0x1)return;if(!_0x2f5364['consumable']['consume'](_0x2068cb['item'],_0x17dcf2['name']))return;const _0x1156af=_0x2f5364['writer'],_0x9beefb=_0x2f5364['mapper']['toViewRange'](_0x2068cb['range']);_0x1156af['wrap'](_0x9beefb,_0x1156af['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4d4e1b){const _0x250212=_0x4d4e1b['plugins']['get']('RevisionViewer');return(_0x5b6e55,_0x3c0c65,_0x50e676)=>{const _0x5780c4=_0x3c0c65['markerName']['split'](':')[0x1],_0x1e146d=_0x250212['_getChangeFromId'](_0x5780c4);if(!_0x1e146d)return null;const _0x3a0d70='add'==_0x1e146d['type']?'split':'merge';if(!_0x50e676['consumable']['test'](_0x3c0c65['markerRange'],_0x5b6e55['name']))return;const _0x5f58d9=_0x3c0c65['markerRange']['getWalker'](),_0x4f9ac6=_0x3c0c65['markerRange']['start'],_0x19bd4d=_0x4d4e1b['model']['schema'];let _0x340075=null,_0x5370ee=null,_0x4e6f54=!0x1,_0x1c6664=!0x1;for(const _0x389dd0 of _0x5f58d9){const _0x16ee89=_0x389dd0['item'];_0x4e6f54=_0x4e6f54||_0x19bd4d['isContent'](_0x16ee89);const _0x3a613b=_0x50e676['mapper']['toViewElement'](_0x16ee89);if(_0x3a613b&&_0x3a613b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x389dd0['type']&&(_0x19bd4d['isBlock'](_0x16ee89)&&!_0x19bd4d['isLimit'](_0x16ee89)&&(_0x16ee89['nextSibling']||_0x4f9ac6['isAtEnd']?_0x340075&&_0x340075['parent']==_0x16ee89||(_0x340075=_0x16ee89,_0x199336(_0x389dd0['previousPosition']),_0x1c6664=!0x0):_0x5370ee=_0x5370ee||_0x389dd0['previousPosition']));}function _0x199336(_0x567901){const _0x3f4e93=_0x50e676['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a0d70}),_0x2ef93b=_0x50e676['mapper']['toViewPosition'](_0x567901);_0x1e146d['data']['isSuggestion']&&_0x50e676['writer']['addClass']('ck-suggestion-marker-'+_0x3a0d70+'-new',_0x3f4e93),_0x250212['activeChange']==_0x1e146d&&_0x50e676['writer']['addClass']('ck-suggestion-marker--active',_0x3f4e93),_0x50e676['writer']['insert'](_0x2ef93b,_0x3f4e93),_0x50e676['mapper']['bindElementToMarker'](_0x3f4e93,_0x3c0c65['markerName']);}_0x4e6f54||_0x1c6664||!_0x5370ee||_0x199336(_0x5370ee);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x22f857,_0x5beef9,_0x4b6fda)=>{const _0x491581=_0x4b6fda['mapper']['markerNameToElements'](_0x5beef9['markerName']);if(_0x491581){for(const _0x1df5b5 of _0x491581)(_0x1df5b5['hasClass']('ck-suggestion-marker-split')||_0x1df5b5['hasClass']('ck-suggestion-marker-merge'))&&(_0x4b6fda['mapper']['unbindElementFromMarkerName'](_0x1df5b5,_0x5beef9['markerName']),_0x4b6fda['writer']['remove'](_0x1df5b5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x347cbc,_0x138cd7,_0x20dbc7)=>{const _0x43281a=_0x138cd7['markerName']['split'](':')[0x1],_0x581bf3=this['_getChangeFromId'](_0x43281a);if(!_0x581bf3)return null;const _0x284fed='add'==_0x581bf3['type']?'split':'merge';if(_0x20dbc7['consumable']['test'](_0x138cd7['markerRange'],_0x347cbc['name']))for(const _0x36246a of _0x138cd7['markerRange']['getItems']()){if(!_0x36246a['is']('element','softBreak'))continue;const _0xdee41c=_0x20dbc7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x284fed}),_0x5a5ea3=_0x20dbc7['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36246a));_0x581bf3['data']['isSuggestion']&&_0x20dbc7['writer']['addClass']('ck-suggestion-marker-'+_0x284fed+'-new',_0xdee41c),this['activeChange']==_0x581bf3&&_0x20dbc7['writer']['addClass']('ck-suggestion-marker--active',_0xdee41c),_0x20dbc7['writer']['insert'](_0x5a5ea3,_0xdee41c),_0x20dbc7['mapper']['bindElementToMarker'](_0xdee41c,_0x138cd7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x120fd7=>{for(const _0x10ae12 of this['editor']['model']['document']['getRootNames']()){const _0x298174=this['editor']['model']['document']['getRoot'](_0x10ae12),_0x3087d0=this['editor']['editing']['view']['document']['getRoot'](_0x10ae12);if(_0x3087d0){const _0x257792=_0x298174['getAttribute']('revisionHistoryAttachChange');if(_0x120fd7['removeAttribute']('data-change-id',_0x3087d0),_0x120fd7['removeClass']('ck-revision-history-root-add',_0x3087d0),_0x120fd7['removeClass']('ck-revision-history-root-remove',_0x3087d0),_0x120fd7['removeClass']('ck-revision-history-root--active',_0x3087d0),_0x257792){const _0x4513f9=this['_getChangeFromId'](_0x257792);if(!_0x4513f9)return null;_0x120fd7['setAttribute']('data-change-id',_0x257792,_0x3087d0),_0x120fd7['addClass']('ck-revision-history-root-'+_0x4513f9['type'],_0x3087d0),this['activeChange']==_0x4513f9&&_0x120fd7['addClass']('ck-revision-history-root--active',_0x3087d0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4323d9=>'revision-comment:'+_0x4323d9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x8d7d03=>'revision-suggestion:'+_0x8d7d03,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x58324f=>({'name':'suggestion:'+_0x58324f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15c0c6=>{const _0x1a9f73=_0x15c0c6['markerName']['split'](':')[0x1];return'insertion'!=_0x1a9f73&&'deletion'!=_0x1a9f73?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a9f73]};}}),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',(_0x382d90,_0x94b41e,_0x69c387)=>{const _0x1864d6=_0x69c387['mapper']['markerNameToElements'](_0x94b41e['markerName']);if(_0x1864d6){for(const _0x21111e of _0x1864d6)_0x21111e['is']('uiElement')&&(_0x69c387['mapper']['unbindElementFromMarkerName'](_0x21111e,_0x94b41e['markerName']),_0x69c387['writer']['remove'](_0x21111e));}},{'priority':'high'});}['_getChangeFromId'](_0x1aa83e){return this['_changeIdToChange']['get'](_0x1aa83e);}['_getViewForChange'](_0x254ec1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x254ec1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x476cf1,_0xcaa7a7,_0x337502,_0xbc7251)=>{_0xbc7251&&this['_balloon']['remove'](_0xbc7251),_0x337502&&(this['_balloon']['add']({'view':_0x337502,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x55f6c6=this['editor']['editing'],_0x30bf6d=this['_getChangeFromId'](_0x337502['changeId']);let _0x5c1c4a;if(_0x30bf6d['data']['isOnRoot']){const _0x2512b9=_0x55f6c6['view']['getDomRoot'](_0x30bf6d['rootName']);_0x5c1c4a=Array['from'](_0x2512b9['getClientRects']());}else{const _0x5cccce=this['editor']['model']['markers']['get']('revision:'+_0x337502['changeId']);_0x5c1c4a=Array['from'](_0x55f6c6['mapper']['markerNameToElements'](_0x5cccce['name']))['map'](_0x4455d3=>_0x55f6c6['view']['domConverter']['mapViewToDom'](_0x4455d3))['map'](_0x3742d2=>Array['from'](_0x3742d2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5c1c4a[0x0];return _0x5c1c4a['find'](_0x65b0a2=>_0x65b0a2['top']-0x3<=this['_activeViewTarget']['y']&&_0x65b0a2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x65b0a2['left']-0x3<=this['_activeViewTarget']['x']&&_0x65b0a2['right']+0x3>=this['_activeViewTarget']['x'])||_0x5c1c4a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3b2112,_0x4c9d7f,_0x30506d,_0x62fadd)=>{this['activeView']=_0x30506d?this['_getViewForChange'](_0x30506d):null,this['editor']['model']['change'](()=>{const _0x598956=this['editor']['editing'];_0x62fadd&&(_0x62fadd['data']['isOnRoot']?_0x598956['view']['change'](_0x3772c1=>{_0x3772c1['removeClass']('ck-revision-history-root--active',_0x598956['view']['document']['getRoot'](_0x62fadd['rootName']));}):_0x598956['reconvertMarker']('revision:'+_0x62fadd['id'])),_0x30506d&&(_0x30506d['data']['isOnRoot']?_0x598956['view']['change'](_0x9817e1=>{_0x9817e1['addClass']('ck-revision-history-root--active',_0x598956['view']['document']['getRoot'](_0x30506d['rootName']));}):_0x598956['reconvertMarker']('revision:'+_0x30506d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x408b2b,_0x1f7cc9)=>{if(this['activeChange'])return;const _0x491dbe=this['_findChangeIdFromDomTarget'](_0x1f7cc9['target']),_0x4250d9=this['_changeIdToChange']['get'](_0x491dbe);_0x4250d9?(this['_activeViewTarget']={'x':_0x1f7cc9['domEvent']['x'],'y':_0x1f7cc9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4250d9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x815bca,_0x1ecc6c)=>{const _0x9271db=this['_findChangeIdFromDomTarget'](_0x1ecc6c['target']),_0x2a2511=this['_changeIdToChange']['get'](_0x9271db);_0x2a2511?(this['_activeViewTarget']={'x':_0x1ecc6c['domEvent']['x'],'y':_0x1ecc6c['domEvent']['y']},_0x2a2511===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2a2511):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x553813){do{const _0x32b6fd=_0x553813['getAttribute']('data-change-id');if(_0x32b6fd)return _0x32b6fd;_0x553813=_0x553813['parent'];}while(_0x553813);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x31a98a=>{for(const _0x286ebd of this['editor']['model']['markers'])_0x31a98a['removeMarker'](_0x286ebd);});}}function tt(_0x2fbf89,_0xf523c){return(_0x385973,_0x298949,_0x2142df)=>{if(!_0x2142df['consumable']['test'](_0x298949['markerRange'],_0x385973['name']))return;const _0x1cd51a=_0x298949['markerRange']['getWalker'](),_0xc10944=_0x298949['markerRange']['start'],_0x16350d=_0x2fbf89['model']['schema'];let _0xe8f155=null,_0x31221d=null,_0x30b795=!0x1,_0x2e056a=!0x1;for(const _0x234943 of _0x1cd51a){const _0x9a5511=_0x234943['item'];_0x30b795=_0x30b795||_0x16350d['isContent'](_0x9a5511);const _0x441e10=_0x2142df['mapper']['toViewElement'](_0x9a5511);if(_0x441e10&&_0x441e10['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x234943['type']&&(_0x16350d['isBlock'](_0x9a5511)&&!_0x16350d['isLimit'](_0x9a5511)&&(_0x9a5511['nextSibling']||_0xc10944['isAtEnd']?_0xe8f155&&_0xe8f155['parent']==_0x9a5511||(_0xe8f155=_0x9a5511,_0x58358e(_0x234943['previousPosition']),_0x2e056a=!0x0):_0x31221d=_0x31221d||_0x234943['previousPosition']));}function _0x58358e(_0x2ed888){const _0xf9a022=_0x2142df['mapper']['toViewPosition'](_0x2ed888),_0x1875a5=_0x2142df['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf523c});_0x2142df['writer']['insert'](_0xf9a022,_0x1875a5),_0x2142df['mapper']['bindElementToMarker'](_0x1875a5,_0x298949['markerName']);}_0x30b795||_0x2e056a||!_0x31221d||_0x58358e(_0x31221d);};}class _t extends _0x470aae{constructor(_0x1352c9){super(_0x1352c9);const _0x393747=_0x1352c9['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x393747,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x393747,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x312001=this['editor'],_0x4bd0c0=_0x312001['plugins']['get'](d),_0x28b487=_0x4bd0c0['isReady']?_0x4bd0c0['diff']['newRevisionId']:null;_0x312001['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x28b487);}['refresh'](){const {isReady:_0x108caa,isEnabled:_0x45bea6}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x108caa&&_0x45bea6;}}class yt extends _0x470aae{['_step'];constructor(_0x3eee7b,{direction:_0x672384}){super(_0x3eee7b);const _0x10c666=_0x3eee7b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x672384?0x1:-0x1,this['listenTo'](_0x10c666,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10c666,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10c666,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x110f0b=this['editor'],_0x4b38a9=_0x110f0b['plugins']['get'](d),{isNavigationMode:_0x159cea,currentChangeNumber:_0x44757e}=_0x4b38a9;let _0x35b17c;if(_0x4b38a9['activeChange']=_0x159cea?_0x4b38a9['diff']['changes']['get'](_0x44757e+this['_step']):_0x4b38a9['diff']['changes']['first'],_0x4b38a9['activeChange']['data']['isOnRoot'])_0x35b17c=_0x110f0b['editing']['view']['getDomRoot'](_0x4b38a9['activeChange']['rootName']);else{const _0x821f2e=_0x110f0b['model']['markers']['get']('revision:'+_0x4b38a9['activeChange']['id']);_0x35b17c=_0x10f5bf(_0x110f0b['editing'],_0x821f2e);}_0xfae4f5({'target':_0x35b17c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x40a871,currentChangeNumber:_0x360eeb,numberOfChanges:_0x4c8984,isReady:_0x37e747,isEnabled:_0x34ddea}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x34ddea&&_0x37e747&&_0x4c8984)&&(!_0x40a871||(0x1===this['_step']?_0x360eeb<_0x4c8984-0x1:_0x360eeb>0x0));}}class ui extends ts{constructor(_0x171533){super(_0x171533);const _0x223804=this['bindTemplate'],_0x1881de=new te(_0x171533),_0x56b846=new te(_0x171533);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',(_0x2b4763,_0x1860a2)=>_0x2b4763&&_0x1860a2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x19325b,_0x1e40f3,_0x5e2c7a,_0x3b49bc)=>{if(!_0x19325b)return R(_0x171533,'Loading...');if(!_0x5e2c7a)return R(_0x171533,'No\x20changes');const _0x44da90=R(_0x171533,'NUMBER_OF_CHANGES',_0x5e2c7a);return _0x3b49bc?R(_0x171533,'X_OF_Y_CHANGES',[_0x1e40f3+0x1,_0x5e2c7a]):_0x44da90;}),_0x1881de['set']({'label':R(_0x171533,'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'}),_0x56b846['set']({'label':R(_0x171533,'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'}),_0x1881de['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x56b846['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1881de['on']('execute',()=>this['fire']('execute','backward')),_0x56b846['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',_0x223804['if']('_isStatusLabelVisible','ck-hidden',_0x4e0b98=>!_0x4e0b98)]},'children':[{'text':_0x223804['to']('isNavigationMode',_0x55cdea=>_0x55cdea?R(_0x171533,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x171533,'Total')+':\x20')}]},{'text':_0x223804['to']('_statusText')}]},new _0x2540ab(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1881de,_0x56b846]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x4e17c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbf779c=this['editor']['editing']['view'];_0xbf779c['change'](_0x1c385b=>{for(const _0x3d32ac of _0xbf779c['document']['roots'])_0x1c385b['addClass'](le,_0x3d32ac);});}['hide'](){const _0x260726=this['editor']['editing']['view'];_0x260726['change'](_0x1ba34a=>{for(const _0x46527c of _0x260726['document']['roots'])_0x1ba34a['removeClass'](le,_0x46527c);});}}class m extends _0x4e17c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x2c94c7=this['editor'],_0x8bcf95=_0x2c94c7['plugins']['get'](d),_0x1c2d36=_0x2c94c7['plugins']['get'](de);_0x2c94c7['ui']['componentFactory']['add']('exitToEditing',_0x35601b=>{const _0x68fd3e=new te(_0x35601b);return _0x68fd3e['set']({'label':R(_0x35601b,'Back\x20to\x20editing'),'icon':_0x3bf8ea['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x68fd3e,'execute',()=>{_0x2c94c7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x68fd3e;}),_0x2c94c7['ui']['componentFactory']['add']('restoreRevision',_0x5ba8cd=>{const _0x20dd31=new te(_0x5ba8cd);return _0x20dd31['set']({'label':R(_0x5ba8cd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x20dd31['bind']('isEnabled')['to'](_0x2c94c7['commands']['get']('restoreRevision')),this['listenTo'](_0x20dd31,'execute',()=>_0x2c94c7['execute']('restoreRevision')),_0x20dd31;}),_0x2c94c7['ui']['componentFactory']['add']('changesNavigation',_0x18b094=>{const _0x258a79=new ui(_0x18b094),_0x5c4034=_0x2c94c7['commands']['get']('showPreviousChange'),_0x5cfe42=_0x2c94c7['commands']['get']('showNextChange');return _0x258a79['bind']('isBackwardNavigationEnabled')['to'](_0x5c4034,'isEnabled'),_0x258a79['bind']('isForwardNavigationEnabled')['to'](_0x5cfe42,'isEnabled'),_0x258a79['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x8bcf95),this['listenTo'](_0x258a79,'execute',(_0x2ddbb6,_0x548f53)=>{_0x2c94c7['execute']('forward'===_0x548f53?'showNextChange':'showPreviousChange');}),_0x258a79;}),_0x1c2d36['show'](),_0x8bcf95['on']('change:isReady',(_0x244139,_0xf73434,_0x42b51d)=>{_0x42b51d?_0x1c2d36['hide']():_0x1c2d36['show']();});}}class pt extends _0x11555d{['_resizeObserver']=null;constructor(_0xa677f9,_0x24551e){super(_0xa677f9,_0x24551e);const _0x3a8e25=this['bindTemplate'];this['set']({'label':R(_0xa677f9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xa677f9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3a8e25['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 _0x2c1a8a=this['fieldView']['element'];this['_tooltipString']=_0x2c1a8a['scrollWidth']>_0x2c1a8a['clientWidth']&&_0x2c1a8a['value']||'';}}class ri extends ts{constructor(_0x3e584a,_0x5525df,_0x58181e){super(_0x3e584a);const _0x5494c1=new _0x40c008();_0x5494c1['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 _0x5ac5d1=['ck','ck-revision-history-sidebar__revision-author'];_0x58181e&&_0x5ac5d1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3220c2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3e584a,_0x58181e?'Revision\x20creator':'Revision\x20author')},'children':[_0x5494c1,_0x5525df['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5ac5d1},'children':_0x3220c2});}}function oi(_0x648128,_0x796da0){const _0x4fca94=_0x648128['bindTemplate'],_0x121daa=_0x648128['locale'],_0x4770ae=_0x32fc3c(_0x121daa);_0x4770ae['panelPosition']='sw';const _0x543ef7=function(_0x3582c4,_0x224def){const _0x539f4c=function(_0x4aa48b,_0x3924e1){const _0x4369b6=_0x4aa48b['locale'],_0x5919d2={'Compare\x20against\x20selected':R(_0x4369b6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4369b6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4369b6,'Restore\x20this\x20revision')};return _0x3924e1['map'](_0x55a133=>{const _0xce7059=_0x5919d2[_0x55a133['name']];return _0xce7059&&_0xce7059!==_0x55a133['name']&&(_0x55a133['name']=_0xce7059),_0x55a133;});}(_0x3582c4,_0x224def),_0x15a25d=new _0x510f19();for(const _0x33c60d of _0x539f4c){const _0xa624d1={'type':'button','model':new _0x4a878a({'label':_0x33c60d['name'],'class':_0x33c60d['class'],'withText':!0x0,'role':'menuitem','_action':_0x33c60d['action']})};_0xa624d1['model']['bind']('isEnabled')['to'](_0x3582c4,'isActionsDropdownOpen',_0x24de1c=>'function'!=typeof _0x33c60d['isEnabled']||(!_0x24de1c||_0x33c60d['isEnabled'](_0x3582c4))),_0x15a25d['add'](_0xa624d1);}return _0x15a25d;}(_0x648128,_0x796da0);return _0x648128['bind']('isActionsDropdownOpen')['to'](_0x4770ae,'isOpen'),_0x4770ae['buttonView']['set']({'label':R(_0x121daa,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3bf8ea['threeVerticalDots']}),_0x4770ae['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4fca94['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4fca94['to'](_0x1fc18=>_0x1fc18['stopPropagation']())}}),_0x4770ae['on']('execute',_0x28c553=>{_0x648128['isReady']&&'function'==typeof _0x28c553['source']['_action']&&_0x28c553['source']['_action'](_0x648128);}),to(_0x4770ae,_0x543ef7,{'role':'menu'}),_0x4770ae['listenTo'](_0x648128,'change:isActionsDropdownOpen',(_0x258313,_0x1850f8,_0xf08193)=>{if(_0xf08193)for(const _0x2c7658 of _0x4770ae['listView']['items']){const _0x48f2d8=_0x2c7658['children']['first'],_0x401c72=_0x796da0['find'](_0x4c71e6=>_0x4c71e6['action']===_0x48f2d8['_action'])['isVisible'];_0x2c7658['isVisible']=void 0x0===_0x401c72||_0x401c72(_0x648128);}}),_0x4770ae;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x1206aa,uid as _0x4fc209,Collection as _0x1b68a5,logWarning as _0x65f3de,FocusTracker as _0x40757b,KeystrokeHandler as _0x2c7f60,scrollViewportToShowTarget as _0x4fc0fc,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x211e10}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4f45c1,set as _0x4e528b,unset as _0x556b8f,isEqual as _0x384b50}from'lodash-es';import{Plugin as _0x1dc3ac,PendingActions as _0x449819,icons as _0x3255c8,Command as _0x33b7b5,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4d2971,getMarkerDomElement as _0x55763c,ConfirmMixin as ti,sanitizeEditorConfig as _0x5bb64a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1eec08,ViewText as _0x3cf183,ViewElement as _0x5b66af,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x5970ac,ViewAttributeElement as _0x5a6cc9,ViewEmptyElement as _0x4bf472,ViewRawElement as _0x141c97,ViewUIElement as _0x41e19e,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5a1412,submitHandler as _0x4471ee,LabeledFieldView as _0x3e59e5,createLabeledInputText as _0x7692c0,createDropdown as _0x1acade,ListView as _0x2a942d,ListItemView as _0x8b90e4,ButtonView as te,MenuBarMenuView as _0x583af0,MenuBarMenuListView as _0x48974b,MenuBarMenuListItemView as _0x2b6b52,MenuBarMenuListItemButtonView as _0x37bd79,ContextualBalloon as _0x125db8,ToolbarSeparatorView as _0x33b3c3,IconView as _0x7efb03,addListToDropdown as to,ViewModel as _0x5a642d,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 _0x4a6d18}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1206aa(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3ecbe8){super(),this['id']=_0x3ecbe8['id']||_0x4fc209(),this['creator']=_0x3ecbe8['creator']||null,this['authors']=_0x3ecbe8['authors']||[],this['diffData']=_0x3ecbe8['diffData']||null,this['toVersion']=_0x3ecbe8['toVersion']||0x0,this['fromVersion']=_0x3ecbe8['fromVersion']||0x0,this['set']('name',_0x3ecbe8['name']||''),this['set']('createdAt',_0x3ecbe8['createdAt']||new Date()),this['set']('attributes',_0x3ecbe8['attributes']||{});}['setName'](_0x4b57e5){this['_update']({'name':_0x4b57e5});}['setAttribute'](_0x137ae5,_0x273d80){const _0x65191d=_0x4f45c1(this['attributes']);_0x4e528b(_0x65191d,_0x137ae5,_0x273d80),this['_update']({'attributes':_0x65191d});}['removeAttribute'](_0x566769){const _0x40271d=_0x4f45c1(this['attributes']);_0x556b8f(_0x40271d,_0x566769),this['_update']({'attributes':_0x40271d});}['_update'](_0x1465e6,_0x875a73=!0x1){let _0x293132=!0x1;const _0x53c481={'id':this['id']},_0x4423d1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2adf83 of _0x4423d1){const _0xd2ba66=_0x1465e6[_0x2adf83];void 0x0!==_0xd2ba66&&_0xd2ba66!==this[_0x2adf83]&&(this[_0x2adf83]=_0xd2ba66,_0x53c481[_0x2adf83]=_0xd2ba66,_0x293132=!0x0);}_0x293132&&(_0x53c481['authors']&&(_0x53c481['authorsIds']=_0x53c481['authors']['map'](_0x1f0513=>_0x1f0513['id']),delete _0x53c481['authors']),this['fire']('_update',_0x53c481,_0x875a73));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x448090=>_0x448090['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1dc3ac{['_revisions'];static get['requires'](){return[_0x4d2971];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xca384){super(_0xca384),this['_revisions']=new _0x1b68a5();}['afterInit'](){!async function(_0x45eb6f){const _0x27ca8e=_0x72d78d([0x59,0x4f,0x50,0x39,0x56,0x4b,0x73,0x37,0x63,0x6b,0x4d,0x38,0x30,0x47,0x4c,0x57,0x6f,0x4e,0x68,0x36,0x67,0x6c,0x61,0x43,0x75,0x4a,0x66,0x64,0x33,0x69,0x32,0x70,0x6e,0x46,0x71,0x79,0x77,0x74,0x55,0x58,0x65,0x53,0x31,0x54,0x72,0x41,0x7a,0x35,0x6a,0x78,0x5a,0x45,0x51,0x44,0x49,0x42,0x52,0x6d,0x76,0x62,0x48,0x34]),_0x1a0666=0xeb829,_0x39def7=0x7d643633,_0x507f20=0x7d636f53^_0x39def7,_0x1fbf48=window[_0x72d78d([0x44,0x61,0x74,0x65])][_0x72d78d([0x6e,0x6f,0x77])](),_0x4b2f94=_0x45eb6f[_0x72d78d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e6440=new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x465fee=>{_0x4b2f94[_0x72d78d([0x6f,0x6e,0x63,0x65])](_0x72d78d([0x72,0x65,0x61,0x64,0x79]),_0x465fee);}),_0x3b0cfa={[_0x72d78d([0x6b,0x74,0x79])]:_0x72d78d([0x45,0x43]),[_0x72d78d([0x75,0x73,0x65])]:_0x72d78d([0x73,0x69,0x67]),[_0x72d78d([0x63,0x72,0x76])]:_0x72d78d([0x50,0x2d,0x32,0x35,0x36]),[_0x72d78d([0x78])]:_0x72d78d([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]),[_0x72d78d([0x79])]:_0x72d78d([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]),[_0x72d78d([0x61,0x6c,0x67])]:_0x72d78d([0x45,0x53,0x32,0x35,0x36])},_0x5d49fc=_0x4b2f94[_0x72d78d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x72d78d([0x67,0x65,0x74])](_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x168a98(){let _0x32af47,_0x4e9e15=null,_0x5648cd=null;try{if(_0x5d49fc==_0x72d78d([0x47,0x50,0x4c]))return _0x72d78d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32af47=_0x6cfab0(),!_0x32af47)return _0x72d78d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32af47[_0x72d78d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5648cd=_0x18d709(_0x32af47[_0x72d78d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32af47[_0x72d78d([0x6a,0x74,0x69])])),await _0x495aad()?_0x2a5097()?_0x5e59c7()?_0x72d78d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25644f()?(_0x32af47[_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x72d78d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e9e15=_0x36c735(_0x72d78d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32af47[_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x72d78d([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e9e15=_0x36c735(_0x72d78d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x32af47[_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x72d78d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4e9e15=_0x36c735(_0x72d78d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55f423()):_0x72d78d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x72d78d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x72d78d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3af293){return _0x72d78d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e59c7(){const _0x5751da=[_0x72d78d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x72d78d([0x74,0x72,0x69,0x61,0x6c])][_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32af47[_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fbf48/0x3e8:0xe10*_0x507f20;return _0x32af47[_0x72d78d([0x65,0x78,0x70])]<_0x5751da;}function _0x2a5097(){const _0x252600=_0x32af47[_0x72d78d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x252600)return!0x1;if(_0x252600[_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72d78d([0x2a])))return!0x0;if(_0x252600[_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72d78d([0x52,0x48])))return!0x0;if(_0x252600[_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72d78d([0x52,0x52,0x48]))){if(_0x5de100())return!0x0;if(_0x1a8eb7()||_0x904a45())return!0x0;}return!0x1;}function _0x25644f(){const _0x1eab81=_0x32af47[_0x72d78d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1eab81||0x0==_0x1eab81[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x238eb8}=new URL(window[_0x72d78d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1eab81[_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x238eb8))return!0x0;const _0x4117cf=_0x238eb8[_0x72d78d([0x73,0x70,0x6c,0x69,0x74])](_0x72d78d([0x2e]));return _0x1eab81[_0x72d78d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e9c8b=>_0x5e9c8b[_0x72d78d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72d78d([0x2a])))[_0x72d78d([0x6d,0x61,0x70])](_0x2e5de1=>_0x2e5de1[_0x72d78d([0x73,0x70,0x6c,0x69,0x74])](_0x72d78d([0x2e])))[_0x72d78d([0x73,0x6f,0x6d,0x65])](_0x280882=>_0x4117cf[_0x72d78d([0x65,0x76,0x65,0x72,0x79])]((_0x5e2be4,_0x2efc4f)=>_0x280882[_0x2efc4f]===_0x5e2be4||_0x280882[_0x2efc4f]===_0x72d78d([0x2a])));}function _0x55f423(){return _0x4e9e15&&_0x5648cd?new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a0d1,_0x33e0ae)=>{_0x4e9e15[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x23a0d1,_0x33e0ae),_0x5648cd[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x1a730c=>{_0x1a730c!=_0x72d78d([0x56,0x61,0x6c,0x69,0x64])&&_0x23a0d1(_0x1a730c);},_0x33e0ae);}):_0x4e9e15||_0x5648cd||_0x72d78d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18d709(_0xdd49cc,_0x1db268){return new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ba82=>{if(_0x25917d())return _0x57ba82(_0x72d78d([0x56,0x61,0x6c,0x69,0x64]));_0x9f4890(),_0x4b2f94[_0x72d78d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x72d78d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d20ef=!0x1;const _0x42de71=_0x4fc209();function _0x575620(_0x1d29a8){return!!_0x1d29a8&&(typeof _0x1d29a8===_0x72d78d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d29a8===_0x72d78d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d29a8[_0x72d78d([0x74,0x68,0x65,0x6e])]===_0x72d78d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d29a8[_0x72d78d([0x63,0x61,0x74,0x63,0x68])]===_0x72d78d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51a0dd(_0x6a1b0e){_0x400699(_0x6a1b0e)[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x239b44=>{if(!_0x239b44||_0x239b44[_0x72d78d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x72d78d([0x6f,0x6b]))return _0x72d78d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25e59f(_0x427afa(_0x42de71+_0x1db268))!=_0x239b44[_0x72d78d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x72d78d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x72d78d([0x56,0x61,0x6c,0x69,0x64]);})[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x487aff=>(_0x508fdc(),_0x487aff),()=>{const _0x293740=_0x346047();return null==_0x293740?(_0x508fdc(),_0x72d78d([0x56,0x61,0x6c,0x69,0x64])):_0x72d78d(_0x1fbf48-_0x293740>(0x5968b233^_0x39def7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x57ba82)[_0x72d78d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57ba82(_0x72d78d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38bcc4=0x7d52d8b3^_0x39def7;function _0x508fdc(){const _0x292430=_0x72d78d([0x6c,0x6c,0x63,0x74,0x2d])+_0x25e59f(_0x427afa(_0xdd49cc)),_0x2f0c89=_0x33437d(_0x25e59f(window[_0x72d78d([0x4d,0x61,0x74,0x68])][_0x72d78d([0x63,0x65,0x69,0x6c])](_0x1fbf48/_0x38bcc4)));window[_0x72d78d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x72d78d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x292430,_0x2f0c89);}function _0x346047(){const _0x1012b2=_0x72d78d([0x6c,0x6c,0x63,0x74,0x2d])+_0x25e59f(_0x427afa(_0xdd49cc)),_0x9d6fe3=window[_0x72d78d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x72d78d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1012b2);return _0x9d6fe3?window[_0x72d78d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33437d(_0x9d6fe3),0x10)*_0x38bcc4:null;}function _0x400699(_0x11abee){return new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x592729,_0x32ed8d)=>{_0x11abee[_0x72d78d([0x74,0x68,0x65,0x6e])](_0x592729,_0x32ed8d),window[_0x72d78d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32ed8d,0x7d65e2f3^_0x39def7);});}}_0x4b2f94[_0x72d78d([0x6f,0x6e])](_0x72d78d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x384654,_0x13636e)=>{if(_0x13636e[0x0]!=_0xdd49cc)return _0x57ba82(_0x72d78d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13636e[0x1]={..._0x13636e[0x1],[_0x72d78d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42de71};},{[_0x72d78d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x72d78d([0x68,0x69,0x67,0x68])}),_0x4b2f94[_0x72d78d([0x6f,0x6e])](_0x72d78d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x195251=>{_0x575620(_0x195251[_0x72d78d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d20ef=!0x0,_0x51a0dd(_0x195251[_0x72d78d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x72d78d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x72d78d([0x6c,0x6f,0x77])}),_0x1e6440[_0x72d78d([0x74,0x68,0x65,0x6e])](()=>{_0x5d20ef||_0x57ba82(_0x72d78d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25917d(){return _0x4b2f94[_0x72d78d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x72d78d([0x76,0x69,0x65,0x77])][_0x72d78d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x72d78d([0x61,0x75,0x74,0x6f]);}function _0x9f4890(){_0x4b2f94[_0x72d78d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x72d78d([0x76,0x69,0x65,0x77])][_0x72d78d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x72d78d([0x61,0x75,0x74,0x6f]);}}function _0x36c735(_0x98a3de){const _0x3e4805=[new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57265a=>setTimeout(_0x57265a,0x7d6d08ff^_0x39def7)),_0x1e6440[_0x72d78d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6289=>{const _0x2732c1=0x7d643634^_0x39def7,_0x40f6f7=_0x45eb6f[_0x72d78d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x357745(){_0x40f6f7[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2732c1&&_0x3b6289();}_0x357745(),_0x40f6f7[_0x72d78d([0x6f,0x6e])](_0x72d78d([0x61,0x64,0x64]),_0x357745);})),new window[(_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167ad8=>{function _0x236ea4(){for(const _0x2ef386 in window)if(window[_0x72d78d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x72d78d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2ef386))&&window[_0x2ef386]==_0x1a0666)return _0x167ad8();_0x4b2f94[_0x72d78d([0x73,0x74,0x61,0x74,0x65])]!=_0x72d78d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x72d78d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x236ea4,0x7d6425bb^_0x39def7);}_0x27c34e(_0x72d78d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x236ea4();})];return window[_0x72d78d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x72d78d([0x72,0x61,0x63,0x65])](_0x3e4805)[_0x72d78d([0x74,0x68,0x65,0x6e])](()=>_0x98a3de);}async function _0x4bdf26(){if(await _0x1e6440,_0x27c34e(_0x72d78d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x19dd21=_0x45eb6f[_0x72d78d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3247ee=_0x45eb6f[_0x72d78d([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])](_0x19dd21[_0x72d78d([0x69,0x64])]),_0x1c8021=_0x4057cb(_0x72d78d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c8021[_0x72d78d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x19dd21['id'],_0x3247ee?_0x3247ee['id']:null,!0x0),_0x1c8021[_0x72d78d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x72d78d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c8021[_0x72d78d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c8021[_0x72d78d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x395236,void(_0x1c8021[_0x72d78d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x395236);}if(_0x27c34e(_0x72d78d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x49c010=_0x4057cb(_0x72d78d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x49c010[_0x72d78d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x72d78d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49c010[_0x72d78d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49c010[_0x72d78d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x395236,_0x49c010[_0x72d78d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x395236;}_0x4b2f94[_0x72d78d([0x6d,0x6f,0x64,0x65,0x6c])][_0x72d78d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x395236,_0x4b2f94[_0x72d78d([0x6d,0x6f,0x64,0x65,0x6c])][_0x72d78d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x395236,_0x4b2f94[_0x72d78d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x72d78d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5de100(){return _0x27c34e(_0x72d78d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4057cb(_0x72d78d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x72d78d([0x73,0x74,0x61,0x74,0x65])]==_0x72d78d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a8eb7(){return _0x27c34e(_0x72d78d([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 _0x904a45(){return _0x27c34e(_0x72d78d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5df7e1(_0x4196da){const _0x505b5e=_0x5dab13();_0x4b2f94[_0x505b5e]=_0x72d78d([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])+_0x4196da,_0x4196da[_0x72d78d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x72d78d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5dab13()]=_0x1a0666),_0x4196da!=_0x72d78d([0x56,0x61,0x6c,0x69,0x64])&&_0x4bdf26();}function _0x5dab13(){const _0x5ad945=window[_0x72d78d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x72d78d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x72d78d([0x6e,0x6f,0x77])]())[_0x72d78d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x72d78d([0x2e]),'');let _0x5a6089=_0x72d78d([0x59]);for(let _0xe06f9e=0x0;_0xe06f9e<_0x5ad945[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe06f9e+=0x2){let _0x4dbff1=window[_0x72d78d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad945[_0x72d78d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe06f9e,_0xe06f9e+0x2));_0x4dbff1>=_0x27ca8e[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4dbff1-=_0x27ca8e[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a6089+=_0x27ca8e[_0x4dbff1];}return _0x5a6089;}function _0x6cfab0(){const _0x2d8612=_0x5d49fc[_0x72d78d([0x73,0x70,0x6c,0x69,0x74])](_0x72d78d([0x2e]));if(0x3!=_0x2d8612[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x245a0d(_0x2d8612[0x1]);function _0x245a0d(_0x35e434){const _0x428bfc=_0xc9327f(_0x35e434);return _0x428bfc&&_0xe9d87a()?_0x428bfc:null;function _0xe9d87a(){const _0x321a0c=_0x428bfc[_0x72d78d([0x6a,0x74,0x69])],_0x29ca23=window[_0x72d78d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321a0c[_0x72d78d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x321a0c[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d8b99={..._0x428bfc,[_0x72d78d([0x6a,0x74,0x69])]:_0x321a0c[_0x72d78d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x321a0c[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d8b99[_0x72d78d([0x76,0x63])],_0x427afa(_0x4d8b99)==_0x29ca23;}}}async function _0x495aad(){let _0x21bb45=!0x0;try{const _0x11cfeb=_0x5d49fc[_0x72d78d([0x73,0x70,0x6c,0x69,0x74])](_0x72d78d([0x2e])),[_0x2fd589,_0x5aadc2,_0x2a121f]=_0x11cfeb;return _0x18bd63(_0x2fd589),await _0x5d2d23(_0x2fd589,_0x5aadc2,_0x2a121f),_0x21bb45;}catch(_0x320c9d){return!0x1;}function _0x18bd63(_0x3b06e8){const _0x437aa6=_0xc9327f(_0x3b06e8);_0x437aa6&&_0x437aa6[_0x72d78d([0x61,0x6c,0x67])]==_0x72d78d([0x45,0x53,0x32,0x35,0x36])||(_0x21bb45=!0x1);}async function _0x5d2d23(_0x1814c4,_0x1a3b54,_0x4b79a6){const _0x383f81=window[_0x72d78d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x72d78d([0x66,0x72,0x6f,0x6d])](_0x5926f7(_0x4b79a6),_0x33d2b1=>_0x33d2b1[_0x72d78d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52b708=new window[(_0x72d78d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x72d78d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1814c4+_0x72d78d([0x2e])+_0x1a3b54),_0x54808b=window[_0x72d78d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x72d78d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54808b)return;const _0x49f358=await _0x54808b[_0x72d78d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x72d78d([0x6a,0x77,0x6b]),_0x3b0cfa,{[_0x72d78d([0x6e,0x61,0x6d,0x65])]:_0x72d78d([0x45,0x43,0x44,0x53,0x41]),[_0x72d78d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x72d78d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x72d78d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54808b[_0x72d78d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x72d78d([0x6e,0x61,0x6d,0x65])]:_0x72d78d([0x45,0x43,0x44,0x53,0x41]),[_0x72d78d([0x68,0x61,0x73,0x68])]:{[_0x72d78d([0x6e,0x61,0x6d,0x65])]:_0x72d78d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49f358,_0x383f81,_0x52b708)||(_0x21bb45=!0x1);}}function _0xc9327f(_0xd657af){return _0xd657af[_0x72d78d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x72d78d([0x65,0x79]))?JSON[_0x72d78d([0x70,0x61,0x72,0x73,0x65])](_0x5926f7(_0xd657af)):null;}function _0x5926f7(_0x3b94a9){return window[_0x72d78d([0x61,0x74,0x6f,0x62])](_0x3b94a9[_0x72d78d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x72d78d([0x2b]))[_0x72d78d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x72d78d([0x2f])));}function _0x427afa(_0x37c51a){let _0x3f8bed=0x1505;function _0x2cfea8(_0x309167){for(let _0x12b51d=0x0;_0x12b51d<_0x309167[_0x72d78d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b51d++){const _0x3de262=_0x309167[_0x72d78d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12b51d);_0x3f8bed=(_0x3f8bed<<0x5)+_0x3f8bed+_0x3de262,_0x3f8bed&=_0x3f8bed;}}function _0x17548d(_0x3443c8){Array[_0x72d78d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3443c8)?_0x3443c8[_0x72d78d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17548d):_0x3443c8&&typeof _0x3443c8==_0x72d78d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x72d78d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3443c8)[_0x72d78d([0x73,0x6f,0x72,0x74])]()[_0x72d78d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d09fd,_0x2af826])=>{_0x2cfea8(_0x1d09fd),_0x17548d(_0x2af826);}):_0x2cfea8(window[_0x72d78d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3443c8));}return _0x17548d(_0x37c51a),_0x3f8bed>>>0x0;}function _0x25e59f(_0x3e7fa9){return _0x3e7fa9[_0x72d78d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x72d78d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x72d78d([0x30]));}function _0x33437d(_0x5b9b12){return _0x5b9b12[_0x72d78d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x72d78d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x72d78d([0x6a,0x6f,0x69,0x6e])]('');}function _0x27c34e(_0x10e8ad){return _0x4b2f94[_0x72d78d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x72d78d([0x68,0x61,0x73])](_0x10e8ad);}function _0x4057cb(_0x4571eb){return _0x4b2f94[_0x72d78d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x72d78d([0x67,0x65,0x74])](_0x4571eb);}function _0x395236(){}function _0x72d78d(_0x1b3363){return _0x1b3363['map'](_0x1c6220=>String['fromCharCode'](_0x1c6220))['join']('');}_0x5df7e1(await _0x168a98());}(this);}['createRevision'](_0xe64f2a){const _0x57bd24=this['editor']['plugins']['get']('Users');return new a({'id':_0xe64f2a['id'],'name':_0xe64f2a['name'],'creator':_0xe64f2a['creatorId']?_0x57bd24['getUser'](_0xe64f2a['creatorId']):null,'diffData':_0xe64f2a['diffData']||_0xe64f2a['data'],'authors':_0xe64f2a['authorsIds']['map'](_0x44511b=>_0x57bd24['getUser'](_0x44511b)),'createdAt':new Date(_0xe64f2a['createdAt']),'attributes':_0xe64f2a['attributes'],'fromVersion':_0xe64f2a['fromVersion'],'toVersion':_0xe64f2a['toVersion']});}['addRevision'](_0x21076d,_0x2aa512=0x0){this['_revisions']['add'](_0x21076d,_0x2aa512);}['getRevision'](_0x1b8e47){return this['_revisions']['get'](_0x1b8e47);}['getRevisions'](_0x477462={'toJSON':!0x1}){const _0x1416c5=Array['from'](this['_revisions']);return _0x1416c5['reverse'](),_0x477462['toJSON']?_0x1416c5['map'](_0x590087=>_0x590087['toJSON']()):_0x1416c5;}['getIndex'](_0x2529b2){return this['_revisions']['getIndex'](_0x2529b2);}['getEarlierVisibleRevision'](_0x1d0bbd){const [,_0x5bcb0a]=this['getRevisionsIterator'](_0x1d0bbd,{'direction':'earlier'});return _0x5bcb0a;}['getLaterVisibleRevision'](_0x50b0ab){const [,_0x928a36]=this['getRevisionsIterator'](_0x50b0ab,{'direction':'later'});return _0x928a36;}['getRevisionsInDiff'](_0x4812ce){const _0x3b792a=[];for(const _0x3b6d91 of this['getRevisionsIterator'](_0x4812ce['newRevisionId']))if(_0x3b792a['push'](_0x3b6d91),_0x3b6d91['id']===_0x4812ce['oldRevisionId'])break;return _0x3b792a;}*['getRevisionsIterator'](_0x44a92,{direction:_0x5486e2='earlier',filter:_0x4c19f8=()=>!0x0}={}){const _0x47498f='earlier'===_0x5486e2?0x1:-0x1;let _0x3e1854=this['_revisions']['get'](_0x44a92),_0x5942f0=this['getIndex'](_0x3e1854);for(yield _0x3e1854;_0x3e1854;){if(_0x5942f0+=_0x47498f,_0x3e1854=this['getRevision'](_0x5942f0),!_0x3e1854)return;_0x4c19f8(_0x3e1854)&&(yield _0x3e1854);}}}function R(_0x18b6e2,_0x3deac2,_0x1bc7ba){const t=_0x18b6e2['t'];switch(_0x3deac2){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'},_0x1bc7ba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1bc7ba);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':_0x5970ac,'a':_0x5a6cc9,'e':_0x4bf472,'r':_0x141c97,'u':_0x41e19e};class l extends _0x1dc3ac{['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[_0x4d2971,j,_0x449819];}constructor(_0x53e462){super(_0x53e462),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 _0x14adea=_0x4fc209();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x14adea},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 _0x368224=this['repository']['getRevision'](0x0),_0x4a099d=_0x368224&&null===_0x368224['creator']?_0x368224:null;if(this['_continueCurrentRevision']=!!_0x4a099d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3d8f41=this['_source']['getCurrentRevisionId'](),_0xddc8f=this['repository']['getRevision'](_0x3d8f41);if(_0xddc8f)this['_startingVersion']=_0xddc8f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xb28ad8=this['_source']['history']['_operations']['find'](_0x3558aa=>!_0x3558aa['_isInit']),_0x54c3ff=_0xb28ad8?_0xb28ad8['baseVersion']:this['_source']['history']['version'];_0x368224?(_0x368224['toVersion']<_0x54c3ff&&_0x368224['_update']({'toVersion':_0x54c3ff}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4a099d['id'],this['_startingVersion']=_0x4a099d['fromVersion']):(this['_startingVersion']=_0x368224['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x54c3ff,this['_continueCurrentRevision']=!0x1);}}else _0x4a099d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4a099d['toVersion'],this['editor']['model']['document']['history']['version']),_0x4a099d['fromVersion']===_0x4a099d['toVersion']?(0x0!==_0x4a099d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a099d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a099d['id'],this['_startingVersion']=_0x4a099d['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',_0xc361d7=>!_0xc361d7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdab614=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xea5cad;for(const _0x59a1c6 in _0xdab614){const _0x32a47f=_0x59a1c6,_0x534ee9=_0xdab614[_0x32a47f];if('revisionHistoryLicenseKeyValid'==_0x534ee9||'revisionHistoryLicenseKeyInvalid'==_0x534ee9||'revisionHistoryLicenseKeyExpired'==_0x534ee9||'revisionHistoryLicenseKeyDomainLimit'==_0x534ee9||'revisionHistoryLicenseKeyNotAllowed'==_0x534ee9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x534ee9||'revisionHistoryLicenseKeyTrialLimit'==_0x534ee9||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x534ee9||'revisionHistoryLicenseKeyUsageLimit'==_0x534ee9){delete _0xdab614[_0x32a47f],_0xea5cad=_0x534ee9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xea5cad&&_0xdab614['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xea5cad&&_0xdab614['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xea5cad&&_0xdab614['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xea5cad&&_0xdab614['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xea5cad&&_0xdab614['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xea5cad&&_0xdab614['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xea5cad&&_0xdab614['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xea5cad&&_0xdab614['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3629b3=this['repository']['getRevision'](0x0),_0x441e6c=await this['getRevisionDocumentData'](_0x3629b3),_0x4a2707=await this['getRevisionRootsAttributes'](_0x3629b3);this['_replaceEditorDataWithRevisionData'](_0x441e6c,_0x4a2707);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x596c20){this['_source']=_0x596c20;}async['update'](){const _0x289e01=await this['_source']['getLatestVersion']();if(_0x289e01>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2cab56=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x289e01});_0x2cab56['authors']=_0x2cab56['authorsIds']['map'](_0x588c22=>this['editor']['plugins']['get']('Users')['getUser'](_0x588c22)),this['currentRevision']['_update'](_0x2cab56);}}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'](_0x34f9e7={},_0x4c46a3=null){const _0x1cf269=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c46a3>this['currentRevision']['toVersion']&&(_0x4c46a3=null),null===_0x4c46a3&&(_0x4c46a3=await this['_source']['getLatestVersion']());const _0x81c08a=this['_getFromVersion'](_0x4c46a3),_0x2780e4=this['buildRevisionData']({'from':_0x81c08a,'to':_0x4c46a3});if(this['currentRevision']['toVersion']<_0x4c46a3){const _0x4da2b8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c46a3,'to':_0x4c46a3});_0x4da2b8['authors']=[],_0x4da2b8['authorsIds']=[],_0x4da2b8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4da2b8,!0x0),delete _0x4da2b8['authors'],_0x1cf269['push'](_0x4da2b8);}_0x34f9e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x34f9e7['name']=_0x34f9e7['name']||null,_0x34f9e7['id']=_0x34f9e7['id']||_0x4fc209(),_0x34f9e7={..._0x34f9e7,..._0x2780e4};const _0xb52d31=this['addRevisionData'](_0x34f9e7);_0x1cf269['push'](_0x34f9e7);const _0x4acfdd=this['repository']['getIndex'](_0xb52d31);if(0x0!==_0x4acfdd){const _0x433c2=this['repository']['getRevision'](_0x4acfdd-0x1);if(_0x433c2['fromVersion']!==_0x4c46a3){const _0x377bea=this['_revisionDataBuilder']['getData'](_0x4c46a3,_0x433c2['toVersion']),_0x12c2a9={'id':_0x433c2['id'],'diffData':_0x377bea['diffData'],'authorsIds':_0x377bea['authorsIds'],'authors':_0x377bea['authorsIds']['map'](_0x2310cf=>this['editor']['plugins']['get']('Users')['getUser'](_0x2310cf)),'fromVersion':_0x4c46a3};_0x433c2===this['currentRevision']&&(_0x12c2a9['createdAt']=new Date(_0x34f9e7['createdAt']['getTime']()+0xa)),_0x433c2['_update'](_0x12c2a9,!0x0),delete _0x12c2a9['authors'],_0x1cf269['push'](_0x12c2a9);}}if(this['adapter']){for(const _0x46458e of _0x1cf269)this['_bufferUpdate'](_0x46458e['id'],_0x46458e,!0x0);this['sendBufferedUpdates']();}return _0xb52d31;}['addRevisionData'](_0x5d88ea){const _0x376b51=this['repository']['createRevision'](_0x5d88ea);return this['adapter']&&_0x376b51['on']('_update',(_0x5a64e4,_0x28c6d3,_0x3d8ea7)=>{_0x3d8ea7||(this['_bufferUpdate'](_0x28c6d3['id'],_0x28c6d3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x376b51,this['_findInsertionIndex'](_0x376b51)),_0x376b51;}async['getRevisionDocumentData'](_0xb69c66){await this['_loadRevisionData'](_0xb69c66);const _0x190cfe={};for(const _0x1d2d33 in _0xb69c66['diffData']){if(_0xb69c66['diffData'][_0x1d2d33]['attachChange']&&!_0xb69c66['diffData'][_0x1d2d33]['attachChange']['isAttached'])continue;const _0x3c22d2=this['_removeRevisionMarkers'](JSON['parse'](_0xb69c66['diffData'][_0x1d2d33]['insertions'])),_0x4d92e3=this['editor']['editing']['view']['document'],_0x2d3e82=new _0x1eec08(_0x4d92e3,_0x3c22d2['map'](_0x3c8bf7=>V(_0x3c8bf7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x190cfe[_0x1d2d33]=this['editor']['data']['processor']['toData'](_0x2d3e82),this['editor']['data']['processor']['useFillerType']('default');}return _0x190cfe;}async['getRevisionRootsAttributes'](_0x56aa40){await this['_loadRevisionData'](_0x56aa40);const _0x583d44={};for(const _0x464cf3 in _0x56aa40['diffData'])_0x56aa40['diffData'][_0x464cf3]['attachChange']&&!_0x56aa40['diffData'][_0x464cf3]['attachChange']['isAttached']||(_0x583d44[_0x464cf3]=_0x56aa40['diffData'][_0x464cf3]['attributesAfter']||{});return _0x583d44;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3b9ccb=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x339631=0x0;_0x339631<_0x3b9ccb['length'];_0x339631++){const _0x170054=_0x3b9ccb[_0x339631];let _0xd8ae9f=!0x1;for(const _0x73a27d of Object['keys'](_0x170054))void 0x0===_0x170054[_0x73a27d]?delete _0x170054[_0x73a27d]:'id'!==_0x73a27d&&(_0xd8ae9f=!0x0);_0xd8ae9f||(_0x3b9ccb[_0x339631]=null);}if(_0x3b9ccb=_0x3b9ccb['filter'](_0xa8dae5=>null!==_0xa8dae5),!_0x3b9ccb['length'])return;for(let _0x202edb=0x0;_0x202edb<_0x3b9ccb['length'];_0x202edb++){const _0x48b3e6=_0x3b9ccb[_0x202edb];void 0x0!==_0x48b3e6['fromVersion']&&void 0x0===_0x48b3e6['toVersion']&&(_0x48b3e6['toVersion']=this['repository']['getRevision'](_0x48b3e6['id'])['toVersion']),void 0x0!==_0x48b3e6['toVersion']&&void 0x0===_0x48b3e6['fromVersion']&&(_0x48b3e6['fromVersion']=this['repository']['getRevision'](_0x48b3e6['id'])['fromVersion']);}const _0x118a1b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3b9ccb,_0x118a1b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d6fe5=>{if(_0x3d6fe5){for(const _0x11bfc1 of _0x3d6fe5)this['setRevisionData']({'id':_0x11bfc1['id'],'createdAt':_0x11bfc1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x384f55,_0x252e64){let _0x1f871a=this['editor']['config']['get']('initialData'),_0x33e64b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1f871a){_0x1f871a={};for(const _0x3bafc1 of this['editor']['model']['document']['getRootNames']())_0x1f871a[_0x3bafc1]='';}if('string'==typeof _0x1f871a&&(_0x1f871a={'main':_0x1f871a}),void 0x0===_0x33e64b){_0x33e64b={};for(const _0x74f7e9 of this['editor']['model']['document']['getRootNames']())_0x33e64b[_0x74f7e9]={};}let _0x105f2b=!0x1;const _0xce3b24=Object['keys'](_0x1f871a),_0x19c162=Object['keys'](_0x384f55);for(const _0x32f087 of _0xce3b24){if(_0x1f871a[_0x32f087]!==_0x384f55[_0x32f087]&&''!==_0x1f871a[_0x32f087]['trim']()){_0x105f2b=!0x0;break;}if(!_0x384b50(_0x33e64b[_0x32f087],_0x252e64[_0x32f087])&&Object['keys'](_0x33e64b[_0x32f087])['length']>0x0){_0x105f2b=!0x0;break;}}_0x105f2b||(_0x105f2b=_0x19c162['some'](_0x2557bf=>!this['editor']['model']['document']['getRoot'](_0x2557bf))),_0x105f2b&&_0x65f3de('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1f871a,'editorRootsAttributes':_0x33e64b,'revisionData':_0x384f55,'revisionRootsAttributes':_0x252e64}),this['editor']['config']['set']('initialData',_0x384f55),this['editor']['config']['set']('rootsAttributes',_0x252e64);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5c0478=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5c0478['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x58e7b4){const _0x19268c=this['repository']['getRevisions']();_0x19268c['reverse']();let _0x21c45b=0x0;for(;_0x21c45b<_0x19268c['length'];){const _0x1bd314=_0x19268c[_0x21c45b];if(_0x1bd314===this['currentRevision']){_0x21c45b++;continue;}if(_0x1bd314['id']===this['_initialRevisionId'])break;const _0x161b5c=_0x58e7b4['toVersion']-_0x1bd314['toVersion']||_0x58e7b4['fromVersion']-_0x1bd314['fromVersion'];if(_0x161b5c>0x0)break;if(_0x161b5c<0x0)_0x21c45b++;else{if(!_0x58e7b4['creator']&&_0x1bd314['creator'])break;if(_0x1bd314['creator']||!_0x58e7b4['creator']){if(_0x58e7b4['createdAt']>_0x1bd314['createdAt'])break;_0x21c45b++;}else _0x21c45b++;}}return _0x21c45b;}['setRevisionData'](_0x55d7e5){const _0x4e273d=this['repository']['getRevision'](_0x55d7e5['id']);if(_0x55d7e5['createdAt']&&(_0x55d7e5['createdAt']=new Date(_0x55d7e5['createdAt'])),_0x55d7e5['authorsIds']){const _0x13c196=this['editor']['plugins']['get']('Users');_0x55d7e5['authors']=_0x55d7e5['authorsIds']['map'](_0x3fe2b2=>_0x13c196['getUser'](_0x3fe2b2));}_0x4e273d['_update'](_0x55d7e5,!0x0);}['buildRevisionData']({revision:_0x388089=null,from:_0x59820e=null,to:_0xad64c4=null}){_0x59820e=null!==_0x59820e?_0x59820e:_0x388089['fromVersion'],_0xad64c4=null!==_0xad64c4?_0xad64c4:_0x388089['toVersion'];const _0x53433d=this['_revisionDataBuilder']['getData'](_0x59820e,_0xad64c4),_0x2ebc30={'diffData':_0x53433d['diffData'],'authorsIds':_0x53433d['authorsIds'],'fromVersion':_0x59820e,'toVersion':_0xad64c4};if(!_0x388089||_0xad64c4!==_0x388089['toVersion']){const _0x596e7a=_0xad64c4-0x1,_0xdd025e=this['_source']['history']['getOperation'](_0x596e7a);_0x2ebc30['createdAt']=_0xdd025e&&_0xdd025e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x59820e===this['_loadedStateData']['fromVersion']){for(const _0x212698 of this['_loadedStateData']['authors'])_0x2ebc30['authorsIds']['includes'](_0x212698['id'])||_0x2ebc30['authorsIds']['push'](_0x212698['id']);}return _0x2ebc30;}['_loadRevisionData'](_0x2b960){if(!_0x2b960||_0x2b960['diffData'])return Promise['resolve']();{const _0x1ae684=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1ae684,'revisionId':_0x2b960['id']})['then'](_0x5e748e=>{_0x2b960['diffData']=_0x5e748e['diffData'];});}}['_bufferUpdate'](_0x2e320a,_0x5b33bc,_0x649c1d){if(this['_bufferedUpdates']['has'](_0x2e320a)){const _0x1020a3=this['_bufferedUpdates']['get'](_0x2e320a);_0x5b33bc=_0x649c1d?{..._0x1020a3,..._0x5b33bc}:{..._0x5b33bc,..._0x1020a3};}this['_bufferedUpdates']['set'](_0x2e320a,_0x5b33bc);}['_getFromVersion'](_0x2320fe){const _0xa20336=this['repository']['getRevisions']();_0xa20336['reverse'](),_0xa20336['shift']();const _0x18e280=_0xa20336['find'](_0x9f2eeb=>_0x9f2eeb['toVersion']<=_0x2320fe)['toVersion'];return _0x18e280<this['_startingVersion']?this['_startingVersion']:_0x18e280;}['_createInitialRevision'](_0x2942df){const _0x162fd1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x162fd1)this['_initialRevisionId']=_0x162fd1['id'];else{const _0x295852=!this['editor']['model']['document']['roots']['find'](_0x5a0a27=>this['editor']['model']['hasContent'](_0x5a0a27)),_0x27e75e=this['editor']['plugins']['get']('Users')['me']['id'],_0x4164da=R(this['editor']['locale'],_0x295852?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2942df,'to':_0x2942df,'id':this['_initialRevisionId'],'name':_0x4164da,'creatorId':_0x27e75e});}}['_createCurrentRevision'](_0x697cd0){const _0x2416cc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2416cc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x697cd0,'to':_0x697cd0,'id':_0x2416cc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x204168,from:_0x2ab597,to:_0x270480,creatorId:_0x18ce49,id:_0x8609c1}){const _0xd5a8ce=this['buildRevisionData']({'from':_0x2ab597,'to':_0x270480});_0xd5a8ce['name']=_0x204168,_0xd5a8ce['creatorId']=_0x18ce49,_0xd5a8ce['id']=_0x8609c1;const _0x144b4f=this['addRevisionData'](_0xd5a8ce);return this['adapter']&&this['_bufferUpdate'](_0xd5a8ce['id'],_0xd5a8ce,!0x0),_0x144b4f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x50ce2b){return(_0x50ce2b=_0x50ce2b['filter'](_0x55dd84=>!_0x55dd84['name']||'revision-start'!==_0x55dd84['name']&&'revision-end'!==_0x55dd84['name']))['forEach'](_0x4e6d8c=>{'string'!=typeof _0x4e6d8c&&(_0x4e6d8c['children']=this['_removeRevisionMarkers'](_0x4e6d8c['children']),_0x4e6d8c['attributes']=_0x4e6d8c['attributes']['filter'](_0x4c4a32=>!_0x4c4a32[0x0]['startsWith']('data-revision-')));}),_0x50ce2b;}}function V(_0x3a2f5d,_0x4cd229){const _0x49e0d4=_0x4cd229['editing']['view']['document'];if('string'==typeof _0x3a2f5d)return new _0x3cf183(_0x49e0d4,_0x3a2f5d);{const _0x3d6d9e=_0x3a2f5d['children']['map'](_0x37671d=>V(_0x37671d,_0x4cd229));return new(C[_0x3a2f5d['type']]||_0x5b66af)(_0x49e0d4,_0x3a2f5d['name'],_0x3a2f5d['attributes'],_0x3d6d9e);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x24e051){this['editor']=_0x24e051,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'](_0x21ead8){this['source']=_0x21ead8;const _0x2c81a8=new Map(),_0x549e31=new Map(),_0x216f45=this['editor']['model']['document']['roots']['map'](_0x1b63d9=>_0x1b63d9['rootName']);for(const _0x3e57d4 of _0x216f45){const _0x10f8b2=this['editor']['model']['document']['getRoot'](_0x3e57d4),_0x1dd24c=F(_0x10f8b2);_0x2c81a8['set'](_0x3e57d4,_0x1dd24c),_0x549e31['set'](_0x3e57d4,Object['fromEntries'](_0x10f8b2['getAttributes']()));}const _0x308ae1=Array['from'](this['editor']['model']['markers'])['map'](_0x10a538=>[_0x10a538['name'],_0x10a538['getRange']()]),_0x590d31=this['source']['version'];this['_saveMetaData'](_0x590d31,_0x2c81a8,_0x308ae1,_0x549e31),this['_startingRevisionId']=this['_revisionId'];const _0x5bf1b0=new Map(),_0x4b7e05=new Map();for(const _0x17987c of _0x216f45){const _0x2e726d=B(_0x17987c);_0x5bf1b0['set'](_0x17987c,_0x2e726d),_0x4b7e05['set'](_0x17987c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5bf1b0,[],_0x4b7e05);}['getData'](_0x32eac8,_0x3e7db8){if(this['_lastFrom']===_0x32eac8&&this['_lastTo']<=_0x3e7db8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3e7db8,!0x0);else{if(!this['_savedMetaData']['has'](_0x32eac8)){const _0x26dd08=this['_getPreviousFrom'](_0x32eac8);this['_calculateMetaData'](_0x26dd08,_0x32eac8,!0x1);}this['_calculateMetaData'](_0x32eac8,_0x3e7db8,!0x0);}return this['_lastFrom']=_0x32eac8,this['_lastTo']=_0x3e7db8,this['_getState']();}['loadState'](_0x23ca56){this['_reset'](),this['_lastFrom']=_0x23ca56['fromVersion'],this['_lastTo']=_0x23ca56['toVersion'];for(const _0x3194f8 in _0x23ca56['diffData']){const _0x3d82e6=_0x23ca56['diffData'][_0x3194f8]['attachChange'],_0x25a46b=_0x4f45c1(_0x23ca56['diffData'][_0x3194f8]['attributesBefore'])||{},_0x4c5d99=this['_makeModelFromViewString'](_0x23ca56['diffData'][_0x3194f8]['deletions']);_0x4c5d99['rootName']=_0x3194f8,_0x4c5d99['_isAttached']=!_0x3d82e6||!_0x3d82e6['isAttached'],_0x4c5d99['isAttached']=()=>_0x4c5d99['_isAttached'],this['_baseRoots']['set'](_0x3194f8,_0x4c5d99),this['_baseRootsAttributes']['set'](_0x3194f8,_0x25a46b),_0x3d82e6&&this['_touchedRoots']['set'](_0x3194f8,_0x3d82e6);const _0x1dab7a=this['_makeIdsRoot'](_0x4c5d99);this['_baseIdsRoots']['set'](_0x3194f8,_0x1dab7a);for(const [_0x3074f0,_0x260758]of _0x4c5d99['markers']){if(!_0x3074f0['startsWith']('revision:'))continue;const _0x33242d=_0x3074f0['split'](':')[0x2];for(const _0x5c089f of _0x260758['getWalker']({'singleCharacters':!0x0})){const _0x5853f1=this['_getVidAttributeName'](_0x5c089f),_0x41f411='elementEnd'==_0x5c089f['type']?_0x5c089f['previousPosition']['path']['slice'](0x0,-0x1):_0x5c089f['previousPosition']['path'],_0xea1c7=_0x1dab7a['getNodeByPath'](_0x41f411)['getAttribute'](_0x5853f1);this['_touched']['set'](_0xea1c7,{'userId':_0x33242d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x546a85=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xf25ce8=>!this['_touched']['has'](_0xf25ce8));let _0x223879=0x0;const _0xa7e8bb=new Map();for(const _0x208104 in _0x23ca56['diffData']){const _0xbe4a3b=_0x23ca56['diffData'][_0x208104]['attachChange'],_0x28af71=_0x4f45c1(_0x23ca56['diffData'][_0x208104]['attributesAfter'])||{},_0x5c0821=this['_makeModelFromViewString'](_0x23ca56['diffData'][_0x208104]['insertions']);_0x5c0821['rootName']=_0x208104,_0x5c0821['_isAttached']=!_0xbe4a3b||_0xbe4a3b['isAttached'],_0x5c0821['isAttached']=()=>_0x5c0821['_isAttached'],this['_diffRoots']['set'](_0x208104,_0x5c0821),this['_diffRootsAttributes']['set'](_0x208104,_0x28af71);const _0x435758=this['_makeIdsRoot'](_0x5c0821,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x208104,_0x435758),_0xa7e8bb['set'](_0x208104,_0x5c0821['isAttached']()?_0x28af71:{});for(const [_0x25e338,_0x28ba36]of _0x5c0821['markers']){if(!_0x25e338['startsWith']('revision:'))continue;const _0x17d8ca=_0x25e338['split'](':')[0x2];for(const _0x4e05f7 of _0x28ba36['getWalker']({'singleCharacters':!0x0})){const _0x8208e2=this['_getVidAttributeName'](_0x4e05f7),_0x58b8a8=this['_revisionId']++,_0x18a779='elementEnd'==_0x4e05f7['type']?_0x4e05f7['previousPosition']['path']['slice'](0x0,-0x1):_0x4e05f7['previousPosition']['path'];_0x435758['getNodeByPath'](_0x18a779)['_setAttribute'](_0x8208e2,_0x58b8a8),this['_touched']['set'](_0x58b8a8,{'userId':_0x17d8ca});}}for(const _0xbdb440 of this['editor']['model']['createRangeIn'](_0x5c0821)['getWalker']({'singleCharacters':!0x0})){const _0x9bd20e=this['_getVidAttributeName'](_0xbdb440),_0x21fc30='elementEnd'==_0xbdb440['type']?_0xbdb440['previousPosition']['path']['slice'](0x0,-0x1):_0xbdb440['previousPosition']['path'],_0x2d5168=_0x435758['getNodeByPath'](_0x21fc30);_0x2d5168['getAttribute'](_0x9bd20e)>0x0||_0x2d5168['_setAttribute'](_0x9bd20e,_0x546a85[_0x223879++]);}for(const [_0x28761b,_0x228513]of _0x5c0821['markers'])_0x28761b['startsWith']('revision:')||this['_markers']['set'](_0x28761b,_0x228513);}const _0x101be7=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x101be7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x101be7,0x1));const _0x43f55e=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x43f55e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f55e,0x1));const _0x4062a2=Array['from'](this['_diffRoots'])['map'](([_0x9c0c63,_0x531ed7])=>[_0x9c0c63,F(_0x531ed7)]);this['_saveMetaData'](this['_lastTo'],_0x4062a2,this['_markers'],_0xa7e8bb);}['_makeModelFromViewString'](_0xb839aa){const _0xe3c752=JSON['parse'](_0xb839aa),_0xeeb0fd=this['editor']['editing']['view']['document'],_0x2c0293=new _0x1eec08(_0xeeb0fd,_0xe3c752['map'](_0x17cf9b=>V(_0x17cf9b,this['editor'])));return this['editor']['data']['toModel'](_0x2c0293);}['_saveMetaData'](_0x2cbb0a,_0x536e8f,_0x10b193,_0x4759de){const _0x33d200=new Map(_0x536e8f),_0x3dbee5=new Map(_0x4f45c1(_0x4759de)),_0x2abe03=new Map();for(const [_0x402680,_0x4bb5d9]of _0x10b193)_0x2abe03['set'](_0x402680,{'start':_0x4bb5d9['start']['clone'](),'end':_0x4bb5d9['end']['clone'](),'rootName':_0x4bb5d9['root']['rootName']});this['_savedMetaData']['set'](_0x2cbb0a,{'roots':_0x33d200,'markers':_0x2abe03,'rootsAttributes':_0x3dbee5});}['_removeMetaData'](_0x1b1340){this['_savedMetaData']['delete'](_0x1b1340);}['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'](_0x127b14,_0x4c7260=null){let _0x7cae5c=null;_0x127b14['is']('documentFragment')||(_0x7cae5c=new ft(_0x127b14['name'],{'vid_start':null===_0x4c7260?this['_revisionId']++:_0x4c7260++}));const _0x3b1cf3=[];for(const _0x45393e of _0x127b14['getChildren']())if(_0x45393e['is']('element')){_0x3b1cf3['push'](this['_makeIdsRoot'](_0x45393e,_0x4c7260));const _0x231d9f=_0x3b1cf3[_0x3b1cf3['length']-0x1];null!==_0x4c7260&&(_0x4c7260=_0x231d9f['is']('element','$text')?_0x231d9f['getAttribute']('vid')+0x1:_0x231d9f['getAttribute']('vid_end')+0x1);}else{for(let _0xc384ec=0x0;_0xc384ec<_0x45393e['offsetSize'];_0xc384ec++)_0x3b1cf3['push'](new ft('$text',{'vid':null===_0x4c7260?this['_revisionId']++:_0x4c7260++}));}if(_0x127b14['is']('documentFragment')){const _0x4a03f2=B(_0x127b14['rootName']);return _0x4a03f2['_insertChild'](0x0,_0x3b1cf3),_0x4a03f2;}return _0x7cae5c['_setAttribute']('vid_end',null===_0x4c7260?this['_revisionId']++:_0x4c7260++),_0x7cae5c['_insertChild'](0x0,_0x3b1cf3),_0x7cae5c;}['_calculateMetaData'](_0xde0de4,_0x249f76,_0x1b38a6){this['_reset']();const {roots:_0x54f740,markers:_0xfc1a3,rootsAttributes:_0x76f39f}=this['_savedMetaData']['get'](_0xde0de4);this['_baseRoots']=new Map(_0x54f740),this['_baseRootsAttributes']=new Map(_0x4f45c1(_0x76f39f));for(const [_0xfcac6e,_0x4bd437]of this['_baseRoots'])if('$graveyard'!==_0xfcac6e&&(this['_diffRoots']['set'](_0xfcac6e,F(_0x4bd437)),this['_diffRootsAttributes']=new Map(_0x4f45c1(_0x76f39f)),_0x1b38a6)){const _0x8caa87=this['_revisionId'];this['_idsRoots']['set'](_0xfcac6e,this['_makeIdsRoot'](_0x4bd437)),this['_baseIdsRoots']['set'](_0xfcac6e,this['_makeIdsRoot'](_0x4bd437,_0x8caa87));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1b38a6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x922026,_0x564aca]of _0xfc1a3){const _0x298010=this['_baseRoots']['get'](_0x564aca['rootName']),_0x24d392=this['_diffRoots']['get'](_0x564aca['rootName']),_0x2d32b5=new vt(this['_fixPosition'](_0x564aca['start'],_0x298010),this['_fixPosition'](_0x564aca['end'],_0x298010)),_0x2e8c97=this['_fixRange'](_0x2d32b5,_0x24d392);_0x298010['markers']['set'](_0x922026,_0x2d32b5),this['_markers']['set'](_0x922026,_0x2e8c97);}this['_applyOperations'](_0xde0de4,_0x249f76,_0x1b38a6);}['_applyOperations'](_0x6d7731,_0x24d20a,_0x3ec562){for(const _0x517b55 of this['source']['getOperations'](_0x6d7731,_0x24d20a))this['_handleOperation'](_0x517b55,_0x3ec562);for(const _0x40d54e of this['_diffRoots']['values']())_0x40d54e['markers']['clear']();for(const [_0x2eb1c0,_0x520ae4]of this['_markers']){this['_diffRoots']['get'](_0x520ae4['root']['rootName'])['markers']['set'](_0x2eb1c0,_0x520ae4['clone']());}const _0x2a8e07=new Map(),_0x2b6f13=new Map();for(const [_0x37f670,_0x4ef6f4]of this['_diffRoots'])_0x2a8e07['set'](_0x37f670,F(_0x4ef6f4)),_0x2b6f13['set'](_0x37f670,this['_diffRootsAttributes']['get'](_0x37f670));this['_saveMetaData'](_0x24d20a,_0x2a8e07,this['_markers'],_0x2b6f13);}['_getPreviousFrom'](_0x2cb723){const _0x559283=Array['from'](this['_savedMetaData']['keys']());_0x559283['sort']((_0x37bf98,_0x2ca0c3)=>_0x37bf98-_0x2ca0c3),_0x559283['reverse']();for(const _0x4bce7b of _0x559283)if(_0x4bce7b<_0x2cb723)return _0x4bce7b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x32f136,_0x2790a2){const _0x22b11b=Array['from'](_0x2790a2['markers'])['map'](([_0x3a6d57,_0x36092f])=>[_0x3a6d57,this['_fixRange'](_0x36092f,_0x32f136)]);_0x32f136['markers']=new Map(_0x22b11b);}['_transformMarkers'](_0x52d0cf){for(const _0x3ef291 of this['_markers']['values']()){const _0x5d252e=_0x3ef291['getTransformedByOperation'](_0x52d0cf),_0x373d8b=vt['_createFromRanges'](_0x5d252e);_0x3ef291['start']=_0x373d8b['start'],_0x3ef291['end']=_0x373d8b['end'];}}['_handleOperation'](_0x3f270a,_0x18d656){if('addRoot'!=_0x3f270a['type']&&'detachRoot'!=_0x3f270a['type']){if('insert'==_0x3f270a['type']){const _0x29ae7a=_0x3f270a['position']['root']['rootName'];this['_diffRoots']['has'](_0x29ae7a)||(this['_diffRoots']['set'](_0x29ae7a,B(_0x29ae7a,!0x0)),this['_diffRootsAttributes']['set'](_0x29ae7a,{}),_0x18d656&&this['_idsRoots']['set'](_0x29ae7a,B(_0x29ae7a,!0x0)));}else{if('addRootAttribute'==_0x3f270a['type']||'removeRootAttribute'==_0x3f270a['type']||'changeRootAttribute'==_0x3f270a['type'])return void this['_handleRootAttributeOperation'](_0x3f270a);'marker'==_0x3f270a['type']&&this['_handleMarkerOperation'](_0x3f270a);}if('marker'!==_0x3f270a['type']){const _0x16e3ff=this['_cloneOperation'](_0x3f270a,this['_diffRoots']);_0x16e3ff['_execute'](),this['_transformMarkers'](_0x16e3ff);}if(_0x18d656)switch(_0x3f270a['type']){case'insert':this['_handleInsertOperation'](_0x3f270a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f270a);break;case'merge':this['_handleMergeOperation'](_0x3f270a);break;case'split':this['_handleSplitOperation'](_0x3f270a);}}else this['_handleRootOperation'](_0x3f270a,_0x18d656);}['_cloneOperation'](_0xf0cae8,_0x28aaa3){const _0x1cbd5d=_0xf0cae8['clone']();return _0x1cbd5d['_authorId']=_0xf0cae8['_authorId'],this['_fixOperation'](_0x1cbd5d,_0x28aaa3),_0x1cbd5d;}['_getBaseVids'](_0x19286d){return _0x19286d['map'](_0x4bd5ef=>{const _0x1d3737=this['_getVidAttributeName'](_0x4bd5ef);return Number(_0x4bd5ef['item']['getAttribute'](_0x1d3737));});}['_generateTape'](_0x34fe49,_0x143d4d){if(_0x34fe49['is']('element','$text'))_0x143d4d['push']({'item':_0x34fe49,'type':'text'});else{_0x34fe49['is']('element')&&_0x143d4d['push']({'item':_0x34fe49,'type':'elementStart'});for(const _0x47a310 of _0x34fe49['getChildren']())this['_generateTape'](_0x47a310,_0x143d4d);_0x34fe49['is']('element')&&_0x143d4d['push']({'item':_0x34fe49,'type':'elementEnd'});}return _0x143d4d;}['_getState'](){const _0x5d2a49=new Map(this['_touched']),_0x275581=new Map(_0x5d2a49),_0x485efd=new Map(),_0x10100d={'insertions':{},'deletions':{}},_0x19b379={'insertions':{},'deletions':{}},_0x1baaf4=new Map(),_0x569380=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x569380['delete']('$graveyard');for(const _0x51f92c of _0x569380){const _0x20f7e2=this['_diffRoots']['get'](_0x51f92c)||B(_0x51f92c,!0x1),_0x2f033d=this['_baseRoots']['get'](_0x51f92c)||B(_0x51f92c,!0x1);_0x20f7e2['isAttached']()||_0x2f033d['isAttached']()?(_0x10100d['insertions'][_0x51f92c]=F(_0x20f7e2),_0x10100d['deletions'][_0x51f92c]=F(_0x2f033d),this['_copyMarkers'](_0x10100d['deletions'][_0x51f92c],_0x2f033d),this['_copyMarkers'](_0x10100d['insertions'][_0x51f92c],_0x20f7e2),_0x19b379['insertions'][_0x51f92c]=this['_generateTape'](this['_idsRoots']['get'](_0x51f92c),[]),_0x19b379['deletions'][_0x51f92c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x51f92c)||B(_0x51f92c,!0x1),[])):_0x569380['delete'](_0x51f92c);}for(const _0x52160f of _0x569380){const _0x3120e3=_0x19b379['insertions'][_0x52160f];for(const _0x5bb173 of _0x3120e3){const _0x2cb7c5=this['_getVidAttributeName'](_0x5bb173),_0x4139ea=_0x5bb173['item']['getAttribute'](_0x2cb7c5);_0x275581['delete'](_0x4139ea),_0x4139ea>=this['_startingRevisionId']&&_0x485efd['set'](_0x4139ea,_0x5d2a49['get'](_0x4139ea));}}for(const _0x56b2d3 of _0x569380){const _0x193483=_0x19b379['insertions'][_0x56b2d3],_0x1d0588=this['_getBaseVids'](_0x19b379['deletions'][_0x56b2d3]);let _0x1e14aa=0x0;for(const _0x175df4 of _0x193483){const _0x73336f=this['_getVidAttributeName'](_0x175df4),_0x2ee1fe=_0x175df4['item']['getAttribute'](_0x73336f);if(!_0x485efd['has'](_0x2ee1fe)&&!_0x1baaf4['has'](_0x2ee1fe)){if(_0x275581['has'](_0x2ee1fe))_0x1e14aa++;else{if(_0x2ee1fe!=_0x1d0588[_0x1e14aa]){const _0x1d2503=_0x5d2a49['get'](_0x2ee1fe)||_0x5d2a49['get'](_0x1d0588[_0x1e14aa]);for(;_0x2ee1fe!=_0x1d0588[_0x1e14aa];)_0x275581['has'](_0x1d0588[_0x1e14aa])||(_0x1baaf4['set'](_0x1d0588[_0x1e14aa],_0x1d2503),_0x5d2a49['set'](_0x1d0588[_0x1e14aa],_0x1d2503)),_0x1e14aa++;}_0x1e14aa++;}}}}for(const _0x582ade of _0x569380){const _0x5e0860=_0x19b379['insertions'][_0x582ade];for(const _0x2aa172 of _0x5e0860){const _0x4db874=this['_getVidAttributeName'](_0x2aa172),_0x435083=_0x2aa172['item']['getAttribute'](_0x4db874);if(_0x1baaf4['has'](_0x435083)){const _0x4329c3=_0x1baaf4['get'](_0x435083);_0x275581['has'](_0x435083)||_0x275581['set'](_0x435083,{..._0x4329c3}),_0x485efd['set'](_0x435083,{..._0x4329c3});}}}for(const _0x58e06a of _0x275581['keys']())_0x58e06a>=this['_startingRevisionId']&&_0x275581['delete'](_0x58e06a);const _0x476803=new Map();for(const _0x3714ff of _0x569380){let _0x4b398a=_0x19b379['insertions'][_0x3714ff];for(const _0x7b9393 of _0x4b398a)if(_0x7b9393['item']['is']('element','tableCell')){const _0x13bb5e=this['_getVidAttributeName'](_0x7b9393),_0x4ca954=_0x7b9393['item']['getAttribute'](_0x13bb5e);if(_0x485efd['has'](_0x4ca954)){const _0x3aef95=_0x7b9393['item']['parent']['parent']['getAttribute']('vid_start'),_0xfcd70f=_0x476803['get'](_0x3aef95)||new Set();_0xfcd70f['add'](_0x485efd['get'](_0x4ca954)['userId']),_0x476803['set'](_0x3aef95,_0xfcd70f);}}_0x4b398a=_0x19b379['deletions'][_0x3714ff];for(const _0x5cd719 of _0x4b398a)if(_0x5cd719['item']['is']('element','tableCell')){const _0x260f89=this['_getVidAttributeName'](_0x5cd719),_0x4b56d4=_0x5cd719['item']['getAttribute'](_0x260f89);if(_0x275581['has'](_0x4b56d4)){const _0x1118c2=_0x5cd719['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ec7e3=_0x476803['get'](_0x1118c2)||new Set();_0x1ec7e3['add'](_0x275581['get'](_0x4b56d4)['userId']),_0x476803['set'](_0x1118c2,_0x1ec7e3);}}for(const _0x1c72f0 of _0x476803['keys']())(_0x485efd['has'](_0x1c72f0)||_0x275581['has'](_0x1c72f0))&&_0x476803['delete'](_0x1c72f0);}for(const _0x4aaa66 of _0x569380){const _0x32e0a6=_0x19b379['insertions'][_0x4aaa66];let _0x2a3559=null,_0x383162=null;for(const _0x5e63c3 of _0x32e0a6){const _0x49f716=this['_getVidAttributeName'](_0x5e63c3),_0x4c89df=_0x5e63c3['item']['getAttribute'](_0x49f716),_0x1e6212=_0x476803['get'](_0x4c89df);_0x1e6212&&'elementStart'==_0x5e63c3['type']&&(_0x2a3559=Array['from'](_0x1e6212)[0x0],_0x383162=_0x5e63c3['item']['getAttribute']('vid_end')),_0x2a3559&&(_0x275581['set'](_0x4c89df,{'userId':_0x2a3559}),_0x485efd['set'](_0x4c89df,{'userId':_0x2a3559})),_0x4c89df==_0x383162&&(_0x2a3559=null,_0x383162=null);}}const _0x388d83={},_0x36eddc=new Set();for(const _0x15bc90 of _0x569380){const _0x41d027=_0x10100d['deletions'][_0x15bc90],_0x5bac84=_0x10100d['insertions'][_0x15bc90];for(const {userId:_0x2dc337}of this['_touchedMarkers']['values']())null!==_0x2dc337&&_0x36eddc['add'](_0x2dc337);for(const {userId:_0x38775e}of this['_touchedRoots']['values']())null!==_0x38775e&&_0x36eddc['add'](_0x38775e);this['_markChanges'](_0x5bac84,_0x19b379['insertions'][_0x15bc90],_0x485efd,'insertion',_0x36eddc),this['_markChanges'](_0x41d027,_0x19b379['deletions'][_0x15bc90],_0x275581,'deletion',_0x36eddc),_0x388d83[_0x15bc90]={'insertions':this['_prepareViewToSave'](_0x5bac84),'deletions':this['_prepareViewToSave'](_0x41d027),'attachChange':this['_touchedRoots']['get'](_0x15bc90)||null,'attributesBefore':_0x4f45c1(this['_baseRootsAttributes']['get'](_0x15bc90))||{},'attributesAfter':_0x4f45c1(this['_diffRootsAttributes']['get'](_0x15bc90))};}return{'diffData':_0x388d83,'authorsIds':Array['from'](_0x36eddc)};}['_processRootBeforeSave'](_0x268ad6){for(const [,_0x17d90f]of _0x268ad6['markers']){const _0x9be02=_0x17d90f['start']['getAncestors']()['filter'](_0x28c4e3=>'tableCell'==_0x28c4e3['name']);for(const _0x461218 of _0x9be02)0x1==_0x461218['childCount']&&_0x461218['getChild'](0x0)['is']('element','paragraph')&&_0x461218['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18fe99){this['_processRootBeforeSave'](_0x18fe99);const _0x3820e6=this['editor']['data']['toView'](_0x18fe99,{}),_0x2df2e6=Array['from'](_0x3820e6['getChildren']())['map'](_0x544b3d=>this['_getViewJson'](_0x544b3d));return JSON['stringify'](_0x2df2e6);}['_getViewJson'](_0x349c84){if(_0x349c84['is']('$text'))return _0x349c84['data'];{const _0x36fe9a=_0x349c84;return{'type':Object['keys'](C)['find'](_0x2dea99=>_0x349c84 instanceof C[_0x2dea99]),'name':_0x36fe9a['name'],'attributes':Array['from'](_0x36fe9a['getAttributes']()),'children':Array['from'](_0x36fe9a['getChildren']())['map'](_0x232d5e=>this['_getViewJson'](_0x232d5e))};}}['_markChanges'](_0x1ff3aa,_0x263a80,_0x45d710,_0x3cbc0f,_0x545be3){let _0x17d2a4=null,_0x13b6d5=null,_0x35718b=0x0;const _0x2f09d5=this['editor']['model'];for(let _0x19048a=0x0;_0x19048a<_0x263a80['length'];_0x19048a++){const _0x49fdfc=this['_getVidAttributeName'](_0x263a80[_0x19048a]),_0x16ee47=_0x263a80[_0x19048a]['item']['getAttribute'](_0x49fdfc),_0x1ff1b8=_0x45d710['get'](_0x16ee47),_0xcbabc6=_0x19048a==_0x263a80['length']-0x1;(!_0x17d2a4&&_0x1ff1b8&&(_0x17d2a4=_0x1ff1b8,_0x13b6d5=_0x263a80[_0x19048a]),_0x17d2a4&&(!_0x1ff1b8||_0x1ff1b8['userId']!=_0x17d2a4['userId']))&&(_0x4c1b20(_0x1ff1b8,J(_0x13b6d5,_0x1ff3aa,_0x2f09d5),J(_0x263a80[_0x19048a],_0x1ff3aa,_0x2f09d5)),_0x17d2a4=_0x1ff1b8||null,_0x13b6d5=_0x1ff1b8?_0x263a80[_0x19048a]:null),_0x17d2a4&&_0xcbabc6&&_0x4c1b20(_0x1ff1b8,J(_0x13b6d5,_0x1ff3aa,_0x2f09d5),q(_0x263a80[_0x19048a],_0x1ff3aa,_0x2f09d5));}function _0x4c1b20(_0x378b87,_0x1f5125,_0x37df93){const _0xdc88ab=_0x17d2a4['userId'],_0x4029af='revision:'+_0x3cbc0f+':'+_0xdc88ab+':'+_0x35718b++,_0x48893a=_0x2f09d5['createRange'](_0x1f5125,_0x37df93);_0x1ff3aa['markers']['set'](_0x4029af,_0x48893a),null!==_0xdc88ab&&_0x545be3['add'](_0xdc88ab);}}['_getVidAttributeName'](_0x1a7e80){switch(_0x1a7e80['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3070a7,_0x2cb810){_0x3070a7['baseVersion']=null;for(const _0x23b96b in _0x3070a7){const _0x5e2e27=_0x3070a7[_0x23b96b];if(_0x5e2e27 instanceof gt){const _0x23aaaf=_0x2cb810['get'](_0x5e2e27['root']['rootName']);_0x3070a7[_0x23b96b]=this['_fixPosition'](_0x5e2e27,_0x23aaaf);}if(_0x5e2e27 instanceof vt){const _0x21d810=_0x2cb810['get'](_0x5e2e27['root']['rootName']);_0x3070a7[_0x23b96b]=this['_fixRange'](_0x5e2e27,_0x21d810);}'root'===_0x23b96b&&(_0x3070a7['root']=_0x2cb810['get'](_0x3070a7['root']['rootName']));}}['_fixRange'](_0x38b3f0,_0x88a9ec){return this['editor']['model']['createRange'](this['_fixPosition'](_0x38b3f0['start'],_0x88a9ec),this['_fixPosition'](_0x38b3f0['end'],_0x88a9ec));}['_fixPosition'](_0x251b28,_0x39ef12){return this['editor']['model']['createPositionFromPath'](_0x39ef12,_0x251b28['path'],_0x251b28['stickiness']);}['_handleInsertOperation'](_0x3955f6){const _0x382862=this['_idsRoots']['get'](_0x3955f6['position']['root']['rootName']),_0x617d5a=this['_fixPosition'](_0x3955f6['position'],_0x382862),_0x566e90=null===_0x3955f6['_authorId']?null:_0x3955f6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2aa765=_0x617d5a['parent'],_0x508093=this['_revisionId'],_0x344485=[];for(const _0x18d454 of _0x3955f6['nodes'])if(_0x18d454['is']('element'))_0x344485['push'](this['_makeIdsRoot'](_0x18d454));else{for(let _0x668993=0x0;_0x668993<_0x18d454['offsetSize'];_0x668993++)_0x344485['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5427ea=this['_revisionId'];for(let _0x4682b7=_0x508093;_0x4682b7<_0x5427ea;_0x4682b7++)this['_touched']['set'](_0x4682b7,{'userId':_0x566e90});_0x2aa765['_insertChild'](_0x617d5a['offset'],_0x344485);}['_handleMoveOperation'](_0x369f29){(_0x369f29=this['_cloneOperation'](_0x369f29,this['_idsRoots']))['_execute']();const _0x366cfc=null===_0x369f29['_authorId']?null:_0x369f29['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d02dc=_0x369f29['getMovedRangeStart'](),_0x3508b5=_0x2d02dc['parent'],_0x31b798=_0x2d02dc['offset'];!function _0x3ffc3f(_0x2e8c7d,_0x589853,_0x59fa02,_0x3fcd5b){for(let _0x35777c=_0x59fa02;_0x35777c<_0x3fcd5b;_0x35777c++){const _0x13e4e6=_0x589853['getChild'](_0x35777c);_0x13e4e6['is']('element','$text')?_0x2e8c7d['set'](_0x13e4e6['getAttribute']('vid'),{'userId':_0x366cfc}):(_0x2e8c7d['set'](_0x13e4e6['getAttribute']('vid_start'),{'userId':_0x366cfc}),_0x3ffc3f(_0x2e8c7d,_0x13e4e6,0x0,_0x13e4e6['childCount']),_0x2e8c7d['set'](_0x13e4e6['getAttribute']('vid_end'),{'userId':_0x366cfc}));}}(this['_touched'],_0x3508b5,_0x31b798,_0x31b798+_0x369f29['howMany']);}['_handleMergeOperation'](_0x1967e5){const _0x4c215d=null===(_0x1967e5=this['_cloneOperation'](_0x1967e5,this['_idsRoots']))['_authorId']?null:_0x1967e5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c5dbb=_0x1967e5['targetPosition']['parent'],_0x11db93=_0x1967e5['sourcePosition']['parent'],_0x23e702=_0x5c5dbb['getAttribute']('vid_end'),_0x340578=_0x11db93['getAttribute']('vid_start');_0x5c5dbb['_setAttribute']('vid_end',_0x11db93['getAttribute']('vid_end')),_0x11db93['_setAttribute']('vid_end',_0x23e702),this['_touched']['set'](_0x340578,{'userId':_0x4c215d}),this['_touched']['set'](_0x23e702,{'userId':_0x4c215d}),_0x1967e5['_execute']();}['_handleSplitOperation'](_0x45f1d6){const _0x455452=null===(_0x45f1d6=this['_cloneOperation'](_0x45f1d6,this['_idsRoots']))['_authorId']?null:_0x45f1d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3896bc=_0x45f1d6['graveyardPosition'],_0x1458b5=_0x45f1d6['splitPosition']['parent'];_0x45f1d6['_execute']();const _0xe1c8ed=_0x1458b5['getAttribute']('vid_end'),_0x188515=_0x45f1d6['insertionPosition']['nodeAfter'];if(_0x3896bc){const _0x536d8b=_0x188515['getAttribute']('vid_end'),_0x56c274=_0x1458b5['getAttribute']('vid_end');_0x1458b5['_setAttribute']('vid_end',_0x536d8b),_0x188515['_setAttribute']('vid_end',_0x56c274),this['_touched']['set'](_0x1458b5['getAttribute']('vid_end'),{'userId':_0x455452}),this['_touched']['set'](_0x188515['getAttribute']('vid_start'),{'userId':_0x455452});}else{const _0x20ec13=this['_revisionId']++,_0xf65064=this['_revisionId']++;_0x1458b5['_setAttribute']('vid_end',_0x20ec13),_0x188515['_setAttribute']('vid_start',_0xf65064),_0x188515['_setAttribute']('vid_end',_0xe1c8ed),this['_touched']['set'](_0x20ec13,{'userId':_0x455452}),this['_touched']['set'](_0xf65064,{'userId':_0x455452});}}['_handleMarkerOperation'](_0x451952){if(!_0x451952['affectsData'])return;const _0x1d7230=(_0x451952=this['_cloneOperation'](_0x451952,this['_diffRoots']))['oldRange']?_0x451952['oldRange']['root']:null,_0x1dac68=_0x451952['newRange']?_0x451952['newRange']['root']:null;_0x1d7230&&this['_markers']['delete'](_0x451952['name']),_0x1dac68&&this['_markers']['set'](_0x451952['name'],_0x451952['newRange']['clone']());const _0x4c42d7=null===_0x451952['_authorId']?null:_0x451952['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e5de9=_0x451952['name'];if(!this['_touchedMarkers']['has'](_0x3e5de9))return void this['_touchedMarkers']['set'](_0x3e5de9,{'range':_0x451952['oldRange'],'userId':_0x4c42d7});const _0x22b226=this['_touchedMarkers']['get'](_0x3e5de9),_0x46d7f9=_0x22b226['range'],_0x289689=_0x451952['newRange'];null==_0x46d7f9&&null==_0x289689||_0x46d7f9&&_0x289689&&_0x46d7f9['isEqual'](_0x289689)?this['_touchedMarkers']['delete'](_0x451952['name']):_0x22b226['userId']=_0x4c42d7;}['_handleRootOperation'](_0x212ca6,_0x5b4f15){this['_diffRoots']['has'](_0x212ca6['rootName'])?this['_diffRoots']['get'](_0x212ca6['rootName'])['_isAttached']=_0x212ca6['isAdd']:(this['_diffRoots']['set'](_0x212ca6['rootName'],B(_0x212ca6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x212ca6['rootName'],{}),_0x5b4f15&&this['_idsRoots']['set'](_0x212ca6['rootName'],B(_0x212ca6['rootName'],!0x0)));const _0x1b86d8=null===_0x212ca6['_authorId']?null:_0x212ca6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x504098=this['_touchedRoots']['get'](_0x212ca6['rootName']);_0x504098&&_0x504098['userId']===_0x1b86d8?this['_touchedRoots']['delete'](_0x212ca6['rootName']):this['_touchedRoots']['set'](_0x212ca6['rootName'],{'userId':_0x1b86d8,'isAttached':_0x212ca6['isAdd']});}['_handleRootAttributeOperation'](_0x1b748e){const _0x3dc0be=this['_diffRootsAttributes']['get'](_0x1b748e['root']['rootName']);null===_0x1b748e['newValue']?delete _0x3dc0be[_0x1b748e['key']]:_0x3dc0be[_0x1b748e['key']]=_0x1b748e['newValue'];}}function F(_0x5e8aed){const _0x365eee=B(_0x5e8aed['rootName'],_0x5e8aed['isAttached']());for(const _0x1e9999 of _0x5e8aed['getChildren']()){const _0x9dec0=_0x1e9999['_clone'](!0x0);_0x365eee['_appendChild'](_0x9dec0);}return _0x365eee;}function B(_0x4787d3,_0x3f7bb0=!0x0){const _0x17f3b1=new mt();return _0x17f3b1['rootName']=_0x4787d3,_0x17f3b1['_isAttached']=_0x3f7bb0,_0x17f3b1['isAttached']=()=>_0x17f3b1['_isAttached'],_0x17f3b1;}function J(_0x3c0f90,_0x57ab06,_0x473dfe){const _0x2384c0='elementEnd'==_0x3c0f90['type']?_0x473dfe['createPositionAt'](_0x3c0f90['item'],'end'):_0x473dfe['createPositionBefore'](_0x3c0f90['item']);return _0x473dfe['createPositionFromPath'](_0x57ab06,_0x2384c0['path'],_0x2384c0['stickiness']);}function q(_0x8176e1,_0x4c64a1,_0x433fab){const _0x4aba6c='elementStart'==_0x8176e1['type']?_0x433fab['createPositionAt'](_0x8176e1['item'],0x0):_0x433fab['createPositionAfter'](_0x8176e1['item']);return _0x433fab['createPositionFromPath'](_0x4c64a1,_0x4aba6c['path'],_0x4aba6c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x503903,_0x12b053){super(_0x503903),this['focusTracker']=new _0x40757b(),this['keystrokes']=new _0x2c7f60(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x12b053),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5a1412(this);}['render'](){super['render'](),_0x4471ee({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5a5914=_0x3b60ce=>_0x3b60ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5a5914),this['keystrokes']['set']('arrowleft',_0x5a5914),this['keystrokes']['set']('arrowup',_0x5a5914),this['keystrokes']['set']('arrowdown',_0x5a5914);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x480842){this['revisionNameInputView']['fieldView']['element']['value']=_0x480842['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5a26c0){const _0x1abf30=new _0x3e59e5(this['locale'],_0x7692c0),_0x383c91=_0x1abf30['fieldView'];_0x383c91['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xbf54d9=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5a26c0&&(_0xbf54d9+='\x20('+R(this['locale'],'optional')+')'),(_0x1abf30['label']=_0xbf54d9,_0x383c91['on']('input',()=>{this['revisionNameInputValue']=_0x383c91['element']['value']['trim']();}),_0x1abf30);}}class u extends _0x1dc3ac{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1713a3=this['editor'],_0x7cbe8d=_0x1713a3['plugins']['get']('RevisionTracker');_0x1713a3['ui']['componentFactory']['add']('revisionHistory',_0x1a0ea6=>{const _0x1b9b83=_0x1acade(_0x1a0ea6),_0x2257d2=_0x1b9b83['panelView']['children'],_0x424c06=new _0x2a942d(_0x1a0ea6),_0x55401d=new _0x8b90e4(_0x1a0ea6),_0x550e2e=new te(_0x1a0ea6),_0x4b2c38=new _0x8b90e4(_0x1a0ea6),_0x39f9e6=new te(_0x1a0ea6);return _0x1b9b83['bind']('isEnabled')['to'](_0x7cbe8d,'isReady',_0x7cbe8d,'isEnabled',_0x1713a3,'isReadOnly',(_0x5c299a,_0x2e4f21,_0x15e174)=>_0x5c299a&&_0x2e4f21&&!_0x15e174),_0x1b9b83['buttonView']['set']({'icon':_0x3255c8['history'],'label':R(_0x1a0ea6,'Revision\x20history'),'tooltip':!0x0}),_0x550e2e['set']({'label':R(_0x1a0ea6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x550e2e['bind']('isEnabled')['to'](_0x7cbe8d,'isReady',_0x7cbe8d,'isEnabled',_0x1713a3,'isReadOnly',(_0xab551f,_0x3a0800,_0x51b8b9)=>_0xab551f&&_0x3a0800&&!_0x51b8b9),_0x550e2e['on']('execute',()=>this['_showDialog']()),_0x39f9e6['set']({'label':R(_0x1a0ea6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x39f9e6['bind']('isEnabled')['to'](_0x7cbe8d,'isReady',_0x1713a3,'isReadOnly',(_0x46cd4a,_0xf6ca13)=>_0x46cd4a&&!_0xf6ca13),_0x39f9e6['on']('execute',()=>{_0x1713a3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1b9b83['isOpen']=!0x1,_0x1713a3['editing']['view']['focus']();}),_0x55401d['children']['add'](_0x550e2e),_0x4b2c38['children']['add'](_0x39f9e6),_0x424c06['role']='menu',_0x424c06['items']['addMany']([_0x55401d,_0x4b2c38]),_0x2257d2['add'](_0x424c06),_0x1b9b83;}),_0x1713a3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3173ff=this['editor'],_0x7969c0=_0x3173ff['locale'],_0x2d60e0=new _0x583af0(_0x7969c0),_0x5328cb=new _0x48974b(_0x7969c0);_0x2d60e0['buttonView']['set']({'icon':_0x3255c8['history'],'label':R(_0x7969c0,'Revision\x20history')});const _0x5029d9=new _0x2b6b52(_0x7969c0,_0x2d60e0),_0x5638aa=new _0x37bd79(_0x7969c0);_0x5638aa['set']({'label':R(_0x7969c0,'Save\x20current\x20revision')}),_0x5638aa['delegate']('execute')['to'](_0x2d60e0),_0x5638aa['on']('execute',()=>{this['_showDialog']();}),_0x5029d9['children']['add'](_0x5638aa),_0x5328cb['items']['add'](_0x5029d9);const _0x246674=new _0x2b6b52(_0x7969c0,_0x2d60e0),_0x1a0196=new _0x37bd79(_0x7969c0);return _0x1a0196['set']({'label':R(_0x7969c0,'Open\x20revision\x20history')}),_0x1a0196['delegate']('execute')['to'](_0x2d60e0),_0x1a0196['on']('execute',()=>{_0x3173ff['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x246674['children']['add'](_0x1a0196),_0x5328cb['items']['add'](_0x246674),_0x2d60e0['panelView']['children']['add'](_0x5328cb),_0x2d60e0;}['_showDialog'](){const _0x7fd25b=this['editor'],_0x130e4c=_0x7fd25b['locale'],_0x563e0f=_0x7fd25b['plugins']['get']('Dialog'),_0x2d240c=_0x7fd25b['plugins']['get']('RevisionTracker');function _0x144ddb(_0x454b0f){_0x7fd25b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x454b0f['revisionName']?_0x454b0f['revisionNameInputView']['errorText']=R(_0x130e4c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x7fd25b['plugins']['get'](l)['saveRevision']({'name':_0x454b0f['revisionName']}),_0x563e0f['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x144ddb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x563e0f['show']({'id':'revisionSave','title':R(_0x130e4c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x7fd25b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x563e0f['hide']()},{'label':R(_0x7fd25b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x37bcd7){_0x37bcd7['bind']('isEnabled')['to'](_0x2d240c,'isReady',_0x2d240c,'isEnabled',_0x7fd25b,'isReadOnly',(_0x1f0b43,_0x3f61ac,_0x779f45)=>_0x1f0b43&&_0x3f61ac&&!_0x779f45);},'onExecute':()=>_0x144ddb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x112691=this['editor'],_0x17c655=_0x112691['locale'];this['_saveRevisionFormView']=new hs(_0x17c655,_0x112691['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x2e808e,_0x10edbc){super(_0x2e808e),this['_model']=_0x10edbc,this['changeId']=_0x10edbc['id'];const _0x373875=this['bindTemplate'],_0x18b224=R(_0x2e808e,_0x10edbc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x10edbc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x10edbc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x373875['to']('type',_0x50edef=>'ck-revision-change__'+_0x50edef)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x18b224}]},{'text':'\x20'+_0x10edbc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1206aa(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x247a39){super(),this['id']=_0x247a39['id']||_0x4fc209(),this['author']=_0x247a39['author'],this['type']=_0x247a39['type'],this['data']=_0x247a39['data']||{},this['rootName']=_0x247a39['rootName'],this['set']('createdAt',_0x247a39['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(_0x56e702,_0x1e6d7a){this['newRevisionId']=_0x56e702,this['oldRevisionId']=_0x1e6d7a,this['changes']=new _0x1b68a5();}['_setChanges'](_0x415824){for(const _0x15d23d of _0x415824)this['changes']['add'](_0x15d23d);}}const Z={'c':_0x5970ac,'a':_0x5a6cc9,'e':_0x4bf472,'r':_0x141c97,'u':_0x41e19e};class d extends _0x1dc3ac{['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[_0x4d2971,_0x125db8,j];}constructor(_0x4d660c){super(_0x4d660c),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',(_0xd302ec,_0x15d4db,_0x45079e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1190e5=>{for(const _0x175184 of this['editor']['editing']['view']['document']['roots'])_0x45079e?_0x1190e5['removeClass']('ck-editor__editable__overlay',_0x175184):_0x1190e5['addClass']('ck-editor__editable__overlay',_0x175184);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x258811=>null!==_0x258811),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1b16ee,_0x547442,_0x49db8b)=>_0x1b16ee&&_0x49db8b?_0x547442['changes']['getIndex'](_0x49db8b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x565971,_0xa29f14)=>_0x565971?_0xa29f14['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x125db8);}['init'](){const _0x13e5f8=this['editor'],_0x2346d8=new yt(_0x13e5f8,{'direction':'backward'}),_0x34bec7=new yt(_0x13e5f8,{'direction':'forward'});(_0x13e5f8['commands']['add']('showPreviousChange',_0x2346d8),_0x13e5f8['commands']['add']('showNextChange',_0x34bec7),_0x13e5f8['commands']['add']('restoreRevision',new _t(_0x13e5f8)),this['on']('change:numberOfChanges',()=>{_0x2346d8['refresh'](),_0x34bec7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x13e5f8['enableReadOnlyMode']('revision-viewer'),_0x13e5f8['plugins']['has']('WidgetToolbarRepository'))&&_0x13e5f8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x539d8c){await this['loadRevisionData'](_0x539d8c);const _0xf83e2a={};for(const _0x3cf953 in _0x539d8c['diffData']){if(_0x539d8c['diffData'][_0x3cf953]['attachChange']&&!_0x539d8c['diffData'][_0x3cf953]['attachChange']['isAttached'])continue;const _0x14523e=this['_removeRevisionMarkers'](JSON['parse'](_0x539d8c['diffData'][_0x3cf953]['insertions'])),_0x347298=this['editor']['editing']['view']['document'],_0x3747f6=new _0x1eec08(_0x347298,_0x14523e['map'](_0x6a628a=>this['_getViewObj'](_0x6a628a)));this['editor']['data']['processor']['useFillerType']('marked'),_0xf83e2a[_0x3cf953]=this['editor']['data']['processor']['toData'](_0x3747f6),this['editor']['data']['processor']['useFillerType']('default');}return _0xf83e2a;}async['getRevisionRootsAttributes'](_0x36e093){await this['loadRevisionData'](_0x36e093);const _0x2109f0={};for(const _0xedc950 in _0x36e093['diffData'])_0x36e093['diffData'][_0xedc950]['attachChange']&&!_0x36e093['diffData'][_0xedc950]['attachChange']['isAttached']||(_0x2109f0[_0xedc950]=_0x36e093['diffData'][_0xedc950]['attributesAfter']||{});return _0x2109f0;}['_removeRevisionMarkers'](_0x53c491){return(_0x53c491=_0x53c491['filter'](_0x5ed43b=>!_0x5ed43b['name']||'revision-start'!==_0x5ed43b['name']&&'revision-end'!==_0x5ed43b['name']))['forEach'](_0x6f39db=>{'string'!=typeof _0x6f39db&&(_0x6f39db['children']=this['_removeRevisionMarkers'](_0x6f39db['children']),_0x6f39db['attributes']=_0x6f39db['attributes']['filter'](_0x344707=>!_0x344707[0x0]['startsWith']('data-revision-')));}),_0x53c491;}async['compare'](_0x5abecc,_0x5c4ba4,_0x5cfc8a=!0x1){if(!this['isEnabled'])return;const _0x49da78=this['diff'],_0x54a8a7=this['repository'],_0x5a5d7d='string'==typeof _0x5abecc?_0x54a8a7['getRevision'](_0x5abecc):_0x5abecc,_0x57bb9f='string'==typeof _0x5c4ba4?_0x54a8a7['getRevision'](_0x5c4ba4):_0x5c4ba4,_0x16228a=_0x5a5d7d['id'],_0x5c958b=_0x57bb9f?_0x57bb9f['id']:null;if(!_0x5cfc8a&&this['diff']&&this['diff']['newRevisionId']===_0x16228a&&this['diff']['oldRevisionId']===_0x5c958b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x16228a,_0x5c958b);const _0x3572db=this['_getRevisionsRange'](_0x5a5d7d,_0x57bb9f,!0x0)['map'](_0x505fc9=>this['loadRevisionData'](_0x505fc9));return _0x3572db['push'](new Promise(_0x3f1dad=>{setTimeout(_0x3f1dad,0x14);})),Promise['all'](_0x3572db)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x273f05=this['_getDiff'](_0x16228a,_0x5c958b);for(const _0x41221d of _0x273f05['changes'])this['_changeIdToChange']['set'](_0x41221d['id'],_0x41221d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x9d4a75=>{for(const _0x72827c of this['editor']['model']['document']['getRootNames']())_0x9d4a75['detachRoot'](_0x72827c);for(const _0x32d958 of Object['keys'](_0x273f05['model'])){const _0x99f598=_0x9d4a75['addRoot'](_0x32d958);for(const _0x4d2652 of Object['keys'](_0x273f05['attributes'][_0x32d958]))_0x9d4a75['setAttribute'](_0x4d2652,_0x273f05['attributes'][_0x32d958][_0x4d2652],_0x99f598);_0x9d4a75['insert'](_0x273f05['model'][_0x32d958],_0x99f598,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x273f05['changes'])),this['isReady']=!0x0;})['catch'](_0x105e66=>{console['error'](_0x105e66),this['_cleanUp'](),_0x49da78&&(this['diff']=_0x49da78),this['isReady']=!0x0;});}['addRevisionData'](_0x1156bf,_0x24a006){const _0x7eaf38=this['repository']['createRevision'](_0x1156bf);return _0x7eaf38['on']('_update',(_0x34b2b4,_0x529679,_0x45a0c7)=>_0x24a006(_0x529679,_0x45a0c7,_0x7eaf38)),this['repository']['addRevision'](_0x7eaf38),_0x7eaf38;}['loadRevisionData'](_0x54b13a){if(!_0x54b13a||_0x54b13a['diffData'])return Promise['resolve']();{const _0x57e716=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x57e716,'revisionId':_0x54b13a['id']})['then'](_0x1d6d31=>{_0x54b13a['_update']({'diffData':_0x1d6d31['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},_0x1291e6=>{for(const _0x37c6bd of this['editor']['model']['document']['getRootNames']())_0x1291e6['detachRoot'](_0x37c6bd);});}['_sortAndFilterDiffChanges'](_0x2e9b7a){const _0x121154=[],_0x4bc155=new Map();for(const _0x137f41 of this['editor']['model']['document']['getRootNames']()){const _0x306429=this['editor']['editing']['view']['getDomRoot'](_0x137f41);if(!_0x306429)continue;const _0x3b5c23=_0x306429['getClientRects']()['item'](0x0);_0x3b5c23&&(_0x121154['push'](_0x137f41),_0x4bc155['set'](_0x137f41,_0x3b5c23));}return _0x121154['sort']((_0x622100,_0x22961b)=>{const _0x442673=_0x4bc155['get'](_0x622100),_0x2c5b27=_0x4bc155['get'](_0x22961b);return _0x442673['y']-_0x2c5b27['y']||_0x442673['x']-_0x2c5b27['x'];}),(_0x2e9b7a=_0x2e9b7a['filter'](_0xe3bc0b=>_0x121154['includes'](_0xe3bc0b['rootName'])))['sort']((_0xc3b3d9,_0x3f070f)=>_0x121154['indexOf'](_0xc3b3d9['rootName'])-_0x121154['indexOf'](_0x3f070f['rootName'])),_0x2e9b7a;}['_makeTape'](_0x2b00ff){const _0x335762=Array['from'](_0x2b00ff['markers'])['filter'](([_0x7566f,_0x3d948f])=>_0x7566f['startsWith']('revision:')&&!_0x3d948f['isCollapsed']),_0x4ec82e=Array['from'](this['editor']['model']['createRangeIn'](_0x2b00ff)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x335762['length'])for(const _0x4e3052 of _0x4ec82e){const [_0x150ced,_0x1d0ed1]=_0x335762[0x0],[,_0x7a3cee,_0x30d096]=_0x150ced['split'](':');if(_0x1d0ed1['end']['isEqual'](_0x4e3052['nextPosition'])&&_0x335762['shift'](),(_0x4e3052['previousPosition']['isEqual'](_0x1d0ed1['start'])||_0x4e3052['previousPosition']['isAfter'](_0x1d0ed1['start']))&&('insertion'==_0x7a3cee?_0x4e3052['isAdded']={'userId':_0x30d096}:'deletion'==_0x7a3cee&&(_0x4e3052['isRemoved']={'userId':_0x30d096})),0x0==_0x335762['length'])break;}return _0x4ec82e;}['_refreshStartEndIndex'](_0x1bd906){const _0x59e0f8=new Map();for(let _0x5b44fd=0x0;_0x5b44fd<_0x1bd906['length'];_0x5b44fd++)'text'===_0x1bd906[_0x5b44fd]['type']?(_0x1bd906[_0x5b44fd]['item']['startIndex']=_0x5b44fd,_0x1bd906[_0x5b44fd]['item']['endIndex']=_0x5b44fd):('elementStart'===_0x1bd906[_0x5b44fd]['type']?_0x1bd906[_0x5b44fd]['item']['startIndex']=_0x5b44fd:'elementEnd'===_0x1bd906[_0x5b44fd]['type']&&(_0x1bd906[_0x5b44fd]['item']['endIndex']=_0x5b44fd),_0x59e0f8['set'](_0x1bd906[_0x5b44fd]['id'],_0x5b44fd));for(const _0x18d43c of _0x59e0f8['values']())'elementStart'===_0x1bd906[_0x18d43c]['type']?_0x1bd906[_0x18d43c]['item']['endIndex']=_0x59e0f8['get'](_0x1bd906[_0x18d43c]['pairId']):'elementEnd'===_0x1bd906[_0x18d43c]['type']&&(_0x1bd906[_0x18d43c]['item']['startIndex']=_0x59e0f8['get'](_0x1bd906[_0x18d43c]['pairId']));}['_processTape'](_0x31617b){for(let _0x242f5b=0x0;_0x242f5b<_0x31617b['length'];_0x242f5b++){if('elementStart'===_0x31617b[_0x242f5b]['type'])_0x31617b[_0x242f5b]['item']['startIndex']=_0x242f5b;else{if('elementEnd'===_0x31617b[_0x242f5b]['type']){_0x31617b[_0x242f5b]['item']['endIndex']=_0x242f5b;const _0x3bada1=_0x31617b[_0x242f5b]['item']['startIndex'];_0x31617b[_0x3bada1]['pairId']=_0x31617b[_0x242f5b]['id'],_0x31617b[_0x242f5b]['pairId']=_0x31617b[_0x3bada1]['id'];}else _0x31617b[_0x242f5b]['item']['startIndex']=_0x242f5b,_0x31617b[_0x242f5b]['item']['endIndex']=_0x242f5b,_0x31617b[_0x242f5b]['pairId']=null;}_0x31617b[_0x242f5b]['markersStart']||(_0x31617b[_0x242f5b]['markersStart']=[],_0x31617b[_0x242f5b]['markersEnd']=[]);}}['_markInsertions'](_0x1e8e85,_0x35c360){const _0x516cec=_0x1e8e85['filter'](_0xc8787=>!_0xc8787['isAdded']);for(let _0x3d4ab2=0x0;_0x3d4ab2<_0x35c360['length'];_0x3d4ab2++)_0x35c360[_0x3d4ab2]['isAdded']&&(_0x516cec[_0x3d4ab2]['isAdded']=_0x35c360[_0x3d4ab2]['isAdded']);}['_makeModelFromViewString'](_0x44ec49){const _0x34f23d=JSON['parse'](_0x44ec49),_0x216f31=this['editor']['editing']['view']['document'],_0x12707f=new _0x1eec08(_0x216f31,_0x34f23d['map'](_0x486df7=>this['_getViewObj'](_0x486df7)));return this['editor']['data']['toModel'](_0x12707f);}['_getViewObj'](_0x41f010){const _0x3463f2=this['editor']['editing']['view']['document'];if('string'==typeof _0x41f010)return new _0x3cf183(_0x3463f2,_0x41f010);{const _0x47c89c=_0x41f010['children']['map'](_0x515622=>this['_getViewObj'](_0x515622));return new(Z[_0x41f010['type']]||_0x5b66af)(_0x3463f2,_0x41f010['name'],_0x41f010['attributes'],_0x47c89c);}}['_getDiff'](_0xc82cf1,_0x57248c=null){const _0xac26ef=this['repository']['getRevision'](_0xc82cf1),_0x566ba9=_0x57248c?this['repository']['getRevision'](_0x57248c):null,_0x3ffbf7=this['_getRevisionsRange'](_0xac26ef,_0x566ba9),_0x53b901=_0x3ffbf7[_0x3ffbf7['length']-0x1],_0x34dcd2=new Map(),_0x1642e7={'model':{},'attributes':{},'changes':[]},_0x3af8fd=new Set(),_0x51f2b3=new Map();for(let _0x4a2d2b=_0x3ffbf7['length']-0x1;_0x4a2d2b>=0x0;_0x4a2d2b--){const _0x56e18e=_0x3ffbf7[_0x4a2d2b];for(const _0x2b5067 of Object['keys'](_0x56e18e['diffData']))if(_0x56e18e['diffData'][_0x2b5067]['attachChange']){const _0x38f1a4=_0x56e18e['diffData'][_0x2b5067]['attachChange'];_0x38f1a4['isAttached']?(_0x3af8fd['add'](_0x2b5067),_0x51f2b3['has'](_0x2b5067)&&_0x51f2b3['get'](_0x2b5067)['userId']==_0x38f1a4['userId']?_0x51f2b3['delete'](_0x2b5067):_0x51f2b3['set'](_0x2b5067,_0x38f1a4)):_0x51f2b3['has'](_0x2b5067)?(_0x3af8fd['delete'](_0x2b5067),_0x51f2b3['delete'](_0x2b5067)):(_0x3af8fd['add'](_0x2b5067),_0x51f2b3['set'](_0x2b5067,_0x38f1a4));}else _0x3af8fd['add'](_0x2b5067);}for(const _0x5771b4 of _0x3af8fd){const _0x5cad92=_0x51f2b3['has'](_0x5771b4)&&!_0x51f2b3['get'](_0x5771b4)['isAttached'];let _0x31be89=_0x5cad92?_0x3ffbf7['length']-0x1:0x0;const _0x870543=_0x5cad92?-0x1:0x1;for(;_0x3ffbf7[_0x31be89];){const _0x2c56c1=_0x3ffbf7[_0x31be89];if(_0x2c56c1['diffData'][_0x5771b4]){const _0x532ac0=_0x5cad92?_0x2c56c1['diffData'][_0x5771b4]['attributesBefore']:_0x2c56c1['diffData'][_0x5771b4]['attributesAfter'];_0x1642e7['attributes'][_0x5771b4]=_0x532ac0?_0x4f45c1(_0x532ac0):{};break;}_0x31be89+=_0x870543;}}for(const _0x397a77 of _0x3ffbf7){_0x397a77['model']={};for(const _0x65bffb of _0x397a77['authors'])_0x34dcd2['set'](_0x65bffb['id'],_0x65bffb);for(const _0x68a948 of _0x3af8fd){const _0x1d3791=_0x397a77['diffData'][_0x68a948]?_0x397a77['diffData'][_0x68a948]['insertions']:'[]',_0x1be97d=_0x397a77['diffData'][_0x68a948]?_0x397a77['diffData'][_0x68a948]['deletions']:'[]';_0x397a77['model'][_0x68a948]={'insertions':this['_makeModelFromViewString'](_0x1d3791),'deletions':this['_makeModelFromViewString'](_0x1be97d)};}}for(const _0x4e904f of _0x3af8fd){let _0x14c890=null,_0x143392=0x0;const _0x2bb0b8=new Map(Array['from'](_0xac26ef['model'][_0x4e904f]['insertions']['markers'])['filter'](([_0x37859e])=>!_0x37859e['startsWith']('revision:')));let _0x19c9d7=0x0;for(const _0x51e773 of _0x3ffbf7){const _0x3156e0=this['_makeTape'](_0x51e773['model'][_0x4e904f]['insertions']);_0x51e773==_0xac26ef?(_0x14c890=_0x3156e0,_0x143392=_0x14c890['length'],_0x14c890['forEach'](_0x20d3fe=>{_0x20d3fe['id']=_0x19c9d7++;}),this['_processTape'](_0x14c890)):this['_markInsertions'](_0x14c890,_0x3156e0);const _0x2f7a88=_0x14c890['filter'](_0x18cb3c=>!_0x18cb3c['isAdded'])['map'](_0x2fd1bd=>_0x2fd1bd['id']);let _0x1d163d=0x0;const _0x2a94bf=this['_makeTape'](_0x51e773['model'][_0x4e904f]['deletions']);_0x2a94bf['forEach'](_0x20d0b5=>{_0x20d0b5['isRemoved']?_0x20d0b5['id']=_0x143392++:_0x20d0b5['id']=_0x2f7a88[_0x1d163d++];}),this['_processTape'](_0x2a94bf),this['_setDistance'](_0x14c890,'isAdded'),this['_setDistance'](_0x2a94bf,'isRemoved'),_0x51e773==_0xac26ef&&this['_markMarkers'](_0x14c890,_0x2bb0b8),_0x14c890=this['_joinTapes'](_0x14c890,_0x2a94bf),this['_refreshStartEndIndex'](_0x14c890),this['_setDistance'](_0x14c890,'isRemoved');}_0x14c890=_0x14c890['filter'](_0x521147=>!(_0x521147['isAdded']&&_0x521147['isRemoved']));const _0x5fd815=new Map(_0x53b901['model'][_0x4e904f]['deletions']['markers']),_0x16f4d5=new Set(_0x2bb0b8['keys']());for(const _0x2cfd7f of _0x5fd815['keys']())_0x16f4d5['delete'](_0x2cfd7f);this['_markSuggestions'](_0x14c890,_0x16f4d5),this['_fixObsoleteTags'](_0x14c890),_0x14c890=this['_removeMissingPairs'](_0x14c890),_0x14c890=this['_markMismatchedRemovedTags'](_0x14c890),_0x14c890=this['_removeUnsupportedChanges'](_0x14c890);const {root:_0x25550b,changes:_0x39af01}=this['_makeModelFromTape'](_0x14c890,_0x34dcd2,_0x4e904f);_0x1642e7['model'][_0x4e904f]=_0x25550b;const _0xa204fd=_0x51f2b3['get'](_0x4e904f);if(_0xa204fd){const _0x1d0484=_0x34dcd2['get'](_0xa204fd['userId']),_0x3e3b64=new r({'author':_0x1d0484,'type':_0xa204fd['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e904f});_0x39af01['unshift'](_0x3e3b64),_0x1642e7['attributes'][_0x4e904f]['revisionHistoryAttachChange']=_0x3e3b64['id'];}_0x1642e7['changes']=_0x1642e7['changes']['concat'](_0x39af01);}return _0x1642e7;}['_markMarkers'](_0x4cd60a,_0x18646c){for(let _0x5498f4=0x0;_0x5498f4<_0x4cd60a['length'];_0x5498f4++)for(const [_0x56d859,_0x26ddb3]of _0x18646c)_0x26ddb3['start']['isEqual'](_0x4cd60a[_0x5498f4]['previousPosition'])&&_0x4cd60a[_0x5498f4]['markersStart']['push'](_0x56d859),_0x26ddb3['end']['isEqual'](_0x4cd60a[_0x5498f4]['nextPosition'])&&_0x4cd60a[_0x5498f4]['markersEnd']['push'](_0x56d859);}['_joinTapes'](_0x23eadf,_0x45cf3a){let _0x38dd4f=[],_0x4cc887=0x0,_0x2eaa06=0x0;for(;_0x4cc887<_0x23eadf['length']||_0x2eaa06<_0x45cf3a['length'];){const _0x5643f6=_0x23eadf[_0x4cc887]||{},_0xdd0c26=_0x45cf3a[_0x2eaa06]||{};if(_0x5643f6['id']==_0xdd0c26['id'])_0x4cc887++,_0x2eaa06++,_0x38dd4f['push'](_0x5643f6);else{if(_0xdd0c26['isRemoved']&&_0x5643f6['isAdded']){const {commonTape:_0x57ee89,iEnd:_0x2ae03a,jEnd:_0x382e8c}=this['_threeWayMerge'](_0x23eadf,_0x4cc887,_0x45cf3a,_0x2eaa06);_0x38dd4f=_0x38dd4f['concat'](_0x57ee89),_0x4cc887=_0x2ae03a,_0x2eaa06=_0x382e8c;}else _0xdd0c26['isRemoved']?(_0x2eaa06++,_0x38dd4f['push'](_0xdd0c26)):(_0x4cc887++,_0x38dd4f['push'](_0x5643f6));}}return _0x38dd4f;}['_markSuggestions'](_0x51d112,_0x901b7b){const _0x1e37d0=[];for(let _0x459df6=0x0;_0x459df6<_0x51d112['length'];_0x459df6++){for(let _0x1a4004=0x0;_0x1a4004<_0x51d112[_0x459df6]['markersStart']['length'];_0x1a4004++){const _0x33a949=_0x51d112[_0x459df6]['markersStart'][_0x1a4004];if(!_0x901b7b['has'](_0x33a949))continue;const {group:_0x325687,type:_0x4cf828,authorId:_0x31fa8b}=_0x97a415(_0x33a949);'revision-suggestion'!=_0x325687||'insertion'!=_0x4cf828&&'deletion'!=_0x4cf828||(_0x1e37d0['unshift']({'type':_0x4cf828,'name':_0x33a949,'userId':_0x31fa8b}),_0x51d112[_0x459df6]['markersStart']['splice'](_0x1a4004,0x1),_0x1a4004--);}_0x233deb(_0x51d112[_0x459df6]);for(let _0x2a6ec5=0x0;_0x2a6ec5<_0x51d112[_0x459df6]['markersEnd']['length'];_0x2a6ec5++){const _0x4ed1c4=_0x51d112[_0x459df6]['markersEnd'][_0x2a6ec5];if(!_0x901b7b['has'](_0x4ed1c4))continue;const {group:_0x534012,type:_0x43501a}=_0x97a415(_0x4ed1c4);if('revision-suggestion'!=_0x534012||'insertion'!=_0x43501a&&'deletion'!=_0x43501a)continue;_0x51d112[_0x459df6]['markersEnd']['splice'](_0x2a6ec5,0x1),_0x2a6ec5--;const _0x556c9b=_0x1e37d0['findIndex'](_0x157ea8=>_0x157ea8['name']==_0x4ed1c4);_0x556c9b>-0x1&&_0x1e37d0['splice'](_0x556c9b,0x1);}}function _0x97a415(_0x1633cc){const _0x55c854=_0x1633cc['split'](':');return{'group':_0x55c854[0x0],'type':_0x55c854[0x1],'subType':_0x55c854['length']>=0x5?_0x55c854[0x2]:null,'id':_0x55c854['length']<0x5?_0x55c854[0x2]:_0x55c854[0x3],'authorId':_0x55c854['length']<0x5?_0x55c854[0x3]:_0x55c854[0x4],'markerCount':0x6==_0x55c854['length']?_0x55c854[0x5]:null};}function _0x233deb(_0x3193eb){for(let _0x51ef9c=0x0;_0x51ef9c<_0x1e37d0['length'];_0x51ef9c++){if(_0x3193eb['isAdded']&&'insertion'==_0x1e37d0[_0x51ef9c]['type'])return _0x3193eb['isAddSuggestion']=_0x1e37d0[_0x51ef9c],void delete _0x3193eb['isAdded'];if(!_0x3193eb['isAdded']&&!_0x3193eb['isRemoved']&&'deletion'==_0x1e37d0[_0x51ef9c]['type'])return void(_0x3193eb['isRemoveSuggestion']=_0x1e37d0[_0x51ef9c]);}}}['_setDistance'](_0x5322c1,_0x16b41f){let _0x9f7e34=0x0,_0x5341b2=!0x1;const _0x5a0c4f=new Map();for(const _0xd207d3 of _0x5322c1)_0xd207d3[_0x16b41f]?_0x5341b2&&(_0x9f7e34++,_0x5341b2=!0x1):(_0x9f7e34++,_0x5341b2=!0x0),_0x5a0c4f['set'](_0xd207d3['id'],_0x9f7e34);for(let _0x4a3b61=0x0;_0x4a3b61<_0x5322c1['length'];_0x4a3b61++){if('isRemoved'==_0x16b41f&&_0x5322c1[_0x4a3b61]['isAdded']||'isAdded'==_0x16b41f&&_0x5322c1[_0x4a3b61]['isRemoved'])continue;if('text'==_0x5322c1[_0x4a3b61]['type']){_0x5322c1[_0x4a3b61]['distance']=0x0;continue;}const _0x1e2d39=_0x5a0c4f['get'](_0x5322c1[_0x4a3b61]['pairId']),_0x45ae00=_0x5a0c4f['get'](_0x5322c1[_0x4a3b61]['id']);_0x5322c1[_0x4a3b61]['distance']=_0x1e2d39-_0x45ae00;}}['_getRevisionsRange'](_0x1dd30b,_0x39f319,_0x3dd2c3=!0x1){const _0x4bdf7a=[];let _0x9d75e=this['repository']['getIndex'](_0x1dd30b),_0x49e432=this['repository']['getIndex'](_0x39f319);for(-0x1==_0x49e432&&(_0x49e432=this['repository']['_revisions']['length'],_0x3dd2c3=!0x1);_0x9d75e<_0x49e432;)_0x4bdf7a['push'](this['repository']['getRevision'](_0x9d75e)),_0x9d75e++;return _0x3dd2c3&&_0x4bdf7a['push'](this['repository']['getRevision'](_0x9d75e)),_0x4bdf7a;}['_threeWayMerge'](_0x44e9ed,_0x37deba,_0x50ba0f,_0x41e3c4){const _0x4ac9e6=this['editor']['model']['schema'];let _0x19deff=_0x37deba;for(;_0x44e9ed[_0x19deff]&&_0x44e9ed[_0x19deff]['isAdded'];)_0x19deff++;let _0x45f4d2=_0x41e3c4;for(;_0x50ba0f[_0x45f4d2]&&_0x50ba0f[_0x45f4d2]['isRemoved'];)_0x45f4d2++;_0x3009da(_0x44e9ed,_0x37deba,_0x19deff),_0x3009da(_0x50ba0f,_0x41e3c4,_0x45f4d2);const _0x10895c=_0x50ba0f['slice'](_0x41e3c4,_0x45f4d2)['concat'](_0x44e9ed['slice'](_0x37deba,_0x19deff));return _0x10895c['sort']((_0x1dd170,_0x2619b7)=>_0x1dd170['side']!=_0x2619b7['side']?_0x1dd170['side']-_0x2619b7['side']:_0x1dd170['level']!=_0x2619b7['level']?_0x1dd170['level']-_0x2619b7['level']:_0x1dd170['distance']!=_0x2619b7['distance']?_0x2619b7['distance']-_0x1dd170['distance']:!!_0x1dd170['isAdded']!=!!_0x2619b7['isAdded']?-0x1==_0x1dd170['side']||0x0==_0x1dd170['side']?_0x1dd170['isAdded']?-0x1:0x1:_0x1dd170['isAdded']?0x1:-0x1:_0x1dd170['index']-_0x2619b7['index']),{'commonTape':_0x10895c,'iEnd':_0x19deff,'jEnd':_0x45f4d2};function _0x3009da(_0x3bf9a3,_0x278060,_0x1cbea4){let _0xf3b926=-0x1,_0x442e2f=Number['POSITIVE_INFINITY'],_0x1a1d98=!0x0;for(let _0x213b13=_0x278060;_0x213b13<_0x1cbea4;_0x213b13++)if(_0x4ac9e6['isInline'](_0x3bf9a3[_0x213b13]['item'])||(_0x1a1d98=!0x1),_0x3bf9a3[_0x213b13]['item']['startIndex']<_0x278060&&(_0xf3b926=_0x213b13),_0x3bf9a3[_0x213b13]['item']['endIndex']>=_0x1cbea4){_0x442e2f=_0x213b13;break;}_0x1a1d98&&(_0xf3b926=_0x1cbea4-0x1);for(let _0x187631=_0x278060;_0x187631<_0x1cbea4;_0x187631++)_0x3bf9a3[_0x187631]['side']=_0x187631<=_0xf3b926?-0x1:_0x187631<_0x442e2f?0x0:0x1,_0x3bf9a3[_0x187631]['index']=_0x187631;let _0x6ea8fa=0x0;for(let _0x2df683=_0x278060;_0x2df683<=_0xf3b926;_0x2df683++)0x0==_0x3bf9a3[_0x2df683]['distance']?_0x3bf9a3[_0x2df683]['level']=_0x6ea8fa:(_0x6ea8fa++,_0x3bf9a3[_0x2df683]['level']=_0x6ea8fa,_0x6ea8fa++);for(let _0x222b1e=_0x278060;_0x222b1e<_0x1cbea4;_0x222b1e++)0x0==_0x3bf9a3[_0x222b1e]['side']&&(_0x3bf9a3[_0x222b1e]['level']=_0x6ea8fa);_0x6ea8fa=0x0;for(let _0x13e5e5=_0x1cbea4-0x1;_0x13e5e5>=_0x442e2f;_0x13e5e5--)0x0==_0x3bf9a3[_0x13e5e5]['distance']?_0x3bf9a3[_0x13e5e5]['level']=_0x6ea8fa:(_0x6ea8fa--,_0x3bf9a3[_0x13e5e5]['level']=_0x6ea8fa,_0x6ea8fa--);}}['_fixObsoleteTags'](_0x36034d){const _0xff51f0=new Map(),_0x436bc3=this['editor']['model']['schema'];for(let _0xf04b7b=0x1;_0xf04b7b<_0x36034d['length'];_0xf04b7b++){let _0xfb4664,_0x1c56fb,_0x44332e;const _0x4d0ad3=_0x36034d[_0xf04b7b],_0x18ed2c=_0x36034d[_0xf04b7b-0x1];if('text'==_0x4d0ad3['type'])continue;if(_0x4d0ad3['type']!=_0x18ed2c['type'])continue;if(!_0x436bc3['isBlock'](_0x18ed2c['item'])||_0x436bc3['isLimit'](_0x18ed2c['item']))continue;if(!_0x436bc3['isBlock'](_0x4d0ad3['item'])||_0x436bc3['isLimit'](_0x4d0ad3['item']))continue;if((_0x36034d[_0xf04b7b]['isAdded']||_0x36034d[_0xf04b7b]['isAddSuggestion'])&&_0x36034d[_0xf04b7b-0x1]['isRemoved'])_0xfb4664=_0x36034d[_0xf04b7b],_0x1c56fb=_0x36034d[_0xf04b7b-0x1],_0x44332e=_0xf04b7b-0x1;else{if(!_0x36034d[_0xf04b7b]['isRemoved']||!_0x36034d[_0xf04b7b-0x1]['isAdded']&&!_0x36034d[_0xf04b7b-0x1]['isAddSuggestion'])continue;_0xfb4664=_0x36034d[_0xf04b7b-0x1],_0x1c56fb=_0x36034d[_0xf04b7b],_0x44332e=_0xf04b7b;}const _0x3f3da3=_0xfb4664['level']==_0x1c56fb['level'],_0x4ddb95=Math['abs'](_0xfb4664['level'])<Math['abs'](_0x1c56fb['level'])&&0x0==_0x1c56fb['distance'];(_0x3f3da3||_0x4ddb95)&&(_0xff51f0['set'](_0x1c56fb['id'],_0xfb4664['id']),_0x36034d['splice'](_0x44332e,0x1),_0xf04b7b--,_0xfb4664['isAdded']=!0x1);}for(let _0x2b401c=0x0;_0x2b401c<_0x36034d['length'];_0x2b401c++)_0xff51f0['has'](_0x36034d[_0x2b401c]['pairId'])&&(_0x36034d[_0x2b401c]['pairId']=_0xff51f0['get'](_0x36034d[_0x2b401c]['pairId']));}['_removeMissingPairs'](_0x38da9b){const _0x3a1472=new Set(_0x38da9b['map'](_0x1d9f30=>_0x1d9f30['id']));for(let _0x508dda=0x0;_0x508dda<_0x38da9b['length'];_0x508dda++)_0x3a1472['has'](_0x38da9b[_0x508dda]['pairId'])||0x0==_0x38da9b[_0x508dda]['distance']||(_0x38da9b[_0x508dda]['isIncorrect']=!0x0);return _0x38da9b['filter'](_0x4b4eb0=>!_0x4b4eb0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b5c05){const _0x3efb28=new Set();for(let _0x19ab1c=0x0;_0x19ab1c<_0x2b5c05['length'];_0x19ab1c++){if(_0x3efb28['has'](_0x2b5c05[_0x19ab1c]['id'])&&_0x2b5c05[_0x19ab1c]['isRemoved']&&(_0x2b5c05[_0x19ab1c]['isIncorrect']=!0x0),_0x2b5c05[_0x19ab1c]['isIncorrect'])continue;if(0x0==_0x2b5c05[_0x19ab1c]['distance'])continue;if('elementStart'!=_0x2b5c05[_0x19ab1c]['type'])continue;if(null==_0x2b5c05[_0x19ab1c]['pairId'])continue;let _0x24b759=_0x19ab1c+0x1,_0x44b923=0x0;for(;_0x2b5c05[_0x24b759]['id']!=_0x2b5c05[_0x19ab1c]['pairId'];)'elementStart'==_0x2b5c05[_0x24b759]['type']?_0x44b923++:'elementEnd'==_0x2b5c05[_0x24b759]['type']&&_0x44b923--,_0x24b759++;if(0x0!=_0x44b923){if(_0x2b5c05[_0x19ab1c]['isRemoved'])_0x2b5c05[_0x19ab1c]['isIncorrect']=!0x0;else{for(;_0x24b759!=_0x19ab1c;)_0x2b5c05[_0x24b759]['isRemoved']&&0x0!=_0x2b5c05[_0x24b759]['distance']&&(_0x2b5c05[_0x24b759]['isIncorrect']=!0x0,_0x3efb28['add'](_0x2b5c05[_0x24b759]['pairId'])),_0x24b759--;}}}return _0x2b5c05['filter'](_0x4498da=>!_0x4498da['isIncorrect']);}['_removeUnsupportedChanges'](_0xf9534c){const _0x588392=this['editor']['model']['schema'];for(let _0x5b1531=0x0;_0x5b1531<_0xf9534c['length'];_0x5b1531++){if(!(_0xf9534c[_0x5b1531]['isAdded']||_0xf9534c[_0x5b1531]['isAddSuggestion']||_0xf9534c[_0x5b1531]['isRemoved']||_0xf9534c[_0x5b1531]['isRemoveSuggestion']))continue;if(0x0==_0xf9534c[_0x5b1531]['distance'])continue;const _0x370108=_0xf9534c[_0x5b1531]['item'];_0x588392['isBlock'](_0x370108)||_0x588392['isLimit'](_0x370108)||(_0xf9534c[_0x5b1531]['isAdded']&&delete _0xf9534c[_0x5b1531]['isAdded'],_0xf9534c[_0x5b1531]['isAddSuggestion']&&delete _0xf9534c[_0x5b1531]['isAddSuggestion'],_0xf9534c[_0x5b1531]['isRemoveSuggestion']&&delete _0xf9534c[_0x5b1531]['isRemoveSuggestion'],_0xf9534c[_0x5b1531]['isRemoved']&&(_0xf9534c[_0x5b1531]['isIncorrect']=!0x0));}return _0xf9534c['filter'](_0x429a5b=>!_0x429a5b['isIncorrect']);}['_makeModelFromTape'](_0x1c6c30,_0x27663c,_0x92b014){const _0x56af28=new mt(),_0x4efe29=[],_0xf76f83=new Map(),_0x43a81b=this['editor']['model'],_0x541971=_0x43a81b['schema'],_0x137736=[_0x56af28],_0x42ba6c={},_0x52165e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x58283a=null;const _0xf0b9e3=[0x0];for(let _0x5b568c=0x0;_0x5b568c<_0x1c6c30['length'];_0x5b568c++)if('elementStart'===_0x1c6c30[_0x5b568c]['type']){_0x1c6c30[_0x5b568c]['previousPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3);const _0x3c413d=new ft(_0x1c6c30[_0x5b568c]['item']['name'],_0x1c6c30[_0x5b568c]['item']['getAttributes']());_0x137736[0x0]['_appendChild'](_0x3c413d),_0xf0b9e3['push'](0x0),_0x137736['unshift'](_0x3c413d),_0x1c6c30[_0x5b568c]['nextPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3);}else'elementEnd'===_0x1c6c30[_0x5b568c]['type']?(_0x137736['shift'](),_0x1c6c30[_0x5b568c]['previousPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3),_0xf0b9e3['pop'](),_0xf0b9e3[_0xf0b9e3['length']-0x1]++,_0x1c6c30[_0x5b568c]['nextPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3)):(_0x1c6c30[_0x5b568c]['previousPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3),_0x58283a?_0x58283a['_data']+=_0x1c6c30[_0x5b568c]['item']['data']:_0x58283a=new wt(_0x1c6c30[_0x5b568c]['item']['data'],_0x1c6c30[_0x5b568c]['item']['getAttributes']()),_0x1c6c30[_0x5b568c+0x1]&&'text'===_0x1c6c30[_0x5b568c+0x1]['type']&&_0x2d40a1(_0x58283a,_0x1c6c30[_0x5b568c+0x1]['item'])||(_0x137736[0x0]['_appendChild'](_0x58283a),_0x58283a=null),_0xf0b9e3[_0xf0b9e3['length']-0x1]+=_0x1c6c30[_0x5b568c]['item']['offsetSize'],_0x1c6c30[_0x5b568c]['nextPosition']=_0x43a81b['createPositionFromPath'](_0x56af28,_0xf0b9e3));for(let _0x118629=0x0;_0x118629<_0x1c6c30['length'];_0x118629++){const _0x399993=_0x1c6c30[_0x118629]['previousPosition'],_0x448bd9=_0x1c6c30[_0x118629]['nextPosition'];for(const _0x2b69b6 of _0x1c6c30[_0x118629]['markersStart'])_0xf76f83['set'](_0x2b69b6,{'start':_0x399993,'end':null});_0x5d6c2f('isRemoveSuggestion',_0x118629,_0x399993,_0x448bd9),_0x5d6c2f('isAddSuggestion',_0x118629,_0x399993,_0x448bd9),_0x5d6c2f('isRemoved',_0x118629,_0x399993,_0x448bd9),_0x5d6c2f('isAdded',_0x118629,_0x399993,_0x448bd9);for(const _0x2cdc37 of _0x1c6c30[_0x118629]['markersEnd']){_0xf76f83['get'](_0x2cdc37)['end']=_0x448bd9;}}for(const [_0x319185,_0x4377ff]of _0xf76f83){const _0x1469cb=this['editor']['model']['createRange'](_0x4377ff['start'],_0x4377ff['end']);_0x56af28['markers']['set'](_0x319185,_0x1469cb);}return _0x4efe29['sort']((_0x35f426,_0x584d32)=>{const _0x64a4c2=_0x56af28['markers']['get']('revision:'+_0x35f426['id']),_0x2397d0=_0x56af28['markers']['get']('revision:'+_0x584d32['id']);return _0x64a4c2['start']['isBefore'](_0x2397d0['start'])?-0x1:_0x64a4c2['start']['isAfter'](_0x2397d0['start'])?0x1:_0x64a4c2['end']['isBefore'](_0x2397d0['end'])?-0x1:_0x64a4c2['end']['isAfter'](_0x2397d0['end'])?0x1:'add'===_0x35f426['type']?-0x1:0x1;}),{'root':_0x56af28,'changes':_0x4efe29};function _0x5d6c2f(_0xaff229,_0x542d33,_0x5e5f0a,_0x30aabc){const _0x49a59e=!!_0x1c6c30[_0x542d33][_0xaff229],_0x3c6bf4=_0x49a59e?_0x1c6c30[_0x542d33][_0xaff229]['userId']:null,_0x290b6f=_0x542d33===_0x1c6c30['length']-0x1,_0x4630de=_0x52165e[_0xaff229][0x0],_0x4c7db1=_0x541971['isObject'](_0x1c6c30[_0x542d33]['item']);!_0x42ba6c[_0xaff229]&&_0x49a59e?_0x42ba6c[_0xaff229]={'start':_0x5e5f0a,'tapeItem':_0x1c6c30[_0x542d33],'userId':_0x3c6bf4,'type':_0xaff229}:_0x42ba6c[_0xaff229]&&!_0x49a59e?(_0x42ba6c[_0xaff229]['end']=_0x5e5f0a,_0x43689f(_0x42ba6c[_0xaff229]),_0x42ba6c[_0xaff229]=null):_0x42ba6c[_0xaff229]&&_0x49a59e&&_0x42ba6c[_0xaff229]['userId']!==_0x3c6bf4&&(_0x42ba6c[_0xaff229]['end']=_0x5e5f0a,_0x4630de&&_0x4630de['userId']===_0x42ba6c[_0xaff229]['userId']||_0x43689f(_0x42ba6c[_0xaff229]),_0x42ba6c[_0xaff229]={'start':_0x5e5f0a,'tapeItem':_0x1c6c30[_0x542d33],'userId':_0x3c6bf4,'type':_0xaff229}),_0x42ba6c[_0xaff229]&&_0x4c7db1&&('elementStart'!==_0x1c6c30[_0x542d33]['type']||_0x4630de&&_0x4630de['userId']===_0x3c6bf4||_0x52165e[_0xaff229]['unshift']({'userId':_0x3c6bf4,'object':_0x1c6c30[_0x542d33]['item'],'change':_0x42ba6c[_0xaff229]}),'elementEnd'===_0x1c6c30[_0x542d33]['type']&&_0x4630de&&_0x4630de['object']===_0x1c6c30[_0x542d33]['item']&&(_0x52165e[_0xaff229]['shift'](),_0x42ba6c[_0xaff229]=_0x4630de['change'])),_0x42ba6c[_0xaff229]&&_0x290b6f&&(_0x42ba6c[_0xaff229]['end']=_0x30aabc,_0x43689f(_0x42ba6c[_0xaff229]),_0x42ba6c[_0xaff229]=null);}function _0x43689f({start:_0x13a8a0,end:_0x1daa42,tapeItem:_0x3765a8,userId:_0x59e86a,type:_0x3d56bb}){const _0x4f07c=_0x3765a8['item'],_0x1306a7=_0x43a81b['schema']['isBlock'](_0x4f07c)&&!_0x43a81b['schema']['isLimit'](_0x4f07c),_0x5bab9f=_0x13a8a0['nodeAfter']==_0x1daa42['parent']&&_0x1daa42['isAtStart'];if(_0x1306a7&&_0x5bab9f)return;const _0x4d2ff7=_0x43a81b['createRange'](_0x13a8a0,_0x1daa42),_0x5541e2=_0x27663c['get'](_0x59e86a),_0x53e4eb=new r({'author':_0x5541e2,'type':'isAdded'==_0x3d56bb||'isAddSuggestion'==_0x3d56bb?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3d56bb||'isRemoveSuggestion'==_0x3d56bb},'createdAt':new Date(),'rootName':_0x92b014});_0x4efe29['push'](_0x53e4eb),_0x56af28['markers']['set']('revision:'+_0x53e4eb['id'],_0x4d2ff7);}function _0x2d40a1(_0xfadd7e,_0x5c608d){const _0x92b20c=_0xfadd7e['getAttributes'](),_0x41e1c3=_0x5c608d['getAttributes']();for(const _0xd33aa8 of _0x92b20c){if(_0xd33aa8[0x1]!==_0x5c608d['getAttribute'](_0xd33aa8[0x0]))return!0x1;_0x41e1c3['next']();}return _0x41e1c3['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x531515=>{const _0x3bd6d2=_0x531515['markerName']['split'](':')[0x1],_0x196c0b=this['_getChangeFromId'](_0x3bd6d2);if(!_0x196c0b)return null;const _0x35178a='add'==_0x196c0b['type']?'insertion':'deletion',_0x2e2e20=['ck-suggestion-marker','ck-suggestion-marker-'+_0x35178a];return _0x196c0b['data']['isSuggestion']&&_0x2e2e20['push']('ck-suggestion-marker-'+_0x35178a+'-new'),this['activeChange']==_0x196c0b&&_0x2e2e20['push']('ck-suggestion-marker--active'),{'classes':_0x2e2e20,'attributes':{'data-change-id':_0x3bd6d2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x335b15=>{_0x335b15['on']('element:pre',(_0x588d34,_0x461033,_0x406166)=>{const _0x5e1581=_0x461033['viewItem']['getChild'](0x0);if(!_0x5e1581||!_0x5e1581['is']('element','code'))return;if(!_0x406166['consumable']['consume'](_0x5e1581,{'attributes':['vid_start','vid_end']}))return;const _0xe0c91f=_0x461033['modelRange']['start']['nodeAfter'];_0x406166['writer']['setAttribute']('vid_start',_0x5e1581['getAttribute']('vid_start'),_0xe0c91f),_0x406166['writer']['setAttribute']('vid_end',_0x5e1581['getAttribute']('vid_end'),_0xe0c91f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x481715=>{_0x481715['on']('element',(_0x49305f,_0x169295,_0x387ca7)=>{if(!_0x387ca7['consumable']['consume'](_0x169295['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x169295['modelRange']['isCollapsed'])return;const _0x52cea5=_0x169295['modelRange']['start']['nodeAfter'];_0x52cea5['hasAttribute']('vid_start')||_0x52cea5['hasAttribute']('vid')||(_0x387ca7['writer']['setAttribute']('vid_start',_0x169295['viewItem']['getAttribute']('vid_start'),_0x52cea5),_0x387ca7['writer']['setAttribute']('vid_end',_0x169295['viewItem']['getAttribute']('vid_end'),_0x52cea5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3c9152=>_0x3c9152['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x80891b,[,_0x4af4a8])=>{['vid_start','vid_end','vid']['includes'](_0x4af4a8)&&(_0x80891b['return']=!0x0,_0x80891b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x25c2e4=>{_0x25c2e4['on']('attribute:vid',(_0x5b9b42,_0x48882b,_0x9d9b55)=>{if('\x20'!=_0x48882b['item']['data']||_0x48882b['item']['parent']['maxOffset']>0x1)return;if(!_0x9d9b55['consumable']['consume'](_0x48882b['item'],_0x5b9b42['name']))return;const _0x33074c=_0x9d9b55['writer'],_0x27421d=_0x9d9b55['mapper']['toViewRange'](_0x48882b['range']);_0x33074c['wrap'](_0x27421d,_0x33074c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1c3d5a){const _0x408ba0=_0x1c3d5a['plugins']['get']('RevisionViewer');return(_0x598603,_0x2028ca,_0x1b5dc9)=>{const _0x123331=_0x2028ca['markerName']['split'](':')[0x1],_0xc0a678=_0x408ba0['_getChangeFromId'](_0x123331);if(!_0xc0a678)return null;const _0x1da55e='add'==_0xc0a678['type']?'split':'merge';if(!_0x1b5dc9['consumable']['test'](_0x2028ca['markerRange'],_0x598603['name']))return;const _0x524b57=_0x2028ca['markerRange']['getWalker'](),_0x3ca784=_0x2028ca['markerRange']['start'],_0x585721=_0x1c3d5a['model']['schema'];let _0x514d99=null,_0xb73631=null,_0x5b9b21=!0x1,_0x205d82=!0x1;for(const _0x3d82b3 of _0x524b57){const _0x2425e8=_0x3d82b3['item'];_0x5b9b21=_0x5b9b21||_0x585721['isContent'](_0x2425e8);const _0x451d82=_0x1b5dc9['mapper']['toViewElement'](_0x2425e8);if(_0x451d82&&_0x451d82['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d82b3['type']&&(_0x585721['isBlock'](_0x2425e8)&&!_0x585721['isLimit'](_0x2425e8)&&(_0x2425e8['nextSibling']||_0x3ca784['isAtEnd']?_0x514d99&&_0x514d99['parent']==_0x2425e8||(_0x514d99=_0x2425e8,_0x11907e(_0x3d82b3['previousPosition']),_0x205d82=!0x0):_0xb73631=_0xb73631||_0x3d82b3['previousPosition']));}function _0x11907e(_0x70ca0){const _0x198f46=_0x1b5dc9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1da55e}),_0x1e5054=_0x1b5dc9['mapper']['toViewPosition'](_0x70ca0);_0xc0a678['data']['isSuggestion']&&_0x1b5dc9['writer']['addClass']('ck-suggestion-marker-'+_0x1da55e+'-new',_0x198f46),_0x408ba0['activeChange']==_0xc0a678&&_0x1b5dc9['writer']['addClass']('ck-suggestion-marker--active',_0x198f46),_0x1b5dc9['writer']['insert'](_0x1e5054,_0x198f46),_0x1b5dc9['mapper']['bindElementToMarker'](_0x198f46,_0x2028ca['markerName']);}_0x5b9b21||_0x205d82||!_0xb73631||_0x11907e(_0xb73631);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x39f2af,_0x445b00,_0x37c271)=>{const _0x417ca5=_0x37c271['mapper']['markerNameToElements'](_0x445b00['markerName']);if(_0x417ca5){for(const _0x45a091 of _0x417ca5)(_0x45a091['hasClass']('ck-suggestion-marker-split')||_0x45a091['hasClass']('ck-suggestion-marker-merge'))&&(_0x37c271['mapper']['unbindElementFromMarkerName'](_0x45a091,_0x445b00['markerName']),_0x37c271['writer']['remove'](_0x45a091));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5a3e7d,_0x42304f,_0x502814)=>{const _0x381bc1=_0x42304f['markerName']['split'](':')[0x1],_0x575de7=this['_getChangeFromId'](_0x381bc1);if(!_0x575de7)return null;const _0x3a51b1='add'==_0x575de7['type']?'split':'merge';if(_0x502814['consumable']['test'](_0x42304f['markerRange'],_0x5a3e7d['name']))for(const _0x6fa482 of _0x42304f['markerRange']['getItems']()){if(!_0x6fa482['is']('element','softBreak'))continue;const _0x5c7623=_0x502814['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a51b1}),_0x76a5f0=_0x502814['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x6fa482));_0x575de7['data']['isSuggestion']&&_0x502814['writer']['addClass']('ck-suggestion-marker-'+_0x3a51b1+'-new',_0x5c7623),this['activeChange']==_0x575de7&&_0x502814['writer']['addClass']('ck-suggestion-marker--active',_0x5c7623),_0x502814['writer']['insert'](_0x76a5f0,_0x5c7623),_0x502814['mapper']['bindElementToMarker'](_0x5c7623,_0x42304f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5e472d=>{for(const _0x472290 of this['editor']['model']['document']['getRootNames']()){const _0x1eb519=this['editor']['model']['document']['getRoot'](_0x472290),_0x2c259e=this['editor']['editing']['view']['document']['getRoot'](_0x472290);if(_0x2c259e){const _0x227df8=_0x1eb519['getAttribute']('revisionHistoryAttachChange');if(_0x5e472d['removeAttribute']('data-change-id',_0x2c259e),_0x5e472d['removeClass']('ck-revision-history-root-add',_0x2c259e),_0x5e472d['removeClass']('ck-revision-history-root-remove',_0x2c259e),_0x5e472d['removeClass']('ck-revision-history-root--active',_0x2c259e),_0x227df8){const _0x16cf75=this['_getChangeFromId'](_0x227df8);if(!_0x16cf75)return null;_0x5e472d['setAttribute']('data-change-id',_0x227df8,_0x2c259e),_0x5e472d['addClass']('ck-revision-history-root-'+_0x16cf75['type'],_0x2c259e),this['activeChange']==_0x16cf75&&_0x5e472d['addClass']('ck-revision-history-root--active',_0x2c259e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3ccd65=>'revision-comment:'+_0x3ccd65,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1b2fc9=>'revision-suggestion:'+_0x1b2fc9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xd19c1d=>({'name':'suggestion:'+_0xd19c1d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x7f0b7f=>{const _0x3f356c=_0x7f0b7f['markerName']['split'](':')[0x1];return'insertion'!=_0x3f356c&&'deletion'!=_0x3f356c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f356c]};}}),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',(_0x7346b6,_0x33e5e7,_0x38fc43)=>{const _0x12828c=_0x38fc43['mapper']['markerNameToElements'](_0x33e5e7['markerName']);if(_0x12828c){for(const _0x9004a5 of _0x12828c)_0x9004a5['is']('uiElement')&&(_0x38fc43['mapper']['unbindElementFromMarkerName'](_0x9004a5,_0x33e5e7['markerName']),_0x38fc43['writer']['remove'](_0x9004a5));}},{'priority':'high'});}['_getChangeFromId'](_0x108575){return this['_changeIdToChange']['get'](_0x108575);}['_getViewForChange'](_0x57d700){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x57d700),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x169ea9,_0x1e3c99,_0x3c72e2,_0x1fa547)=>{_0x1fa547&&this['_balloon']['remove'](_0x1fa547),_0x3c72e2&&(this['_balloon']['add']({'view':_0x3c72e2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x445f60=this['editor']['editing'],_0x46da10=this['_getChangeFromId'](_0x3c72e2['changeId']);let _0x1952d2;if(_0x46da10['data']['isOnRoot']){const _0x2fa388=_0x445f60['view']['getDomRoot'](_0x46da10['rootName']);_0x1952d2=Array['from'](_0x2fa388['getClientRects']());}else{const _0x173648=this['editor']['model']['markers']['get']('revision:'+_0x3c72e2['changeId']);_0x1952d2=Array['from'](_0x445f60['mapper']['markerNameToElements'](_0x173648['name']))['map'](_0x1a5265=>_0x445f60['view']['domConverter']['mapViewToDom'](_0x1a5265))['map'](_0x2ddb44=>Array['from'](_0x2ddb44['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1952d2[0x0];return _0x1952d2['find'](_0x1b1275=>_0x1b1275['top']-0x3<=this['_activeViewTarget']['y']&&_0x1b1275['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1b1275['left']-0x3<=this['_activeViewTarget']['x']&&_0x1b1275['right']+0x3>=this['_activeViewTarget']['x'])||_0x1952d2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3e8b7f,_0x14d32a,_0x1d4115,_0x1439d4)=>{this['activeView']=_0x1d4115?this['_getViewForChange'](_0x1d4115):null,this['editor']['model']['change'](()=>{const _0x5d5e0e=this['editor']['editing'];_0x1439d4&&(_0x1439d4['data']['isOnRoot']?_0x5d5e0e['view']['change'](_0xd0cce6=>{_0xd0cce6['removeClass']('ck-revision-history-root--active',_0x5d5e0e['view']['document']['getRoot'](_0x1439d4['rootName']));}):_0x5d5e0e['reconvertMarker']('revision:'+_0x1439d4['id'])),_0x1d4115&&(_0x1d4115['data']['isOnRoot']?_0x5d5e0e['view']['change'](_0x3fc190=>{_0x3fc190['addClass']('ck-revision-history-root--active',_0x5d5e0e['view']['document']['getRoot'](_0x1d4115['rootName']));}):_0x5d5e0e['reconvertMarker']('revision:'+_0x1d4115['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x15ea43,_0x1b2743)=>{if(this['activeChange'])return;const _0x278aeb=this['_findChangeIdFromDomTarget'](_0x1b2743['target']),_0x5dd5df=this['_changeIdToChange']['get'](_0x278aeb);_0x5dd5df?(this['_activeViewTarget']={'x':_0x1b2743['domEvent']['x'],'y':_0x1b2743['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dd5df)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x13127e,_0x601330)=>{const _0x42fbb6=this['_findChangeIdFromDomTarget'](_0x601330['target']),_0x51e91b=this['_changeIdToChange']['get'](_0x42fbb6);_0x51e91b?(this['_activeViewTarget']={'x':_0x601330['domEvent']['x'],'y':_0x601330['domEvent']['y']},_0x51e91b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x51e91b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2e097e){do{const _0x213fc5=_0x2e097e['getAttribute']('data-change-id');if(_0x213fc5)return _0x213fc5;_0x2e097e=_0x2e097e['parent'];}while(_0x2e097e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x31d4ef=>{for(const _0x16ac13 of this['editor']['model']['markers'])_0x31d4ef['removeMarker'](_0x16ac13);});}}function tt(_0x295d3b,_0x34dedd){return(_0x38ad9c,_0x244a52,_0x10e82d)=>{if(!_0x10e82d['consumable']['test'](_0x244a52['markerRange'],_0x38ad9c['name']))return;const _0x112dcb=_0x244a52['markerRange']['getWalker'](),_0x383b94=_0x244a52['markerRange']['start'],_0x433b1b=_0x295d3b['model']['schema'];let _0x4f8fe6=null,_0xc7532a=null,_0x178099=!0x1,_0x43a7d3=!0x1;for(const _0x254360 of _0x112dcb){const _0x43244b=_0x254360['item'];_0x178099=_0x178099||_0x433b1b['isContent'](_0x43244b);const _0x3f4e2c=_0x10e82d['mapper']['toViewElement'](_0x43244b);if(_0x3f4e2c&&_0x3f4e2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x254360['type']&&(_0x433b1b['isBlock'](_0x43244b)&&!_0x433b1b['isLimit'](_0x43244b)&&(_0x43244b['nextSibling']||_0x383b94['isAtEnd']?_0x4f8fe6&&_0x4f8fe6['parent']==_0x43244b||(_0x4f8fe6=_0x43244b,_0x23aed6(_0x254360['previousPosition']),_0x43a7d3=!0x0):_0xc7532a=_0xc7532a||_0x254360['previousPosition']));}function _0x23aed6(_0x472e08){const _0x53069d=_0x10e82d['mapper']['toViewPosition'](_0x472e08),_0x5d2aa0=_0x10e82d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x34dedd});_0x10e82d['writer']['insert'](_0x53069d,_0x5d2aa0),_0x10e82d['mapper']['bindElementToMarker'](_0x5d2aa0,_0x244a52['markerName']);}_0x178099||_0x43a7d3||!_0xc7532a||_0x23aed6(_0xc7532a);};}class _t extends _0x33b7b5{constructor(_0x1b2356){super(_0x1b2356);const _0x5929e8=_0x1b2356['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5929e8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5929e8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x46f40e=this['editor'],_0x1bc6d3=_0x46f40e['plugins']['get'](d),_0x316cee=_0x1bc6d3['isReady']?_0x1bc6d3['diff']['newRevisionId']:null;_0x46f40e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x316cee);}['refresh'](){const {isReady:_0x3117af,isEnabled:_0x2e5d7a,repository:_0x5f2d95,diff:_0x27127c}=this['editor']['plugins']['get'](d),_0x3cde0f=_0x27127c&&_0x5f2d95['getLaterVisibleRevision'](_0x27127c['newRevisionId']);this['isEnabled']=_0x3117af&&_0x2e5d7a&&Boolean(_0x3cde0f);}}class yt extends _0x33b7b5{['_step'];constructor(_0x5de23b,{direction:_0x3ab171}){super(_0x5de23b);const _0x518d80=_0x5de23b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3ab171?0x1:-0x1,this['listenTo'](_0x518d80,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x518d80,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x518d80,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x45ae83=this['editor'],_0x26e831=_0x45ae83['plugins']['get'](d),{isNavigationMode:_0x38cd5e,currentChangeNumber:_0x2d328f}=_0x26e831;let _0x4bc320;if(_0x26e831['activeChange']=_0x38cd5e?_0x26e831['diff']['changes']['get'](_0x2d328f+this['_step']):_0x26e831['diff']['changes']['first'],_0x26e831['activeChange']['data']['isOnRoot'])_0x4bc320=_0x45ae83['editing']['view']['getDomRoot'](_0x26e831['activeChange']['rootName']);else{const _0x916573=_0x45ae83['model']['markers']['get']('revision:'+_0x26e831['activeChange']['id']);_0x4bc320=_0x55763c(_0x45ae83['editing'],_0x916573);}_0x4fc0fc({'target':_0x4bc320,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2ff6dc,currentChangeNumber:_0x23dae9,numberOfChanges:_0x18d570,isReady:_0x559b6e,isEnabled:_0x1a266d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1a266d&&_0x559b6e&&_0x18d570)&&(!_0x2ff6dc||(0x1===this['_step']?_0x23dae9<_0x18d570-0x1:_0x23dae9>0x0));}}class ui extends ts{constructor(_0x1a0eb9){super(_0x1a0eb9);const _0x5309c0=this['bindTemplate'],_0x1e17a8=new te(_0x1a0eb9),_0x5d4a1a=new te(_0x1a0eb9);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',(_0x375298,_0x5b7794)=>_0x375298&&_0x5b7794>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xa4ee87,_0x451e0a,_0x2a14d2,_0x3907a0)=>{if(!_0xa4ee87)return R(_0x1a0eb9,'Loading...');if(!_0x2a14d2)return R(_0x1a0eb9,'No\x20changes');const _0x5a9c14=R(_0x1a0eb9,'NUMBER_OF_CHANGES',_0x2a14d2);return _0x3907a0?R(_0x1a0eb9,'X_OF_Y_CHANGES',[_0x451e0a+0x1,_0x2a14d2]):_0x5a9c14;}),_0x1e17a8['set']({'label':R(_0x1a0eb9,'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'}),_0x5d4a1a['set']({'label':R(_0x1a0eb9,'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'}),_0x1e17a8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d4a1a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1e17a8['on']('execute',()=>this['fire']('execute','backward')),_0x5d4a1a['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',_0x5309c0['if']('_isStatusLabelVisible','ck-hidden',_0x12351e=>!_0x12351e)]},'children':[{'text':_0x5309c0['to']('isNavigationMode',_0x3663cc=>_0x3663cc?R(_0x1a0eb9,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1a0eb9,'Total')+':\x20')}]},{'text':_0x5309c0['to']('_statusText')}]},new _0x33b3c3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1e17a8,_0x5d4a1a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x1dc3ac{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b81a8=this['editor']['editing']['view'];_0x2b81a8['change'](_0x1833e6=>{for(const _0x1aa572 of _0x2b81a8['document']['roots'])_0x1833e6['addClass'](le,_0x1aa572);});}['hide'](){const _0x1cdccc=this['editor']['editing']['view'];_0x1cdccc['change'](_0x234546=>{for(const _0x297645 of _0x1cdccc['document']['roots'])_0x234546['removeClass'](le,_0x297645);});}}class m extends _0x1dc3ac{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x40a02b=this['editor'],_0x153433=_0x40a02b['plugins']['get'](d),_0x279055=_0x40a02b['plugins']['get'](de);_0x40a02b['ui']['componentFactory']['add']('exitToEditing',_0x1a1c38=>{const _0x102c1f=new te(_0x1a1c38);return _0x102c1f['set']({'label':R(_0x1a1c38,'Back\x20to\x20editing'),'icon':_0x3255c8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x102c1f,'execute',()=>{_0x40a02b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x102c1f;}),_0x40a02b['ui']['componentFactory']['add']('restoreRevision',_0x19f3a9=>{const _0xa7a84e=new te(_0x19f3a9);return _0xa7a84e['set']({'label':R(_0x19f3a9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xa7a84e['bind']('isEnabled')['to'](_0x40a02b['commands']['get']('restoreRevision')),this['listenTo'](_0xa7a84e,'execute',()=>_0x40a02b['execute']('restoreRevision')),_0xa7a84e;}),_0x40a02b['ui']['componentFactory']['add']('changesNavigation',_0xa231cb=>{const _0x3984fc=new ui(_0xa231cb),_0x1dc441=_0x40a02b['commands']['get']('showPreviousChange'),_0x5409d4=_0x40a02b['commands']['get']('showNextChange');return _0x3984fc['bind']('isBackwardNavigationEnabled')['to'](_0x1dc441,'isEnabled'),_0x3984fc['bind']('isForwardNavigationEnabled')['to'](_0x5409d4,'isEnabled'),_0x3984fc['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x153433),this['listenTo'](_0x3984fc,'execute',(_0x4aa48f,_0x563161)=>{_0x40a02b['execute']('forward'===_0x563161?'showNextChange':'showPreviousChange');}),_0x3984fc;}),_0x279055['show'](),_0x153433['on']('change:isReady',(_0x10a407,_0x5b96c2,_0xb0f47c)=>{_0xb0f47c?_0x279055['hide']():_0x279055['show']();});}}class pt extends _0x3e59e5{['_resizeObserver']=null;constructor(_0x3d37f8,_0x261541){super(_0x3d37f8,_0x261541);const _0x3b677a=this['bindTemplate'];this['set']({'label':R(_0x3d37f8,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3d37f8,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3b677a['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 _0x3c7643=this['fieldView']['element'];this['_tooltipString']=_0x3c7643['scrollWidth']>_0x3c7643['clientWidth']&&_0x3c7643['value']||'';}}class ri extends ts{constructor(_0x37811d,_0x4ac2a6,_0x2a1e5e){super(_0x37811d);const _0x3008f6=new _0x7efb03();_0x3008f6['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 _0x49f436=['ck','ck-revision-history-sidebar__revision-author'];_0x2a1e5e&&_0x49f436['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4f1595=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x37811d,_0x2a1e5e?'Revision\x20creator':'Revision\x20author')},'children':[_0x3008f6,_0x4ac2a6['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x49f436},'children':_0x4f1595});}}function oi(_0x278204,_0x5536df){const _0x20ee88=_0x278204['bindTemplate'],_0x3b6232=_0x278204['locale'],_0x49446f=_0x1acade(_0x3b6232);_0x49446f['panelPosition']='sw';const _0x45957b=function(_0x512eb7,_0x4e9f69){const _0x52b115=function(_0x23d585,_0x3175f8){const _0x4d60d9=_0x23d585['locale'],_0xa5a0f2={'Compare\x20against\x20selected':R(_0x4d60d9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4d60d9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4d60d9,'Restore\x20this\x20revision')};return _0x3175f8['map'](_0x6bcf8=>{const _0x5101fe=_0xa5a0f2[_0x6bcf8['name']];return _0x5101fe&&_0x5101fe!==_0x6bcf8['name']&&(_0x6bcf8['name']=_0x5101fe),_0x6bcf8;});}(_0x512eb7,_0x4e9f69),_0x121338=new _0x1b68a5();for(const _0x30aa34 of _0x52b115){const _0x324a50={'type':'button','model':new _0x5a642d({'label':_0x30aa34['name'],'class':_0x30aa34['class'],'withText':!0x0,'role':'menuitem','_action':_0x30aa34['action']})};_0x324a50['model']['bind']('isEnabled')['to'](_0x512eb7,'isActionsDropdownOpen',_0x1efe0d=>'function'!=typeof _0x30aa34['isEnabled']||(!_0x1efe0d||_0x30aa34['isEnabled'](_0x512eb7))),_0x121338['add'](_0x324a50);}return _0x121338;}(_0x278204,_0x5536df);return _0x278204['bind']('isActionsDropdownOpen')['to'](_0x49446f,'isOpen'),_0x49446f['buttonView']['set']({'label':R(_0x3b6232,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3255c8['threeVerticalDots']}),_0x49446f['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x20ee88['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x20ee88['to'](_0xae14b6=>_0xae14b6['stopPropagation']())}}),_0x49446f['on']('execute',_0x4d5dd8=>{_0x278204['isReady']&&'function'==typeof _0x4d5dd8['source']['_action']&&_0x4d5dd8['source']['_action'](_0x278204);}),to(_0x49446f,_0x45957b,{'role':'menu'}),_0x49446f['listenTo'](_0x278204,'change:isActionsDropdownOpen',(_0x47f1cb,_0x2eb7ef,_0x336606)=>{if(_0x336606)for(const _0x1f9145 of _0x49446f['listView']['items']){const _0x5b6d02=_0x1f9145['children']['first'],_0x18021f=_0x5536df['find'](_0x3c1636=>_0x3c1636['action']===_0x5b6d02['_action'])['isVisible'];_0x1f9145['isVisible']=void 0x0===_0x18021f||_0x18021f(_0x278204);}}),_0x49446f;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xa244df,_0x5701e8,_0x58557a,_0xa7318e){super(_0xa244df);const _0x5be6bd=this['bindTemplate'],_0x1121c6=function(_0x56e785,_0x4e7441){const _0x32564e=Array['from'](_0x4e7441['authors'])['filter'](_0x4a845b=>_0x4a845b!=_0x4e7441['creator']);return _0x4e7441['creator']&&_0x32564e['unshift'](_0x4e7441['creator']),_0x32564e['map'](_0x31e530=>new ri(_0x56e785,_0x31e530,_0x31e530==_0x4e7441['creator']));}(_0xa244df,_0x5701e8);this['id']=_0x5701e8['id'],this['_revision']=_0x5701e8,this['_requireRevisionName']=_0xa7318e,this['bind']('name','createdAt')['to'](_0x5701e8),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4dbb2a=>{return _0x5714e8=_0xa244df['uiLanguage'],(_0x2c9fce=_0x4dbb2a)['toLocaleDateString'](_0x5714e8,{'month':'long','day':'numeric'})+',\x20'+_0x2c9fce['toLocaleTimeString'](_0x5714e8,{'hour':'numeric','minute':'numeric'});var _0x5714e8,_0x2c9fce;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xa244df,_0x7692c0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3f94d9=>_0x3f94d9||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4e84d3,_0x36668e)=>_0x4e84d3&&_0x36668e),this['revisionActionsView']=_0x58557a&&_0x58557a['length']?oi(this,_0x58557a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5be6bd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5be6bd['if']('isEnabled','ck-disabled',_0x2014bc=>!_0x2014bc),_0x5be6bd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5be6bd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5be6bd['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':_0x5be6bd['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':_0x1121c6}]},this['revisionActionsView']],'on':{'click':_0x5be6bd['to'](_0x5edadb=>{_0x5edadb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2bf1ad=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2bf1ad,'change',()=>{this['_requireRevisionName']&&!_0x2bf1ad['value']||this['fire']('setName',{'id':this['id'],'name':_0x2bf1ad['value']}),_0x2bf1ad['value']||(_0x2bf1ad['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x4e1637,_0x5bbf00){const _0x30dc66=_0x4a6d18['fromJSDate'](_0x4e1637)['setLocale'](_0x5bbf00),_0x5ac629=_0x4a6d18['local'](),_0x574f5f=_0x5ac629['minus']({'days':0x1})['startOf']('day');let _0x5d7f23,_0x355aaa;return _0x30dc66['hasSame'](_0x5ac629,'day')?(_0x5d7f23=_0x30dc66['startOf']('day')['toJSDate'](),_0x355aaa=_0x30dc66['toRelativeCalendar']()):_0x30dc66['hasSame'](_0x574f5f,'day')?(_0x5d7f23=_0x574f5f['toJSDate'](),_0x355aaa=_0x30dc66['toRelativeCalendar']()):_0x30dc66['hasSame'](_0x5ac629,'week')?(_0x5d7f23=_0x30dc66['startOf']('week')['toJSDate'](),_0x355aaa=_0x30dc66['weekdayLong']||''):_0x30dc66['hasSame'](_0x5ac629,'year')?(_0x5d7f23=_0x30dc66['startOf']('month')['toJSDate'](),_0x355aaa=_0x30dc66['monthLong']||''):(_0x5d7f23=_0x30dc66['startOf']('year')['toJSDate'](),_0x355aaa=String(_0x30dc66['year'])),{'startDate':_0x5d7f23,'localizedPeriodName':_0x355aaa};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3a855d,_0x3720e9,_0x379e07,_0x50bfca){super(_0x3a855d);const _0x264068=mi(_0x3720e9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3720e9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x379e07,this['_requireRevisionName']=_0x50bfca,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':_0x264068}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3a4098){const _0x26582c=new hi(this['locale'],_0x3a4098,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x26582c);}['removeRevision'](_0x174a60){const _0x3fb2db=this['revisionViews']['find'](_0x3cdafd=>_0x3cdafd['id']===_0x174a60['id']);this['revisionViews']['remove'](_0x3fb2db);}}class as extends ts{constructor(_0x50dff7){super(_0x50dff7);const _0x26eb72=new _0x7efb03();_0x26eb72['content']=_0x3255c8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x26eb72,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x50dff7,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x11aca8,_0x54d5e5,_0x341656,_0x56dda9){super(_0x11aca8);const _0x4b5db1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x54d5e5,this['_revisionActions']=_0x341656,this['_requireRevisionName']=_0x56dda9,this['on']('select',(_0x1bd14f,_0xc25b54)=>{this['fire']('revisionSelected',_0xc25b54);}),this['on']('setName',(_0x3e8c96,_0xcaf290)=>{this['fire']('revisionSetName',_0xcaf290);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x11aca8),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4b5db1['if']('isEnabled','ck-disabled',_0x37e3bb=>!_0x37e3bb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4ff7ab of this['_revisions'])this['_addRevision'](_0x4ff7ab);this['_revisions']['on']('add',(_0x49aec2,_0x1f6fcf)=>{this['_addRevision'](_0x1f6fcf);}),this['_revisions']['on']('remove',(_0x207272,_0x1dd454)=>{this['_removeRevision'](_0x1dd454);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x431548=>_0x431548['revisionViews']['map'](_0x1c06a0=>_0x1c06a0))['flat']();}['selectRevision'](_0x2ee8eb){for(const _0x448420 of this['revisionViews'])_0x2ee8eb&&_0x2ee8eb['id']===_0x448420['id']?_0x448420['select']():_0x448420['deselect']();}['highlightRevisions'](_0x12807e){for(const _0xea4df9 of this['revisionViews'])_0x12807e['some'](({id:_0x289850})=>_0x289850===_0xea4df9['id'])?_0xea4df9['highlight']():_0xea4df9['unhighlight']();}['_addRevision'](_0x281394){const _0x568f6b=mi(_0x281394['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x16a300=this['timePeriodViews']['get'](0x0);_0x16a300&&_0x16a300['startDate']['getTime']()===_0x568f6b['getTime']()||(_0x16a300=new vi(this['locale'],_0x568f6b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x16a300)),_0x16a300['addRevision'](_0x281394);}['_removeRevision'](_0x355a32){const _0x188f36=mi(_0x355a32['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x188f36)['removeRevision'](_0x355a32);}['_getTimePeriodViewByStartDate'](_0x316a50){return this['timePeriodViews']['find'](_0x4be822=>_0x4be822['startDate']['getTime']()===_0x316a50['getTime']());}}class g extends _0x1dc3ac{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1d1d12,_0x466fc3){super(_0x466fc3),this['sourceElement']=_0x1d1d12,this['model']['document']['createRoot']();const _0x35806c=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x35806c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x463eaf,_0x418f02){const _0x51a3f2=new this(_0x463eaf,_0x418f02);return await _0x51a3f2['initPlugins'](),await _0x51a3f2['ui']['init'](_0x463eaf),await _0x51a3f2['data']['init'](_0x51a3f2['config']['get']('initialData')||''),_0x51a3f2['fire']('ready'),_0x51a3f2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x4e17c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb630cc){function _0xbd908(_0x59d03a){return _0x59d03a['map'](_0x673f4e=>String['fromCharCode'](_0x673f4e))['join']('');}super(_0xb630cc),this['result']='end',_0xb630cc[_0xbd908([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbd908([0x76,0x69,0x65,0x77])][_0xbd908([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbd908([0x61,0x75,0x74,0x6f]),_0xb630cc[_0xbd908([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xbd908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbd908([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xbd908([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xbd908([0x6f,0x6b])});}}class H extends _0x4e17c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3dd21d){if(super(_0x3dd21d),!this['editor']['config']['get']('revisionHistory'))throw new _0x147c38('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x21a5fe=>this['_showRevisionViewer']({..._0x21a5fe,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x449c6f=>this['_closeRevisionViewer'](_0x449c6f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5c19c7=>this['_restoreRevision'](_0x5c19c7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x219950){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x219950;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5c3d37){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5c3d37);}['getRevision'](_0x2fe797){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2fe797);}['getRevisions'](_0x4091d6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4091d6||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x280bac=this['editor'],_0x3235ec=_0x26dfbd(_0x280bac,p),_0x2e3623=_0x280bac['plugins']['get']('RevisionTracker'),_0xb6ebd8=_0x280bac['plugins']['get']('Users')['users'];return _0x3235ec['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3235ec['lazyRoots'],(_0x3235ec['plugins']['push'](k,d,m,class extends _0x4e17c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x37cd09=this['editor']['plugins']['get']('Users');for(const _0x47288e of _0xb6ebd8)_0x47288e['isAnonymous']||_0x37cd09['getUser'](_0x47288e['id'])||_0x37cd09['addUser'](_0x47288e);const _0x3a5dfa=_0x2e3623['repository']['getRevisions']();let _0x174f14=null;const _0x2ca7dc=this['editor']['plugins']['get']('RevisionViewer');_0x2ca7dc['adapter']=_0x2e3623['adapter'],_0x2ca7dc['bind']('isEnabled')['to'](_0x2e3623),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x280bac,'isReadOnly',_0x21a1d0=>!_0x21a1d0);for(const _0x4b54e5 of _0x3a5dfa){const _0x1df2f2=null===_0x4b54e5['creator'];if(_0x1df2f2&&_0x4b54e5['toVersion']===_0x4b54e5['fromVersion'])continue;const _0x442599=_0x4b54e5['toJSON']();_0x2ca7dc['addRevisionData'](_0x442599,(_0x280a20,_0x27cf6f,_0x36b532)=>{if(_0x1df2f2){if(_0x174f14)_0x174f14['_update'](_0x280a20,_0x27cf6f);else{if(!_0x27cf6f){const _0x1a7067=_0x36b532['toJSON']();_0x1a7067['id']=_0x4c5b41(),_0x2e3623['saveRevision'](_0x1a7067,_0x36b532['toVersion'])['then'](_0x4eba32=>{_0x174f14=_0x4eba32;});}}}else _0x4b54e5['_update'](_0x280a20,_0x27cf6f);});}}},g),_0x3235ec);}['_enhanceShowRevisionViewerCallback'](){const _0x10df89=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x12daa8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a9f4f=this['editor']['plugins']['get']('Autosave');await _0x4a9f4f['save']();}else await _0x12daa8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2bacf9=this['editor']['plugins']['get']('Dialog');_0x2bacf9['isOpen']&&_0x2bacf9['hide']();}const _0x3ab92c=this['_getRevisionViewerEditorConfig']();return _0x10df89(_0x3ab92c)['then'](_0x5deae2=>{return(this['_viewerEditor']=_0x5deae2,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5deae2;})['catch'](_0x283027=>(console['error'](_0x283027),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2c675b=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'](),_0x2c675b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x38aa77=this['editor']['plugins']['get']('Annotations');_0x38aa77['refreshVisibility'](),_0x38aa77['refreshPositioning']();}})));}['_showRevisionViewer'](_0xb1583d){const _0x434633=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4af39b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x15821e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x15821e,_0xb1583d)['then'](_0x247b4c=>(_0x4af39b['style']['display']='block',_0x434633['style']['display']='none',_0x247b4c));}['_closeRevisionViewer'](_0x4e5c86){const _0x2484ae=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2484ae['style']['display']='',_0x4e5c86['destroy']();}async['_restoreRevision'](_0x47e57b){const _0xd2c0e9=this['editor'],_0x3cd5a5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x409d0a=_0xd2c0e9['plugins']['get']('RevisionTracker'),_0x261bad=_0x3cd5a5['repository']['getRevision'](_0x47e57b);let _0x51fa7c,_0x4ad22d,_0x5f22cf;try{_0x51fa7c=await _0x3cd5a5['getRevisionData'](_0x261bad),_0x4ad22d=await _0x3cd5a5['getRevisionRootsAttributes'](_0x261bad);}catch(_0x58fb56){return void console['error'](_0x58fb56);}_0xd2c0e9['model']['change'](_0x5bacb2=>{for(const _0x214a91 of Array['from'](_0xd2c0e9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5bacb2['removeMarker'](_0x214a91);}),_0x3cd5a5['isReady']=!0x1,_0xd2c0e9['model']['enqueueChange'](_0x55ed52=>{_0x55ed52['setSelection'](null),_0x55ed52['removeSelectionAttribute'](_0xd2c0e9['model']['document']['selection']['getAttributeKeys']());const _0x3aea2d=Object['keys'](_0x51fa7c);for(const _0x4740c3 of _0xd2c0e9['model']['document']['roots'])'$graveyard'!=_0x4740c3['rootName']&&_0x4740c3['isAttached']()&&!_0x3aea2d['includes'](_0x4740c3['rootName'])&&_0x55ed52['detachRoot'](_0x4740c3);for(const _0x4eeb7d of _0x3aea2d){let _0x3c8681=_0xd2c0e9['model']['document']['getRoot'](_0x4eeb7d);_0x3c8681&&_0x3c8681['isAttached']()||(_0x3c8681=_0x55ed52['addRoot'](_0x4eeb7d));const _0x498d2d=_0x4ad22d[_0x4eeb7d],_0x246ade=Object['keys'](_0x498d2d),_0x1bc859=_0x51fa7c[_0x4eeb7d];for(const _0x380f75 of _0x3c8681['getAttributeKeys']())_0x246ade['includes'](_0x380f75)||_0x55ed52['removeAttribute'](_0x380f75,_0x3c8681);for(const _0x453d39 of _0x246ade)_0x55ed52['setAttribute'](_0x453d39,_0x4ad22d[_0x4eeb7d][_0x453d39],_0x3c8681);_0x55ed52['remove'](_0x55ed52['createRangeIn'](_0x3c8681)),_0x55ed52['insert'](_0xd2c0e9['data']['parse'](_0x1bc859,_0x3c8681),_0x3c8681,0x0);}});const _0x5dfe3e=R(_0xd2c0e9['locale'],'Restored');if(_0x261bad['name'])_0x5f22cf=-0x1==_0x261bad['name']['indexOf'](_0x5dfe3e)?_0x5dfe3e+':\x20'+_0x261bad['name']:_0x261bad['name'];else _0x5f22cf=_0x5dfe3e+':\x20'+(_0x261bad['createdAt']['toLocaleDateString'](_0xd2c0e9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x261bad['createdAt']['toLocaleTimeString'](_0xd2c0e9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x409d0a['saveRevision']({'name':_0x5f22cf}),_0x3cd5a5['isReady']=!0x0,_0xd2c0e9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de 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(_0x5275f2){super(_0x5275f2),this['_revisionViewer']=_0x5275f2['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15bb2e=this['_revisionsRepository']['_revisions'],_0x10126d=this['_createRevisionActions'](),_0x2344a7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x15bb2e,_0x10126d,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',(_0x2cd833,_0xd57001)=>{_0xd57001['revisionViews']['on']('add',(_0x4cfa13,_0x329cc0)=>{_0x329cc0['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)),_0x2344a7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x228add=this['_revisionsRepository']['getRevision'](0x0);if(_0x228add){const _0x42d6f9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x228add['id']);this['_revisionViewer']['compare'](_0x228add,_0x42d6f9);}}['_handleRevisionSelected'](_0x222f1c,_0x5f4b75){const _0x599379=this['_revisionsRepository']['getRevision'](_0x5f4b75['id']),_0x58698f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x599379['id']);this['_revisionViewer']['compare'](_0x599379,_0x58698f);}['_handleRevisionSetName'](_0x404882,_0xfd8c45){this['_revisionsRepository']['getRevision'](_0xfd8c45['id'])['setName'](_0xfd8c45['name']);}['_handleDiffChange'](_0x193381,_0x2f8545,_0x55ff1c){const _0x2c4a74=this['_revisionsRepository']['getRevisionsInDiff'](_0x55ff1c);_0x2c4a74['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2c4a74),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2c4a74[0x0]));}['_createRevisionActions'](){const _0x4b2efc=this['editor'],_0x4a083d=g['availableRevisionActions'],_0x1ea758=_0x4b2efc['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1ea758['length'])return _0x1ea758['map'](_0x258251=>{const _0x1a2d28='string'==typeof _0x258251?Object['assign']({},_0x4a083d[_0x258251]):_0x258251;return _0x1a2d28['action']=_0x1a2d28['action']['bind'](this,_0x4b2efc),_0x1a2d28['isVisible']&&(_0x1a2d28['isVisible']=_0x1a2d28['isVisible']['bind'](this,_0x4b2efc)),_0x1a2d28;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x39dadd},_0x423ae9)=>{const _0x4cff70=_0x39dadd['get'](d),_0x370a67=_0x4cff70['repository'];let _0x265201=_0x4cff70['diff']['newRevisionId'],_0x24e7a3=_0x423ae9['id'];_0x370a67['getIndex'](_0x265201)>_0x370a67['getIndex'](_0x24e7a3)&&([_0x265201,_0x24e7a3]=[_0x24e7a3,_0x265201]),_0x4cff70['compare'](_0x265201,_0x24e7a3);},'isVisible':({plugins:_0x21f4f9},_0x19c738)=>{const _0x164d6f=_0x21f4f9['get'](d);return!(_0x164d6f['repository']['getRevisionsInDiff'](_0x164d6f['diff'])['length']>0x2)&&!_0x19c738['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x40174f,{id:_0x14a029})=>{_0x40174f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14a029);},'isVisible':({plugins:_0x263667},_0x1b0a37)=>!!_0x263667['get'](d)['repository']['getLaterVisibleRevision'](_0x1b0a37['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x42a3ff},{id:_0x1b61f0,revisionNameView:_0xa6de0})=>{const _0x36258d=_0x42a3ff['get'](d),_0x53c4ef=_0x36258d['repository']['getEarlierVisibleRevision'](_0x1b61f0);_0x36258d['compare'](_0x1b61f0,_0x53c4ef),_0xa6de0['focus'](),_0xa6de0['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3691dc,_0x1c010d){super(_0x3691dc),this['_view']=_0x1c010d,this['_toolbarConfig']=ht(_0x3691dc['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1bc9d4){const _0x42ac5e=this['editor'],_0x2ca658=this['view'],_0x4aa23c=_0x42ac5e['editing']['view'],_0x5ae69e=_0x2ca658['editable'],_0x369df1=_0x4aa23c['document']['getRoot']();_0x5ae69e['name']=_0x369df1['rootName'],_0x2ca658['render']();const _0x7d1011=_0x5ae69e['element'];this['setEditableElement'](_0x5ae69e['name'],_0x7d1011),_0x2ca658['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4aa23c['attachDomRoot'](_0x7d1011),this['_elementReplacer']['replace'](_0x1bc9d4,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x20ef6a=this['view'],_0xb25b0a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xb25b0a['detachDomRoot'](_0x20ef6a['editable']['name']),_0x20ef6a['destroy']();}['_initToolbar'](){const _0x3a2d95=this['view'];_0x3a2d95['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3a2d95['stickyPanel']['limiterElement']=_0x3a2d95['element'],_0x3a2d95['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4c58fb})=>_0x4c58fb),_0x3a2d95['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3a2d95['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x53fca2,_0x261a46,_0x1db4a0={}){super(_0x53fca2),this['stickyPanel']=new lt(_0x53fca2),this['toolbar']=new nt(_0x53fca2,{'shouldGroupWhenFull':_0x1db4a0['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x53fca2,_0x261a46);}['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(_0x591b27,_0xa77ad){super(_0xa77ad),this['sourceElement']=_0x591b27,this['model']['document']['createRoot']();const _0x318a71=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x318a71);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x154a48,_0x5aa2a0){const _0x39fc0a=new this(_0x154a48,_0x5aa2a0);return await _0x39fc0a['initPlugins'](),await _0x39fc0a['ui']['init'](_0x154a48),await _0x39fc0a['data']['init'](_0x39fc0a['config']['get']('initialData')||''),_0x39fc0a['fire']('ready'),_0x39fc0a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x1dc3ac{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20b7ba){function _0x3113f4(_0x528c97){return _0x528c97['map'](_0x270838=>String['fromCharCode'](_0x270838))['join']('');}super(_0x20b7ba),this['result']='end',_0x20b7ba[_0x3113f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3113f4([0x76,0x69,0x65,0x77])][_0x3113f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3113f4([0x61,0x75,0x74,0x6f]),_0x20b7ba[_0x3113f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3113f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3113f4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3113f4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3113f4([0x6f,0x6b])});}}class H extends _0x1dc3ac{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x183b83){if(super(_0x183b83),!this['editor']['config']['get']('revisionHistory'))throw new _0x211e10('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5e9b29=>this['_showRevisionViewer']({..._0x5e9b29,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x527578=>this['_closeRevisionViewer'](_0x527578)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5dbd48=>this['_restoreRevision'](_0x5dbd48)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40e22c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40e22c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x260fa4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x260fa4);}['getRevision'](_0x28334){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28334);}['getRevisions'](_0xacf114){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xacf114||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5250c6=this['editor'],_0x4e5f81=_0x5bb64a(_0x5250c6,p),_0x225d8f=_0x5250c6['plugins']['get']('RevisionTracker'),_0x2b843f=_0x5250c6['plugins']['get']('Users')['users'];return _0x4e5f81['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e5f81['lazyRoots'],(_0x4e5f81['plugins']['push'](k,d,m,class extends _0x1dc3ac{static get['requires'](){return[d,'Users'];}['init'](){const _0x5f5a36=this['editor']['plugins']['get']('Users');for(const _0x269c25 of _0x2b843f)_0x269c25['isAnonymous']||_0x5f5a36['getUser'](_0x269c25['id'])||_0x5f5a36['addUser'](_0x269c25);const _0x1ebb0d=_0x225d8f['repository']['getRevisions']();let _0x5a57c1=null;const _0x107a1e=this['editor']['plugins']['get']('RevisionViewer');_0x107a1e['adapter']=_0x225d8f['adapter'],_0x107a1e['bind']('isEnabled')['to'](_0x225d8f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5250c6,'isReadOnly',_0x380659=>!_0x380659);for(const _0x27f018 of _0x1ebb0d){const _0x4c6199=null===_0x27f018['creator'];if(_0x4c6199&&_0x27f018['toVersion']===_0x27f018['fromVersion'])continue;const _0x11b375=_0x27f018['toJSON']();_0x107a1e['addRevisionData'](_0x11b375,(_0x146213,_0x4907e0,_0x1f7e7d)=>{if(_0x4c6199){if(_0x5a57c1)_0x5a57c1['_update'](_0x146213,_0x4907e0);else{if(!_0x4907e0){const _0x52f822=_0x1f7e7d['toJSON']();_0x52f822['id']=_0x4fc209(),_0x225d8f['saveRevision'](_0x52f822,_0x1f7e7d['toVersion'])['then'](_0x4dfac4=>{_0x5a57c1=_0x4dfac4;});}}}else _0x27f018['_update'](_0x146213,_0x4907e0);});}}},g),_0x4e5f81);}['_enhanceShowRevisionViewerCallback'](){const _0x272ed2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x18fecb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x534f25=this['editor']['plugins']['get']('Autosave');await _0x534f25['save']();}else await _0x18fecb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x457cf9=this['editor']['plugins']['get']('Dialog');_0x457cf9['isOpen']&&_0x457cf9['hide']();}const _0x215ed6=this['_getRevisionViewerEditorConfig']();return _0x272ed2(_0x215ed6)['then'](_0x2aa22f=>{return(this['_viewerEditor']=_0x2aa22f,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2aa22f;})['catch'](_0x206efa=>(console['error'](_0x206efa),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x402147=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'](),_0x402147(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x446a95=this['editor']['plugins']['get']('Annotations');_0x446a95['refreshVisibility'](),_0x446a95['refreshPositioning']();}})));}['_showRevisionViewer'](_0x24faac){const _0x729773=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xecc162=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x47c70c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x47c70c,_0x24faac)['then'](_0x33db74=>(_0xecc162['style']['display']='block',_0x729773['style']['display']='none',_0x33db74));}['_closeRevisionViewer'](_0x16f9e9){const _0x4b6c18=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4b6c18['style']['display']='',_0x16f9e9['destroy']();}async['_restoreRevision'](_0x4ec934){const _0x5d3624=this['editor'],_0x437110=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c459a=_0x5d3624['plugins']['get']('RevisionTracker'),_0x44afff=_0x437110['repository']['getRevision'](_0x4ec934);let _0x497171,_0x4c0bb3,_0x4cb3e9;try{_0x497171=await _0x437110['getRevisionData'](_0x44afff),_0x4c0bb3=await _0x437110['getRevisionRootsAttributes'](_0x44afff);}catch(_0x5a2ebb){return void console['error'](_0x5a2ebb);}_0x5d3624['model']['change'](_0x47564e=>{for(const _0x49d23b of Array['from'](_0x5d3624['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x47564e['removeMarker'](_0x49d23b);}),_0x437110['isReady']=!0x1,_0x5d3624['model']['enqueueChange'](_0x3adbc0=>{_0x3adbc0['setSelection'](null),_0x3adbc0['removeSelectionAttribute'](_0x5d3624['model']['document']['selection']['getAttributeKeys']());const _0x5c5671=Object['keys'](_0x497171);for(const _0xd20f07 of _0x5d3624['model']['document']['roots'])'$graveyard'!=_0xd20f07['rootName']&&_0xd20f07['isAttached']()&&!_0x5c5671['includes'](_0xd20f07['rootName'])&&_0x3adbc0['detachRoot'](_0xd20f07);for(const _0x4066b8 of _0x5c5671){let _0x557478=_0x5d3624['model']['document']['getRoot'](_0x4066b8);_0x557478&&_0x557478['isAttached']()||(_0x557478=_0x3adbc0['addRoot'](_0x4066b8));const _0xcbced7=_0x4c0bb3[_0x4066b8],_0x147682=Object['keys'](_0xcbced7),_0x1fa22c=_0x497171[_0x4066b8];for(const _0x4469d4 of _0x557478['getAttributeKeys']())_0x147682['includes'](_0x4469d4)||_0x3adbc0['removeAttribute'](_0x4469d4,_0x557478);for(const _0x2a8ed4 of _0x147682)_0x3adbc0['setAttribute'](_0x2a8ed4,_0x4c0bb3[_0x4066b8][_0x2a8ed4],_0x557478);_0x3adbc0['remove'](_0x3adbc0['createRangeIn'](_0x557478)),_0x3adbc0['insert'](_0x5d3624['data']['parse'](_0x1fa22c,_0x557478),_0x557478,0x0);}});const _0x43f7ad=R(_0x5d3624['locale'],'Restored');if(_0x44afff['name'])_0x4cb3e9=-0x1==_0x44afff['name']['indexOf'](_0x43f7ad)?_0x43f7ad+':\x20'+_0x44afff['name']:_0x44afff['name'];else _0x4cb3e9=_0x43f7ad+':\x20'+(_0x44afff['createdAt']['toLocaleDateString'](_0x5d3624['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x44afff['createdAt']['toLocaleTimeString'](_0x5d3624['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c459a['saveRevision']({'name':_0x4cb3e9}),_0x437110['isReady']=!0x0,_0x5d3624['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|