@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250505.0 → 0.0.0-nightly-20250507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x583c2e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x176449){super(),this['id']=_0x176449['id']||_0x57d2cb(),this['creator']=_0x176449['creator']||null,this['authors']=_0x176449['authors']||[],this['diffData']=_0x176449['diffData']||null,this['toVersion']=_0x176449['toVersion']||0x0,this['fromVersion']=_0x176449['fromVersion']||0x0,this['set']('name',_0x176449['name']||''),this['set']('createdAt',_0x176449['createdAt']||new Date()),this['set']('attributes',_0x176449['attributes']||{});}['setName'](_0x2d42cf){this['_update']({'name':_0x2d42cf});}['setAttribute'](_0x4ca3d4,_0x12327d){const _0x4ba2c1=_0x5765cb(this['attributes']);_0x150a09(_0x4ba2c1,_0x4ca3d4,_0x12327d),this['_update']({'attributes':_0x4ba2c1});}['removeAttribute'](_0x2a66f7){const _0x2ca226=_0x5765cb(this['attributes']);_0x1f0564(_0x2ca226,_0x2a66f7),this['_update']({'attributes':_0x2ca226});}['_update'](_0x202eb7,_0x372ba7=!0x1){let _0x144b5d=!0x1;const _0x5157a0={'id':this['id']},_0x1de491=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x83b451 of _0x1de491){const _0x48b075=_0x202eb7[_0x83b451];void 0x0!==_0x48b075&&_0x48b075!==this[_0x83b451]&&(this[_0x83b451]=_0x48b075,_0x5157a0[_0x83b451]=_0x48b075,_0x144b5d=!0x0);}_0x144b5d&&(_0x5157a0['authors']&&(_0x5157a0['authorsIds']=_0x5157a0['authors']['map'](_0xb9e348=>_0xb9e348['id']),delete _0x5157a0['authors']),this['fire']('_update',_0x5157a0,_0x372ba7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5ed7ea=>_0x5ed7ea['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x467a15{['_revisions'];static get['requires'](){return[_0x164c4c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x370c56){super(_0x370c56),this['_revisions']=new _0x20fb32();}['afterInit'](){!async function(_0x401b14){const _0x460f8b=_0x1ab014([0x71,0x46,0x68,0x78,0x61,0x4c,0x50,0x42,0x70,0x73,0x75,0x52,0x4a,0x6e,0x35,0x55,0x38,0x51,0x67,0x6f,0x6a,0x62,0x30,0x44,0x74,0x32,0x6d,0x72,0x39,0x4e,0x33,0x48,0x76,0x49,0x36,0x58,0x43,0x7a,0x53,0x69,0x41,0x34,0x59,0x4b,0x6c,0x66,0x77,0x5a,0x64,0x45,0x47,0x63,0x4f,0x54,0x4d,0x6b,0x57,0x37,0x56,0x31,0x79,0x65]),_0x2c7b3a=0xeb829,_0x2b791d=0x20152130,_0x237390=0x201247c8^_0x2b791d,_0x17cd35=window[_0x1ab014([0x44,0x61,0x74,0x65])][_0x1ab014([0x6e,0x6f,0x77])](),_0xb78c19=_0x401b14[_0x1ab014([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x218314=new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a287=>{_0xb78c19[_0x1ab014([0x6f,0x6e,0x63,0x65])](_0x1ab014([0x72,0x65,0x61,0x64,0x79]),_0x26a287);}),_0x260123={[_0x1ab014([0x6b,0x74,0x79])]:_0x1ab014([0x45,0x43]),[_0x1ab014([0x75,0x73,0x65])]:_0x1ab014([0x73,0x69,0x67]),[_0x1ab014([0x63,0x72,0x76])]:_0x1ab014([0x50,0x2d,0x32,0x35,0x36]),[_0x1ab014([0x78])]:_0x1ab014([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]),[_0x1ab014([0x79])]:_0x1ab014([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]),[_0x1ab014([0x61,0x6c,0x67])]:_0x1ab014([0x45,0x53,0x32,0x35,0x36])},_0x55d66f=_0xb78c19[_0x1ab014([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ab014([0x67,0x65,0x74])](_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30a9ed(){let _0x26ac67,_0x50b61=null,_0x18997e=null;try{if(_0x55d66f==_0x1ab014([0x47,0x50,0x4c]))return _0x1ab014([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26ac67=_0x52bff1(),!_0x26ac67)return _0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26ac67[_0x1ab014([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18997e=_0x3ac1c2(_0x26ac67[_0x1ab014([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26ac67[_0x1ab014([0x6a,0x74,0x69])])),await _0x4d572f()?_0x28b349()?_0x347872()?_0x1ab014([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2587f3()?(_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab014([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b61=_0xc73ec8(_0x1ab014([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab014([0x74,0x72,0x69,0x61,0x6c])&&(_0x50b61=_0xc73ec8(_0x1ab014([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b78c8()):_0x1ab014([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab014([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52c943){return _0x1ab014([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x347872(){const _0x3955e6=[_0x1ab014([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ab014([0x74,0x72,0x69,0x61,0x6c])][_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17cd35/0x3e8:0xe10*_0x237390;return _0x26ac67[_0x1ab014([0x65,0x78,0x70])]<_0x3955e6;}function _0x28b349(){const _0x1f9ac7=_0x26ac67[_0x1ab014([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1f9ac7)return!0x1;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x2a])))return!0x0;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x52,0x48])))return!0x0;if(_0x1f9ac7[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x52,0x52,0x48]))){if(_0xbcda16())return!0x0;if(_0x2cae35()||_0x4efcf2())return!0x0;}return!0x1;}function _0x2587f3(){const _0x159f16=_0x26ac67[_0x1ab014([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x159f16||0x0==_0x159f16[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5392}=new URL(window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x159f16[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5392))return!0x0;const _0x5888b1=_0x2d5392[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e]));return _0x159f16[_0x1ab014([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dd6ce=>_0x5dd6ce[_0x1ab014([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab014([0x2a])))[_0x1ab014([0x6d,0x61,0x70])](_0x30a754=>_0x30a754[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e])))[_0x1ab014([0x73,0x6f,0x6d,0x65])](_0x5b879c=>_0x5888b1[_0x1ab014([0x65,0x76,0x65,0x72,0x79])]((_0x40d726,_0x332a3d)=>_0x5b879c[_0x332a3d]===_0x40d726||_0x5b879c[_0x332a3d]===_0x1ab014([0x2a])));}function _0x3b78c8(){return _0x50b61&&_0x18997e?new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34a434,_0x4fce9d)=>{_0x50b61[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x34a434,_0x4fce9d),_0x18997e[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x34212b=>{_0x34212b!=_0x1ab014([0x56,0x61,0x6c,0x69,0x64])&&_0x34a434(_0x34212b);},_0x4fce9d);}):_0x50b61||_0x18997e||_0x1ab014([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac1c2(_0x2cb9bd,_0x2a7480){return new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebd66=>{if(_0x45cae0())return _0x2ebd66(_0x1ab014([0x56,0x61,0x6c,0x69,0x64]));_0x275a7b(),_0xb78c19[_0x1ab014([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cb19e=!0x1;const _0x16ace8=_0x57d2cb();function _0x1e1857(_0x38bacc){return!!_0x38bacc&&(typeof _0x38bacc===_0x1ab014([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38bacc===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38bacc[_0x1ab014([0x74,0x68,0x65,0x6e])]===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38bacc[_0x1ab014([0x63,0x61,0x74,0x63,0x68])]===_0x1ab014([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c1931(_0x5d8d81){_0x1fe555(_0x5d8d81)[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x5f5562=>{if(!_0x5f5562||_0x5f5562[_0x1ab014([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ab014([0x6f,0x6b]))return _0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c99e7(_0x418e99(_0x16ace8+_0x2a7480))!=_0x5f5562[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab014([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x67a8f2=>(_0x457b93(),_0x67a8f2),()=>{const _0x529784=_0x1f22db();return null==_0x529784?(_0x457b93(),_0x1ab014([0x56,0x61,0x6c,0x69,0x64])):_0x1ab014(_0x17cd35-_0x529784>(0x419a530^_0x2b791d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x2ebd66)[_0x1ab014([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14f169=0x2023cfb0^_0x2b791d;function _0x457b93(){const _0x50aeba=_0x1ab014([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c99e7(_0x418e99(_0x2cb9bd)),_0xda59f4=_0x4cd51d(_0x2c99e7(window[_0x1ab014([0x4d,0x61,0x74,0x68])][_0x1ab014([0x63,0x65,0x69,0x6c])](_0x17cd35/_0x14f169)));window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab014([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50aeba,_0xda59f4);}function _0x1f22db(){const _0xe078e3=_0x1ab014([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c99e7(_0x418e99(_0x2cb9bd)),_0x5f0818=window[_0x1ab014([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab014([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe078e3);return _0x5f0818?window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd51d(_0x5f0818),0x10)*_0x14f169:null;}function _0x1fe555(_0x34ccea){return new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7c5554,_0x3e04ba)=>{_0x34ccea[_0x1ab014([0x74,0x68,0x65,0x6e])](_0x7c5554,_0x3e04ba),window[_0x1ab014([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e04ba,0x2014f5f0^_0x2b791d);});}}_0xb78c19[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dbd9e,_0x47779e)=>{if(_0x47779e[0x0]!=_0x2cb9bd)return _0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47779e[0x1]={..._0x47779e[0x1],[_0x1ab014([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ace8};},{[_0x1ab014([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab014([0x68,0x69,0x67,0x68])}),_0xb78c19[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b9a9c=>{_0x1e1857(_0x2b9a9c[_0x1ab014([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cb19e=!0x0,_0x1c1931(_0x2b9a9c[_0x1ab014([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ab014([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab014([0x6c,0x6f,0x77])}),_0x218314[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>{_0x1cb19e||_0x2ebd66(_0x1ab014([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45cae0(){return _0xb78c19[_0x1ab014([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab014([0x76,0x69,0x65,0x77])][_0x1ab014([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ab014([0x61,0x75,0x74,0x6f]);}function _0x275a7b(){_0xb78c19[_0x1ab014([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab014([0x76,0x69,0x65,0x77])][_0x1ab014([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ab014([0x61,0x75,0x74,0x6f]);}}function _0xc73ec8(_0x225481){const _0x1c7301=[new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583327=>setTimeout(_0x583327,0x201c1ffc^_0x2b791d)),_0x218314[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e882c=>{const _0x220a07=0x20152137^_0x2b791d,_0x1ed6e8=_0x401b14[_0x1ab014([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x397c01(){_0x1ed6e8[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x220a07&&_0x1e882c();}_0x397c01(),_0x1ed6e8[_0x1ab014([0x6f,0x6e])](_0x1ab014([0x61,0x64,0x64]),_0x397c01);})),new window[(_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e9408=>{function _0x338b4e(){for(const _0x27cf0e in window)if(window[_0x1ab014([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ab014([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x27cf0e))&&window[_0x27cf0e]==_0x2c7b3a)return _0x5e9408();_0xb78c19[_0x1ab014([0x73,0x74,0x61,0x74,0x65])]!=_0x1ab014([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ab014([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x338b4e,0x201532b8^_0x2b791d);}_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x338b4e();})];return window[_0x1ab014([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ab014([0x72,0x61,0x63,0x65])](_0x1c7301)[_0x1ab014([0x74,0x68,0x65,0x6e])](()=>_0x225481);}async function _0x520e5f(){if(await _0x218314,_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4bc1f9=_0x401b14[_0x1ab014([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x212533=_0x401b14[_0x1ab014([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])](_0x4bc1f9[_0x1ab014([0x69,0x64])]),_0x32604c=_0x26e11e(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32604c[_0x1ab014([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4bc1f9['id'],_0x212533?_0x212533['id']:null,!0x0),_0x32604c[_0x1ab014([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32604c[_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32604c[_0x1ab014([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1e6271,void(_0x32604c[_0x1ab014([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1e6271);}if(_0x2b2892(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x21b25b=_0x26e11e(_0x1ab014([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x21b25b[_0x1ab014([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21b25b[_0x1ab014([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21b25b[_0x1ab014([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1e6271,_0x21b25b[_0x1ab014([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1e6271;}_0xb78c19[_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab014([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e6271,_0xb78c19[_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab014([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e6271,_0xb78c19[_0x1ab014([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ab014([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbcda16(){return _0x2b2892(_0x1ab014([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26e11e(_0x1ab014([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ab014([0x73,0x74,0x61,0x74,0x65])]==_0x1ab014([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cae35(){return _0x2b2892(_0x1ab014([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 _0x4efcf2(){return _0x2b2892(_0x1ab014([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x459285(_0x591e4e){const _0x234b48=_0x37454a();_0xb78c19[_0x234b48]=_0x1ab014([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])+_0x591e4e,_0x591e4e[_0x1ab014([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ab014([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x37454a()]=_0x2c7b3a),_0x591e4e!=_0x1ab014([0x56,0x61,0x6c,0x69,0x64])&&_0x520e5f();}function _0x37454a(){const _0x4e02b3=window[_0x1ab014([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ab014([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ab014([0x6e,0x6f,0x77])]())[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ab014([0x2e]),'');let _0x58201e=_0x1ab014([0x71]);for(let _0x17ebfe=0x0;_0x17ebfe<_0x4e02b3[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17ebfe+=0x2){let _0x1c5873=window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e02b3[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17ebfe,_0x17ebfe+0x2));_0x1c5873>=_0x460f8b[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c5873-=_0x460f8b[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58201e+=_0x460f8b[_0x1c5873];}return _0x58201e;}function _0x52bff1(){const _0x28b456=_0x55d66f[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e]));if(0x3!=_0x28b456[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53d25b(_0x28b456[0x1]);function _0x53d25b(_0x2522b7){const _0xce43c7=_0x81a40a(_0x2522b7);return _0xce43c7&&_0x43344d()?_0xce43c7:null;function _0x43344d(){const _0xb87e35=_0xce43c7[_0x1ab014([0x6a,0x74,0x69])],_0x12542d=window[_0x1ab014([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb87e35[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb87e35[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460ded={..._0xce43c7,[_0x1ab014([0x6a,0x74,0x69])]:_0xb87e35[_0x1ab014([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb87e35[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460ded[_0x1ab014([0x76,0x63])],_0x418e99(_0x460ded)==_0x12542d;}}}async function _0x4d572f(){let _0x335063=!0x0;try{const _0x37ef91=_0x55d66f[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])](_0x1ab014([0x2e])),[_0x2ad6d1,_0x19ac91,_0x3f7711]=_0x37ef91;return _0x369e5a(_0x2ad6d1),await _0x269bfb(_0x2ad6d1,_0x19ac91,_0x3f7711),_0x335063;}catch(_0x584941){return!0x1;}function _0x369e5a(_0x585c27){const _0x31494e=_0x81a40a(_0x585c27);_0x31494e&&_0x31494e[_0x1ab014([0x61,0x6c,0x67])]==_0x1ab014([0x45,0x53,0x32,0x35,0x36])||(_0x335063=!0x1);}async function _0x269bfb(_0x2bde40,_0x74da18,_0x331507){const _0x543382=window[_0x1ab014([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ab014([0x66,0x72,0x6f,0x6d])](_0x5488cd(_0x331507),_0x591d71=>_0x591d71[_0x1ab014([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f2a5a=new window[(_0x1ab014([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ab014([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bde40+_0x1ab014([0x2e])+_0x74da18),_0x599d75=window[_0x1ab014([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ab014([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x599d75)return;const _0x51214c=await _0x599d75[_0x1ab014([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ab014([0x6a,0x77,0x6b]),_0x260123,{[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x45,0x43,0x44,0x53,0x41]),[_0x1ab014([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ab014([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x599d75[_0x1ab014([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x45,0x43,0x44,0x53,0x41]),[_0x1ab014([0x68,0x61,0x73,0x68])]:{[_0x1ab014([0x6e,0x61,0x6d,0x65])]:_0x1ab014([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51214c,_0x543382,_0x2f2a5a)||(_0x335063=!0x1);}}function _0x81a40a(_0x123baf){return _0x123baf[_0x1ab014([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ab014([0x65,0x79]))?JSON[_0x1ab014([0x70,0x61,0x72,0x73,0x65])](_0x5488cd(_0x123baf)):null;}function _0x5488cd(_0x29e2ce){return window[_0x1ab014([0x61,0x74,0x6f,0x62])](_0x29e2ce[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ab014([0x2b]))[_0x1ab014([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ab014([0x2f])));}function _0x418e99(_0x21908f){let _0x1b5f53=0x1505;function _0xacc8f1(_0x54c7bb){for(let _0xe21da=0x0;_0xe21da<_0x54c7bb[_0x1ab014([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe21da++){const _0xd3b0b0=_0x54c7bb[_0x1ab014([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe21da);_0x1b5f53=(_0x1b5f53<<0x5)+_0x1b5f53+_0xd3b0b0,_0x1b5f53&=_0x1b5f53;}}function _0x4b9f31(_0x2d9b3f){Array[_0x1ab014([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d9b3f)?_0x2d9b3f[_0x1ab014([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b9f31):_0x2d9b3f&&typeof _0x2d9b3f==_0x1ab014([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ab014([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d9b3f)[_0x1ab014([0x73,0x6f,0x72,0x74])]()[_0x1ab014([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52ebe6,_0x4685ab])=>{_0xacc8f1(_0x52ebe6),_0x4b9f31(_0x4685ab);}):_0xacc8f1(window[_0x1ab014([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d9b3f));}return _0x4b9f31(_0x21908f),_0x1b5f53>>>0x0;}function _0x2c99e7(_0x55acee){return _0x55acee[_0x1ab014([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ab014([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ab014([0x30]));}function _0x4cd51d(_0x4ef033){return _0x4ef033[_0x1ab014([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ab014([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ab014([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b2892(_0x1f0120){return _0xb78c19[_0x1ab014([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab014([0x68,0x61,0x73])](_0x1f0120);}function _0x26e11e(_0x30db2c){return _0xb78c19[_0x1ab014([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab014([0x67,0x65,0x74])](_0x30db2c);}function _0x1e6271(){}function _0x1ab014(_0x357b10){return _0x357b10['map'](_0x5787d2=>String['fromCharCode'](_0x5787d2))['join']('');}_0x459285(await _0x30a9ed());}(this);}['createRevision'](_0x141ed6){const _0x4fc703=this['editor']['plugins']['get']('Users');return new h({'id':_0x141ed6['id'],'name':_0x141ed6['name'],'creator':_0x141ed6['creatorId']?_0x4fc703['getUser'](_0x141ed6['creatorId']):null,'diffData':_0x141ed6['diffData']||_0x141ed6['data'],'authors':_0x141ed6['authorsIds']['map'](_0x19c0ac=>_0x4fc703['getUser'](_0x19c0ac)),'createdAt':new Date(_0x141ed6['createdAt']),'attributes':_0x141ed6['attributes'],'fromVersion':_0x141ed6['fromVersion'],'toVersion':_0x141ed6['toVersion']});}['addRevision'](_0x3052d6,_0xf47bd7=0x0){this['_revisions']['add'](_0x3052d6,_0xf47bd7);}['getRevision'](_0x4a1d81){return this['_revisions']['get'](_0x4a1d81);}['getRevisions'](_0x42764c={'toJSON':!0x1}){const _0x49a515=Array['from'](this['_revisions']);return _0x49a515['reverse'](),_0x42764c['toJSON']?_0x49a515['map'](_0x429469=>_0x429469['toJSON']()):_0x49a515;}['getIndex'](_0x2ee90e){return this['_revisions']['getIndex'](_0x2ee90e);}['getEarlierVisibleRevision'](_0x59a6c0){const [,_0x54ed04]=this['getRevisionsIterator'](_0x59a6c0,{'direction':'earlier'});return _0x54ed04;}['getLaterVisibleRevision'](_0x4740b2){const [,_0x1cad67]=this['getRevisionsIterator'](_0x4740b2,{'direction':'later'});return _0x1cad67;}['getRevisionsInDiff'](_0x18b5ef){const _0x142a2=[];for(const _0x4f86e8 of this['getRevisionsIterator'](_0x18b5ef['newRevisionId']))if(_0x142a2['push'](_0x4f86e8),_0x4f86e8['id']===_0x18b5ef['oldRevisionId'])break;return _0x142a2;}*['getRevisionsIterator'](_0x31649a,{direction:_0x4254b9='earlier',filter:_0x8fec1f=()=>!0x0}={}){const _0x19283a='earlier'===_0x4254b9?0x1:-0x1;let _0x5b6c3b=this['_revisions']['get'](_0x31649a),_0x299da2=this['getIndex'](_0x5b6c3b);for(yield _0x5b6c3b;_0x5b6c3b;){if(_0x299da2+=_0x19283a,_0x5b6c3b=this['getRevision'](_0x299da2),!_0x5b6c3b)return;_0x8fec1f(_0x5b6c3b)&&(yield _0x5b6c3b);}}}class V extends _0x467a15{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x34e179,'c'],[_0x257f86,'a'],[_0x44d94e,'e'],[_0x19a24e,'r'],[_0x4d9bda,'u']]);['_typeCharToViewClass']=new Map([['c',_0x34e179],['a',_0x257f86],['e',_0x44d94e],['r',_0x19a24e],['u',_0x4d9bda]]);async['loadRevisionData'](_0x4522d4,_0x2c88fd){if(_0x4522d4['diffData']||!_0x2c88fd)return;const _0x4620a2=this['editor']['config']['get']('collaboration.channelId'),_0x479610=await _0x2c88fd['getRevision']({'channelId':_0x4620a2,'revisionId':_0x4522d4['id']});_0x4522d4['diffData']=_0x479610['diffData'];}['getRevisionDocumentData'](_0x3f4ea4){const _0x272cbe={};for(const _0x1d7e3d in _0x3f4ea4['diffData']){if(_0x3f4ea4['diffData'][_0x1d7e3d]['attachChange']&&!_0x3f4ea4['diffData'][_0x1d7e3d]['attachChange']['isAttached'])continue;const _0x2f4c32=this['_removeRevisionMarkers'](JSON['parse'](_0x3f4ea4['diffData'][_0x1d7e3d]['insertions'])),_0x319b18=this['editor']['editing']['view']['document'],_0x5ac193=new _0x58171e(_0x319b18,_0x2f4c32['map'](_0x29625d=>this['_getViewFromDiffObj'](_0x29625d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x272cbe[_0x1d7e3d]=this['editor']['data']['processor']['toData'](_0x5ac193),this['editor']['data']['processor']['useFillerType']('default');}return _0x272cbe;}['getRevisionRootsAttributes'](_0x352688){const _0x121811={};for(const _0x5d8ab0 in _0x352688['diffData'])_0x352688['diffData'][_0x5d8ab0]['attachChange']&&!_0x352688['diffData'][_0x5d8ab0]['attachChange']['isAttached']||(_0x121811[_0x5d8ab0]=_0x352688['diffData'][_0x5d8ab0]['attributesAfter']||{});return _0x121811;}['_getTypeCharForViewElement'](_0x5c8f2d){return this['_viewClassToTypeChar']['get'](_0x5c8f2d['constructor']);}['_getViewFromDiffObj'](_0x28c025,_0x1ecb35){const _0x55c754=this['editor']['editing']['view']['document'];if('string'==typeof _0x28c025)return new _0x3be512(_0x55c754,_0x28c025);{let _0x29bb35,_0xedb04c;_0xedb04c='u'==_0x28c025['type']||'r'==_0x28c025['type']?[]:_0x28c025['children']['map'](_0x30cec5=>this['_getViewFromDiffObj'](_0x30cec5,_0x1ecb35));const _0x31fa7b=this['_typeCharToViewClass']['get'](_0x28c025['type'])||_0x2d9bd2,_0x198629=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x29bb35=new _0x31fa7b(_0x55c754,_0x28c025['name'],_0x28c025['attributes'],_0xedb04c),'u'==_0x28c025['type']&&_0x28c025['children'][0x0]){const _0x20cbb3=_0x28c025['children'][0x0];if(_0x29bb35['render']=function(_0x243946){const _0x3eafa7=_0x243946['createElement']('div');return _0x3eafa7['innerHTML']=_0x20cbb3,_0x3eafa7['childNodes'][0x0];},_0x1ecb35){const _0x57a3be=new _0x58171e(_0x55c754);_0x57a3be['_appendChild'](_0x29bb35);const _0x30033a=Array['from'](_0x198629['viewChildrenToDom'](_0x57a3be,{'bind':!0x1})),_0x458043=_0x198629['domDocument']['createElement']('div');_0x458043['append'](..._0x30033a),_0x29bb35=Array['from'](_0x198629['domChildrenToView'](_0x458043))[0x0];}}else{if('r'==_0x28c025['type']&&_0x28c025['children'][0x0]){const _0x242c23=_0x28c025['children'][0x0];if(_0x29bb35['render']=function(_0x4eb593){_0x4eb593['innerHTML']=_0x242c23;},_0x1ecb35){const _0x2ce1c0=new _0x58171e(_0x55c754);_0x2ce1c0['_appendChild'](_0x29bb35);const _0x51a85e=Array['from'](_0x198629['viewChildrenToDom'](_0x2ce1c0,{'bind':!0x1})),_0x573b00=_0x198629['domDocument']['createElement']('div');_0x573b00['append'](..._0x51a85e);const _0x21a212=Array['from'](_0x198629['domChildrenToView'](_0x573b00));_0x21a212['length']>0x1?_0x29bb35['_appendChild'](_0x21a212):_0x29bb35=_0x21a212[0x0];}}}if(_0x28c025['customProperties']){for(const [_0x551da8,_0x4ca72f]of _0x28c025['customProperties'])_0x29bb35['_setCustomProperty'](_0x551da8,_0x4ca72f);}const _0x18e607=void 0x0===_0x28c025['fillerOffset']?null:_0x28c025['fillerOffset'];return null!==_0x18e607&&(_0x29bb35['getFillerOffset']=()=>_0x18e607),_0x29bb35;}}['_makeModelFromViewString'](_0x22d260){const _0x5d953e=JSON['parse'](_0x22d260),_0x4aaa5f=this['editor']['editing']['view']['document'],_0x2b1539=new _0x58171e(_0x4aaa5f,_0x5d953e['map'](_0x574751=>this['_getViewFromDiffObj'](_0x574751,!0x0)));return this['editor']['data']['toModel'](_0x2b1539);}['_removeRevisionMarkers'](_0x585dda){return(_0x585dda=_0x585dda['filter'](_0x415410=>!_0x415410['name']||'revision-start'!==_0x415410['name']&&'revision-end'!==_0x415410['name']))['forEach'](_0xd64fad=>{'string'!=typeof _0xd64fad&&(_0xd64fad['children']=this['_removeRevisionMarkers'](_0xd64fad['children']),_0xd64fad['attributes']=_0xd64fad['attributes']['filter'](_0x3e0c4d=>!_0x3e0c4d[0x0]['startsWith']('data-revision-')));}),_0x585dda;}}function g(_0x33564f,_0x47512b,_0x215c1e){const t=_0x33564f['t'];switch(_0x47512b){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'},_0x215c1e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x215c1e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x467a15{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x164c4c,I,V,_0x2fd44b];}constructor(_0x5d6c0c){super(_0x5d6c0c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x21ea87=_0x57d2cb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x21ea87},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xbb20b1=this['repository']['getRevision'](0x0),_0x2dd977=_0xbb20b1&&null===_0xbb20b1['creator']?_0xbb20b1:null;if(this['_continueCurrentRevision']=!!_0x2dd977&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x44d918=this['_source']['getCurrentRevisionId'](),_0x54a956=this['repository']['getRevision'](_0x44d918);if(_0x54a956)this['_startingVersion']=_0x54a956['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x573c96=this['_source']['history']['_operations']['find'](_0x4b3f86=>!_0x4b3f86['_isInit']),_0x510a1f=_0x573c96?_0x573c96['baseVersion']:this['_source']['history']['version'];_0xbb20b1?(_0xbb20b1['toVersion']<_0x510a1f&&_0xbb20b1['_update']({'toVersion':_0x510a1f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id'],this['_startingVersion']=_0x2dd977['fromVersion']):(this['_startingVersion']=_0xbb20b1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x510a1f,this['_continueCurrentRevision']=!0x1);}}else _0x2dd977&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2dd977['toVersion'],this['editor']['model']['document']['history']['version']),_0x2dd977['fromVersion']===_0x2dd977['toVersion']?(0x0!==_0x2dd977['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2dd977['id'],this['_startingVersion']=_0x2dd977['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',_0x193b82=>!_0x193b82),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x474262=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18fb2c;for(const _0x2264b1 in _0x474262){const _0x2806bb=_0x2264b1,_0x427244=_0x474262[_0x2806bb];if('revisionHistoryLicenseKeyValid'==_0x427244||'revisionHistoryLicenseKeyInvalid'==_0x427244||'revisionHistoryLicenseKeyExpired'==_0x427244||'revisionHistoryLicenseKeyDomainLimit'==_0x427244||'revisionHistoryLicenseKeyNotAllowed'==_0x427244||'revisionHistoryLicenseKeyEvaluationLimit'==_0x427244||'revisionHistoryLicenseKeyTrialLimit'==_0x427244||'revisionHistoryLicenseKeyUsageLimit'==_0x427244){delete _0x474262[_0x2806bb],_0x18fb2c=_0x427244,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x18fb2c&&_0x474262['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x18fb2c&&_0x474262['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x18fb2c&&_0x474262['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x18fb2c&&_0x474262['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2353bf=this['repository']['getRevision'](0x0),_0x2ac738=await this['getRevisionDocumentData'](_0x2353bf),_0x59f4b5=await this['getRevisionRootsAttributes'](_0x2353bf);this['_replaceEditorDataWithRevisionData'](_0x2ac738,_0x59f4b5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3a4908){this['_source']=_0x3a4908;}async['update'](){const _0x317378=await this['_source']['getLatestVersion']();if(_0x317378>this['currentRevision']['toVersion']){await this['_loadState']();const _0xee42af=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x317378});_0xee42af['authors']=_0xee42af['authorsIds']['map'](_0x207359=>this['editor']['plugins']['get']('Users')['getUser'](_0x207359)),this['currentRevision']['_update'](_0xee42af);}}async['saveRevision'](_0x59946c={},_0x310e2c=null){const _0x9e0b99=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x310e2c>this['currentRevision']['toVersion']&&(_0x310e2c=null),null===_0x310e2c&&(_0x310e2c=await this['_source']['getLatestVersion']());const _0x593b6c=this['_getFromVersion'](_0x310e2c),_0x3e1ec4=this['buildRevisionData']({'from':_0x593b6c,'to':_0x310e2c});if(this['currentRevision']['toVersion']<_0x310e2c){const _0x336c77=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x310e2c,'to':_0x310e2c});_0x336c77['authors']=[],_0x336c77['authorsIds']=[],_0x336c77['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x336c77,!0x0),delete _0x336c77['authors'],_0x9e0b99['push'](_0x336c77);}_0x59946c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x59946c['name']=_0x59946c['name']||null,_0x59946c['id']=_0x59946c['id']||_0x57d2cb(),_0x59946c={..._0x59946c,..._0x3e1ec4};const _0x36ad41=this['addRevisionData'](_0x59946c);_0x9e0b99['push'](_0x59946c);const _0x28447f=this['repository']['getIndex'](_0x36ad41);if(0x0!==_0x28447f){const _0x2e130d=this['repository']['getRevision'](_0x28447f-0x1);if(_0x2e130d['fromVersion']!==_0x310e2c){const _0x57e58c=this['_revisionDataBuilder']['getData'](_0x310e2c,_0x2e130d['toVersion']),_0x318cfc={'id':_0x2e130d['id'],'diffData':_0x57e58c['diffData'],'authorsIds':_0x57e58c['authorsIds'],'authors':_0x57e58c['authorsIds']['map'](_0x171862=>this['editor']['plugins']['get']('Users')['getUser'](_0x171862)),'fromVersion':_0x310e2c};_0x2e130d===this['currentRevision']&&(_0x318cfc['createdAt']=new Date(_0x59946c['createdAt']['getTime']()+0xa)),_0x2e130d['_update'](_0x318cfc,!0x0),delete _0x318cfc['authors'],_0x9e0b99['push'](_0x318cfc);}}if(this['adapter']){for(const _0x583950 of _0x9e0b99)this['_bufferUpdate'](_0x583950['id'],_0x583950,!0x0);this['sendBufferedUpdates']();}return _0x36ad41;}['addRevisionData'](_0x5932c1){const _0x381eb2=this['repository']['createRevision'](_0x5932c1);return this['adapter']&&_0x381eb2['on']('_update',(_0x2fd158,_0x454750,_0x8706f0)=>{_0x8706f0||(this['_bufferUpdate'](_0x454750['id'],_0x454750,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x381eb2,this['_findInsertionIndex'](_0x381eb2)),_0x381eb2;}async['getRevisionDocumentData'](_0x478d23){return await this['_utils']['loadRevisionData'](_0x478d23,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x478d23);}async['getRevisionRootsAttributes'](_0x279539){return await this['_utils']['loadRevisionData'](_0x279539,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x279539);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3a2b97=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8db657=0x0;_0x8db657<_0x3a2b97['length'];_0x8db657++){const _0x5247d6=_0x3a2b97[_0x8db657];let _0x511a21=!0x1;for(const _0x320ba3 of Object['keys'](_0x5247d6))void 0x0===_0x5247d6[_0x320ba3]?delete _0x5247d6[_0x320ba3]:'id'!==_0x320ba3&&(_0x511a21=!0x0);_0x511a21||(_0x3a2b97[_0x8db657]=null);}if(_0x3a2b97=_0x3a2b97['filter'](_0xbc9a27=>null!==_0xbc9a27),!_0x3a2b97['length'])return;for(let _0x12fb79=0x0;_0x12fb79<_0x3a2b97['length'];_0x12fb79++){const _0x1b59bf=_0x3a2b97[_0x12fb79];void 0x0!==_0x1b59bf['fromVersion']&&void 0x0===_0x1b59bf['toVersion']&&(_0x1b59bf['toVersion']=this['repository']['getRevision'](_0x1b59bf['id'])['toVersion']),void 0x0!==_0x1b59bf['toVersion']&&void 0x0===_0x1b59bf['fromVersion']&&(_0x1b59bf['fromVersion']=this['repository']['getRevision'](_0x1b59bf['id'])['fromVersion']);}const _0x40f995=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3a2b97,_0x40f995)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4f5c82=>{if(_0x4f5c82){for(const _0x17b213 of _0x4f5c82)this['setRevisionData']({'id':_0x17b213['id'],'createdAt':_0x17b213['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4c0020=null,from:_0x37cae7=null,to:_0xfc7c78=null}){_0x37cae7=null!==_0x37cae7?_0x37cae7:_0x4c0020['fromVersion'],_0xfc7c78=null!==_0xfc7c78?_0xfc7c78:_0x4c0020['toVersion'];const _0x4fdfb1=this['_revisionDataBuilder']['getData'](_0x37cae7,_0xfc7c78),_0x1e9f46={'diffData':_0x4fdfb1['diffData'],'authorsIds':_0x4fdfb1['authorsIds'],'fromVersion':_0x37cae7,'toVersion':_0xfc7c78};if(!_0x4c0020||_0xfc7c78!==_0x4c0020['toVersion']){const _0x712027=_0xfc7c78-0x1,_0x1fbba5=this['_source']['history']['getOperation'](_0x712027);_0x1e9f46['createdAt']=_0x1fbba5&&_0x1fbba5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x37cae7===this['_loadedStateData']['fromVersion']){for(const _0x403d7a of this['_loadedStateData']['authors'])_0x1e9f46['authorsIds']['includes'](_0x403d7a['id'])||_0x1e9f46['authorsIds']['push'](_0x403d7a['id']);}return _0x1e9f46;}['_bufferUpdate'](_0x4526dc,_0x130a63,_0x118c38){if(this['_bufferedUpdates']['has'](_0x4526dc)){const _0x3cd162=this['_bufferedUpdates']['get'](_0x4526dc);_0x130a63=_0x118c38?{..._0x3cd162,..._0x130a63}:{..._0x130a63,..._0x3cd162};}this['_bufferedUpdates']['set'](_0x4526dc,_0x130a63);}['setRevisionData'](_0x131bc9){const _0x1fc689=this['repository']['getRevision'](_0x131bc9['id']);if(_0x131bc9['createdAt']&&(_0x131bc9['createdAt']=new Date(_0x131bc9['createdAt'])),_0x131bc9['authorsIds']){const _0x4441d6=this['editor']['plugins']['get']('Users');_0x131bc9['authors']=_0x131bc9['authorsIds']['map'](_0x54e1bf=>_0x4441d6['getUser'](_0x54e1bf));}_0x1fc689['_update'](_0x131bc9,!0x0);}['_createInitialRevision'](_0x153789){const _0xfe7114=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xfe7114)this['_initialRevisionId']=_0xfe7114['id'];else{const _0x190aea=!this['editor']['model']['document']['roots']['find'](_0x2fa7dc=>this['editor']['model']['hasContent'](_0x2fa7dc)),_0x1555e0=this['editor']['plugins']['get']('Users')['me']['id'],_0x58499b=g(this['editor']['locale'],_0x190aea?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x153789,'to':_0x153789,'id':this['_initialRevisionId'],'name':_0x58499b,'creatorId':_0x1555e0});}}['_createCurrentRevision'](_0x1fdd08){const _0x3b83ea=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3b83ea),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1fdd08,'to':_0x1fdd08,'id':_0x3b83ea,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xcb408a,_0xa02602){let _0x1487bf=this['editor']['config']['get']('initialData'),_0x110cf9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1487bf){_0x1487bf={};for(const _0x2bc396 of this['editor']['model']['document']['getRootNames']())_0x1487bf[_0x2bc396]='';}if('string'==typeof _0x1487bf&&(_0x1487bf={'main':_0x1487bf}),void 0x0===_0x110cf9){_0x110cf9={};for(const _0x3e7b69 of this['editor']['model']['document']['getRootNames']())_0x110cf9[_0x3e7b69]={};}let _0x344624=!0x1;const _0x66d16f=Object['keys'](_0x1487bf),_0x13cdea=Object['keys'](_0xcb408a);for(const _0x1d6233 of _0x66d16f){if(_0x1487bf[_0x1d6233]!==_0xcb408a[_0x1d6233]&&''!==_0x1487bf[_0x1d6233]['trim']()){_0x344624=!0x0;break;}if(!_0x171f44(_0x110cf9[_0x1d6233],_0xa02602[_0x1d6233])&&Object['keys'](_0x110cf9[_0x1d6233])['length']>0x0){_0x344624=!0x0;break;}}_0x344624||(_0x344624=_0x13cdea['some'](_0x4edc00=>!this['editor']['model']['document']['getRoot'](_0x4edc00))),_0x344624&&_0x151264('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1487bf,'editorRootsAttributes':_0x110cf9,'revisionData':_0xcb408a,'revisionRootsAttributes':_0xa02602}),this['editor']['config']['set']('initialData',_0xcb408a),this['editor']['config']['set']('rootsAttributes',_0xa02602);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x329b92=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x329b92['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x45f4c1){const _0x482270=this['repository']['getRevisions']();_0x482270['reverse']();let _0x16ed21=0x0;for(;_0x16ed21<_0x482270['length'];){const _0x32d030=_0x482270[_0x16ed21];if(_0x32d030===this['currentRevision']){_0x16ed21++;continue;}if(_0x32d030['id']===this['_initialRevisionId'])break;const _0x478955=_0x45f4c1['toVersion']-_0x32d030['toVersion']||_0x45f4c1['fromVersion']-_0x32d030['fromVersion'];if(_0x478955>0x0)break;if(_0x478955<0x0)_0x16ed21++;else{if(!_0x45f4c1['creator']&&_0x32d030['creator'])break;if(_0x32d030['creator']||!_0x45f4c1['creator']){if(_0x45f4c1['createdAt']>_0x32d030['createdAt'])break;_0x16ed21++;}else _0x16ed21++;}}return _0x16ed21;}['_getFromVersion'](_0x14005e){const _0x2ccdf4=this['repository']['getRevisions']();_0x2ccdf4['reverse'](),_0x2ccdf4['shift']();const _0x19558b=_0x2ccdf4['find'](_0x215dbb=>_0x215dbb['toVersion']<=_0x14005e)['toVersion'];return _0x19558b<this['_startingVersion']?this['_startingVersion']:_0x19558b;}['_makeRevision']({name:_0x46ef76,from:_0x10a6c5,to:_0x530ae7,creatorId:_0x2dd41b,id:_0x4aedd3}){const _0x182960=this['buildRevisionData']({'from':_0x10a6c5,'to':_0x530ae7});_0x182960['name']=_0x46ef76,_0x182960['creatorId']=_0x2dd41b,_0x182960['id']=_0x4aedd3;const _0x52c6dc=this['addRevisionData'](_0x182960);return this['adapter']&&this['_bufferUpdate'](_0x182960['id'],_0x182960,!0x0),_0x52c6dc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b9919){this['editor']=_0x1b9919,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'](_0x57ecaf){this['source']=_0x57ecaf;const _0x8cf441=new Map(),_0x4bf6f0=new Map(),_0x3d865a=this['editor']['model']['document']['roots']['map'](_0x23f597=>_0x23f597['rootName']);for(const _0x2080bc of _0x3d865a){const _0x25c1fa=this['editor']['model']['document']['getRoot'](_0x2080bc),_0x13016e=N(_0x25c1fa);_0x8cf441['set'](_0x2080bc,_0x13016e),_0x4bf6f0['set'](_0x2080bc,Object['fromEntries'](_0x25c1fa['getAttributes']()));}const _0x1c2e31=Array['from'](this['editor']['model']['markers'])['map'](_0x4091d8=>[_0x4091d8['name'],_0x4091d8['getRange']()]),_0x2924c6=this['source']['version'];this['_saveMetaData'](_0x2924c6,_0x8cf441,_0x1c2e31,_0x4bf6f0),this['_startingRevisionId']=this['_revisionId'];const _0x43afc6=new Map(),_0x2e7cd6=new Map();for(const _0x1e734f of _0x3d865a){const _0x255bef=P(_0x1e734f);_0x43afc6['set'](_0x1e734f,_0x255bef),_0x2e7cd6['set'](_0x1e734f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43afc6,[],_0x2e7cd6);}['getData'](_0x1ffd3d,_0x1fcad7){if(this['_lastFrom']===_0x1ffd3d&&this['_lastTo']<=_0x1fcad7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1fcad7,!0x0);else{if(!this['_savedMetaData']['has'](_0x1ffd3d)){const _0x3abb1c=this['_getPreviousFrom'](_0x1ffd3d);this['_calculateMetaData'](_0x3abb1c,_0x1ffd3d,!0x1);}this['_calculateMetaData'](_0x1ffd3d,_0x1fcad7,!0x0);}return this['_lastFrom']=_0x1ffd3d,this['_lastTo']=_0x1fcad7,this['_getState']();}['loadState'](_0x25e072){const _0x19eb8f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x25e072['fromVersion'],this['_lastTo']=_0x25e072['toVersion'];for(const _0x3b1eea in _0x25e072['diffData']){const _0x1d2635=_0x25e072['diffData'][_0x3b1eea]['attachChange'],_0x457b94=_0x5765cb(_0x25e072['diffData'][_0x3b1eea]['attributesBefore'])||{},_0x155506=_0x19eb8f['_makeModelFromViewString'](_0x25e072['diffData'][_0x3b1eea]['deletions']);_0x155506['rootName']=_0x3b1eea,_0x155506['_isAttached']=!_0x1d2635||!_0x1d2635['isAttached'],_0x155506['isAttached']=()=>_0x155506['_isAttached'],this['_baseRoots']['set'](_0x3b1eea,_0x155506),this['_baseRootsAttributes']['set'](_0x3b1eea,_0x457b94),_0x1d2635&&this['_touchedRoots']['set'](_0x3b1eea,_0x1d2635);const _0x520258=this['_makeIdsRoot'](_0x155506);this['_baseIdsRoots']['set'](_0x3b1eea,_0x520258);for(const [_0x4bdbf0,_0x279f76]of _0x155506['markers']){if(!_0x4bdbf0['startsWith']('revision:'))continue;const _0x12305a=_0x4bdbf0['split'](':')[0x2];for(const _0x2cc9ad of _0x279f76['getWalker']({'singleCharacters':!0x0})){const _0x23a508=this['_getVidAttributeName'](_0x2cc9ad),_0xc45d0a='elementEnd'==_0x2cc9ad['type']?_0x2cc9ad['previousPosition']['path']['slice'](0x0,-0x1):_0x2cc9ad['previousPosition']['path'],_0x4ef0e7=_0x520258['getNodeByPath'](_0xc45d0a)['getAttribute'](_0x23a508);this['_touched']['set'](_0x4ef0e7,{'userId':_0x12305a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4601a3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x296e20=>!this['_touched']['has'](_0x296e20));let _0x23ed29=0x0;const _0x441367=new Map();for(const _0x2ec7cc in _0x25e072['diffData']){const _0x3ce794=_0x25e072['diffData'][_0x2ec7cc]['attachChange'],_0x4da618=_0x5765cb(_0x25e072['diffData'][_0x2ec7cc]['attributesAfter'])||{},_0x52e7c3=_0x19eb8f['_makeModelFromViewString'](_0x25e072['diffData'][_0x2ec7cc]['insertions']);_0x52e7c3['rootName']=_0x2ec7cc,_0x52e7c3['_isAttached']=!_0x3ce794||_0x3ce794['isAttached'],_0x52e7c3['isAttached']=()=>_0x52e7c3['_isAttached'],this['_diffRoots']['set'](_0x2ec7cc,_0x52e7c3),this['_diffRootsAttributes']['set'](_0x2ec7cc,_0x4da618);const _0x416fb7=this['_makeIdsRoot'](_0x52e7c3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2ec7cc,_0x416fb7),_0x441367['set'](_0x2ec7cc,_0x52e7c3['isAttached']()?_0x4da618:{});for(const [_0x1714d5,_0x52ef8d]of _0x52e7c3['markers']){if(!_0x1714d5['startsWith']('revision:'))continue;const _0x35600c=_0x1714d5['split'](':')[0x2];for(const _0x4a748f of _0x52ef8d['getWalker']({'singleCharacters':!0x0})){const _0x218c82=this['_getVidAttributeName'](_0x4a748f),_0x182d1b=this['_revisionId']++,_0x50ebf1='elementEnd'==_0x4a748f['type']?_0x4a748f['previousPosition']['path']['slice'](0x0,-0x1):_0x4a748f['previousPosition']['path'];_0x416fb7['getNodeByPath'](_0x50ebf1)['_setAttribute'](_0x218c82,_0x182d1b),this['_touched']['set'](_0x182d1b,{'userId':_0x35600c});}}for(const _0x5eddf9 of this['editor']['model']['createRangeIn'](_0x52e7c3)['getWalker']({'singleCharacters':!0x0})){const _0x1853f9=this['_getVidAttributeName'](_0x5eddf9),_0x3ad30f='elementEnd'==_0x5eddf9['type']?_0x5eddf9['previousPosition']['path']['slice'](0x0,-0x1):_0x5eddf9['previousPosition']['path'],_0xa1586a=_0x416fb7['getNodeByPath'](_0x3ad30f);_0xa1586a['getAttribute'](_0x1853f9)>0x0||_0xa1586a['_setAttribute'](_0x1853f9,_0x4601a3[_0x23ed29++]);}for(const [_0x10fafa,_0x4950bd]of _0x52e7c3['markers'])_0x10fafa['startsWith']('revision:')||this['_markers']['set'](_0x10fafa,_0x4950bd);}const _0x441286=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x441286),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x441286,0x1));const _0x5c512c=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c512c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c512c,0x1));const _0x10f9c0=Array['from'](this['_diffRoots'])['map'](([_0x115fe8,_0x79ea08])=>[_0x115fe8,N(_0x79ea08)]);this['_saveMetaData'](this['_lastTo'],_0x10f9c0,this['_markers'],_0x441367);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x507345,_0x4a37fa,_0x2a7495,_0x3bcde9){const _0x247c76=new Map(_0x4a37fa),_0xbc3b12=new Map(_0x5765cb(_0x3bcde9)),_0x466860=new Map();for(const [_0x541a81,_0x3ee5ed]of _0x2a7495)_0x466860['set'](_0x541a81,{'start':_0x3ee5ed['start']['clone'](),'end':_0x3ee5ed['end']['clone'](),'rootName':_0x3ee5ed['root']['rootName']});this['_savedMetaData']['set'](_0x507345,{'roots':_0x247c76,'markers':_0x466860,'rootsAttributes':_0xbc3b12});}['_removeMetaData'](_0x5f554d){this['_savedMetaData']['delete'](_0x5f554d);}['_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'](_0x41af6b,_0x207c32=null){let _0x351519=null;_0x41af6b['is']('documentFragment')||(_0x351519=new ut(_0x41af6b['name'],{'vid_start':null===_0x207c32?this['_revisionId']++:_0x207c32++}));const _0x3a84b1=[];for(const _0x52684b of _0x41af6b['getChildren']())if(_0x52684b['is']('element')){_0x3a84b1['push'](this['_makeIdsRoot'](_0x52684b,_0x207c32));const _0x57d917=_0x3a84b1[_0x3a84b1['length']-0x1];null!==_0x207c32&&(_0x207c32=_0x57d917['is']('element','$text')?_0x57d917['getAttribute']('vid')+0x1:_0x57d917['getAttribute']('vid_end')+0x1);}else{for(let _0x1c21e6=0x0;_0x1c21e6<_0x52684b['offsetSize'];_0x1c21e6++)_0x3a84b1['push'](new ut('$text',{'vid':null===_0x207c32?this['_revisionId']++:_0x207c32++}));}if(_0x41af6b['is']('documentFragment')){const _0x5bc784=P(_0x41af6b['rootName']);return _0x5bc784['_insertChild'](0x0,_0x3a84b1),_0x5bc784;}return _0x351519['_setAttribute']('vid_end',null===_0x207c32?this['_revisionId']++:_0x207c32++),_0x351519['_insertChild'](0x0,_0x3a84b1),_0x351519;}['_calculateMetaData'](_0x2d3304,_0x536a8f,_0x17f880){this['_reset']();const {roots:_0x51c16f,markers:_0x15af82,rootsAttributes:_0x2f6580}=this['_savedMetaData']['get'](_0x2d3304);this['_baseRoots']=new Map(_0x51c16f),this['_baseRootsAttributes']=new Map(_0x5765cb(_0x2f6580));for(const [_0x349b65,_0x342bbe]of this['_baseRoots'])if('$graveyard'!==_0x349b65&&(this['_diffRoots']['set'](_0x349b65,N(_0x342bbe)),this['_diffRootsAttributes']=new Map(_0x5765cb(_0x2f6580)),_0x17f880)){const _0x886c65=this['_revisionId'];this['_idsRoots']['set'](_0x349b65,this['_makeIdsRoot'](_0x342bbe)),this['_baseIdsRoots']['set'](_0x349b65,this['_makeIdsRoot'](_0x342bbe,_0x886c65));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x17f880&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x29f579,_0x528d94]of _0x15af82){const _0x2bc160=this['_baseRoots']['get'](_0x528d94['rootName']),_0x59962b=this['_diffRoots']['get'](_0x528d94['rootName']),_0x54a0e7=new lt(this['_fixPosition'](_0x528d94['start'],_0x2bc160),this['_fixPosition'](_0x528d94['end'],_0x2bc160)),_0x1fafab=this['_fixRange'](_0x54a0e7,_0x59962b);_0x2bc160['markers']['set'](_0x29f579,_0x54a0e7),this['_markers']['set'](_0x29f579,_0x1fafab);}this['_applyOperations'](_0x2d3304,_0x536a8f,_0x17f880);}['_applyOperations'](_0x2210db,_0x36b3c0,_0x274e1b){for(const _0x384612 of this['source']['getOperations'](_0x2210db,_0x36b3c0))this['_handleOperation'](_0x384612,_0x274e1b);for(const _0x451535 of this['_diffRoots']['values']())_0x451535['markers']['clear']();for(const [_0x2d5481,_0x49e3c0]of this['_markers']){this['_diffRoots']['get'](_0x49e3c0['root']['rootName'])['markers']['set'](_0x2d5481,_0x49e3c0['clone']());}const _0x37b3c8=new Map(),_0x49fa46=new Map();for(const [_0x1ff106,_0x40ec49]of this['_diffRoots'])_0x37b3c8['set'](_0x1ff106,N(_0x40ec49)),_0x49fa46['set'](_0x1ff106,this['_diffRootsAttributes']['get'](_0x1ff106));this['_saveMetaData'](_0x36b3c0,_0x37b3c8,this['_markers'],_0x49fa46);}['_getPreviousFrom'](_0x540779){const _0x1f5826=Array['from'](this['_savedMetaData']['keys']());_0x1f5826['sort']((_0x3972c8,_0x45da4a)=>_0x3972c8-_0x45da4a),_0x1f5826['reverse']();for(const _0x167ee1 of _0x1f5826)if(_0x167ee1<_0x540779)return _0x167ee1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bfaf4,_0x215e7f){const _0xfe229e=Array['from'](_0x215e7f['markers'])['map'](([_0x403d68,_0x2468de])=>[_0x403d68,this['_fixRange'](_0x2468de,_0x3bfaf4)]);_0x3bfaf4['markers']=new Map(_0xfe229e);}['_transformMarkers'](_0x4c3139){for(const _0x227ea7 of this['_markers']['values']()){const _0x5a7c96=_0x227ea7['getTransformedByOperation'](_0x4c3139),_0x3bf414=lt['_createFromRanges'](_0x5a7c96);_0x227ea7['start']=_0x3bf414['start'],_0x227ea7['end']=_0x3bf414['end'];}}['_handleOperation'](_0x55c3f0,_0x357407){if('addRoot'!=_0x55c3f0['type']&&'detachRoot'!=_0x55c3f0['type']){if('insert'==_0x55c3f0['type']){const _0x38ffd3=_0x55c3f0['position']['root']['rootName'];this['_diffRoots']['has'](_0x38ffd3)||(this['_diffRoots']['set'](_0x38ffd3,P(_0x38ffd3,!0x0)),this['_diffRootsAttributes']['set'](_0x38ffd3,{}),_0x357407&&this['_idsRoots']['set'](_0x38ffd3,P(_0x38ffd3,!0x0)));}else{if('addRootAttribute'==_0x55c3f0['type']||'removeRootAttribute'==_0x55c3f0['type']||'changeRootAttribute'==_0x55c3f0['type'])return void this['_handleRootAttributeOperation'](_0x55c3f0);'marker'==_0x55c3f0['type']&&this['_handleMarkerOperation'](_0x55c3f0);}if('marker'!==_0x55c3f0['type']){const _0x29e320=this['_cloneOperation'](_0x55c3f0,this['_diffRoots']);_0x29e320['_execute'](),this['_transformMarkers'](_0x29e320);}if(_0x357407)switch(_0x55c3f0['type']){case'insert':this['_handleInsertOperation'](_0x55c3f0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x55c3f0);break;case'merge':this['_handleMergeOperation'](_0x55c3f0);break;case'split':this['_handleSplitOperation'](_0x55c3f0);}}else this['_handleRootOperation'](_0x55c3f0,_0x357407);}['_cloneOperation'](_0x1680f1,_0x53b14c){const _0x547b42=_0x1680f1['clone']();return _0x547b42['_authorId']=_0x1680f1['_authorId'],this['_fixOperation'](_0x547b42,_0x53b14c),_0x547b42;}['_getBaseVids'](_0x25ee62){return _0x25ee62['map'](_0x57ea47=>{const _0x179dd3=this['_getVidAttributeName'](_0x57ea47);return Number(_0x57ea47['item']['getAttribute'](_0x179dd3));});}['_generateTape'](_0x11af55,_0xda106b){if(_0x11af55['is']('element','$text'))_0xda106b['push']({'item':_0x11af55,'type':'text'});else{_0x11af55['is']('element')&&_0xda106b['push']({'item':_0x11af55,'type':'elementStart'});for(const _0x5d622f of _0x11af55['getChildren']())this['_generateTape'](_0x5d622f,_0xda106b);_0x11af55['is']('element')&&_0xda106b['push']({'item':_0x11af55,'type':'elementEnd'});}return _0xda106b;}['_getState'](){const _0x4f6624=new Map(this['_touched']),_0x163947=new Map(_0x4f6624),_0x5e34df=new Map(),_0x58d170={'insertions':{},'deletions':{}},_0x56c4e9={'insertions':{},'deletions':{}},_0x54ab92=new Map(),_0xe2fe1d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe2fe1d['delete']('$graveyard');for(const _0x4e9668 of _0xe2fe1d){const _0x4862ad=this['_diffRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1),_0x5e63ac=this['_baseRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1);_0x4862ad['isAttached']()||_0x5e63ac['isAttached']()?(_0x58d170['insertions'][_0x4e9668]=N(_0x4862ad),_0x58d170['deletions'][_0x4e9668]=N(_0x5e63ac),this['_copyMarkers'](_0x58d170['deletions'][_0x4e9668],_0x5e63ac),this['_copyMarkers'](_0x58d170['insertions'][_0x4e9668],_0x4862ad),_0x56c4e9['insertions'][_0x4e9668]=this['_generateTape'](this['_idsRoots']['get'](_0x4e9668),[]),_0x56c4e9['deletions'][_0x4e9668]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4e9668)||P(_0x4e9668,!0x1),[])):_0xe2fe1d['delete'](_0x4e9668);}for(const _0x489703 of _0xe2fe1d){const _0x1a5ce0=_0x56c4e9['insertions'][_0x489703];for(const _0x43e3c4 of _0x1a5ce0){const _0x5b42e0=this['_getVidAttributeName'](_0x43e3c4),_0x1eb227=_0x43e3c4['item']['getAttribute'](_0x5b42e0);_0x163947['delete'](_0x1eb227),_0x1eb227>=this['_startingRevisionId']&&_0x5e34df['set'](_0x1eb227,_0x4f6624['get'](_0x1eb227));}}for(const _0x18e027 of _0xe2fe1d){const _0x8de9af=_0x56c4e9['insertions'][_0x18e027],_0x3d940b=this['_getBaseVids'](_0x56c4e9['deletions'][_0x18e027]);let _0x20ff6b=0x0;for(const _0x3cbf0a of _0x8de9af){const _0x447200=this['_getVidAttributeName'](_0x3cbf0a),_0x5cb634=_0x3cbf0a['item']['getAttribute'](_0x447200);if(!_0x5e34df['has'](_0x5cb634)&&!_0x54ab92['has'](_0x5cb634)){if(_0x163947['has'](_0x5cb634))_0x20ff6b++;else{if(_0x5cb634!=_0x3d940b[_0x20ff6b]){const _0x41db17=_0x4f6624['get'](_0x5cb634)||_0x4f6624['get'](_0x3d940b[_0x20ff6b]);for(;_0x5cb634!=_0x3d940b[_0x20ff6b];)_0x163947['has'](_0x3d940b[_0x20ff6b])||(_0x54ab92['set'](_0x3d940b[_0x20ff6b],_0x41db17),_0x4f6624['set'](_0x3d940b[_0x20ff6b],_0x41db17)),_0x20ff6b++;}_0x20ff6b++;}}}}for(const _0x2841ae of _0xe2fe1d){const _0x49fa64=_0x56c4e9['insertions'][_0x2841ae];for(const _0x127fb9 of _0x49fa64){const _0x4fe7de=this['_getVidAttributeName'](_0x127fb9),_0x18b12b=_0x127fb9['item']['getAttribute'](_0x4fe7de);if(_0x54ab92['has'](_0x18b12b)){const _0x3bb13a=_0x54ab92['get'](_0x18b12b);_0x163947['has'](_0x18b12b)||_0x163947['set'](_0x18b12b,{..._0x3bb13a}),_0x5e34df['set'](_0x18b12b,{..._0x3bb13a});}}}for(const _0x396097 of _0x163947['keys']())_0x396097>=this['_startingRevisionId']&&_0x163947['delete'](_0x396097);const _0x22b51e=new Map();for(const _0x9ffc4d of _0xe2fe1d){let _0x5532b4=_0x56c4e9['insertions'][_0x9ffc4d];for(const _0x6bb219 of _0x5532b4)if(_0x6bb219['item']['is']('element','tableCell')){const _0x1b4510=this['_getVidAttributeName'](_0x6bb219),_0x2dc117=_0x6bb219['item']['getAttribute'](_0x1b4510);if(_0x5e34df['has'](_0x2dc117)){const _0x4d4300=_0x6bb219['item']['parent']['parent']['getAttribute']('vid_start'),_0x9092cf=_0x22b51e['get'](_0x4d4300)||new Set();_0x9092cf['add'](_0x5e34df['get'](_0x2dc117)['userId']),_0x22b51e['set'](_0x4d4300,_0x9092cf);}}_0x5532b4=_0x56c4e9['deletions'][_0x9ffc4d];for(const _0x24c9e8 of _0x5532b4)if(_0x24c9e8['item']['is']('element','tableCell')){const _0x42ddf2=this['_getVidAttributeName'](_0x24c9e8),_0x206a82=_0x24c9e8['item']['getAttribute'](_0x42ddf2);if(_0x163947['has'](_0x206a82)){const _0x59e52b=_0x24c9e8['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ff286=_0x22b51e['get'](_0x59e52b)||new Set();_0x1ff286['add'](_0x163947['get'](_0x206a82)['userId']),_0x22b51e['set'](_0x59e52b,_0x1ff286);}}for(const _0x249a7d of _0x22b51e['keys']())(_0x5e34df['has'](_0x249a7d)||_0x163947['has'](_0x249a7d))&&_0x22b51e['delete'](_0x249a7d);}for(const _0x29efb4 of _0xe2fe1d){const _0x526e9d=_0x56c4e9['insertions'][_0x29efb4];let _0x54b1cf=null,_0x1b7379=null;for(const _0x3228a9 of _0x526e9d){const _0x25f3a7=this['_getVidAttributeName'](_0x3228a9),_0x2af6e0=_0x3228a9['item']['getAttribute'](_0x25f3a7),_0x20d1a0=_0x22b51e['get'](_0x2af6e0);_0x20d1a0&&'elementStart'==_0x3228a9['type']&&(_0x54b1cf=Array['from'](_0x20d1a0)[0x0],_0x1b7379=_0x3228a9['item']['getAttribute']('vid_end')),_0x54b1cf&&(_0x163947['set'](_0x2af6e0,{'userId':_0x54b1cf}),_0x5e34df['set'](_0x2af6e0,{'userId':_0x54b1cf})),_0x2af6e0==_0x1b7379&&(_0x54b1cf=null,_0x1b7379=null);}}const _0x539eb2={},_0x40dbf4=new Set();for(const _0xa6b21c of _0xe2fe1d){const _0x24924b=_0x58d170['deletions'][_0xa6b21c],_0x48234b=_0x58d170['insertions'][_0xa6b21c];for(const {userId:_0x274f00}of this['_touchedMarkers']['values']())null!==_0x274f00&&_0x40dbf4['add'](_0x274f00);for(const {userId:_0x297068}of this['_touchedRoots']['values']())null!==_0x297068&&_0x40dbf4['add'](_0x297068);this['_markChanges'](_0x48234b,_0x56c4e9['insertions'][_0xa6b21c],_0x5e34df,'insertion',_0x40dbf4),this['_markChanges'](_0x24924b,_0x56c4e9['deletions'][_0xa6b21c],_0x163947,'deletion',_0x40dbf4),_0x539eb2[_0xa6b21c]={'insertions':this['_prepareViewToSave'](_0x48234b),'deletions':this['_prepareViewToSave'](_0x24924b),'attachChange':this['_touchedRoots']['get'](_0xa6b21c)||null,'attributesBefore':_0x5765cb(this['_baseRootsAttributes']['get'](_0xa6b21c))||{},'attributesAfter':_0x5765cb(this['_diffRootsAttributes']['get'](_0xa6b21c))};}return{'diffData':_0x539eb2,'authorsIds':Array['from'](_0x40dbf4)};}['_processRootBeforeSave'](_0x1d123c){for(const [,_0x1cb07a]of _0x1d123c['markers']){const _0x41847e=_0x1cb07a['start']['getAncestors']()['filter'](_0x596766=>'tableCell'==_0x596766['name']);for(const _0x48f2d2 of _0x41847e)0x1==_0x48f2d2['childCount']&&_0x48f2d2['getChild'](0x0)['is']('element','paragraph')&&_0x48f2d2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5840b4){this['_processRootBeforeSave'](_0x5840b4);const _0x52fa5=this['editor']['data']['toView'](_0x5840b4,{}),_0x233f5c=Array['from'](_0x52fa5['getChildren']())['map'](_0x43046b=>this['_getViewJson'](_0x43046b));return JSON['stringify'](_0x233f5c);}['_getViewJson'](_0x2d4999){if(_0x2d4999['is']('$text'))return _0x2d4999['data'];{const _0x13f54f=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xd24282=_0x2d4999,_0x2a4ebe=this['editor']['data']['htmlProcessor']['domConverter'],_0x474e74={'type':_0x13f54f['_getTypeCharForViewElement'](_0xd24282),'name':_0xd24282['name'],'attributes':Array['from'](_0xd24282['getAttributes']()),'children':Array['from'](_0xd24282['getChildren']())['map'](_0x5a2373=>this['_getViewJson'](_0x5a2373))};if(_0x2d4999['is']('uiElement')&&'$comment'!=_0x2d4999['name']){const _0x2da4e9=_0x2d4999['render'](_0x2a4ebe['domDocument'],_0x2a4ebe);_0x474e74['children']['push'](_0x2da4e9['outerHTML']);}else{if(_0x2d4999['is']('rawElement')){const _0x9e4079=_0x2a4ebe['domDocument']['createElement'](_0xd24282['name']);_0x2d4999['render'](_0x9e4079,_0x2a4ebe),_0x474e74['children']['push'](_0x9e4079['innerHTML']);}}const _0x4ddece=Array['from'](_0xd24282['getCustomProperties']());_0x4ddece['length']>0x0&&(_0x474e74['customProperties']=_0x4ddece);const _0x1bfe6a=_0xd24282['getFillerOffset']();return null!==_0x1bfe6a&&(_0x474e74['fillerOffset']=_0x1bfe6a),_0x474e74;}}['_markChanges'](_0x31e3ab,_0x124797,_0x55c2a9,_0x3ea6ce,_0x36e25d){let _0x32416c=null,_0x5a5ff7=null,_0x1c88f7=0x0;const _0x1a302c=this['editor']['model'];for(let _0x79591a=0x0;_0x79591a<_0x124797['length'];_0x79591a++){const _0x3e483c=this['_getVidAttributeName'](_0x124797[_0x79591a]),_0x22bded=_0x124797[_0x79591a]['item']['getAttribute'](_0x3e483c),_0x2c8190=_0x55c2a9['get'](_0x22bded),_0x2851e9=_0x79591a==_0x124797['length']-0x1;(!_0x32416c&&_0x2c8190&&(_0x32416c=_0x2c8190,_0x5a5ff7=_0x124797[_0x79591a]),_0x32416c&&(!_0x2c8190||_0x2c8190['userId']!=_0x32416c['userId']))&&(_0x2c31c3(_0x2c8190,F(_0x5a5ff7,_0x31e3ab,_0x1a302c),F(_0x124797[_0x79591a],_0x31e3ab,_0x1a302c)),_0x32416c=_0x2c8190||null,_0x5a5ff7=_0x2c8190?_0x124797[_0x79591a]:null),_0x32416c&&_0x2851e9&&_0x2c31c3(_0x2c8190,F(_0x5a5ff7,_0x31e3ab,_0x1a302c),B(_0x124797[_0x79591a],_0x31e3ab,_0x1a302c));}function _0x2c31c3(_0x5c7541,_0x2cd681,_0x4c29fc){const _0x4a2f6c=_0x32416c['userId'],_0x111620='revision:'+_0x3ea6ce+':'+_0x4a2f6c+':'+_0x1c88f7++,_0x35372b=_0x1a302c['createRange'](_0x2cd681,_0x4c29fc);_0x31e3ab['markers']['set'](_0x111620,_0x35372b),null!==_0x4a2f6c&&_0x36e25d['add'](_0x4a2f6c);}}['_getVidAttributeName'](_0x41f0f4){switch(_0x41f0f4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e354f,_0x4affef){_0x5e354f['baseVersion']=null;for(const _0x517798 in _0x5e354f){const _0xed922e=_0x5e354f[_0x517798];if(_0xed922e instanceof ft){const _0x42b64e=_0x4affef['get'](_0xed922e['root']['rootName']);_0x5e354f[_0x517798]=this['_fixPosition'](_0xed922e,_0x42b64e);}if(_0xed922e instanceof lt){const _0xd74050=_0x4affef['get'](_0xed922e['root']['rootName']);_0x5e354f[_0x517798]=this['_fixRange'](_0xed922e,_0xd74050);}'root'===_0x517798&&(_0x5e354f['root']=_0x4affef['get'](_0x5e354f['root']['rootName']));}}['_fixRange'](_0x385c8f,_0x3ad886){return this['editor']['model']['createRange'](this['_fixPosition'](_0x385c8f['start'],_0x3ad886),this['_fixPosition'](_0x385c8f['end'],_0x3ad886));}['_fixPosition'](_0xcce1cb,_0x3b838a){return this['editor']['model']['createPositionFromPath'](_0x3b838a,_0xcce1cb['path'],_0xcce1cb['stickiness']);}['_handleInsertOperation'](_0x2a7b61){const _0x1d0212=this['_idsRoots']['get'](_0x2a7b61['position']['root']['rootName']),_0x280df8=this['_fixPosition'](_0x2a7b61['position'],_0x1d0212),_0x56bb4c=null===_0x2a7b61['_authorId']?null:_0x2a7b61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44605b=_0x280df8['parent'],_0x1c71d9=this['_revisionId'],_0x3b06c4=[];for(const _0x280ced of _0x2a7b61['nodes'])if(_0x280ced['is']('element'))_0x3b06c4['push'](this['_makeIdsRoot'](_0x280ced));else{for(let _0x3af213=0x0;_0x3af213<_0x280ced['offsetSize'];_0x3af213++)_0x3b06c4['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x565565=this['_revisionId'];for(let _0x404b8c=_0x1c71d9;_0x404b8c<_0x565565;_0x404b8c++)this['_touched']['set'](_0x404b8c,{'userId':_0x56bb4c});_0x44605b['_insertChild'](_0x280df8['offset'],_0x3b06c4);}['_handleMoveOperation'](_0x186b32){(_0x186b32=this['_cloneOperation'](_0x186b32,this['_idsRoots']))['_execute']();const _0xa4c7a3=null===_0x186b32['_authorId']?null:_0x186b32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c194e=_0x186b32['getMovedRangeStart'](),_0x3f03a8=_0x1c194e['parent'],_0x119816=_0x1c194e['offset'];!function _0x3ac309(_0x3983ad,_0x481082,_0x2e2b06,_0x351cfa){for(let _0x52fdfe=_0x2e2b06;_0x52fdfe<_0x351cfa;_0x52fdfe++){const _0x1b0264=_0x481082['getChild'](_0x52fdfe);_0x1b0264['is']('element','$text')?_0x3983ad['set'](_0x1b0264['getAttribute']('vid'),{'userId':_0xa4c7a3}):(_0x3983ad['set'](_0x1b0264['getAttribute']('vid_start'),{'userId':_0xa4c7a3}),_0x3ac309(_0x3983ad,_0x1b0264,0x0,_0x1b0264['childCount']),_0x3983ad['set'](_0x1b0264['getAttribute']('vid_end'),{'userId':_0xa4c7a3}));}}(this['_touched'],_0x3f03a8,_0x119816,_0x119816+_0x186b32['howMany']);}['_handleMergeOperation'](_0x3f8375){const _0x271017=null===(_0x3f8375=this['_cloneOperation'](_0x3f8375,this['_idsRoots']))['_authorId']?null:_0x3f8375['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15c083=_0x3f8375['targetPosition']['parent'],_0x4fc668=_0x3f8375['sourcePosition']['parent'],_0x27d2b3=_0x15c083['getAttribute']('vid_end'),_0x96387=_0x4fc668['getAttribute']('vid_start');_0x15c083['_setAttribute']('vid_end',_0x4fc668['getAttribute']('vid_end')),_0x4fc668['_setAttribute']('vid_end',_0x27d2b3),this['_touched']['set'](_0x96387,{'userId':_0x271017}),this['_touched']['set'](_0x27d2b3,{'userId':_0x271017}),_0x3f8375['_execute']();}['_handleSplitOperation'](_0xac5598){const _0x1b5b19=null===(_0xac5598=this['_cloneOperation'](_0xac5598,this['_idsRoots']))['_authorId']?null:_0xac5598['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cbada=_0xac5598['graveyardPosition'],_0x49bfeb=_0xac5598['splitPosition']['parent'];_0xac5598['_execute']();const _0x55609a=_0x49bfeb['getAttribute']('vid_end'),_0x1a1528=_0xac5598['insertionPosition']['nodeAfter'];if(_0x2cbada){const _0x2b6002=_0x1a1528['getAttribute']('vid_end'),_0x2f5feb=_0x49bfeb['getAttribute']('vid_end');_0x49bfeb['_setAttribute']('vid_end',_0x2b6002),_0x1a1528['_setAttribute']('vid_end',_0x2f5feb),this['_touched']['set'](_0x49bfeb['getAttribute']('vid_end'),{'userId':_0x1b5b19}),this['_touched']['set'](_0x1a1528['getAttribute']('vid_start'),{'userId':_0x1b5b19});}else{const _0x7646e3=this['_revisionId']++,_0x11ffcb=this['_revisionId']++;_0x49bfeb['_setAttribute']('vid_end',_0x7646e3),_0x1a1528['_setAttribute']('vid_start',_0x11ffcb),_0x1a1528['_setAttribute']('vid_end',_0x55609a),this['_touched']['set'](_0x7646e3,{'userId':_0x1b5b19}),this['_touched']['set'](_0x11ffcb,{'userId':_0x1b5b19});}}['_handleMarkerOperation'](_0x51da25){if(!_0x51da25['affectsData'])return;const _0x5cab4f=(_0x51da25=this['_cloneOperation'](_0x51da25,this['_diffRoots']))['oldRange']?_0x51da25['oldRange']['root']:null,_0x171777=_0x51da25['newRange']?_0x51da25['newRange']['root']:null;_0x5cab4f&&this['_markers']['delete'](_0x51da25['name']),_0x171777&&this['_markers']['set'](_0x51da25['name'],_0x51da25['newRange']['clone']());const _0x2b25a5=null===_0x51da25['_authorId']?null:_0x51da25['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2387be=_0x51da25['name'];if(!this['_touchedMarkers']['has'](_0x2387be))return void this['_touchedMarkers']['set'](_0x2387be,{'range':_0x51da25['oldRange'],'userId':_0x2b25a5});const _0x26165d=this['_touchedMarkers']['get'](_0x2387be),_0x17e1ac=_0x26165d['range'],_0x2a06cb=_0x51da25['newRange'];null==_0x17e1ac&&null==_0x2a06cb||_0x17e1ac&&_0x2a06cb&&_0x17e1ac['isEqual'](_0x2a06cb)?this['_touchedMarkers']['delete'](_0x51da25['name']):_0x26165d['userId']=_0x2b25a5;}['_handleRootOperation'](_0x8d9d76,_0x510355){this['_diffRoots']['has'](_0x8d9d76['rootName'])?this['_diffRoots']['get'](_0x8d9d76['rootName'])['_isAttached']=_0x8d9d76['isAdd']:(this['_diffRoots']['set'](_0x8d9d76['rootName'],P(_0x8d9d76['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x8d9d76['rootName'],{}),_0x510355&&this['_idsRoots']['set'](_0x8d9d76['rootName'],P(_0x8d9d76['rootName'],!0x0)));const _0x462f2a=null===_0x8d9d76['_authorId']?null:_0x8d9d76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fe53c=this['_touchedRoots']['get'](_0x8d9d76['rootName']);_0x1fe53c&&_0x1fe53c['userId']===_0x462f2a?this['_touchedRoots']['delete'](_0x8d9d76['rootName']):this['_touchedRoots']['set'](_0x8d9d76['rootName'],{'userId':_0x462f2a,'isAttached':_0x8d9d76['isAdd']});}['_handleRootAttributeOperation'](_0x3bcdcb){const _0x36b6ff=this['_diffRootsAttributes']['get'](_0x3bcdcb['root']['rootName']);null===_0x3bcdcb['newValue']?delete _0x36b6ff[_0x3bcdcb['key']]:_0x36b6ff[_0x3bcdcb['key']]=_0x3bcdcb['newValue'];}}function N(_0x43acfa){const _0x5b5537=P(_0x43acfa['rootName'],_0x43acfa['isAttached']());for(const _0x528425 of _0x43acfa['getChildren']()){const _0x38d035=_0x528425['_clone'](!0x0);_0x5b5537['_appendChild'](_0x38d035);}return _0x5b5537;}function P(_0x5ecb5c,_0x20cb1c=!0x0){const _0x15752c=new vt();return _0x15752c['rootName']=_0x5ecb5c,_0x15752c['_isAttached']=_0x20cb1c,_0x15752c['isAttached']=()=>_0x15752c['_isAttached'],_0x15752c;}function F(_0xfe71cf,_0x34cc72,_0x352684){const _0x123ee4='elementEnd'==_0xfe71cf['type']?_0x352684['createPositionAt'](_0xfe71cf['item'],'end'):_0x352684['createPositionBefore'](_0xfe71cf['item']);return _0x352684['createPositionFromPath'](_0x34cc72,_0x123ee4['path'],_0x123ee4['stickiness']);}function B(_0x42d89c,_0x1c22a6,_0x30f595){const _0x5ef6b3='elementStart'==_0x42d89c['type']?_0x30f595['createPositionAt'](_0x42d89c['item'],0x0):_0x30f595['createPositionAfter'](_0x42d89c['item']);return _0x30f595['createPositionFromPath'](_0x1c22a6,_0x5ef6b3['path'],_0x5ef6b3['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x50270f,_0x440dd4){super(_0x50270f),this['focusTracker']=new _0x5eeeb9(),this['keystrokes']=new _0x2bed51(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x440dd4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x28aef4(this);}['render'](){super['render'](),_0x3e875d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x55886a=_0x29b508=>_0x29b508['stopPropagation']();this['keystrokes']['set']('arrowright',_0x55886a),this['keystrokes']['set']('arrowleft',_0x55886a),this['keystrokes']['set']('arrowup',_0x55886a),this['keystrokes']['set']('arrowdown',_0x55886a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x32c243){this['revisionNameInputView']['fieldView']['element']['value']=_0x32c243['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x53c637){const _0x17dab4=new _0x5e368c(this['locale'],_0x27bde4),_0xad7594=_0x17dab4['fieldView'];_0xad7594['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x178132=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x53c637&&(_0x178132+='\x20('+g(this['locale'],'optional')+')'),(_0x17dab4['label']=_0x178132,_0xad7594['on']('input',()=>{this['revisionNameInputValue']=_0xad7594['element']['value']['trim']();}),_0x17dab4);}}class f extends _0x467a15{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x319bc1=this['editor'],_0x17c3cb=_0x319bc1['plugins']['get']('RevisionTracker');_0x319bc1['ui']['componentFactory']['add']('revisionHistory',_0xf184d2=>{const _0x574bcb=_0x1bbc66(_0xf184d2),_0x1ae67e=_0x574bcb['panelView']['children'],_0x43fcd5=new _0x423895(_0xf184d2),_0x3ca02d=new _0x4e47b7(_0xf184d2),_0x3d85e0=new te(_0xf184d2),_0x390f5a=new _0x4e47b7(_0xf184d2),_0x5a40a1=new te(_0xf184d2);return _0x574bcb['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x17c3cb,'isEnabled',_0x319bc1,'isReadOnly',(_0xd7c039,_0x29c83d,_0x3f4812)=>_0xd7c039&&_0x29c83d&&!_0x3f4812),_0x574bcb['buttonView']['set']({'icon':_0x11f442,'label':g(_0xf184d2,'Revision\x20history'),'tooltip':!0x0}),_0x3d85e0['set']({'label':g(_0xf184d2,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3d85e0['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x17c3cb,'isEnabled',_0x319bc1,'isReadOnly',(_0x4f9898,_0x12dcf3,_0x19e6c6)=>_0x4f9898&&_0x12dcf3&&!_0x19e6c6),_0x3d85e0['on']('execute',()=>this['_showDialog']()),_0x5a40a1['set']({'label':g(_0xf184d2,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a40a1['bind']('isEnabled')['to'](_0x17c3cb,'isReady',_0x319bc1,'isReadOnly',(_0x575df4,_0x4acd8d)=>_0x575df4&&!_0x4acd8d),_0x5a40a1['on']('execute',()=>{_0x319bc1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x574bcb['isOpen']=!0x1,_0x319bc1['editing']['view']['focus']();}),_0x3ca02d['children']['add'](_0x3d85e0),_0x390f5a['children']['add'](_0x5a40a1),_0x43fcd5['role']='menu',_0x43fcd5['items']['addMany']([_0x3ca02d,_0x390f5a]),_0x1ae67e['add'](_0x43fcd5),_0x574bcb;}),_0x319bc1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1da82f=this['editor'],_0x3cfba4=_0x1da82f['locale'],_0x508d82=new _0x3bae41(_0x3cfba4),_0x2dc5d3=new _0x319907(_0x3cfba4);_0x508d82['buttonView']['set']({'icon':_0x11f442,'label':g(_0x3cfba4,'Revision\x20history')});const _0x25acbb=new _0x23c40d(_0x3cfba4,_0x508d82),_0x3597b9=new _0x22a9b2(_0x3cfba4);_0x3597b9['set']({'label':g(_0x3cfba4,'Save\x20current\x20revision')}),_0x3597b9['delegate']('execute')['to'](_0x508d82),_0x3597b9['on']('execute',()=>{this['_showDialog']();}),_0x25acbb['children']['add'](_0x3597b9),_0x2dc5d3['items']['add'](_0x25acbb);const _0x2d267c=new _0x23c40d(_0x3cfba4,_0x508d82),_0x21c287=new _0x22a9b2(_0x3cfba4);return _0x21c287['set']({'label':g(_0x3cfba4,'Open\x20revision\x20history')}),_0x21c287['delegate']('execute')['to'](_0x508d82),_0x21c287['on']('execute',()=>{_0x1da82f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d267c['children']['add'](_0x21c287),_0x2dc5d3['items']['add'](_0x2d267c),_0x508d82['panelView']['children']['add'](_0x2dc5d3),_0x508d82;}['_showDialog'](){const _0x54b204=this['editor'],_0x2c0876=_0x54b204['locale'],_0x234abe=_0x54b204['plugins']['get']('Dialog'),_0x1c63d9=_0x54b204['plugins']['get']('RevisionTracker');function _0x5cd85d(_0x14a6ba){_0x54b204['config']['get']('revisionHistory.requireRevisionName')&&''===_0x14a6ba['revisionName']?_0x14a6ba['revisionNameInputView']['errorText']=g(_0x2c0876,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x54b204['plugins']['get'](u)['saveRevision']({'name':_0x14a6ba['revisionName']}),_0x234abe['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5cd85d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x234abe['show']({'id':'revisionSave','title':g(_0x2c0876,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x54b204['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x234abe['hide']()},{'label':g(_0x54b204['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2b71e3){_0x2b71e3['bind']('isEnabled')['to'](_0x1c63d9,'isReady',_0x1c63d9,'isEnabled',_0x54b204,'isReadOnly',(_0x3375ce,_0x22cf71,_0xa19f16)=>_0x3375ce&&_0x22cf71&&!_0xa19f16);},'onExecute':()=>_0x5cd85d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x57dd5e=this['editor'],_0x576b6f=_0x57dd5e['locale'];this['_saveRevisionFormView']=new hs(_0x576b6f,_0x57dd5e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1cc29a,_0x5e4176){super(_0x1cc29a),this['_model']=_0x5e4176,this['changeId']=_0x5e4176['id'];const _0x170e38=this['bindTemplate'],_0x1f8e00=g(_0x1cc29a,_0x5e4176['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5e4176['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5e4176['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x170e38['to']('type',_0x47918c=>'ck-revision-change__'+_0x47918c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1f8e00}]},{'text':'\x20'+_0x5e4176['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x583c2e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3953b4){super(),this['id']=_0x3953b4['id']||_0x57d2cb(),this['author']=_0x3953b4['author'],this['type']=_0x3953b4['type'],this['data']=_0x3953b4['data']||{},this['rootName']=_0x3953b4['rootName'],this['set']('createdAt',_0x3953b4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x39e114,_0x5c78a0){this['newRevisionId']=_0x39e114,this['oldRevisionId']=_0x5c78a0,this['changes']=new _0x20fb32();}['_setChanges'](_0x3f0746){for(const _0x2b3bc8 of _0x3f0746)this['changes']['add'](_0x2b3bc8);}}class m extends _0x467a15{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x164c4c,_0x40ff0f,I,V];}constructor(_0x34ed8f){super(_0x34ed8f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2a1572,_0x2ba7fb,_0x461783)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xab4235=>{for(const _0x132292 of this['editor']['editing']['view']['document']['roots'])_0x461783?_0xab4235['removeClass']('ck-editor__editable__overlay',_0x132292):_0xab4235['addClass']('ck-editor__editable__overlay',_0x132292);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x506578=>null!==_0x506578),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1db1a1,_0xcde619,_0x3c1456)=>_0x1db1a1&&_0x3c1456?_0xcde619['changes']['getIndex'](_0x3c1456):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x156541,_0x57cf11)=>_0x156541?_0x57cf11['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x40ff0f);}['init'](){const _0x1d9544=this['editor'],_0x281b7e=new wt(_0x1d9544,{'direction':'backward'}),_0x35669d=new wt(_0x1d9544,{'direction':'forward'});(_0x1d9544['commands']['add']('showPreviousChange',_0x281b7e),_0x1d9544['commands']['add']('showNextChange',_0x35669d),_0x1d9544['commands']['add']('restoreRevision',new mt(_0x1d9544)),this['on']('change:numberOfChanges',()=>{_0x281b7e['refresh'](),_0x35669d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1d9544['enableReadOnlyMode']('revision-viewer'),_0x1d9544['plugins']['has']('WidgetToolbarRepository'))&&_0x1d9544['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5ea206){return await this['_utils']['loadRevisionData'](_0x5ea206,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5ea206);}async['getRevisionRootsAttributes'](_0x55170f){return await this['_utils']['loadRevisionData'](_0x55170f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x55170f);}async['compare'](_0x25cd88,_0x4469c1,_0x2e442e=!0x1){if(!this['isEnabled'])return;const _0x471847=this['diff'],_0x58b755=this['repository'],_0x1967b7='string'==typeof _0x25cd88?_0x58b755['getRevision'](_0x25cd88):_0x25cd88,_0x4f0014='string'==typeof _0x4469c1?_0x58b755['getRevision'](_0x4469c1):_0x4469c1,_0x1ecd95=_0x1967b7['id'],_0x28be2b=_0x4f0014?_0x4f0014['id']:null;if(!_0x2e442e&&this['diff']&&this['diff']['newRevisionId']===_0x1ecd95&&this['diff']['oldRevisionId']===_0x28be2b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ecd95,_0x28be2b);const _0x52e210=this['_getRevisionsRange'](_0x1967b7,_0x4f0014,!0x0)['map'](_0x3a1db2=>this['_utils']['loadRevisionData'](_0x3a1db2,this['adapter']));return _0x52e210['push'](new Promise(_0x2340b4=>{setTimeout(_0x2340b4,0x14);})),Promise['all'](_0x52e210)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1b0e27=this['_getDiff'](_0x1ecd95,_0x28be2b);for(const _0x3a9346 of _0x1b0e27['changes'])this['_changeIdToChange']['set'](_0x3a9346['id'],_0x3a9346);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b837d=>{for(const _0x380bb7 of this['editor']['model']['document']['getRootNames']())_0x4b837d['detachRoot'](_0x380bb7);for(const _0x3b36fb of Object['keys'](_0x1b0e27['model'])){const _0x259579=_0x4b837d['addRoot'](_0x3b36fb);for(const _0x5775bc of Object['keys'](_0x1b0e27['attributes'][_0x3b36fb]))_0x4b837d['setAttribute'](_0x5775bc,_0x1b0e27['attributes'][_0x3b36fb][_0x5775bc],_0x259579);_0x4b837d['insert'](_0x1b0e27['model'][_0x3b36fb],_0x259579,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1b0e27['changes'])),this['isReady']=!0x0;})['catch'](_0x2128d5=>{console['error'](_0x2128d5),this['_cleanUp'](),_0x471847&&(this['diff']=_0x471847),this['isReady']=!0x0;});}['addRevisionData'](_0x3d04a0,_0x39310d){const _0x1e97a1=this['repository']['createRevision'](_0x3d04a0);return _0x1e97a1['on']('_update',(_0x974b16,_0x48b7e6,_0x39c023)=>_0x39310d(_0x48b7e6,_0x39c023,_0x1e97a1)),this['repository']['addRevision'](_0x1e97a1),_0x1e97a1;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f013c=>{for(const _0x470064 of this['editor']['model']['document']['getRootNames']())_0x2f013c['detachRoot'](_0x470064);});}['_sortAndFilterDiffChanges'](_0x153a53){const _0x2a34cf=[],_0x1c6474=new Map();for(const _0x3ac9f7 of this['editor']['model']['document']['getRootNames']()){const _0x5ea08c=this['editor']['editing']['view']['getDomRoot'](_0x3ac9f7);if(!_0x5ea08c)continue;const _0x58965d=_0x5ea08c['getClientRects']()['item'](0x0);_0x58965d&&(_0x2a34cf['push'](_0x3ac9f7),_0x1c6474['set'](_0x3ac9f7,_0x58965d));}return _0x2a34cf['sort']((_0x313f4e,_0x278078)=>{const _0x18a865=_0x1c6474['get'](_0x313f4e),_0xf46e3d=_0x1c6474['get'](_0x278078);return _0x18a865['y']-_0xf46e3d['y']||_0x18a865['x']-_0xf46e3d['x'];}),(_0x153a53=_0x153a53['filter'](_0x169abf=>_0x2a34cf['includes'](_0x169abf['rootName'])))['sort']((_0x309c71,_0x349587)=>_0x2a34cf['indexOf'](_0x309c71['rootName'])-_0x2a34cf['indexOf'](_0x349587['rootName'])),_0x153a53;}['_makeTape'](_0x539adf){const _0x2d8959=Array['from'](_0x539adf['markers'])['filter'](([_0x2b1139,_0x4bf173])=>_0x2b1139['startsWith']('revision:')&&!_0x4bf173['isCollapsed']),_0x5d6898=Array['from'](this['editor']['model']['createRangeIn'](_0x539adf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2d8959['length'])for(const _0x5bcf2c of _0x5d6898){const [_0x5c8a87,_0x43a7a5]=_0x2d8959[0x0],[,_0x47a496,_0x145da0]=_0x5c8a87['split'](':');if(_0x43a7a5['end']['isEqual'](_0x5bcf2c['nextPosition'])&&_0x2d8959['shift'](),(_0x5bcf2c['previousPosition']['isEqual'](_0x43a7a5['start'])||_0x5bcf2c['previousPosition']['isAfter'](_0x43a7a5['start']))&&('insertion'==_0x47a496?_0x5bcf2c['isAdded']={'userId':_0x145da0}:'deletion'==_0x47a496&&(_0x5bcf2c['isRemoved']={'userId':_0x145da0})),0x0==_0x2d8959['length'])break;}return _0x5d6898;}['_refreshStartEndIndex'](_0x59d206){const _0x1705a0=new Map();for(let _0x402980=0x0;_0x402980<_0x59d206['length'];_0x402980++)'text'===_0x59d206[_0x402980]['type']?(_0x59d206[_0x402980]['item']['startIndex']=_0x402980,_0x59d206[_0x402980]['item']['endIndex']=_0x402980):('elementStart'===_0x59d206[_0x402980]['type']?_0x59d206[_0x402980]['item']['startIndex']=_0x402980:'elementEnd'===_0x59d206[_0x402980]['type']&&(_0x59d206[_0x402980]['item']['endIndex']=_0x402980),_0x1705a0['set'](_0x59d206[_0x402980]['id'],_0x402980));for(const _0x4852df of _0x1705a0['values']())'elementStart'===_0x59d206[_0x4852df]['type']?_0x59d206[_0x4852df]['item']['endIndex']=_0x1705a0['get'](_0x59d206[_0x4852df]['pairId']):'elementEnd'===_0x59d206[_0x4852df]['type']&&(_0x59d206[_0x4852df]['item']['startIndex']=_0x1705a0['get'](_0x59d206[_0x4852df]['pairId']));}['_processTape'](_0x93b715){for(let _0x840fc4=0x0;_0x840fc4<_0x93b715['length'];_0x840fc4++){if('elementStart'===_0x93b715[_0x840fc4]['type'])_0x93b715[_0x840fc4]['item']['startIndex']=_0x840fc4;else{if('elementEnd'===_0x93b715[_0x840fc4]['type']){_0x93b715[_0x840fc4]['item']['endIndex']=_0x840fc4;const _0x37d3bc=_0x93b715[_0x840fc4]['item']['startIndex'];_0x93b715[_0x37d3bc]['pairId']=_0x93b715[_0x840fc4]['id'],_0x93b715[_0x840fc4]['pairId']=_0x93b715[_0x37d3bc]['id'];}else _0x93b715[_0x840fc4]['item']['startIndex']=_0x840fc4,_0x93b715[_0x840fc4]['item']['endIndex']=_0x840fc4,_0x93b715[_0x840fc4]['pairId']=null;}_0x93b715[_0x840fc4]['markersStart']||(_0x93b715[_0x840fc4]['markersStart']=[],_0x93b715[_0x840fc4]['markersEnd']=[]);}}['_markInsertions'](_0x37716c,_0x5bcf21){const _0x53eaf3=_0x37716c['filter'](_0x6017f6=>!_0x6017f6['isAdded']);for(let _0x595255=0x0;_0x595255<_0x5bcf21['length'];_0x595255++)_0x5bcf21[_0x595255]['isAdded']&&(_0x53eaf3[_0x595255]['isAdded']=_0x5bcf21[_0x595255]['isAdded']);}['_getDiff'](_0x1dfc4e,_0x43630a=null){const _0x2d482a=this['repository']['getRevision'](_0x1dfc4e),_0x3c5278=_0x43630a?this['repository']['getRevision'](_0x43630a):null,_0x18df86=this['_getRevisionsRange'](_0x2d482a,_0x3c5278),_0x4ff575=_0x18df86[_0x18df86['length']-0x1],_0x4a4729=new Map(),_0x1510b4={'model':{},'attributes':{},'changes':[]},_0x4624d8=new Set(),_0x5903f1=new Map();for(let _0x44c62e=_0x18df86['length']-0x1;_0x44c62e>=0x0;_0x44c62e--){const _0x2b63fc=_0x18df86[_0x44c62e];for(const _0x1e33c3 of Object['keys'](_0x2b63fc['diffData']))if(_0x2b63fc['diffData'][_0x1e33c3]['attachChange']){const _0x3ab274=_0x2b63fc['diffData'][_0x1e33c3]['attachChange'];_0x3ab274['isAttached']?(_0x4624d8['add'](_0x1e33c3),_0x5903f1['has'](_0x1e33c3)&&_0x5903f1['get'](_0x1e33c3)['userId']==_0x3ab274['userId']?_0x5903f1['delete'](_0x1e33c3):_0x5903f1['set'](_0x1e33c3,_0x3ab274)):_0x5903f1['has'](_0x1e33c3)?(_0x4624d8['delete'](_0x1e33c3),_0x5903f1['delete'](_0x1e33c3)):(_0x4624d8['add'](_0x1e33c3),_0x5903f1['set'](_0x1e33c3,_0x3ab274));}else _0x4624d8['add'](_0x1e33c3);}for(const _0x207511 of _0x4624d8){const _0x1ec757=_0x5903f1['has'](_0x207511)&&!_0x5903f1['get'](_0x207511)['isAttached'];let _0x4037e1=_0x1ec757?_0x18df86['length']-0x1:0x0;const _0x48a546=_0x1ec757?-0x1:0x1;for(;_0x18df86[_0x4037e1];){const _0x5717d9=_0x18df86[_0x4037e1];if(_0x5717d9['diffData'][_0x207511]){const _0x29f88f=_0x1ec757?_0x5717d9['diffData'][_0x207511]['attributesBefore']:_0x5717d9['diffData'][_0x207511]['attributesAfter'];_0x1510b4['attributes'][_0x207511]=_0x29f88f?_0x5765cb(_0x29f88f):{};break;}_0x4037e1+=_0x48a546;}}for(const _0x5977b3 of _0x18df86){_0x5977b3['model']={};for(const _0xf0815 of _0x5977b3['authors'])_0x4a4729['set'](_0xf0815['id'],_0xf0815);for(const _0x34d910 of _0x4624d8){const _0x5a6855=_0x5977b3['diffData'][_0x34d910]?_0x5977b3['diffData'][_0x34d910]['insertions']:'[]',_0x3680bd=_0x5977b3['diffData'][_0x34d910]?_0x5977b3['diffData'][_0x34d910]['deletions']:'[]';_0x5977b3['model'][_0x34d910]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a6855),'deletions':this['_utils']['_makeModelFromViewString'](_0x3680bd)};}}for(const _0x1a457d of _0x4624d8){let _0x59bc39=null,_0x5d56d7=0x0;const _0x19ce5c=new Map(Array['from'](_0x2d482a['model'][_0x1a457d]['insertions']['markers'])['filter'](([_0xf2ef03])=>!_0xf2ef03['startsWith']('revision:')));let _0xd82452=0x0;for(const _0x17166a of _0x18df86){const _0x531f7f=this['_makeTape'](_0x17166a['model'][_0x1a457d]['insertions']);_0x17166a==_0x2d482a?(_0x59bc39=_0x531f7f,_0x5d56d7=_0x59bc39['length'],_0x59bc39['forEach'](_0x31cfa9=>{_0x31cfa9['id']=_0xd82452++;}),this['_processTape'](_0x59bc39)):this['_markInsertions'](_0x59bc39,_0x531f7f);const _0x18734c=_0x59bc39['filter'](_0xeafd57=>!_0xeafd57['isAdded'])['map'](_0x3bce53=>_0x3bce53['id']);let _0x20fb98=0x0;const _0x2ea848=this['_makeTape'](_0x17166a['model'][_0x1a457d]['deletions']);_0x2ea848['forEach'](_0x485dc2=>{_0x485dc2['isRemoved']?_0x485dc2['id']=_0x5d56d7++:_0x485dc2['id']=_0x18734c[_0x20fb98++];}),this['_processTape'](_0x2ea848),this['_setDistance'](_0x59bc39,'isAdded'),this['_setDistance'](_0x2ea848,'isRemoved'),_0x17166a==_0x2d482a&&this['_markMarkers'](_0x59bc39,_0x19ce5c),_0x59bc39=this['_joinTapes'](_0x59bc39,_0x2ea848),this['_refreshStartEndIndex'](_0x59bc39),this['_setDistance'](_0x59bc39,'isRemoved');}_0x59bc39=_0x59bc39['filter'](_0x2f67f6=>!(_0x2f67f6['isAdded']&&_0x2f67f6['isRemoved']));const _0x2c14ce=new Map(_0x4ff575['model'][_0x1a457d]['deletions']['markers']),_0x12e643=new Set(_0x19ce5c['keys']());for(const _0x111edd of _0x2c14ce['keys']())_0x12e643['delete'](_0x111edd);this['_markSuggestions'](_0x59bc39,_0x12e643),this['_fixObsoleteTags'](_0x59bc39),_0x59bc39=this['_removeMissingPairs'](_0x59bc39),_0x59bc39=this['_markMismatchedRemovedTags'](_0x59bc39),_0x59bc39=this['_removeUnsupportedChanges'](_0x59bc39);const {root:_0x1309af,changes:_0x338017}=this['_makeModelFromTape'](_0x59bc39,_0x4a4729,_0x1a457d);_0x1510b4['model'][_0x1a457d]=_0x1309af;const _0x30dcad=_0x5903f1['get'](_0x1a457d);if(_0x30dcad){const _0x432385=_0x4a4729['get'](_0x30dcad['userId']),_0x49d459=new r({'author':_0x432385,'type':_0x30dcad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a457d});_0x338017['unshift'](_0x49d459),_0x1510b4['attributes'][_0x1a457d]['revisionHistoryAttachChange']=_0x49d459['id'];}_0x1510b4['changes']=_0x1510b4['changes']['concat'](_0x338017);}return _0x1510b4;}['_markMarkers'](_0xca9359,_0x4f2efe){for(let _0x1f1acb=0x0;_0x1f1acb<_0xca9359['length'];_0x1f1acb++)for(const [_0x190324,_0x3bfb2d]of _0x4f2efe)!_0x3bfb2d['isCollapsed']&&_0x3bfb2d['start']['isEqual'](_0xca9359[_0x1f1acb]['previousPosition'])&&_0xca9359[_0x1f1acb]['markersStart']['push'](_0x190324),_0x3bfb2d['end']['isEqual'](_0xca9359[_0x1f1acb]['nextPosition'])&&_0xca9359[_0x1f1acb]['markersEnd']['push'](_0x190324);}['_joinTapes'](_0x4eb039,_0x31955f){let _0x5b1a09=[],_0x15c4ff=0x0,_0x736a50=0x0;for(;_0x15c4ff<_0x4eb039['length']||_0x736a50<_0x31955f['length'];){const _0x51f88c=_0x4eb039[_0x15c4ff]||{},_0x3131ff=_0x31955f[_0x736a50]||{};if(_0x51f88c['id']==_0x3131ff['id'])_0x15c4ff++,_0x736a50++,_0x5b1a09['push'](_0x51f88c);else{if(_0x3131ff['isRemoved']&&_0x51f88c['isAdded']){const {commonTape:_0x4f29ad,iEnd:_0x206a75,jEnd:_0x32892c}=this['_threeWayMerge'](_0x4eb039,_0x15c4ff,_0x31955f,_0x736a50);_0x5b1a09=_0x5b1a09['concat'](_0x4f29ad),_0x15c4ff=_0x206a75,_0x736a50=_0x32892c;}else _0x3131ff['isRemoved']?(_0x736a50++,_0x5b1a09['push'](_0x3131ff)):(_0x15c4ff++,_0x5b1a09['push'](_0x51f88c));}}return _0x5b1a09;}['_markSuggestions'](_0x1a64bb,_0x3a9081){const _0x4b0979=[];for(let _0x3ae9b0=0x0;_0x3ae9b0<_0x1a64bb['length'];_0x3ae9b0++){for(let _0xcd1993=0x0;_0xcd1993<_0x1a64bb[_0x3ae9b0]['markersStart']['length'];_0xcd1993++){const _0x211c16=_0x1a64bb[_0x3ae9b0]['markersStart'][_0xcd1993];if(!_0x3a9081['has'](_0x211c16))continue;const {group:_0x5c8f67,type:_0x42d15e,authorId:_0x4dcd23}=_0xa2fbb7(_0x211c16);'revision-suggestion'!=_0x5c8f67||'insertion'!=_0x42d15e&&'deletion'!=_0x42d15e||(_0x4b0979['unshift']({'type':_0x42d15e,'name':_0x211c16,'userId':_0x4dcd23}),_0x1a64bb[_0x3ae9b0]['markersStart']['splice'](_0xcd1993,0x1),_0xcd1993--);}_0x4145dc(_0x1a64bb[_0x3ae9b0]);for(let _0x3c15f9=0x0;_0x3c15f9<_0x1a64bb[_0x3ae9b0]['markersEnd']['length'];_0x3c15f9++){const _0x8dc55b=_0x1a64bb[_0x3ae9b0]['markersEnd'][_0x3c15f9];if(!_0x3a9081['has'](_0x8dc55b))continue;const {group:_0x14d5f2,type:_0x552351}=_0xa2fbb7(_0x8dc55b);if('revision-suggestion'!=_0x14d5f2||'insertion'!=_0x552351&&'deletion'!=_0x552351)continue;_0x1a64bb[_0x3ae9b0]['markersEnd']['splice'](_0x3c15f9,0x1),_0x3c15f9--;const _0x357e04=_0x4b0979['findIndex'](_0x57f2ad=>_0x57f2ad['name']==_0x8dc55b);_0x357e04>-0x1&&_0x4b0979['splice'](_0x357e04,0x1);}}function _0xa2fbb7(_0x2c67ef){const _0x595014=_0x2c67ef['split'](':');return{'group':_0x595014[0x0],'type':_0x595014[0x1],'subType':_0x595014['length']>=0x5?_0x595014[0x2]:null,'id':_0x595014['length']<0x5?_0x595014[0x2]:_0x595014[0x3],'authorId':_0x595014['length']<0x5?_0x595014[0x3]:_0x595014[0x4],'markerCount':0x6==_0x595014['length']?_0x595014[0x5]:null};}function _0x4145dc(_0x38779f){for(let _0x2ddc5c=0x0;_0x2ddc5c<_0x4b0979['length'];_0x2ddc5c++){if(_0x38779f['isAdded']&&'insertion'==_0x4b0979[_0x2ddc5c]['type'])return _0x38779f['isAddSuggestion']=_0x4b0979[_0x2ddc5c],void delete _0x38779f['isAdded'];if(!_0x38779f['isAdded']&&!_0x38779f['isRemoved']&&'deletion'==_0x4b0979[_0x2ddc5c]['type'])return void(_0x38779f['isRemoveSuggestion']=_0x4b0979[_0x2ddc5c]);}}}['_setDistance'](_0x4eb013,_0x27f008){let _0x58ee11=0x0,_0x32350f=!0x1;const _0x51b50d=new Map();for(const _0x635ae7 of _0x4eb013)_0x635ae7[_0x27f008]?_0x32350f&&(_0x58ee11++,_0x32350f=!0x1):(_0x58ee11++,_0x32350f=!0x0),_0x51b50d['set'](_0x635ae7['id'],_0x58ee11);for(let _0x91226b=0x0;_0x91226b<_0x4eb013['length'];_0x91226b++){if('isRemoved'==_0x27f008&&_0x4eb013[_0x91226b]['isAdded']||'isAdded'==_0x27f008&&_0x4eb013[_0x91226b]['isRemoved'])continue;if('text'==_0x4eb013[_0x91226b]['type']){_0x4eb013[_0x91226b]['distance']=0x0;continue;}const _0x503759=_0x51b50d['get'](_0x4eb013[_0x91226b]['pairId']),_0x159fe9=_0x51b50d['get'](_0x4eb013[_0x91226b]['id']);_0x4eb013[_0x91226b]['distance']=_0x503759-_0x159fe9;}}['_getRevisionsRange'](_0x45db9b,_0x2fdbd7,_0x191c53=!0x1){const _0x2887a8=[];let _0x30c50f=this['repository']['getIndex'](_0x45db9b),_0x5eee93=this['repository']['getIndex'](_0x2fdbd7);for(-0x1==_0x5eee93&&(_0x5eee93=this['repository']['_revisions']['length'],_0x191c53=!0x1);_0x30c50f<_0x5eee93;)_0x2887a8['push'](this['repository']['getRevision'](_0x30c50f)),_0x30c50f++;return _0x191c53&&_0x2887a8['push'](this['repository']['getRevision'](_0x30c50f)),_0x2887a8;}['_threeWayMerge'](_0x14b6b7,_0x2ce48b,_0x26de81,_0x5dd38a){const _0x260153=this['editor']['model']['schema'];let _0x131375=_0x2ce48b;for(;_0x14b6b7[_0x131375]&&_0x14b6b7[_0x131375]['isAdded'];)_0x131375++;let _0x171df7=_0x5dd38a;for(;_0x26de81[_0x171df7]&&_0x26de81[_0x171df7]['isRemoved'];)_0x171df7++;_0x5f1b88(_0x14b6b7,_0x2ce48b,_0x131375),_0x5f1b88(_0x26de81,_0x5dd38a,_0x171df7);const _0x36782b=_0x26de81['slice'](_0x5dd38a,_0x171df7)['concat'](_0x14b6b7['slice'](_0x2ce48b,_0x131375));return _0x36782b['sort']((_0x3d65e2,_0x40e2b2)=>_0x3d65e2['side']!=_0x40e2b2['side']?_0x3d65e2['side']-_0x40e2b2['side']:_0x3d65e2['level']!=_0x40e2b2['level']?_0x3d65e2['level']-_0x40e2b2['level']:_0x3d65e2['distance']!=_0x40e2b2['distance']?_0x40e2b2['distance']-_0x3d65e2['distance']:!!_0x3d65e2['isAdded']!=!!_0x40e2b2['isAdded']?-0x1==_0x3d65e2['side']||0x0==_0x3d65e2['side']?_0x3d65e2['isAdded']?-0x1:0x1:_0x3d65e2['isAdded']?0x1:-0x1:_0x3d65e2['index']-_0x40e2b2['index']),{'commonTape':_0x36782b,'iEnd':_0x131375,'jEnd':_0x171df7};function _0x5f1b88(_0x3d1695,_0x308025,_0x1d6777){let _0x5eb082=-0x1,_0x2795e0=Number['POSITIVE_INFINITY'],_0x1d4251=!0x0;for(let _0x412fa1=_0x308025;_0x412fa1<_0x1d6777;_0x412fa1++)if(_0x260153['isInline'](_0x3d1695[_0x412fa1]['item'])||(_0x1d4251=!0x1),_0x3d1695[_0x412fa1]['item']['startIndex']<_0x308025&&(_0x5eb082=_0x412fa1),_0x3d1695[_0x412fa1]['item']['endIndex']>=_0x1d6777){_0x2795e0=_0x412fa1;break;}_0x1d4251&&(_0x5eb082=_0x1d6777-0x1);for(let _0x19a368=_0x308025;_0x19a368<_0x1d6777;_0x19a368++)_0x3d1695[_0x19a368]['side']=_0x19a368<=_0x5eb082?-0x1:_0x19a368<_0x2795e0?0x0:0x1,_0x3d1695[_0x19a368]['index']=_0x19a368;let _0x5eb7e3=0x0;for(let _0x31791c=_0x308025;_0x31791c<=_0x5eb082;_0x31791c++)0x0==_0x3d1695[_0x31791c]['distance']?_0x3d1695[_0x31791c]['level']=_0x5eb7e3:(_0x5eb7e3++,_0x3d1695[_0x31791c]['level']=_0x5eb7e3,_0x5eb7e3++);for(let _0x26669=_0x308025;_0x26669<_0x1d6777;_0x26669++)0x0==_0x3d1695[_0x26669]['side']&&(_0x3d1695[_0x26669]['level']=_0x5eb7e3);_0x5eb7e3=0x0;for(let _0x4b6cfd=_0x1d6777-0x1;_0x4b6cfd>=_0x2795e0;_0x4b6cfd--)0x0==_0x3d1695[_0x4b6cfd]['distance']?_0x3d1695[_0x4b6cfd]['level']=_0x5eb7e3:(_0x5eb7e3--,_0x3d1695[_0x4b6cfd]['level']=_0x5eb7e3,_0x5eb7e3--);}}['_fixObsoleteTags'](_0x5413ed){const _0x443c25=new Map(),_0x4eaf55=this['editor']['model']['schema'];for(let _0x53c97d=0x1;_0x53c97d<_0x5413ed['length'];_0x53c97d++){let _0x52e850,_0x31b0bb,_0x4ca5f6;const _0x4721be=_0x5413ed[_0x53c97d],_0x37045b=_0x5413ed[_0x53c97d-0x1];if('text'==_0x4721be['type'])continue;if(_0x4721be['type']!=_0x37045b['type'])continue;if(!_0x4eaf55['isBlock'](_0x37045b['item'])||_0x4eaf55['isLimit'](_0x37045b['item']))continue;if(!_0x4eaf55['isBlock'](_0x4721be['item'])||_0x4eaf55['isLimit'](_0x4721be['item']))continue;if((_0x5413ed[_0x53c97d]['isAdded']||_0x5413ed[_0x53c97d]['isAddSuggestion'])&&_0x5413ed[_0x53c97d-0x1]['isRemoved'])_0x52e850=_0x5413ed[_0x53c97d],_0x31b0bb=_0x5413ed[_0x53c97d-0x1],_0x4ca5f6=_0x53c97d-0x1;else{if(!_0x5413ed[_0x53c97d]['isRemoved']||!_0x5413ed[_0x53c97d-0x1]['isAdded']&&!_0x5413ed[_0x53c97d-0x1]['isAddSuggestion'])continue;_0x52e850=_0x5413ed[_0x53c97d-0x1],_0x31b0bb=_0x5413ed[_0x53c97d],_0x4ca5f6=_0x53c97d;}const _0x1cd0bf=_0x52e850['level']==_0x31b0bb['level'],_0x5bbc81=Math['abs'](_0x52e850['level'])<Math['abs'](_0x31b0bb['level'])&&0x0==_0x31b0bb['distance'];(_0x1cd0bf||_0x5bbc81)&&(_0x443c25['set'](_0x31b0bb['id'],_0x52e850['id']),_0x5413ed['splice'](_0x4ca5f6,0x1),_0x53c97d--,_0x52e850['isAdded']=!0x1);}for(let _0x452b43=0x0;_0x452b43<_0x5413ed['length'];_0x452b43++)_0x443c25['has'](_0x5413ed[_0x452b43]['pairId'])&&(_0x5413ed[_0x452b43]['pairId']=_0x443c25['get'](_0x5413ed[_0x452b43]['pairId']));}['_removeMissingPairs'](_0x5e88e0){const _0x5222e0=new Set(_0x5e88e0['map'](_0x48a4c6=>_0x48a4c6['id']));for(let _0x27e013=0x0;_0x27e013<_0x5e88e0['length'];_0x27e013++)_0x5222e0['has'](_0x5e88e0[_0x27e013]['pairId'])||0x0==_0x5e88e0[_0x27e013]['distance']||(_0x5e88e0[_0x27e013]['isIncorrect']=!0x0);return _0x5e88e0['filter'](_0x3b887e=>!_0x3b887e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cc7f3){const _0x24048a=new Set();for(let _0x15cd0b=0x0;_0x15cd0b<_0x4cc7f3['length'];_0x15cd0b++){if(_0x24048a['has'](_0x4cc7f3[_0x15cd0b]['id'])&&_0x4cc7f3[_0x15cd0b]['isRemoved']&&(_0x4cc7f3[_0x15cd0b]['isIncorrect']=!0x0),_0x4cc7f3[_0x15cd0b]['isIncorrect'])continue;if(0x0==_0x4cc7f3[_0x15cd0b]['distance'])continue;if('elementStart'!=_0x4cc7f3[_0x15cd0b]['type'])continue;if(null==_0x4cc7f3[_0x15cd0b]['pairId'])continue;let _0x47b6a3=_0x15cd0b+0x1,_0x21aaf6=0x0;for(;_0x4cc7f3[_0x47b6a3]['id']!=_0x4cc7f3[_0x15cd0b]['pairId'];)'elementStart'==_0x4cc7f3[_0x47b6a3]['type']?_0x21aaf6++:'elementEnd'==_0x4cc7f3[_0x47b6a3]['type']&&_0x21aaf6--,_0x47b6a3++;if(0x0!=_0x21aaf6){if(_0x4cc7f3[_0x15cd0b]['isRemoved'])_0x4cc7f3[_0x15cd0b]['isIncorrect']=!0x0;else{for(;_0x47b6a3!=_0x15cd0b;)_0x4cc7f3[_0x47b6a3]['isRemoved']&&0x0!=_0x4cc7f3[_0x47b6a3]['distance']&&(_0x4cc7f3[_0x47b6a3]['isIncorrect']=!0x0,_0x24048a['add'](_0x4cc7f3[_0x47b6a3]['pairId'])),_0x47b6a3--;}}}return _0x4cc7f3['filter'](_0x1ce557=>!_0x1ce557['isIncorrect']);}['_removeUnsupportedChanges'](_0x4f8564){const _0x58bef3=this['editor']['model']['schema'];for(let _0x468d38=0x0;_0x468d38<_0x4f8564['length'];_0x468d38++){if(!(_0x4f8564[_0x468d38]['isAdded']||_0x4f8564[_0x468d38]['isAddSuggestion']||_0x4f8564[_0x468d38]['isRemoved']||_0x4f8564[_0x468d38]['isRemoveSuggestion']))continue;if(0x0==_0x4f8564[_0x468d38]['distance'])continue;const _0x299e50=_0x4f8564[_0x468d38]['item'];_0x58bef3['isBlock'](_0x299e50)||_0x58bef3['isLimit'](_0x299e50)||(_0x4f8564[_0x468d38]['isAdded']&&delete _0x4f8564[_0x468d38]['isAdded'],_0x4f8564[_0x468d38]['isAddSuggestion']&&delete _0x4f8564[_0x468d38]['isAddSuggestion'],_0x4f8564[_0x468d38]['isRemoveSuggestion']&&delete _0x4f8564[_0x468d38]['isRemoveSuggestion'],_0x4f8564[_0x468d38]['isRemoved']&&(_0x4f8564[_0x468d38]['isIncorrect']=!0x0));}return _0x4f8564['filter'](_0x72b72=>!_0x72b72['isIncorrect']);}['_makeModelFromTape'](_0x1fd39f,_0x4bcb6e,_0x1bd29d){const _0xaef22b=new vt(),_0x427a7c=[],_0x1d483f=new Map(),_0x55a08e=this['editor']['model'],_0x3d7241=_0x55a08e['schema'],_0x1f149f=[_0xaef22b],_0x2db11d={},_0x549ba9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x429d1a=null;const _0x389f23=[0x0];for(let _0x192749=0x0;_0x192749<_0x1fd39f['length'];_0x192749++)if('elementStart'===_0x1fd39f[_0x192749]['type']){_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23);const _0x4d7d47=new ut(_0x1fd39f[_0x192749]['item']['name'],_0x1fd39f[_0x192749]['item']['getAttributes']());_0x1f149f[0x0]['_appendChild'](_0x4d7d47),_0x389f23['push'](0x0),_0x1f149f['unshift'](_0x4d7d47),_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23);}else'elementEnd'===_0x1fd39f[_0x192749]['type']?(_0x1f149f['shift'](),_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23),_0x389f23['pop'](),_0x389f23[_0x389f23['length']-0x1]++,_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23)):(_0x1fd39f[_0x192749]['previousPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23),_0x429d1a?_0x429d1a['_data']+=_0x1fd39f[_0x192749]['item']['data']:_0x429d1a=new gt(_0x1fd39f[_0x192749]['item']['data'],_0x1fd39f[_0x192749]['item']['getAttributes']()),_0x1fd39f[_0x192749+0x1]&&'text'===_0x1fd39f[_0x192749+0x1]['type']&&_0x5ab78f(_0x429d1a,_0x1fd39f[_0x192749+0x1]['item'])||(_0x1f149f[0x0]['_appendChild'](_0x429d1a),_0x429d1a=null),_0x389f23[_0x389f23['length']-0x1]+=_0x1fd39f[_0x192749]['item']['offsetSize'],_0x1fd39f[_0x192749]['nextPosition']=_0x55a08e['createPositionFromPath'](_0xaef22b,_0x389f23));for(let _0x1065d6=0x0;_0x1065d6<_0x1fd39f['length'];_0x1065d6++){const _0x29ee37=_0x1fd39f[_0x1065d6]['previousPosition'],_0x17bfd7=_0x1fd39f[_0x1065d6]['nextPosition'];for(const _0x322267 of _0x1fd39f[_0x1065d6]['markersStart'])_0x1d483f['set'](_0x322267,{'start':_0x29ee37,'end':null});_0x226ab7('isRemoveSuggestion',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isAddSuggestion',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isRemoved',_0x1065d6,_0x29ee37,_0x17bfd7),_0x226ab7('isAdded',_0x1065d6,_0x29ee37,_0x17bfd7);for(const _0x26faaf of _0x1fd39f[_0x1065d6]['markersEnd']){const _0x64cc55=_0x1d483f['get'](_0x26faaf);_0x64cc55?_0x64cc55['end']=_0x17bfd7:_0x1d483f['set'](_0x26faaf,{'start':_0x17bfd7,'end':_0x17bfd7});}}for(const [_0x54daa9,_0x1f38d4]of _0x1d483f){const _0x1faa95=this['editor']['model']['createRange'](_0x1f38d4['start'],_0x1f38d4['end']);_0xaef22b['markers']['set'](_0x54daa9,_0x1faa95);}return _0x427a7c['sort']((_0x5e96f1,_0x4514ad)=>{const _0x56b1d5=_0xaef22b['markers']['get']('revision:'+_0x5e96f1['id']),_0x24f5cc=_0xaef22b['markers']['get']('revision:'+_0x4514ad['id']);return _0x56b1d5['start']['isBefore'](_0x24f5cc['start'])?-0x1:_0x56b1d5['start']['isAfter'](_0x24f5cc['start'])?0x1:_0x56b1d5['end']['isBefore'](_0x24f5cc['end'])?-0x1:_0x56b1d5['end']['isAfter'](_0x24f5cc['end'])?0x1:'add'===_0x5e96f1['type']?-0x1:0x1;}),{'root':_0xaef22b,'changes':_0x427a7c};function _0x226ab7(_0x5567b6,_0x5d7e62,_0x2df7cc,_0x37a040){const _0x26f379=!!_0x1fd39f[_0x5d7e62][_0x5567b6],_0x100c3d=_0x26f379?_0x1fd39f[_0x5d7e62][_0x5567b6]['userId']:null,_0x45730d=_0x5d7e62===_0x1fd39f['length']-0x1,_0x167309=_0x549ba9[_0x5567b6][0x0],_0x267b40=_0x3d7241['isObject'](_0x1fd39f[_0x5d7e62]['item']);!_0x2db11d[_0x5567b6]&&_0x26f379?_0x2db11d[_0x5567b6]={'start':_0x2df7cc,'tapeItem':_0x1fd39f[_0x5d7e62],'userId':_0x100c3d,'type':_0x5567b6}:_0x2db11d[_0x5567b6]&&!_0x26f379?(_0x2db11d[_0x5567b6]['end']=_0x2df7cc,_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]=null):_0x2db11d[_0x5567b6]&&_0x26f379&&_0x2db11d[_0x5567b6]['userId']!==_0x100c3d&&(_0x2db11d[_0x5567b6]['end']=_0x2df7cc,_0x167309&&_0x167309['userId']===_0x2db11d[_0x5567b6]['userId']||_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]={'start':_0x2df7cc,'tapeItem':_0x1fd39f[_0x5d7e62],'userId':_0x100c3d,'type':_0x5567b6}),_0x2db11d[_0x5567b6]&&_0x267b40&&('elementStart'!==_0x1fd39f[_0x5d7e62]['type']||_0x167309&&_0x167309['userId']===_0x100c3d||_0x549ba9[_0x5567b6]['unshift']({'userId':_0x100c3d,'object':_0x1fd39f[_0x5d7e62]['item'],'change':_0x2db11d[_0x5567b6]}),'elementEnd'===_0x1fd39f[_0x5d7e62]['type']&&_0x167309&&_0x167309['object']===_0x1fd39f[_0x5d7e62]['item']&&(_0x549ba9[_0x5567b6]['shift'](),_0x2db11d[_0x5567b6]=_0x167309['change'])),_0x2db11d[_0x5567b6]&&_0x45730d&&(_0x2db11d[_0x5567b6]['end']=_0x37a040,_0x5959c4(_0x2db11d[_0x5567b6]),_0x2db11d[_0x5567b6]=null);}function _0x5959c4({start:_0x1d9c97,end:_0x138c9b,tapeItem:_0x3bf852,userId:_0x3ea9fe,type:_0x33f9f7}){const _0xe57bfb=_0x3bf852['item'],_0x43417e=_0x55a08e['schema']['isBlock'](_0xe57bfb)&&!_0x55a08e['schema']['isLimit'](_0xe57bfb),_0x1717da=_0x1d9c97['nodeAfter']==_0x138c9b['parent']&&_0x138c9b['isAtStart'];if(_0x43417e&&_0x1717da)return;const _0x2094f6=_0x55a08e['createRange'](_0x1d9c97,_0x138c9b),_0x59f6d4=_0x4bcb6e['get'](_0x3ea9fe),_0x49892b=new r({'author':_0x59f6d4,'type':'isAdded'==_0x33f9f7||'isAddSuggestion'==_0x33f9f7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33f9f7||'isRemoveSuggestion'==_0x33f9f7},'createdAt':new Date(),'rootName':_0x1bd29d});_0x427a7c['push'](_0x49892b),_0xaef22b['markers']['set']('revision:'+_0x49892b['id'],_0x2094f6);}function _0x5ab78f(_0x5d09c4,_0x50cf5a){const _0x61b8b3=_0x5d09c4['getAttributes'](),_0x9cb702=_0x50cf5a['getAttributes']();for(const _0x35e0d0 of _0x61b8b3){if(_0x35e0d0[0x1]!==_0x50cf5a['getAttribute'](_0x35e0d0[0x0]))return!0x1;_0x9cb702['next']();}return _0x9cb702['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3e8f12=>{const _0xf3cbcb=_0x3e8f12['markerName']['split'](':')[0x1],_0x51797a=this['_getChangeFromId'](_0xf3cbcb);if(!_0x51797a)return null;const _0x23e8c7='add'==_0x51797a['type']?'insertion':'deletion',_0x4e9dd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x23e8c7];return _0x51797a['data']['isSuggestion']&&_0x4e9dd['push']('ck-suggestion-marker-'+_0x23e8c7+'-new'),this['activeChange']==_0x51797a&&_0x4e9dd['push']('ck-suggestion-marker--active'),{'classes':_0x4e9dd,'attributes':{'data-change-id':_0xf3cbcb}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b0f49=>{_0x1b0f49['on']('element:pre',(_0x230914,_0x6c55d2,_0x5a7074)=>{const _0x4d4c8f=_0x6c55d2['viewItem']['getChild'](0x0);if(!_0x4d4c8f||!_0x4d4c8f['is']('element','code'))return;if(!_0x5a7074['consumable']['consume'](_0x4d4c8f,{'attributes':['vid_start','vid_end']}))return;const _0x12583e=_0x6c55d2['modelRange']['start']['nodeAfter'];_0x5a7074['writer']['setAttribute']('vid_start',_0x4d4c8f['getAttribute']('vid_start'),_0x12583e),_0x5a7074['writer']['setAttribute']('vid_end',_0x4d4c8f['getAttribute']('vid_end'),_0x12583e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x406b4e=>{_0x406b4e['on']('element',(_0x41fe41,_0x3c68d7,_0x59e9d7)=>{if(!_0x59e9d7['consumable']['consume'](_0x3c68d7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c68d7['modelRange']['isCollapsed'])return;const _0x36fd5c=_0x3c68d7['modelRange']['start']['nodeAfter'];_0x36fd5c['hasAttribute']('vid_start')||_0x36fd5c['hasAttribute']('vid')||(_0x59e9d7['writer']['setAttribute']('vid_start',_0x3c68d7['viewItem']['getAttribute']('vid_start'),_0x36fd5c),_0x59e9d7['writer']['setAttribute']('vid_end',_0x3c68d7['viewItem']['getAttribute']('vid_end'),_0x36fd5c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x67221f=>_0x67221f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4e0de9,[,_0x2ab9d0])=>{['vid_start','vid_end','vid']['includes'](_0x2ab9d0)&&(_0x4e0de9['return']=!0x0,_0x4e0de9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f4ddb=>{_0x4f4ddb['on']('attribute:vid',(_0xfae33c,_0xe369db,_0xff2226)=>{if('\x20'!=_0xe369db['item']['data']||_0xe369db['item']['parent']['maxOffset']>0x1)return;if(!_0xff2226['consumable']['consume'](_0xe369db['item'],_0xfae33c['name']))return;const _0x3d1b6a=_0xff2226['writer'],_0x51aeb0=_0xff2226['mapper']['toViewRange'](_0xe369db['range']);_0x3d1b6a['wrap'](_0x51aeb0,_0x3d1b6a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1d5ca7){const _0xf6be86=_0x1d5ca7['plugins']['get']('RevisionViewer');return(_0x107769,_0x2d9d91,_0x196a9c)=>{const _0x1b3f1f=_0x2d9d91['markerName']['split'](':')[0x1],_0x4e4256=_0xf6be86['_getChangeFromId'](_0x1b3f1f);if(!_0x4e4256)return null;const _0x4296a9='add'==_0x4e4256['type']?'split':'merge';if(!_0x196a9c['consumable']['test'](_0x2d9d91['markerRange'],_0x107769['name']))return;const _0x5106a5=_0x2d9d91['markerRange']['getWalker'](),_0x992c9a=_0x2d9d91['markerRange']['start'],_0x1608ad=_0x1d5ca7['model']['schema'];let _0x5777f9=null,_0x300af7=null,_0x219ae8=!0x1,_0x426319=!0x1;for(const _0x318318 of _0x5106a5){const _0x2d0026=_0x318318['item'];_0x219ae8=_0x219ae8||_0x1608ad['isContent'](_0x2d0026);const _0x3a3bbf=_0x196a9c['mapper']['toViewElement'](_0x2d0026);if(_0x3a3bbf&&_0x3a3bbf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x318318['type']&&(_0x1608ad['isBlock'](_0x2d0026)&&!_0x1608ad['isLimit'](_0x2d0026)&&(_0x2d0026['nextSibling']||_0x992c9a['isAtEnd']?_0x5777f9&&_0x5777f9['parent']==_0x2d0026||(_0x5777f9=_0x2d0026,_0x5bc401(_0x318318['previousPosition']),_0x426319=!0x0):_0x300af7=_0x300af7||_0x318318['previousPosition']));}function _0x5bc401(_0x5af524){const _0x18143f=_0x196a9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4296a9}),_0x3512f8=_0x196a9c['mapper']['toViewPosition'](_0x5af524);_0x4e4256['data']['isSuggestion']&&_0x196a9c['writer']['addClass']('ck-suggestion-marker-'+_0x4296a9+'-new',_0x18143f),_0xf6be86['activeChange']==_0x4e4256&&_0x196a9c['writer']['addClass']('ck-suggestion-marker--active',_0x18143f),_0x196a9c['writer']['insert'](_0x3512f8,_0x18143f),_0x196a9c['mapper']['bindElementToMarker'](_0x18143f,_0x2d9d91['markerName']);}_0x219ae8||_0x426319||!_0x300af7||_0x5bc401(_0x300af7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x492752,_0x50f68b,_0x56d1a1)=>{const _0x5b21e5=_0x56d1a1['mapper']['markerNameToElements'](_0x50f68b['markerName']);if(_0x5b21e5){for(const _0x5d154c of _0x5b21e5)(_0x5d154c['hasClass']('ck-suggestion-marker-split')||_0x5d154c['hasClass']('ck-suggestion-marker-merge'))&&(_0x56d1a1['mapper']['unbindElementFromMarkerName'](_0x5d154c,_0x50f68b['markerName']),_0x56d1a1['writer']['remove'](_0x5d154c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x27213a,_0xfd954e,_0x157cbb)=>{const _0x426ef4=_0xfd954e['markerName']['split'](':')[0x1],_0x1badb4=this['_getChangeFromId'](_0x426ef4);if(!_0x1badb4)return null;const _0x22e587='add'==_0x1badb4['type']?'split':'merge';if(_0x157cbb['consumable']['test'](_0xfd954e['markerRange'],_0x27213a['name']))for(const _0x403523 of _0xfd954e['markerRange']['getItems']()){if(!_0x403523['is']('element','softBreak'))continue;const _0x1fd7fe=_0x157cbb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22e587}),_0x1b1855=_0x157cbb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x403523));_0x1badb4['data']['isSuggestion']&&_0x157cbb['writer']['addClass']('ck-suggestion-marker-'+_0x22e587+'-new',_0x1fd7fe),this['activeChange']==_0x1badb4&&_0x157cbb['writer']['addClass']('ck-suggestion-marker--active',_0x1fd7fe),_0x157cbb['writer']['insert'](_0x1b1855,_0x1fd7fe),_0x157cbb['mapper']['bindElementToMarker'](_0x1fd7fe,_0xfd954e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x166987=>{for(const _0xc3a930 of this['editor']['model']['document']['getRootNames']()){const _0x852e72=this['editor']['model']['document']['getRoot'](_0xc3a930),_0x37cd16=this['editor']['editing']['view']['document']['getRoot'](_0xc3a930);if(_0x37cd16){const _0x4bf3b0=_0x852e72['getAttribute']('revisionHistoryAttachChange');if(_0x166987['removeAttribute']('data-change-id',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root-add',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root-remove',_0x37cd16),_0x166987['removeClass']('ck-revision-history-root--active',_0x37cd16),_0x4bf3b0){const _0x5d77a7=this['_getChangeFromId'](_0x4bf3b0);if(!_0x5d77a7)return null;_0x166987['setAttribute']('data-change-id',_0x4bf3b0,_0x37cd16),_0x166987['addClass']('ck-revision-history-root-'+_0x5d77a7['type'],_0x37cd16),this['activeChange']==_0x5d77a7&&_0x166987['addClass']('ck-revision-history-root--active',_0x37cd16);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8003f1=>'revision-comment:'+_0x8003f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa320ee=>'revision-suggestion:'+_0xa320ee,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x417b22=>({'name':'suggestion:'+_0x417b22,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x49ef48=>{const _0x17a813=_0x49ef48['markerName']['split'](':')[0x1];return'insertion'!=_0x17a813&&'deletion'!=_0x17a813?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x17a813]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x48fef5,_0x5d29ac,_0x78214c)=>{const _0x387461=_0x78214c['mapper']['markerNameToElements'](_0x5d29ac['markerName']);if(_0x387461){for(const _0x53eca6 of _0x387461)_0x53eca6['is']('uiElement')&&(_0x78214c['mapper']['unbindElementFromMarkerName'](_0x53eca6,_0x5d29ac['markerName']),_0x78214c['writer']['remove'](_0x53eca6));}},{'priority':'high'});}['_getChangeFromId'](_0x156e11){return this['_changeIdToChange']['get'](_0x156e11);}['_getViewForChange'](_0x49c335){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x49c335),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1a11c0,_0x3056c6,_0x437b0e,_0x136a80)=>{_0x136a80&&this['_balloon']['remove'](_0x136a80),_0x437b0e&&(this['_balloon']['add']({'view':_0x437b0e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4615a1=this['editor']['editing'],_0x2f3986=this['_getChangeFromId'](_0x437b0e['changeId']);let _0x2d915;if(_0x2f3986['data']['isOnRoot']){const _0x3ec606=_0x4615a1['view']['getDomRoot'](_0x2f3986['rootName']);_0x2d915=Array['from'](_0x3ec606['getClientRects']());}else{const _0x5c231c=this['editor']['model']['markers']['get']('revision:'+_0x437b0e['changeId']);_0x2d915=Array['from'](_0x4615a1['mapper']['markerNameToElements'](_0x5c231c['name']))['map'](_0x11245b=>_0x4615a1['view']['domConverter']['mapViewToDom'](_0x11245b))['map'](_0x182b49=>Array['from'](_0x182b49['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2d915[0x0];return _0x2d915['find'](_0x3783d1=>_0x3783d1['top']-0x3<=this['_activeViewTarget']['y']&&_0x3783d1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3783d1['left']-0x3<=this['_activeViewTarget']['x']&&_0x3783d1['right']+0x3>=this['_activeViewTarget']['x'])||_0x2d915[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d9805,_0x5b61ff,_0x31b948,_0x3600b2)=>{this['activeView']=_0x31b948?this['_getViewForChange'](_0x31b948):null,this['editor']['model']['change'](()=>{const _0x2a7568=this['editor']['editing'];_0x3600b2&&(_0x3600b2['data']['isOnRoot']?_0x2a7568['view']['change'](_0x4e6309=>{_0x4e6309['removeClass']('ck-revision-history-root--active',_0x2a7568['view']['document']['getRoot'](_0x3600b2['rootName']));}):_0x2a7568['reconvertMarker']('revision:'+_0x3600b2['id'])),_0x31b948&&(_0x31b948['data']['isOnRoot']?_0x2a7568['view']['change'](_0x26eba2=>{_0x26eba2['addClass']('ck-revision-history-root--active',_0x2a7568['view']['document']['getRoot'](_0x31b948['rootName']));}):_0x2a7568['reconvertMarker']('revision:'+_0x31b948['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1aa926,_0x1693bc)=>{if(this['activeChange'])return;const _0x5eadca=this['_findChangeIdFromDomTarget'](_0x1693bc['target']),_0x5db684=this['_changeIdToChange']['get'](_0x5eadca);_0x5db684?(this['_activeViewTarget']={'x':_0x1693bc['domEvent']['x'],'y':_0x1693bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5db684)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4608b3,_0x120f50)=>{const _0x398665=this['_findChangeIdFromDomTarget'](_0x120f50['target']),_0x5c4913=this['_changeIdToChange']['get'](_0x398665);_0x5c4913?(this['_activeViewTarget']={'x':_0x120f50['domEvent']['x'],'y':_0x120f50['domEvent']['y']},_0x5c4913===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5c4913):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3dff9f){do{const _0x47b2df=_0x3dff9f['getAttribute']('data-change-id');if(_0x47b2df)return _0x47b2df;_0x3dff9f=_0x3dff9f['parent'];}while(_0x3dff9f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2d2aa6=>{for(const _0x281e2b of this['editor']['model']['markers'])_0x2d2aa6['removeMarker'](_0x281e2b);});}}function X(_0xc70e1a,_0x1ec3e1){return(_0x319823,_0x46f8fe,_0x1f207b)=>{if(!_0x1f207b['consumable']['test'](_0x46f8fe['markerRange'],_0x319823['name']))return;const _0x1cd3a6=_0x46f8fe['markerRange']['getWalker'](),_0x21af24=_0x46f8fe['markerRange']['start'],_0x4862a9=_0xc70e1a['model']['schema'];let _0x532d08=null,_0x2d1df2=null,_0x583b6a=!0x1,_0xcc5e48=!0x1;for(const _0xdd9010 of _0x1cd3a6){const _0x4ace4b=_0xdd9010['item'];_0x583b6a=_0x583b6a||_0x4862a9['isContent'](_0x4ace4b);const _0xcb3007=_0x1f207b['mapper']['toViewElement'](_0x4ace4b);if(_0xcb3007&&_0xcb3007['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xdd9010['type']&&(_0x4862a9['isBlock'](_0x4ace4b)&&!_0x4862a9['isLimit'](_0x4ace4b)&&(_0x4ace4b['nextSibling']||_0x21af24['isAtEnd']?_0x532d08&&_0x532d08['parent']==_0x4ace4b||(_0x532d08=_0x4ace4b,_0x5bb7c4(_0xdd9010['previousPosition']),_0xcc5e48=!0x0):_0x2d1df2=_0x2d1df2||_0xdd9010['previousPosition']));}function _0x5bb7c4(_0x4e66f4){const _0x34f1b9=_0x1f207b['mapper']['toViewPosition'](_0x4e66f4),_0x3679f2=_0x1f207b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ec3e1});_0x1f207b['writer']['insert'](_0x34f1b9,_0x3679f2),_0x1f207b['mapper']['bindElementToMarker'](_0x3679f2,_0x46f8fe['markerName']);}_0x583b6a||_0xcc5e48||!_0x2d1df2||_0x5bb7c4(_0x2d1df2);};}class mt extends _0x130ccb{constructor(_0x57a8a1){super(_0x57a8a1);const _0x4be3b5=_0x57a8a1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4be3b5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4be3b5,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc6b593=this['editor'],_0x162619=_0xc6b593['plugins']['get'](m),_0x14278e=_0x162619['isReady']?_0x162619['diff']['newRevisionId']:null;_0xc6b593['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14278e);}['refresh'](){const {isReady:_0x4e57d8,isEnabled:_0x1cc0ff,repository:_0xd389f6,diff:_0x456b09}=this['editor']['plugins']['get'](m),_0x2f9025=_0x456b09&&_0xd389f6['getLaterVisibleRevision'](_0x456b09['newRevisionId']);this['isEnabled']=_0x4e57d8&&_0x1cc0ff&&Boolean(_0x2f9025);}}class wt extends _0x130ccb{['_step'];constructor(_0x20e70b,{direction:_0x4740fc}){super(_0x20e70b);const _0x34a231=_0x20e70b['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4740fc?0x1:-0x1,this['listenTo'](_0x34a231,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34a231,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34a231,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d5cc1=this['editor'],_0x49abfb=_0x5d5cc1['plugins']['get'](m),{isNavigationMode:_0x717e06,currentChangeNumber:_0x4e4bce}=_0x49abfb;let _0xd892f5;if(_0x49abfb['activeChange']=_0x717e06?_0x49abfb['diff']['changes']['get'](_0x4e4bce+this['_step']):_0x49abfb['diff']['changes']['first'],_0x49abfb['activeChange']['data']['isOnRoot'])_0xd892f5=_0x5d5cc1['editing']['view']['getDomRoot'](_0x49abfb['activeChange']['rootName']);else{const _0x36f5fb=_0x5d5cc1['model']['markers']['get']('revision:'+_0x49abfb['activeChange']['id']);_0xd892f5=_0x353784(_0x5d5cc1['editing'],_0x36f5fb);}_0x3985f8({'target':_0xd892f5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x201a57,currentChangeNumber:_0x34b4ee,numberOfChanges:_0x54d36e,isReady:_0x249242,isEnabled:_0x15f402}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x15f402&&_0x249242&&_0x54d36e)&&(!_0x201a57||(0x1===this['_step']?_0x34b4ee<_0x54d36e-0x1:_0x34b4ee>0x0));}}class li extends ts{constructor(_0x362cf4){super(_0x362cf4);const _0x4e8356=this['bindTemplate'],_0x3bb7c5=new te(_0x362cf4),_0x38a4cb=new te(_0x362cf4);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',(_0x24eec2,_0x39cda7)=>_0x24eec2&&_0x39cda7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x14086e,_0x1782c7,_0xb46c80,_0x5039cc)=>{if(!_0x14086e)return g(_0x362cf4,'Loading...');if(!_0xb46c80)return g(_0x362cf4,'No\x20changes');const _0x2bc74e=g(_0x362cf4,'NUMBER_OF_CHANGES',_0xb46c80);return _0x5039cc?g(_0x362cf4,'X_OF_Y_CHANGES',[_0x1782c7+0x1,_0xb46c80]):_0x2bc74e;}),_0x3bb7c5['set']({'label':g(_0x362cf4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xea41e4}),_0x38a4cb['set']({'label':g(_0x362cf4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x40586f}),_0x3bb7c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x38a4cb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3bb7c5['on']('execute',()=>this['fire']('execute','backward')),_0x38a4cb['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',_0x4e8356['if']('_isStatusLabelVisible','ck-hidden',_0x4c2869=>!_0x4c2869)]},'children':[{'text':_0x4e8356['to']('isNavigationMode',_0xdeb1=>_0xdeb1?g(_0x362cf4,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x362cf4,'Total')+':\x20')}]},{'text':_0x4e8356['to']('_statusText')}]},new _0x5518ad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3bb7c5,_0x38a4cb]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x467a15{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c722a=this['editor']['editing']['view'];_0x5c722a['change'](_0x295be3=>{for(const _0x489906 of _0x5c722a['document']['roots'])_0x295be3['addClass'](le,_0x489906);});}['hide'](){const _0xd7316f=this['editor']['editing']['view'];_0xd7316f['change'](_0x5af7b1=>{for(const _0x516f69 of _0xd7316f['document']['roots'])_0x5af7b1['removeClass'](le,_0x516f69);});}}class R extends _0x467a15{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x498042=this['editor'],_0x27b3bd=_0x498042['plugins']['get'](m),_0x299000=_0x498042['plugins']['get'](ge);_0x498042['ui']['componentFactory']['add']('exitToEditing',_0x3fb56e=>{const _0x272c67=new te(_0x3fb56e);return _0x272c67['set']({'label':g(_0x3fb56e,'Back\x20to\x20editing'),'icon':_0xa6d7b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x272c67,'execute',()=>{_0x498042['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x272c67;}),_0x498042['ui']['componentFactory']['add']('restoreRevision',_0xeae4db=>{const _0x4f15fa=new te(_0xeae4db);return _0x4f15fa['set']({'label':g(_0xeae4db,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4f15fa['bind']('isEnabled')['to'](_0x498042['commands']['get']('restoreRevision')),this['listenTo'](_0x4f15fa,'execute',()=>_0x498042['execute']('restoreRevision')),_0x4f15fa;}),_0x498042['ui']['componentFactory']['add']('changesNavigation',_0x2e1ba6=>{const _0x4477ef=new li(_0x2e1ba6),_0x20b7dc=_0x498042['commands']['get']('showPreviousChange'),_0x172657=_0x498042['commands']['get']('showNextChange');return _0x4477ef['bind']('isBackwardNavigationEnabled')['to'](_0x20b7dc,'isEnabled'),_0x4477ef['bind']('isForwardNavigationEnabled')['to'](_0x172657,'isEnabled'),_0x4477ef['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x27b3bd),this['listenTo'](_0x4477ef,'execute',(_0x2d7c86,_0x129017)=>{_0x498042['execute']('forward'===_0x129017?'showNextChange':'showPreviousChange');}),_0x4477ef;}),_0x299000['show'](),_0x27b3bd['on']('change:isReady',(_0x27def9,_0x3cd157,_0x4e905b)=>{_0x4e905b?_0x299000['hide']():_0x299000['show']();});}}class at extends _0x5e368c{['_resizeObserver']=null;constructor(_0x66d5eb,_0x4a8a99){super(_0x66d5eb,_0x4a8a99);const _0x2982b8=this['bindTemplate'];this['set']({'label':g(_0x66d5eb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x66d5eb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2982b8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x50abc6=this['fieldView']['element'];this['_tooltipString']=_0x50abc6['scrollWidth']>_0x50abc6['clientWidth']&&_0x50abc6['value']||'';}}class oi extends ts{constructor(_0x791770,_0x37e66f,_0x133f92){super(_0x791770);const _0xd0818c=new _0x3b9592();_0xd0818c['set']({'content':_0x50a058,'viewBox':'0\x200\x2011\x2010'});const _0x540653=['ck','ck-revision-history-sidebar__revision-author'];_0x133f92&&_0x540653['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa3c208=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x791770,_0x133f92?'Revision\x20creator':'Revision\x20author')},'children':[_0xd0818c,_0x37e66f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x540653},'children':_0xa3c208});}}function ai(_0x25c1c4,_0x23cf23){const _0x2557b7=_0x25c1c4['bindTemplate'],_0x172ef1=_0x25c1c4['locale'],_0x5bcc5c=_0x1bbc66(_0x172ef1);_0x5bcc5c['panelPosition']='sw';const _0x2b3dee=function(_0x3215f0,_0x3adeea){const _0x382ba4=function(_0x792e00,_0x11318c){const _0x379788=_0x792e00['locale'],_0x2466b5={'Compare\x20against\x20selected':g(_0x379788,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x379788,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x379788,'Restore\x20this\x20revision')};return _0x11318c['map'](_0x4c7917=>{const _0x5a1c3b=_0x2466b5[_0x4c7917['name']];return _0x5a1c3b&&_0x5a1c3b!==_0x4c7917['name']&&(_0x4c7917['name']=_0x5a1c3b),_0x4c7917;});}(_0x3215f0,_0x3adeea),_0x84aace=new _0x20fb32();for(const _0x54528a of _0x382ba4){const _0xe46cef={'type':'button','model':new to({'label':_0x54528a['name'],'class':_0x54528a['class'],'withText':!0x0,'role':'menuitem','_action':_0x54528a['action']})};_0xe46cef['model']['bind']('isEnabled')['to'](_0x3215f0,'isActionsDropdownOpen',_0x5a0b0b=>'function'!=typeof _0x54528a['isEnabled']||(!_0x5a0b0b||_0x54528a['isEnabled'](_0x3215f0))),_0x84aace['add'](_0xe46cef);}return _0x84aace;}(_0x25c1c4,_0x23cf23);return _0x25c1c4['bind']('isActionsDropdownOpen')['to'](_0x5bcc5c,'isOpen'),_0x5bcc5c['buttonView']['set']({'label':g(_0x172ef1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1b7c4a}),_0x5bcc5c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2557b7['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2557b7['to'](_0x7430ed=>_0x7430ed['stopPropagation']())}}),_0x5bcc5c['on']('execute',_0x4ffeb2=>{_0x25c1c4['isReady']&&'function'==typeof _0x4ffeb2['source']['_action']&&_0x4ffeb2['source']['_action'](_0x25c1c4);}),_0x4e7e23(_0x5bcc5c,_0x2b3dee,{'role':'menu'}),_0x5bcc5c['listenTo'](_0x25c1c4,'change:isActionsDropdownOpen',(_0x55b259,_0x191f19,_0x398bfa)=>{if(_0x398bfa)for(const _0x3cbb52 of _0x5bcc5c['listView']['items']){const _0x599475=_0x3cbb52['children']['first'],_0x2112ed=_0x23cf23['find'](_0x411cd3=>_0x411cd3['action']===_0x599475['_action'])['isVisible'];_0x3cbb52['isVisible']=void 0x0===_0x2112ed||_0x2112ed(_0x25c1c4);}}),_0x5bcc5c;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x10c5df,uid as _0xccf9de,Collection as _0x295397,logWarning as _0xc61aac,FocusTracker as _0x4715eb,KeystrokeHandler as _0x325c27,scrollViewportToShowTarget as _0x4b767d,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x23dfb7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x48cfda,set as _0x1c94e9,unset as _0x1c2c66,isEqual as _0x226617}from'es-toolkit/compat';import{Plugin as _0x728dfc,PendingActions as _0x346d08,Command as _0x21c6cc,ElementApiMixin as _0x5e4158,Editor as _0x4922d5}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xb6588b,getMarkerDomElement as _0x2d3abc,ConfirmMixin as ti,sanitizeEditorConfig as _0x5ba270}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4c7825,ViewAttributeElement as _0x484b23,ViewEmptyElement as _0x2d6f06,ViewRawElement as _0x5ad87e,ViewUIElement as _0x4fdc84,ViewDocumentFragment as _0x64f572,ViewText as _0x65c39,ViewElement as _0x506d9a,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1e9784,IconChevronUp as _0x59cc6b,IconChevronDown as _0x162dda,IconUndo as _0x3c9021,IconUser as _0x5cc77b,IconThreeVerticalDots as _0x12a411}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5a0fff,submitHandler as _0x106f11,LabeledFieldView as _0x48fea2,createLabeledInputText as _0x36affa,createDropdown as _0xa51226,ListView as _0x48e2a1,ListItemView as _0x29ab49,ButtonView as te,MenuBarMenuView as _0x5295df,MenuBarMenuListView as _0x39ddd8,MenuBarMenuListItemView as _0x2554a8,MenuBarMenuListItemButtonView as _0xf8df4a,ContextualBalloon as _0x2b3d33,ToolbarSeparatorView as _0x23fd5d,IconView as _0x1fa96f,addListToDropdown as _0x1df76b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4796ea}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x10c5df(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3759b4){super(),this['id']=_0x3759b4['id']||_0xccf9de(),this['creator']=_0x3759b4['creator']||null,this['authors']=_0x3759b4['authors']||[],this['diffData']=_0x3759b4['diffData']||null,this['toVersion']=_0x3759b4['toVersion']||0x0,this['fromVersion']=_0x3759b4['fromVersion']||0x0,this['set']('name',_0x3759b4['name']||''),this['set']('createdAt',_0x3759b4['createdAt']||new Date()),this['set']('attributes',_0x3759b4['attributes']||{});}['setName'](_0x37bac5){this['_update']({'name':_0x37bac5});}['setAttribute'](_0x15c83d,_0x4ff421){const _0x25b603=_0x48cfda(this['attributes']);_0x1c94e9(_0x25b603,_0x15c83d,_0x4ff421),this['_update']({'attributes':_0x25b603});}['removeAttribute'](_0x552439){const _0x4de68=_0x48cfda(this['attributes']);_0x1c2c66(_0x4de68,_0x552439),this['_update']({'attributes':_0x4de68});}['_update'](_0x4338c6,_0x3d883f=!0x1){let _0x409008=!0x1;const _0x46e2d8={'id':this['id']},_0x3286cb=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x40cd5f of _0x3286cb){const _0x34ab60=_0x4338c6[_0x40cd5f];void 0x0!==_0x34ab60&&_0x34ab60!==this[_0x40cd5f]&&(this[_0x40cd5f]=_0x34ab60,_0x46e2d8[_0x40cd5f]=_0x34ab60,_0x409008=!0x0);}_0x409008&&(_0x46e2d8['authors']&&(_0x46e2d8['authorsIds']=_0x46e2d8['authors']['map'](_0x7c3681=>_0x7c3681['id']),delete _0x46e2d8['authors']),this['fire']('_update',_0x46e2d8,_0x3d883f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2bde5d=>_0x2bde5d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x728dfc{['_revisions'];static get['requires'](){return[_0xb6588b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1b72e3){super(_0x1b72e3),this['_revisions']=new _0x295397();}['afterInit'](){!async function(_0x5e2f8b){const _0x3ee905=_0x221ab2([0x31,0x68,0x74,0x62,0x4b,0x6b,0x64,0x42,0x53,0x6a,0x58,0x44,0x65,0x79,0x32,0x39,0x33,0x61,0x49,0x4a,0x54,0x59,0x4e,0x4d,0x47,0x43,0x5a,0x6c,0x4c,0x34,0x30,0x63,0x41,0x76,0x48,0x66,0x55,0x67,0x6f,0x73,0x7a,0x6d,0x56,0x38,0x77,0x57,0x50,0x4f,0x37,0x36,0x70,0x69,0x51,0x78,0x46,0x71,0x72,0x6e,0x75,0x35,0x45,0x52]),_0x38b7b9=0xeb829,_0x3130a2=0x2c31502b,_0x505bd6=0x2c363703^_0x3130a2,_0x4a2547=window[_0x221ab2([0x44,0x61,0x74,0x65])][_0x221ab2([0x6e,0x6f,0x77])](),_0x23b957=_0x5e2f8b[_0x221ab2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2286d8=new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313a8c=>{_0x23b957[_0x221ab2([0x6f,0x6e,0x63,0x65])](_0x221ab2([0x72,0x65,0x61,0x64,0x79]),_0x313a8c);}),_0x4f3e44={[_0x221ab2([0x6b,0x74,0x79])]:_0x221ab2([0x45,0x43]),[_0x221ab2([0x75,0x73,0x65])]:_0x221ab2([0x73,0x69,0x67]),[_0x221ab2([0x63,0x72,0x76])]:_0x221ab2([0x50,0x2d,0x32,0x35,0x36]),[_0x221ab2([0x78])]:_0x221ab2([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]),[_0x221ab2([0x79])]:_0x221ab2([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]),[_0x221ab2([0x61,0x6c,0x67])]:_0x221ab2([0x45,0x53,0x32,0x35,0x36])},_0x5f1dac=_0x23b957[_0x221ab2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x221ab2([0x67,0x65,0x74])](_0x221ab2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5baaed(){let _0x127444,_0x3720c2=null,_0x385891=null;try{if(_0x5f1dac==_0x221ab2([0x47,0x50,0x4c]))return _0x221ab2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x127444=_0x50320b(),!_0x127444)return _0x221ab2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x127444[_0x221ab2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x385891=_0xe8e93f(_0x127444[_0x221ab2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x127444[_0x221ab2([0x6a,0x74,0x69])])),await _0x1b05cb()?_0x3876ad()?_0x373636()?_0x221ab2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1fb271()?(_0x127444[_0x221ab2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x221ab2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3720c2=_0x3de3c3(_0x221ab2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x127444[_0x221ab2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x221ab2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3720c2=_0x3de3c3(_0x221ab2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x362444()):_0x221ab2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x221ab2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x221ab2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa9622){return _0x221ab2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x373636(){const _0x145a43=[_0x221ab2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x221ab2([0x74,0x72,0x69,0x61,0x6c])][_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127444[_0x221ab2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a2547/0x3e8:0xe10*_0x505bd6;return _0x127444[_0x221ab2([0x65,0x78,0x70])]<_0x145a43;}function _0x3876ad(){const _0x4a5ac1=_0x127444[_0x221ab2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a5ac1)return!0x1;if(_0x4a5ac1[_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221ab2([0x2a])))return!0x0;if(_0x4a5ac1[_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221ab2([0x52,0x48])))return!0x0;if(_0x4a5ac1[_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221ab2([0x52,0x52,0x48]))){if(_0x4a8fa2())return!0x0;if(_0x57f70e()||_0x2e1c4a())return!0x0;}return!0x1;}function _0x1fb271(){const _0x13c649=_0x127444[_0x221ab2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13c649||0x0==_0x13c649[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd8528c}=new URL(window[_0x221ab2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x13c649[_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8528c))return!0x0;const _0x52be3f=_0xd8528c[_0x221ab2([0x73,0x70,0x6c,0x69,0x74])](_0x221ab2([0x2e]));return _0x13c649[_0x221ab2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x524320=>_0x524320[_0x221ab2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221ab2([0x2a])))[_0x221ab2([0x6d,0x61,0x70])](_0x11adb3=>_0x11adb3[_0x221ab2([0x73,0x70,0x6c,0x69,0x74])](_0x221ab2([0x2e])))[_0x221ab2([0x73,0x6f,0x6d,0x65])](_0x592808=>_0x52be3f[_0x221ab2([0x65,0x76,0x65,0x72,0x79])]((_0x262710,_0x4ba844)=>_0x592808[_0x4ba844]===_0x262710||_0x592808[_0x4ba844]===_0x221ab2([0x2a])));}function _0x362444(){return _0x3720c2&&_0x385891?new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322a3d,_0x5f58de)=>{_0x3720c2[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x322a3d,_0x5f58de),_0x385891[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x3d32d6=>{_0x3d32d6!=_0x221ab2([0x56,0x61,0x6c,0x69,0x64])&&_0x322a3d(_0x3d32d6);},_0x5f58de);}):_0x3720c2||_0x385891||_0x221ab2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe8e93f(_0x1af977,_0x2ec193){return new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525fe0=>{if(_0x63d7d5())return _0x525fe0(_0x221ab2([0x56,0x61,0x6c,0x69,0x64]));_0x546294(),_0x23b957[_0x221ab2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x221ab2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x410487=!0x1;const _0x25e6f8=_0xccf9de();function _0x303712(_0x503d00){return!!_0x503d00&&(typeof _0x503d00===_0x221ab2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x503d00===_0x221ab2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x503d00[_0x221ab2([0x74,0x68,0x65,0x6e])]===_0x221ab2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x503d00[_0x221ab2([0x63,0x61,0x74,0x63,0x68])]===_0x221ab2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ca05a(_0xa72d65){_0x656ae6(_0xa72d65)[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x349540=>{if(!_0x349540||_0x349540[_0x221ab2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x221ab2([0x6f,0x6b]))return _0x221ab2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cc68f(_0x28955a(_0x25e6f8+_0x2ec193))!=_0x349540[_0x221ab2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x221ab2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x221ab2([0x56,0x61,0x6c,0x69,0x64]);})[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x35a206=>(_0x39c3e6(),_0x35a206),()=>{const _0x240815=_0x8eb4c8();return null==_0x240815?(_0x39c3e6(),_0x221ab2([0x56,0x61,0x6c,0x69,0x64])):_0x221ab2(_0x4a2547-_0x240815>(0x83dd42b^_0x3130a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x525fe0)[_0x221ab2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x525fe0(_0x221ab2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfbcde9=0x2c07beab^_0x3130a2;function _0x39c3e6(){const _0x40b3f1=_0x221ab2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cc68f(_0x28955a(_0x1af977)),_0x573f32=_0x236ff0(_0x1cc68f(window[_0x221ab2([0x4d,0x61,0x74,0x68])][_0x221ab2([0x63,0x65,0x69,0x6c])](_0x4a2547/_0xfbcde9)));window[_0x221ab2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x221ab2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40b3f1,_0x573f32);}function _0x8eb4c8(){const _0x2e75e2=_0x221ab2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cc68f(_0x28955a(_0x1af977)),_0x54d8bb=window[_0x221ab2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x221ab2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e75e2);return _0x54d8bb?window[_0x221ab2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x236ff0(_0x54d8bb),0x10)*_0xfbcde9:null;}function _0x656ae6(_0x1af49){return new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38dd55,_0x37fd47)=>{_0x1af49[_0x221ab2([0x74,0x68,0x65,0x6e])](_0x38dd55,_0x37fd47),window[_0x221ab2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37fd47,0x2c3084eb^_0x3130a2);});}}_0x23b957[_0x221ab2([0x6f,0x6e])](_0x221ab2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x637473,_0x22648e)=>{if(_0x22648e[0x0]!=_0x1af977)return _0x525fe0(_0x221ab2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22648e[0x1]={..._0x22648e[0x1],[_0x221ab2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25e6f8};},{[_0x221ab2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x221ab2([0x68,0x69,0x67,0x68])}),_0x23b957[_0x221ab2([0x6f,0x6e])](_0x221ab2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31374e=>{_0x303712(_0x31374e[_0x221ab2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x410487=!0x0,_0x5ca05a(_0x31374e[_0x221ab2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x221ab2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x221ab2([0x6c,0x6f,0x77])}),_0x2286d8[_0x221ab2([0x74,0x68,0x65,0x6e])](()=>{_0x410487||_0x525fe0(_0x221ab2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x63d7d5(){return _0x23b957[_0x221ab2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x221ab2([0x76,0x69,0x65,0x77])][_0x221ab2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x221ab2([0x61,0x75,0x74,0x6f]);}function _0x546294(){_0x23b957[_0x221ab2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x221ab2([0x76,0x69,0x65,0x77])][_0x221ab2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x221ab2([0x61,0x75,0x74,0x6f]);}}function _0x3de3c3(_0x4140c4){const _0x54f7dc=[new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2110=>setTimeout(_0x2b2110,0x2c386ee7^_0x3130a2)),_0x2286d8[_0x221ab2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b60e2=>{const _0x35511a=0x2c31502c^_0x3130a2,_0x2cdd0a=_0x5e2f8b[_0x221ab2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ee9ee(){_0x2cdd0a[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x35511a&&_0x4b60e2();}_0x1ee9ee(),_0x2cdd0a[_0x221ab2([0x6f,0x6e])](_0x221ab2([0x61,0x64,0x64]),_0x1ee9ee);})),new window[(_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1a92=>{function _0x5695be(){for(const _0x59f014 in window)if(window[_0x221ab2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x221ab2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x59f014))&&window[_0x59f014]==_0x38b7b9)return _0x3a1a92();_0x23b957[_0x221ab2([0x73,0x74,0x61,0x74,0x65])]!=_0x221ab2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x221ab2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5695be,0x2c3143a3^_0x3130a2);}_0x427b04(_0x221ab2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5695be();})];return window[_0x221ab2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x221ab2([0x72,0x61,0x63,0x65])](_0x54f7dc)[_0x221ab2([0x74,0x68,0x65,0x6e])](()=>_0x4140c4);}async function _0x35186a(){if(await _0x2286d8,_0x427b04(_0x221ab2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x20aa0c=_0x5e2f8b[_0x221ab2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2eeaef=_0x5e2f8b[_0x221ab2([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])](_0x20aa0c[_0x221ab2([0x69,0x64])]),_0x300365=_0x5d188d(_0x221ab2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x300365[_0x221ab2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x20aa0c['id'],_0x2eeaef?_0x2eeaef['id']:null,!0x0),_0x300365[_0x221ab2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x221ab2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x300365[_0x221ab2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x300365[_0x221ab2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x48fe27,void(_0x300365[_0x221ab2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x48fe27);}if(_0x427b04(_0x221ab2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2ef8d5=_0x5d188d(_0x221ab2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2ef8d5[_0x221ab2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x221ab2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ef8d5[_0x221ab2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ef8d5[_0x221ab2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x48fe27,_0x2ef8d5[_0x221ab2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x48fe27;}_0x23b957[_0x221ab2([0x6d,0x6f,0x64,0x65,0x6c])][_0x221ab2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48fe27,_0x23b957[_0x221ab2([0x6d,0x6f,0x64,0x65,0x6c])][_0x221ab2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48fe27,_0x23b957[_0x221ab2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x221ab2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a8fa2(){return _0x427b04(_0x221ab2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5d188d(_0x221ab2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x221ab2([0x73,0x74,0x61,0x74,0x65])]==_0x221ab2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57f70e(){return _0x427b04(_0x221ab2([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 _0x2e1c4a(){return _0x427b04(_0x221ab2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x272b80(_0x26c874){const _0x29f54c=_0xe37d3a();_0x23b957[_0x29f54c]=_0x221ab2([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])+_0x26c874,_0x26c874[_0x221ab2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x221ab2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xe37d3a()]=_0x38b7b9),_0x26c874!=_0x221ab2([0x56,0x61,0x6c,0x69,0x64])&&_0x35186a();}function _0xe37d3a(){const _0x57c3ba=window[_0x221ab2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x221ab2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x221ab2([0x6e,0x6f,0x77])]())[_0x221ab2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x221ab2([0x2e]),'');let _0x4847b7=_0x221ab2([0x68]);for(let _0x4c31c4=0x0;_0x4c31c4<_0x57c3ba[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c31c4+=0x2){let _0x1d4e4e=window[_0x221ab2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57c3ba[_0x221ab2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c31c4,_0x4c31c4+0x2));_0x1d4e4e>=_0x3ee905[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d4e4e-=_0x3ee905[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4847b7+=_0x3ee905[_0x1d4e4e];}return _0x4847b7;}function _0x50320b(){const _0x51f17a=_0x5f1dac[_0x221ab2([0x73,0x70,0x6c,0x69,0x74])](_0x221ab2([0x2e]));if(0x3!=_0x51f17a[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d853d(_0x51f17a[0x1]);function _0x1d853d(_0x4c9190){const _0x528d14=_0x502d1d(_0x4c9190);return _0x528d14&&_0x403589()?_0x528d14:null;function _0x403589(){const _0x10881=_0x528d14[_0x221ab2([0x6a,0x74,0x69])],_0x23d29e=window[_0x221ab2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10881[_0x221ab2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10881[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32e767={..._0x528d14,[_0x221ab2([0x6a,0x74,0x69])]:_0x10881[_0x221ab2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10881[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32e767[_0x221ab2([0x76,0x63])],_0x28955a(_0x32e767)==_0x23d29e;}}}async function _0x1b05cb(){let _0x22a8d5=!0x0;try{const _0x1608d7=_0x5f1dac[_0x221ab2([0x73,0x70,0x6c,0x69,0x74])](_0x221ab2([0x2e])),[_0x3eeb86,_0x2e73ec,_0x1f24b4]=_0x1608d7;return _0x348aca(_0x3eeb86),await _0x593ba8(_0x3eeb86,_0x2e73ec,_0x1f24b4),_0x22a8d5;}catch(_0x3f7d17){return!0x1;}function _0x348aca(_0x381e31){const _0x2aff17=_0x502d1d(_0x381e31);_0x2aff17&&_0x2aff17[_0x221ab2([0x61,0x6c,0x67])]==_0x221ab2([0x45,0x53,0x32,0x35,0x36])||(_0x22a8d5=!0x1);}async function _0x593ba8(_0x442388,_0x3024b0,_0x4dcf74){const _0xf02ad=window[_0x221ab2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x221ab2([0x66,0x72,0x6f,0x6d])](_0x5d570d(_0x4dcf74),_0x265b55=>_0x265b55[_0x221ab2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32691c=new window[(_0x221ab2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x221ab2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x442388+_0x221ab2([0x2e])+_0x3024b0),_0x29608f=window[_0x221ab2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x221ab2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29608f)return;const _0x45bc0e=await _0x29608f[_0x221ab2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x221ab2([0x6a,0x77,0x6b]),_0x4f3e44,{[_0x221ab2([0x6e,0x61,0x6d,0x65])]:_0x221ab2([0x45,0x43,0x44,0x53,0x41]),[_0x221ab2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x221ab2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x221ab2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29608f[_0x221ab2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x221ab2([0x6e,0x61,0x6d,0x65])]:_0x221ab2([0x45,0x43,0x44,0x53,0x41]),[_0x221ab2([0x68,0x61,0x73,0x68])]:{[_0x221ab2([0x6e,0x61,0x6d,0x65])]:_0x221ab2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45bc0e,_0xf02ad,_0x32691c)||(_0x22a8d5=!0x1);}}function _0x502d1d(_0x596615){return _0x596615[_0x221ab2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x221ab2([0x65,0x79]))?JSON[_0x221ab2([0x70,0x61,0x72,0x73,0x65])](_0x5d570d(_0x596615)):null;}function _0x5d570d(_0x26b8af){return window[_0x221ab2([0x61,0x74,0x6f,0x62])](_0x26b8af[_0x221ab2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x221ab2([0x2b]))[_0x221ab2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x221ab2([0x2f])));}function _0x28955a(_0x2bd930){let _0x25c41f=0x1505;function _0x91b5ee(_0x2a044c){for(let _0x507890=0x0;_0x507890<_0x2a044c[_0x221ab2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x507890++){const _0x5cda0f=_0x2a044c[_0x221ab2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x507890);_0x25c41f=(_0x25c41f<<0x5)+_0x25c41f+_0x5cda0f,_0x25c41f&=_0x25c41f;}}function _0x40574b(_0x3f2cf5){Array[_0x221ab2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f2cf5)?_0x3f2cf5[_0x221ab2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40574b):_0x3f2cf5&&typeof _0x3f2cf5==_0x221ab2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x221ab2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f2cf5)[_0x221ab2([0x73,0x6f,0x72,0x74])]()[_0x221ab2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31026e,_0xc2759c])=>{_0x91b5ee(_0x31026e),_0x40574b(_0xc2759c);}):_0x91b5ee(window[_0x221ab2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f2cf5));}return _0x40574b(_0x2bd930),_0x25c41f>>>0x0;}function _0x1cc68f(_0x483df8){return _0x483df8[_0x221ab2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x221ab2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x221ab2([0x30]));}function _0x236ff0(_0x60c175){return _0x60c175[_0x221ab2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x221ab2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x221ab2([0x6a,0x6f,0x69,0x6e])]('');}function _0x427b04(_0x3d95ee){return _0x23b957[_0x221ab2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x221ab2([0x68,0x61,0x73])](_0x3d95ee);}function _0x5d188d(_0x5cabd6){return _0x23b957[_0x221ab2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x221ab2([0x67,0x65,0x74])](_0x5cabd6);}function _0x48fe27(){}function _0x221ab2(_0x3abe83){return _0x3abe83['map'](_0x4d68bf=>String['fromCharCode'](_0x4d68bf))['join']('');}_0x272b80(await _0x5baaed());}(this);}['createRevision'](_0x405e88){const _0x36ce2c=this['editor']['plugins']['get']('Users');return new h({'id':_0x405e88['id'],'name':_0x405e88['name'],'creator':_0x405e88['creatorId']?_0x36ce2c['getUser'](_0x405e88['creatorId']):null,'diffData':_0x405e88['diffData']||_0x405e88['data'],'authors':_0x405e88['authorsIds']['map'](_0x93cdb4=>_0x36ce2c['getUser'](_0x93cdb4)),'createdAt':new Date(_0x405e88['createdAt']),'attributes':_0x405e88['attributes'],'fromVersion':_0x405e88['fromVersion'],'toVersion':_0x405e88['toVersion']});}['addRevision'](_0x198165,_0x1810de=0x0){this['_revisions']['add'](_0x198165,_0x1810de);}['getRevision'](_0x3cb298){return this['_revisions']['get'](_0x3cb298);}['getRevisions'](_0x5e24a1={'toJSON':!0x1}){const _0x4d4cb7=Array['from'](this['_revisions']);return _0x4d4cb7['reverse'](),_0x5e24a1['toJSON']?_0x4d4cb7['map'](_0x1398e3=>_0x1398e3['toJSON']()):_0x4d4cb7;}['getIndex'](_0x3aba35){return this['_revisions']['getIndex'](_0x3aba35);}['getEarlierVisibleRevision'](_0x4f15b1){const [,_0x59bc84]=this['getRevisionsIterator'](_0x4f15b1,{'direction':'earlier'});return _0x59bc84;}['getLaterVisibleRevision'](_0x962173){const [,_0x11840e]=this['getRevisionsIterator'](_0x962173,{'direction':'later'});return _0x11840e;}['getRevisionsInDiff'](_0x441d14){const _0x3791da=[];for(const _0x489b96 of this['getRevisionsIterator'](_0x441d14['newRevisionId']))if(_0x3791da['push'](_0x489b96),_0x489b96['id']===_0x441d14['oldRevisionId'])break;return _0x3791da;}*['getRevisionsIterator'](_0x5f3fa8,{direction:_0x303c3f='earlier',filter:_0x58c971=()=>!0x0}={}){const _0x480f79='earlier'===_0x303c3f?0x1:-0x1;let _0x50f6e0=this['_revisions']['get'](_0x5f3fa8),_0x39fcd0=this['getIndex'](_0x50f6e0);for(yield _0x50f6e0;_0x50f6e0;){if(_0x39fcd0+=_0x480f79,_0x50f6e0=this['getRevision'](_0x39fcd0),!_0x50f6e0)return;_0x58c971(_0x50f6e0)&&(yield _0x50f6e0);}}}class V extends _0x728dfc{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4c7825,'c'],[_0x484b23,'a'],[_0x2d6f06,'e'],[_0x5ad87e,'r'],[_0x4fdc84,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4c7825],['a',_0x484b23],['e',_0x2d6f06],['r',_0x5ad87e],['u',_0x4fdc84]]);async['loadRevisionData'](_0x3a6455,_0xa9666e){if(_0x3a6455['diffData']||!_0xa9666e)return;const _0x15704b=this['editor']['config']['get']('collaboration.channelId'),_0x5ab81f=await _0xa9666e['getRevision']({'channelId':_0x15704b,'revisionId':_0x3a6455['id']});_0x3a6455['diffData']=_0x5ab81f['diffData'];}['getRevisionDocumentData'](_0x58107b){const _0x40b29c={};for(const _0x3d602e in _0x58107b['diffData']){if(_0x58107b['diffData'][_0x3d602e]['attachChange']&&!_0x58107b['diffData'][_0x3d602e]['attachChange']['isAttached'])continue;const _0x5ca81f=this['_removeRevisionMarkers'](JSON['parse'](_0x58107b['diffData'][_0x3d602e]['insertions'])),_0x514cad=this['editor']['editing']['view']['document'],_0x26afad=new _0x64f572(_0x514cad,_0x5ca81f['map'](_0x3c869f=>this['_getViewFromDiffObj'](_0x3c869f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x40b29c[_0x3d602e]=this['editor']['data']['processor']['toData'](_0x26afad),this['editor']['data']['processor']['useFillerType']('default');}return _0x40b29c;}['getRevisionRootsAttributes'](_0x4eb20e){const _0xeab868={};for(const _0x5255bd in _0x4eb20e['diffData'])_0x4eb20e['diffData'][_0x5255bd]['attachChange']&&!_0x4eb20e['diffData'][_0x5255bd]['attachChange']['isAttached']||(_0xeab868[_0x5255bd]=_0x4eb20e['diffData'][_0x5255bd]['attributesAfter']||{});return _0xeab868;}['_getTypeCharForViewElement'](_0x1b120d){return this['_viewClassToTypeChar']['get'](_0x1b120d['constructor']);}['_getViewFromDiffObj'](_0x44d30d,_0xf82c46){const _0x2593dc=this['editor']['editing']['view']['document'];if('string'==typeof _0x44d30d)return new _0x65c39(_0x2593dc,_0x44d30d);{let _0x5a8728,_0x9cb014;_0x9cb014='u'==_0x44d30d['type']||'r'==_0x44d30d['type']?[]:_0x44d30d['children']['map'](_0x4ee366=>this['_getViewFromDiffObj'](_0x4ee366,_0xf82c46));const _0x98601b=this['_typeCharToViewClass']['get'](_0x44d30d['type'])||_0x506d9a,_0x4ab860=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5a8728=new _0x98601b(_0x2593dc,_0x44d30d['name'],_0x44d30d['attributes'],_0x9cb014),'u'==_0x44d30d['type']&&_0x44d30d['children'][0x0]){const _0x1b4141=_0x44d30d['children'][0x0];if(_0x5a8728['render']=function(_0x123122){const _0x54d9f0=_0x123122['createElement']('div');return _0x54d9f0['innerHTML']=_0x1b4141,_0x54d9f0['childNodes'][0x0];},_0xf82c46){const _0x390b96=new _0x64f572(_0x2593dc);_0x390b96['_appendChild'](_0x5a8728);const _0x4b9784=Array['from'](_0x4ab860['viewChildrenToDom'](_0x390b96,{'bind':!0x1})),_0x25db07=_0x4ab860['domDocument']['createElement']('div');_0x25db07['append'](..._0x4b9784),_0x5a8728=Array['from'](_0x4ab860['domChildrenToView'](_0x25db07))[0x0];}}else{if('r'==_0x44d30d['type']&&_0x44d30d['children'][0x0]){const _0x21e41d=_0x44d30d['children'][0x0];if(_0x5a8728['render']=function(_0x320b67){_0x320b67['innerHTML']=_0x21e41d;},_0xf82c46){const _0x32c0d6=new _0x64f572(_0x2593dc);_0x32c0d6['_appendChild'](_0x5a8728);const _0xf0730=Array['from'](_0x4ab860['viewChildrenToDom'](_0x32c0d6,{'bind':!0x1})),_0x1521b4=_0x4ab860['domDocument']['createElement']('div');_0x1521b4['append'](..._0xf0730);const _0x4f2a6e=Array['from'](_0x4ab860['domChildrenToView'](_0x1521b4));_0x4f2a6e['length']>0x1?_0x5a8728['_appendChild'](_0x4f2a6e):_0x5a8728=_0x4f2a6e[0x0];}}}if(_0x44d30d['customProperties']){for(const [_0x5465e7,_0x30aaad]of _0x44d30d['customProperties'])_0x5a8728['_setCustomProperty'](_0x5465e7,_0x30aaad);}const _0x6454b=void 0x0===_0x44d30d['fillerOffset']?null:_0x44d30d['fillerOffset'];return null!==_0x6454b&&(_0x5a8728['getFillerOffset']=()=>_0x6454b),_0x5a8728;}}['_makeModelFromViewString'](_0x4372a7){const _0xdcdac7=JSON['parse'](_0x4372a7),_0xf16bc9=this['editor']['editing']['view']['document'],_0x235a9d=new _0x64f572(_0xf16bc9,_0xdcdac7['map'](_0x29cd79=>this['_getViewFromDiffObj'](_0x29cd79,!0x0)));return this['editor']['data']['toModel'](_0x235a9d);}['_removeRevisionMarkers'](_0x1f575a){return(_0x1f575a=_0x1f575a['filter'](_0x44d17b=>!_0x44d17b['name']||'revision-start'!==_0x44d17b['name']&&'revision-end'!==_0x44d17b['name']))['forEach'](_0x4deb6f=>{'string'!=typeof _0x4deb6f&&(_0x4deb6f['children']=this['_removeRevisionMarkers'](_0x4deb6f['children']),_0x4deb6f['attributes']=_0x4deb6f['attributes']['filter'](_0x4067aa=>!_0x4067aa[0x0]['startsWith']('data-revision-')));}),_0x1f575a;}}function g(_0x2eb520,_0x4f4439,_0x12db5c){const t=_0x2eb520['t'];switch(_0x4f4439){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'},_0x12db5c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x12db5c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x728dfc{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb6588b,I,V,_0x346d08];}constructor(_0x727a6e){super(_0x727a6e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xc04848=_0xccf9de();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xc04848},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4eb065=this['repository']['getRevision'](0x0),_0x2af464=_0x4eb065&&null===_0x4eb065['creator']?_0x4eb065:null;if(this['_continueCurrentRevision']=!!_0x2af464&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54737f=this['_source']['getCurrentRevisionId'](),_0x2f93d3=this['repository']['getRevision'](_0x54737f);if(_0x2f93d3)this['_startingVersion']=_0x2f93d3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x21ec6f=this['_source']['history']['_operations']['find'](_0x38c352=>!_0x38c352['_isInit']),_0x17d0e3=_0x21ec6f?_0x21ec6f['baseVersion']:this['_source']['history']['version'];_0x4eb065?(_0x4eb065['toVersion']<_0x17d0e3&&_0x4eb065['_update']({'toVersion':_0x17d0e3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2af464['id'],this['_startingVersion']=_0x2af464['fromVersion']):(this['_startingVersion']=_0x4eb065['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x17d0e3,this['_continueCurrentRevision']=!0x1);}}else _0x2af464&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2af464['toVersion'],this['editor']['model']['document']['history']['version']),_0x2af464['fromVersion']===_0x2af464['toVersion']?(0x0!==_0x2af464['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2af464['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2af464['id'],this['_startingVersion']=_0x2af464['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',_0x14e832=>!_0x14e832),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c74fe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2268e8;for(const _0x9d2e3a in _0x1c74fe){const _0x2b3ca7=_0x9d2e3a,_0x1286df=_0x1c74fe[_0x2b3ca7];if('revisionHistoryLicenseKeyValid'==_0x1286df||'revisionHistoryLicenseKeyInvalid'==_0x1286df||'revisionHistoryLicenseKeyExpired'==_0x1286df||'revisionHistoryLicenseKeyDomainLimit'==_0x1286df||'revisionHistoryLicenseKeyNotAllowed'==_0x1286df||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1286df||'revisionHistoryLicenseKeyTrialLimit'==_0x1286df||'revisionHistoryLicenseKeyUsageLimit'==_0x1286df){delete _0x1c74fe[_0x2b3ca7],_0x2268e8=_0x1286df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2268e8&&_0x1c74fe['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2268e8&&_0x1c74fe['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2268e8&&_0x1c74fe['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2268e8&&_0x1c74fe['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2268e8&&_0x1c74fe['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2268e8&&_0x1c74fe['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2268e8&&_0x1c74fe['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x23b425=this['repository']['getRevision'](0x0),_0xd1ce74=await this['getRevisionDocumentData'](_0x23b425),_0x24e169=await this['getRevisionRootsAttributes'](_0x23b425);this['_replaceEditorDataWithRevisionData'](_0xd1ce74,_0x24e169);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x35ffea){this['_source']=_0x35ffea;}async['update'](){const _0x454c8c=await this['_source']['getLatestVersion']();if(_0x454c8c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x587558=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x454c8c});_0x587558['authors']=_0x587558['authorsIds']['map'](_0x3cad2f=>this['editor']['plugins']['get']('Users')['getUser'](_0x3cad2f)),this['currentRevision']['_update'](_0x587558);}}async['saveRevision'](_0x3c015f={},_0x396e78=null){const _0x4c9287=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x396e78>this['currentRevision']['toVersion']&&(_0x396e78=null),null===_0x396e78&&(_0x396e78=await this['_source']['getLatestVersion']());const _0x3a3883=this['_getFromVersion'](_0x396e78),_0x404f42=this['buildRevisionData']({'from':_0x3a3883,'to':_0x396e78});if(this['currentRevision']['toVersion']<_0x396e78){const _0x16c08a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x396e78,'to':_0x396e78});_0x16c08a['authors']=[],_0x16c08a['authorsIds']=[],_0x16c08a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x16c08a,!0x0),delete _0x16c08a['authors'],_0x4c9287['push'](_0x16c08a);}_0x3c015f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c015f['name']=_0x3c015f['name']||null,_0x3c015f['id']=_0x3c015f['id']||_0xccf9de(),_0x3c015f={..._0x3c015f,..._0x404f42};const _0x2c194c=this['addRevisionData'](_0x3c015f);_0x4c9287['push'](_0x3c015f);const _0x575954=this['repository']['getIndex'](_0x2c194c);if(0x0!==_0x575954){const _0x20ef76=this['repository']['getRevision'](_0x575954-0x1);if(_0x20ef76['fromVersion']!==_0x396e78){const _0x195850=this['_revisionDataBuilder']['getData'](_0x396e78,_0x20ef76['toVersion']),_0x443ad2={'id':_0x20ef76['id'],'diffData':_0x195850['diffData'],'authorsIds':_0x195850['authorsIds'],'authors':_0x195850['authorsIds']['map'](_0x2b7be4=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b7be4)),'fromVersion':_0x396e78};_0x20ef76===this['currentRevision']&&(_0x443ad2['createdAt']=new Date(_0x3c015f['createdAt']['getTime']()+0xa)),_0x20ef76['_update'](_0x443ad2,!0x0),delete _0x443ad2['authors'],_0x4c9287['push'](_0x443ad2);}}if(this['adapter']){for(const _0x293f97 of _0x4c9287)this['_bufferUpdate'](_0x293f97['id'],_0x293f97,!0x0);this['sendBufferedUpdates']();}return _0x2c194c;}['addRevisionData'](_0x56c2f4){const _0x4ecb06=this['repository']['createRevision'](_0x56c2f4);return this['adapter']&&_0x4ecb06['on']('_update',(_0x27f501,_0x28d175,_0xda3ace)=>{_0xda3ace||(this['_bufferUpdate'](_0x28d175['id'],_0x28d175,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ecb06,this['_findInsertionIndex'](_0x4ecb06)),_0x4ecb06;}async['getRevisionDocumentData'](_0x5b3c82){return await this['_utils']['loadRevisionData'](_0x5b3c82,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5b3c82);}async['getRevisionRootsAttributes'](_0x5aed0a){return await this['_utils']['loadRevisionData'](_0x5aed0a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5aed0a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d8ea8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x367588=0x0;_0x367588<_0x5d8ea8['length'];_0x367588++){const _0x293b5e=_0x5d8ea8[_0x367588];let _0x2f44a2=!0x1;for(const _0x1a27f9 of Object['keys'](_0x293b5e))void 0x0===_0x293b5e[_0x1a27f9]?delete _0x293b5e[_0x1a27f9]:'id'!==_0x1a27f9&&(_0x2f44a2=!0x0);_0x2f44a2||(_0x5d8ea8[_0x367588]=null);}if(_0x5d8ea8=_0x5d8ea8['filter'](_0x53ea51=>null!==_0x53ea51),!_0x5d8ea8['length'])return;for(let _0x22bd17=0x0;_0x22bd17<_0x5d8ea8['length'];_0x22bd17++){const _0x220455=_0x5d8ea8[_0x22bd17];void 0x0!==_0x220455['fromVersion']&&void 0x0===_0x220455['toVersion']&&(_0x220455['toVersion']=this['repository']['getRevision'](_0x220455['id'])['toVersion']),void 0x0!==_0x220455['toVersion']&&void 0x0===_0x220455['fromVersion']&&(_0x220455['fromVersion']=this['repository']['getRevision'](_0x220455['id'])['fromVersion']);}const _0x5c7fdb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d8ea8,_0x5c7fdb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x545fb4=>{if(_0x545fb4){for(const _0x1f1253 of _0x545fb4)this['setRevisionData']({'id':_0x1f1253['id'],'createdAt':_0x1f1253['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xca586a=null,from:_0x42aec2=null,to:_0x4114f8=null}){_0x42aec2=null!==_0x42aec2?_0x42aec2:_0xca586a['fromVersion'],_0x4114f8=null!==_0x4114f8?_0x4114f8:_0xca586a['toVersion'];const _0x2b395e=this['_revisionDataBuilder']['getData'](_0x42aec2,_0x4114f8),_0x56031e={'diffData':_0x2b395e['diffData'],'authorsIds':_0x2b395e['authorsIds'],'fromVersion':_0x42aec2,'toVersion':_0x4114f8};if(!_0xca586a||_0x4114f8!==_0xca586a['toVersion']){const _0x4b43c7=_0x4114f8-0x1,_0x36591d=this['_source']['history']['getOperation'](_0x4b43c7);_0x56031e['createdAt']=_0x36591d&&_0x36591d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x42aec2===this['_loadedStateData']['fromVersion']){for(const _0x11ef33 of this['_loadedStateData']['authors'])_0x56031e['authorsIds']['includes'](_0x11ef33['id'])||_0x56031e['authorsIds']['push'](_0x11ef33['id']);}return _0x56031e;}['_bufferUpdate'](_0xf44289,_0x2ec74e,_0x325c23){if(this['_bufferedUpdates']['has'](_0xf44289)){const _0x3f7bd7=this['_bufferedUpdates']['get'](_0xf44289);_0x2ec74e=_0x325c23?{..._0x3f7bd7,..._0x2ec74e}:{..._0x2ec74e,..._0x3f7bd7};}this['_bufferedUpdates']['set'](_0xf44289,_0x2ec74e);}['setRevisionData'](_0x428c59){const _0x18ced4=this['repository']['getRevision'](_0x428c59['id']);if(_0x428c59['createdAt']&&(_0x428c59['createdAt']=new Date(_0x428c59['createdAt'])),_0x428c59['authorsIds']){const _0x308ce2=this['editor']['plugins']['get']('Users');_0x428c59['authors']=_0x428c59['authorsIds']['map'](_0xe72f1e=>_0x308ce2['getUser'](_0xe72f1e));}_0x18ced4['_update'](_0x428c59,!0x0);}['_createInitialRevision'](_0x161485){const _0x2111eb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2111eb)this['_initialRevisionId']=_0x2111eb['id'];else{const _0xce27ee=!this['editor']['model']['document']['roots']['find'](_0x2a00b0=>this['editor']['model']['hasContent'](_0x2a00b0)),_0x3fea1e=this['editor']['plugins']['get']('Users')['me']['id'],_0x20f4cc=g(this['editor']['locale'],_0xce27ee?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x161485,'to':_0x161485,'id':this['_initialRevisionId'],'name':_0x20f4cc,'creatorId':_0x3fea1e});}}['_createCurrentRevision'](_0x51b35e){const _0x280f0e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x280f0e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x51b35e,'to':_0x51b35e,'id':_0x280f0e,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3887ed,_0x97a2dd){let _0x5b12f8=this['editor']['config']['get']('initialData'),_0x352f68=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5b12f8){_0x5b12f8={};for(const _0x35d06d of this['editor']['model']['document']['getRootNames']())_0x5b12f8[_0x35d06d]='';}if('string'==typeof _0x5b12f8&&(_0x5b12f8={'main':_0x5b12f8}),void 0x0===_0x352f68){_0x352f68={};for(const _0x105511 of this['editor']['model']['document']['getRootNames']())_0x352f68[_0x105511]={};}let _0x16696b=!0x1;const _0x575011=Object['keys'](_0x5b12f8),_0xfa3f8f=Object['keys'](_0x3887ed);for(const _0x4e4433 of _0x575011){if(_0x5b12f8[_0x4e4433]!==_0x3887ed[_0x4e4433]&&''!==_0x5b12f8[_0x4e4433]['trim']()){_0x16696b=!0x0;break;}if(!_0x226617(_0x352f68[_0x4e4433],_0x97a2dd[_0x4e4433])&&Object['keys'](_0x352f68[_0x4e4433])['length']>0x0){_0x16696b=!0x0;break;}}_0x16696b||(_0x16696b=_0xfa3f8f['some'](_0x586dd1=>!this['editor']['model']['document']['getRoot'](_0x586dd1))),_0x16696b&&_0xc61aac('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5b12f8,'editorRootsAttributes':_0x352f68,'revisionData':_0x3887ed,'revisionRootsAttributes':_0x97a2dd}),this['editor']['config']['set']('initialData',_0x3887ed),this['editor']['config']['set']('rootsAttributes',_0x97a2dd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xc72e9d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xc72e9d['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cc5bf){const _0x143044=this['repository']['getRevisions']();_0x143044['reverse']();let _0x145bcb=0x0;for(;_0x145bcb<_0x143044['length'];){const _0x375c11=_0x143044[_0x145bcb];if(_0x375c11===this['currentRevision']){_0x145bcb++;continue;}if(_0x375c11['id']===this['_initialRevisionId'])break;const _0x325f2a=_0x5cc5bf['toVersion']-_0x375c11['toVersion']||_0x5cc5bf['fromVersion']-_0x375c11['fromVersion'];if(_0x325f2a>0x0)break;if(_0x325f2a<0x0)_0x145bcb++;else{if(!_0x5cc5bf['creator']&&_0x375c11['creator'])break;if(_0x375c11['creator']||!_0x5cc5bf['creator']){if(_0x5cc5bf['createdAt']>_0x375c11['createdAt'])break;_0x145bcb++;}else _0x145bcb++;}}return _0x145bcb;}['_getFromVersion'](_0x2ff4e2){const _0x343c31=this['repository']['getRevisions']();_0x343c31['reverse'](),_0x343c31['shift']();const _0x513395=_0x343c31['find'](_0x25a9ef=>_0x25a9ef['toVersion']<=_0x2ff4e2)['toVersion'];return _0x513395<this['_startingVersion']?this['_startingVersion']:_0x513395;}['_makeRevision']({name:_0x2f4e05,from:_0x5c2cdb,to:_0x3ca7f2,creatorId:_0xdc992d,id:_0x1c3683}){const _0x38075e=this['buildRevisionData']({'from':_0x5c2cdb,'to':_0x3ca7f2});_0x38075e['name']=_0x2f4e05,_0x38075e['creatorId']=_0xdc992d,_0x38075e['id']=_0x1c3683;const _0x4c7ea3=this['addRevisionData'](_0x38075e);return this['adapter']&&this['_bufferUpdate'](_0x38075e['id'],_0x38075e,!0x0),_0x4c7ea3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2e850d){this['editor']=_0x2e850d,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'](_0x3b95b7){this['source']=_0x3b95b7;const _0x371734=new Map(),_0x4846dd=new Map(),_0xb190fe=this['editor']['model']['document']['roots']['map'](_0x1f60cd=>_0x1f60cd['rootName']);for(const _0x236aa6 of _0xb190fe){const _0x56f7ef=this['editor']['model']['document']['getRoot'](_0x236aa6),_0x1cf244=N(_0x56f7ef);_0x371734['set'](_0x236aa6,_0x1cf244),_0x4846dd['set'](_0x236aa6,Object['fromEntries'](_0x56f7ef['getAttributes']()));}const _0x163909=Array['from'](this['editor']['model']['markers'])['map'](_0x3d8a29=>[_0x3d8a29['name'],_0x3d8a29['getRange']()]),_0x4e23f5=this['source']['version'];this['_saveMetaData'](_0x4e23f5,_0x371734,_0x163909,_0x4846dd),this['_startingRevisionId']=this['_revisionId'];const _0x4546f5=new Map(),_0x18526c=new Map();for(const _0x346ec8 of _0xb190fe){const _0x17152c=P(_0x346ec8);_0x4546f5['set'](_0x346ec8,_0x17152c),_0x18526c['set'](_0x346ec8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4546f5,[],_0x18526c);}['getData'](_0x37e046,_0x45e2ba){if(this['_lastFrom']===_0x37e046&&this['_lastTo']<=_0x45e2ba)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45e2ba,!0x0);else{if(!this['_savedMetaData']['has'](_0x37e046)){const _0x482556=this['_getPreviousFrom'](_0x37e046);this['_calculateMetaData'](_0x482556,_0x37e046,!0x1);}this['_calculateMetaData'](_0x37e046,_0x45e2ba,!0x0);}return this['_lastFrom']=_0x37e046,this['_lastTo']=_0x45e2ba,this['_getState']();}['loadState'](_0x367a64){const _0xc29079=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x367a64['fromVersion'],this['_lastTo']=_0x367a64['toVersion'];for(const _0x19af7e in _0x367a64['diffData']){const _0x2703a7=_0x367a64['diffData'][_0x19af7e]['attachChange'],_0x360f47=_0x48cfda(_0x367a64['diffData'][_0x19af7e]['attributesBefore'])||{},_0x9319b3=_0xc29079['_makeModelFromViewString'](_0x367a64['diffData'][_0x19af7e]['deletions']);_0x9319b3['rootName']=_0x19af7e,_0x9319b3['_isAttached']=!_0x2703a7||!_0x2703a7['isAttached'],_0x9319b3['isAttached']=()=>_0x9319b3['_isAttached'],this['_baseRoots']['set'](_0x19af7e,_0x9319b3),this['_baseRootsAttributes']['set'](_0x19af7e,_0x360f47),_0x2703a7&&this['_touchedRoots']['set'](_0x19af7e,_0x2703a7);const _0x2fff0f=this['_makeIdsRoot'](_0x9319b3);this['_baseIdsRoots']['set'](_0x19af7e,_0x2fff0f);for(const [_0x84635b,_0x456257]of _0x9319b3['markers']){if(!_0x84635b['startsWith']('revision:'))continue;const _0x45cfb1=_0x84635b['split'](':')[0x2];for(const _0x6437cd of _0x456257['getWalker']({'singleCharacters':!0x0})){const _0x20046b=this['_getVidAttributeName'](_0x6437cd),_0x1decc9='elementEnd'==_0x6437cd['type']?_0x6437cd['previousPosition']['path']['slice'](0x0,-0x1):_0x6437cd['previousPosition']['path'],_0x1f63ed=_0x2fff0f['getNodeByPath'](_0x1decc9)['getAttribute'](_0x20046b);this['_touched']['set'](_0x1f63ed,{'userId':_0x45cfb1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5dfa95=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3b0dbd=>!this['_touched']['has'](_0x3b0dbd));let _0x2ab0fe=0x0;const _0x25eac6=new Map();for(const _0x26b6c9 in _0x367a64['diffData']){const _0x4ce9a1=_0x367a64['diffData'][_0x26b6c9]['attachChange'],_0x726884=_0x48cfda(_0x367a64['diffData'][_0x26b6c9]['attributesAfter'])||{},_0x571845=_0xc29079['_makeModelFromViewString'](_0x367a64['diffData'][_0x26b6c9]['insertions']);_0x571845['rootName']=_0x26b6c9,_0x571845['_isAttached']=!_0x4ce9a1||_0x4ce9a1['isAttached'],_0x571845['isAttached']=()=>_0x571845['_isAttached'],this['_diffRoots']['set'](_0x26b6c9,_0x571845),this['_diffRootsAttributes']['set'](_0x26b6c9,_0x726884);const _0x306732=this['_makeIdsRoot'](_0x571845,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x26b6c9,_0x306732),_0x25eac6['set'](_0x26b6c9,_0x571845['isAttached']()?_0x726884:{});for(const [_0x468847,_0x38b5e4]of _0x571845['markers']){if(!_0x468847['startsWith']('revision:'))continue;const _0x15fb2d=_0x468847['split'](':')[0x2];for(const _0x57240b of _0x38b5e4['getWalker']({'singleCharacters':!0x0})){const _0x33dc17=this['_getVidAttributeName'](_0x57240b),_0xa606cc=this['_revisionId']++,_0x54f577='elementEnd'==_0x57240b['type']?_0x57240b['previousPosition']['path']['slice'](0x0,-0x1):_0x57240b['previousPosition']['path'];_0x306732['getNodeByPath'](_0x54f577)['_setAttribute'](_0x33dc17,_0xa606cc),this['_touched']['set'](_0xa606cc,{'userId':_0x15fb2d});}}for(const _0x6c0d24 of this['editor']['model']['createRangeIn'](_0x571845)['getWalker']({'singleCharacters':!0x0})){const _0x2c3ae1=this['_getVidAttributeName'](_0x6c0d24),_0x22d957='elementEnd'==_0x6c0d24['type']?_0x6c0d24['previousPosition']['path']['slice'](0x0,-0x1):_0x6c0d24['previousPosition']['path'],_0x4613dd=_0x306732['getNodeByPath'](_0x22d957);_0x4613dd['getAttribute'](_0x2c3ae1)>0x0||_0x4613dd['_setAttribute'](_0x2c3ae1,_0x5dfa95[_0x2ab0fe++]);}for(const [_0x135f54,_0xe71923]of _0x571845['markers'])_0x135f54['startsWith']('revision:')||this['_markers']['set'](_0x135f54,_0xe71923);}const _0x5b3c46=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5b3c46),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b3c46,0x1));const _0x6c957f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x6c957f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x6c957f,0x1));const _0x59ffaf=Array['from'](this['_diffRoots'])['map'](([_0x2fe7b4,_0x348f40])=>[_0x2fe7b4,N(_0x348f40)]);this['_saveMetaData'](this['_lastTo'],_0x59ffaf,this['_markers'],_0x25eac6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x2a95b7,_0x1f0912,_0xb5f12e,_0x335cbb){const _0x524576=new Map(_0x1f0912),_0x2bd39a=new Map(_0x48cfda(_0x335cbb)),_0x469e8a=new Map();for(const [_0x19c6ab,_0xcfaded]of _0xb5f12e)_0x469e8a['set'](_0x19c6ab,{'start':_0xcfaded['start']['clone'](),'end':_0xcfaded['end']['clone'](),'rootName':_0xcfaded['root']['rootName']});this['_savedMetaData']['set'](_0x2a95b7,{'roots':_0x524576,'markers':_0x469e8a,'rootsAttributes':_0x2bd39a});}['_removeMetaData'](_0x1b9486){this['_savedMetaData']['delete'](_0x1b9486);}['_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'](_0x23c360,_0x2c29e9=null){let _0x2e03c2=null;_0x23c360['is']('documentFragment')||(_0x2e03c2=new ut(_0x23c360['name'],{'vid_start':null===_0x2c29e9?this['_revisionId']++:_0x2c29e9++}));const _0x255696=[];for(const _0x135091 of _0x23c360['getChildren']())if(_0x135091['is']('element')){_0x255696['push'](this['_makeIdsRoot'](_0x135091,_0x2c29e9));const _0x3b1efd=_0x255696[_0x255696['length']-0x1];null!==_0x2c29e9&&(_0x2c29e9=_0x3b1efd['is']('element','$text')?_0x3b1efd['getAttribute']('vid')+0x1:_0x3b1efd['getAttribute']('vid_end')+0x1);}else{for(let _0x1e679a=0x0;_0x1e679a<_0x135091['offsetSize'];_0x1e679a++)_0x255696['push'](new ut('$text',{'vid':null===_0x2c29e9?this['_revisionId']++:_0x2c29e9++}));}if(_0x23c360['is']('documentFragment')){const _0x11f02f=P(_0x23c360['rootName']);return _0x11f02f['_insertChild'](0x0,_0x255696),_0x11f02f;}return _0x2e03c2['_setAttribute']('vid_end',null===_0x2c29e9?this['_revisionId']++:_0x2c29e9++),_0x2e03c2['_insertChild'](0x0,_0x255696),_0x2e03c2;}['_calculateMetaData'](_0xa582b2,_0x369ade,_0x59d669){this['_reset']();const {roots:_0x1601ed,markers:_0x4d454b,rootsAttributes:_0x28b7c9}=this['_savedMetaData']['get'](_0xa582b2);this['_baseRoots']=new Map(_0x1601ed),this['_baseRootsAttributes']=new Map(_0x48cfda(_0x28b7c9));for(const [_0x4d323b,_0x1059b8]of this['_baseRoots'])if('$graveyard'!==_0x4d323b&&(this['_diffRoots']['set'](_0x4d323b,N(_0x1059b8)),this['_diffRootsAttributes']=new Map(_0x48cfda(_0x28b7c9)),_0x59d669)){const _0x4eff67=this['_revisionId'];this['_idsRoots']['set'](_0x4d323b,this['_makeIdsRoot'](_0x1059b8)),this['_baseIdsRoots']['set'](_0x4d323b,this['_makeIdsRoot'](_0x1059b8,_0x4eff67));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x59d669&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x39ec1d,_0x5e2545]of _0x4d454b){const _0x53bc0b=this['_baseRoots']['get'](_0x5e2545['rootName']),_0x5ae1a8=this['_diffRoots']['get'](_0x5e2545['rootName']),_0x506abd=new lt(this['_fixPosition'](_0x5e2545['start'],_0x53bc0b),this['_fixPosition'](_0x5e2545['end'],_0x53bc0b)),_0x4d3e8e=this['_fixRange'](_0x506abd,_0x5ae1a8);_0x53bc0b['markers']['set'](_0x39ec1d,_0x506abd),this['_markers']['set'](_0x39ec1d,_0x4d3e8e);}this['_applyOperations'](_0xa582b2,_0x369ade,_0x59d669);}['_applyOperations'](_0x1ad14c,_0x12cbcc,_0x4c6271){for(const _0x1902e0 of this['source']['getOperations'](_0x1ad14c,_0x12cbcc))this['_handleOperation'](_0x1902e0,_0x4c6271);for(const _0x222682 of this['_diffRoots']['values']())_0x222682['markers']['clear']();for(const [_0x5b01e0,_0x591dac]of this['_markers']){this['_diffRoots']['get'](_0x591dac['root']['rootName'])['markers']['set'](_0x5b01e0,_0x591dac['clone']());}const _0x6230df=new Map(),_0x1cda08=new Map();for(const [_0x50e96c,_0x31e0b5]of this['_diffRoots'])_0x6230df['set'](_0x50e96c,N(_0x31e0b5)),_0x1cda08['set'](_0x50e96c,this['_diffRootsAttributes']['get'](_0x50e96c));this['_saveMetaData'](_0x12cbcc,_0x6230df,this['_markers'],_0x1cda08);}['_getPreviousFrom'](_0x76c5af){const _0x41e9bf=Array['from'](this['_savedMetaData']['keys']());_0x41e9bf['sort']((_0x24531e,_0x2b82fb)=>_0x24531e-_0x2b82fb),_0x41e9bf['reverse']();for(const _0x52e105 of _0x41e9bf)if(_0x52e105<_0x76c5af)return _0x52e105;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x133279,_0xaea04d){const _0x5e28c0=Array['from'](_0xaea04d['markers'])['map'](([_0xa2f847,_0x489b81])=>[_0xa2f847,this['_fixRange'](_0x489b81,_0x133279)]);_0x133279['markers']=new Map(_0x5e28c0);}['_transformMarkers'](_0x19ebd6){for(const _0x77f58c of this['_markers']['values']()){const _0x2da87f=_0x77f58c['getTransformedByOperation'](_0x19ebd6),_0x4c64fc=lt['_createFromRanges'](_0x2da87f);_0x77f58c['start']=_0x4c64fc['start'],_0x77f58c['end']=_0x4c64fc['end'];}}['_handleOperation'](_0x17d6a4,_0x2c2759){if('addRoot'!=_0x17d6a4['type']&&'detachRoot'!=_0x17d6a4['type']){if('insert'==_0x17d6a4['type']){const _0x3609a8=_0x17d6a4['position']['root']['rootName'];this['_diffRoots']['has'](_0x3609a8)||(this['_diffRoots']['set'](_0x3609a8,P(_0x3609a8,!0x0)),this['_diffRootsAttributes']['set'](_0x3609a8,{}),_0x2c2759&&this['_idsRoots']['set'](_0x3609a8,P(_0x3609a8,!0x0)));}else{if('addRootAttribute'==_0x17d6a4['type']||'removeRootAttribute'==_0x17d6a4['type']||'changeRootAttribute'==_0x17d6a4['type'])return void this['_handleRootAttributeOperation'](_0x17d6a4);'marker'==_0x17d6a4['type']&&this['_handleMarkerOperation'](_0x17d6a4);}if('marker'!==_0x17d6a4['type']){const _0x56d54=this['_cloneOperation'](_0x17d6a4,this['_diffRoots']);_0x56d54['_execute'](),this['_transformMarkers'](_0x56d54);}if(_0x2c2759)switch(_0x17d6a4['type']){case'insert':this['_handleInsertOperation'](_0x17d6a4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x17d6a4);break;case'merge':this['_handleMergeOperation'](_0x17d6a4);break;case'split':this['_handleSplitOperation'](_0x17d6a4);}}else this['_handleRootOperation'](_0x17d6a4,_0x2c2759);}['_cloneOperation'](_0x735ce7,_0x2ba4a6){const _0x344cef=_0x735ce7['clone']();return _0x344cef['_authorId']=_0x735ce7['_authorId'],this['_fixOperation'](_0x344cef,_0x2ba4a6),_0x344cef;}['_getBaseVids'](_0x1e9617){return _0x1e9617['map'](_0x2f1fdb=>{const _0x3eb258=this['_getVidAttributeName'](_0x2f1fdb);return Number(_0x2f1fdb['item']['getAttribute'](_0x3eb258));});}['_generateTape'](_0x5a21c,_0x438fdb){if(_0x5a21c['is']('element','$text'))_0x438fdb['push']({'item':_0x5a21c,'type':'text'});else{_0x5a21c['is']('element')&&_0x438fdb['push']({'item':_0x5a21c,'type':'elementStart'});for(const _0x46601e of _0x5a21c['getChildren']())this['_generateTape'](_0x46601e,_0x438fdb);_0x5a21c['is']('element')&&_0x438fdb['push']({'item':_0x5a21c,'type':'elementEnd'});}return _0x438fdb;}['_getState'](){const _0x30e455=new Map(this['_touched']),_0x3bff77=new Map(_0x30e455),_0x2d8c5f=new Map(),_0x5ba692={'insertions':{},'deletions':{}},_0x513cc8={'insertions':{},'deletions':{}},_0x4aff54=new Map(),_0x243cf1=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x243cf1['delete']('$graveyard');for(const _0x730dda of _0x243cf1){const _0x2cf8ef=this['_diffRoots']['get'](_0x730dda)||P(_0x730dda,!0x1),_0x16b96b=this['_baseRoots']['get'](_0x730dda)||P(_0x730dda,!0x1);_0x2cf8ef['isAttached']()||_0x16b96b['isAttached']()?(_0x5ba692['insertions'][_0x730dda]=N(_0x2cf8ef),_0x5ba692['deletions'][_0x730dda]=N(_0x16b96b),this['_copyMarkers'](_0x5ba692['deletions'][_0x730dda],_0x16b96b),this['_copyMarkers'](_0x5ba692['insertions'][_0x730dda],_0x2cf8ef),_0x513cc8['insertions'][_0x730dda]=this['_generateTape'](this['_idsRoots']['get'](_0x730dda),[]),_0x513cc8['deletions'][_0x730dda]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x730dda)||P(_0x730dda,!0x1),[])):_0x243cf1['delete'](_0x730dda);}for(const _0x352030 of _0x243cf1){const _0x16848f=_0x513cc8['insertions'][_0x352030];for(const _0x10ee9d of _0x16848f){const _0x42718b=this['_getVidAttributeName'](_0x10ee9d),_0x3e27ec=_0x10ee9d['item']['getAttribute'](_0x42718b);_0x3bff77['delete'](_0x3e27ec),_0x3e27ec>=this['_startingRevisionId']&&_0x2d8c5f['set'](_0x3e27ec,_0x30e455['get'](_0x3e27ec));}}for(const _0x406b8c of _0x243cf1){const _0x24db47=_0x513cc8['insertions'][_0x406b8c],_0x3d7b8b=this['_getBaseVids'](_0x513cc8['deletions'][_0x406b8c]);let _0x49da6c=0x0;for(const _0x3b5f2b of _0x24db47){const _0x2d1d2b=this['_getVidAttributeName'](_0x3b5f2b),_0x2f3ede=_0x3b5f2b['item']['getAttribute'](_0x2d1d2b);if(!_0x2d8c5f['has'](_0x2f3ede)&&!_0x4aff54['has'](_0x2f3ede)){if(_0x3bff77['has'](_0x2f3ede))_0x49da6c++;else{if(_0x2f3ede!=_0x3d7b8b[_0x49da6c]){const _0x12cbca=_0x30e455['get'](_0x2f3ede)||_0x30e455['get'](_0x3d7b8b[_0x49da6c]);for(;_0x2f3ede!=_0x3d7b8b[_0x49da6c];)_0x3bff77['has'](_0x3d7b8b[_0x49da6c])||(_0x4aff54['set'](_0x3d7b8b[_0x49da6c],_0x12cbca),_0x30e455['set'](_0x3d7b8b[_0x49da6c],_0x12cbca)),_0x49da6c++;}_0x49da6c++;}}}}for(const _0x338299 of _0x243cf1){const _0x2aa54e=_0x513cc8['insertions'][_0x338299];for(const _0x1e5b12 of _0x2aa54e){const _0x5e52de=this['_getVidAttributeName'](_0x1e5b12),_0x15123d=_0x1e5b12['item']['getAttribute'](_0x5e52de);if(_0x4aff54['has'](_0x15123d)){const _0x5e285c=_0x4aff54['get'](_0x15123d);_0x3bff77['has'](_0x15123d)||_0x3bff77['set'](_0x15123d,{..._0x5e285c}),_0x2d8c5f['set'](_0x15123d,{..._0x5e285c});}}}for(const _0x5ed897 of _0x3bff77['keys']())_0x5ed897>=this['_startingRevisionId']&&_0x3bff77['delete'](_0x5ed897);const _0x22f38c=new Map();for(const _0x540980 of _0x243cf1){let _0xfe6149=_0x513cc8['insertions'][_0x540980];for(const _0x54de26 of _0xfe6149)if(_0x54de26['item']['is']('element','tableCell')){const _0x1cd6d6=this['_getVidAttributeName'](_0x54de26),_0x5605b2=_0x54de26['item']['getAttribute'](_0x1cd6d6);if(_0x2d8c5f['has'](_0x5605b2)){const _0x4329b9=_0x54de26['item']['parent']['parent']['getAttribute']('vid_start'),_0x58fd1b=_0x22f38c['get'](_0x4329b9)||new Set();_0x58fd1b['add'](_0x2d8c5f['get'](_0x5605b2)['userId']),_0x22f38c['set'](_0x4329b9,_0x58fd1b);}}_0xfe6149=_0x513cc8['deletions'][_0x540980];for(const _0x3ef7fd of _0xfe6149)if(_0x3ef7fd['item']['is']('element','tableCell')){const _0x3351d4=this['_getVidAttributeName'](_0x3ef7fd),_0x416d8e=_0x3ef7fd['item']['getAttribute'](_0x3351d4);if(_0x3bff77['has'](_0x416d8e)){const _0x54bbe6=_0x3ef7fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x41e01d=_0x22f38c['get'](_0x54bbe6)||new Set();_0x41e01d['add'](_0x3bff77['get'](_0x416d8e)['userId']),_0x22f38c['set'](_0x54bbe6,_0x41e01d);}}for(const _0x3973e2 of _0x22f38c['keys']())(_0x2d8c5f['has'](_0x3973e2)||_0x3bff77['has'](_0x3973e2))&&_0x22f38c['delete'](_0x3973e2);}for(const _0x1eba8f of _0x243cf1){const _0x58c9e5=_0x513cc8['insertions'][_0x1eba8f];let _0x5ca01c=null,_0x32ecf9=null;for(const _0xed0e07 of _0x58c9e5){const _0x38c85d=this['_getVidAttributeName'](_0xed0e07),_0x2c7eef=_0xed0e07['item']['getAttribute'](_0x38c85d),_0x26d552=_0x22f38c['get'](_0x2c7eef);_0x26d552&&'elementStart'==_0xed0e07['type']&&(_0x5ca01c=Array['from'](_0x26d552)[0x0],_0x32ecf9=_0xed0e07['item']['getAttribute']('vid_end')),_0x5ca01c&&(_0x3bff77['set'](_0x2c7eef,{'userId':_0x5ca01c}),_0x2d8c5f['set'](_0x2c7eef,{'userId':_0x5ca01c})),_0x2c7eef==_0x32ecf9&&(_0x5ca01c=null,_0x32ecf9=null);}}const _0x5d03f2={},_0x48decd=new Set();for(const _0x225a55 of _0x243cf1){const _0x3af0a5=_0x5ba692['deletions'][_0x225a55],_0x58f545=_0x5ba692['insertions'][_0x225a55];for(const {userId:_0x38eae8}of this['_touchedMarkers']['values']())null!==_0x38eae8&&_0x48decd['add'](_0x38eae8);for(const {userId:_0x24d704}of this['_touchedRoots']['values']())null!==_0x24d704&&_0x48decd['add'](_0x24d704);this['_markChanges'](_0x58f545,_0x513cc8['insertions'][_0x225a55],_0x2d8c5f,'insertion',_0x48decd),this['_markChanges'](_0x3af0a5,_0x513cc8['deletions'][_0x225a55],_0x3bff77,'deletion',_0x48decd),_0x5d03f2[_0x225a55]={'insertions':this['_prepareViewToSave'](_0x58f545),'deletions':this['_prepareViewToSave'](_0x3af0a5),'attachChange':this['_touchedRoots']['get'](_0x225a55)||null,'attributesBefore':_0x48cfda(this['_baseRootsAttributes']['get'](_0x225a55))||{},'attributesAfter':_0x48cfda(this['_diffRootsAttributes']['get'](_0x225a55))};}return{'diffData':_0x5d03f2,'authorsIds':Array['from'](_0x48decd)};}['_processRootBeforeSave'](_0x2898b5){for(const [,_0x22ef7a]of _0x2898b5['markers']){const _0x176532=_0x22ef7a['start']['getAncestors']()['filter'](_0x26aac8=>'tableCell'==_0x26aac8['name']);for(const _0x928423 of _0x176532)0x1==_0x928423['childCount']&&_0x928423['getChild'](0x0)['is']('element','paragraph')&&_0x928423['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x108c87){this['_processRootBeforeSave'](_0x108c87);const _0x59e9c5=this['editor']['data']['toView'](_0x108c87,{}),_0x49100d=Array['from'](_0x59e9c5['getChildren']())['map'](_0x38cfdd=>this['_getViewJson'](_0x38cfdd));return JSON['stringify'](_0x49100d);}['_getViewJson'](_0xd2b512){if(_0xd2b512['is']('$text'))return _0xd2b512['data'];{const _0x1209b2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2e8b6c=_0xd2b512,_0x34396b=this['editor']['data']['htmlProcessor']['domConverter'],_0x1ec070={'type':_0x1209b2['_getTypeCharForViewElement'](_0x2e8b6c),'name':_0x2e8b6c['name'],'attributes':Array['from'](_0x2e8b6c['getAttributes']()),'children':Array['from'](_0x2e8b6c['getChildren']())['map'](_0x51a0cf=>this['_getViewJson'](_0x51a0cf))};if(_0xd2b512['is']('uiElement')&&'$comment'!=_0xd2b512['name']){const _0x4cd740=_0xd2b512['render'](_0x34396b['domDocument'],_0x34396b);_0x1ec070['children']['push'](_0x4cd740['outerHTML']);}else{if(_0xd2b512['is']('rawElement')){const _0x14c575=_0x34396b['domDocument']['createElement'](_0x2e8b6c['name']);_0xd2b512['render'](_0x14c575,_0x34396b),_0x1ec070['children']['push'](_0x14c575['innerHTML']);}}const _0x29b354=Array['from'](_0x2e8b6c['getCustomProperties']());_0x29b354['length']>0x0&&(_0x1ec070['customProperties']=_0x29b354);const _0x3e9432=_0x2e8b6c['getFillerOffset']();return null!==_0x3e9432&&(_0x1ec070['fillerOffset']=_0x3e9432),_0x1ec070;}}['_markChanges'](_0x1b3f92,_0x585cb9,_0x2e9a52,_0x30e8cd,_0xfb8105){let _0x3dae3f=null,_0x40b668=null,_0x9ea40d=0x0;const _0x4f03ff=this['editor']['model'];for(let _0x4e667d=0x0;_0x4e667d<_0x585cb9['length'];_0x4e667d++){const _0x2a92a4=this['_getVidAttributeName'](_0x585cb9[_0x4e667d]),_0x14c53f=_0x585cb9[_0x4e667d]['item']['getAttribute'](_0x2a92a4),_0x42ceb1=_0x2e9a52['get'](_0x14c53f),_0x4044d3=_0x4e667d==_0x585cb9['length']-0x1;(!_0x3dae3f&&_0x42ceb1&&(_0x3dae3f=_0x42ceb1,_0x40b668=_0x585cb9[_0x4e667d]),_0x3dae3f&&(!_0x42ceb1||_0x42ceb1['userId']!=_0x3dae3f['userId']))&&(_0x1ce83e(_0x42ceb1,F(_0x40b668,_0x1b3f92,_0x4f03ff),F(_0x585cb9[_0x4e667d],_0x1b3f92,_0x4f03ff)),_0x3dae3f=_0x42ceb1||null,_0x40b668=_0x42ceb1?_0x585cb9[_0x4e667d]:null),_0x3dae3f&&_0x4044d3&&_0x1ce83e(_0x42ceb1,F(_0x40b668,_0x1b3f92,_0x4f03ff),B(_0x585cb9[_0x4e667d],_0x1b3f92,_0x4f03ff));}function _0x1ce83e(_0x4b9d8c,_0x2a6be9,_0x573ba4){const _0x2c6c0e=_0x3dae3f['userId'],_0x9fa2='revision:'+_0x30e8cd+':'+_0x2c6c0e+':'+_0x9ea40d++,_0x43aaed=_0x4f03ff['createRange'](_0x2a6be9,_0x573ba4);_0x1b3f92['markers']['set'](_0x9fa2,_0x43aaed),null!==_0x2c6c0e&&_0xfb8105['add'](_0x2c6c0e);}}['_getVidAttributeName'](_0xc5c0d3){switch(_0xc5c0d3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4405d2,_0x123705){_0x4405d2['baseVersion']=null;for(const _0x1e9b0d in _0x4405d2){const _0x25c754=_0x4405d2[_0x1e9b0d];if(_0x25c754 instanceof ft){const _0x375f7f=_0x123705['get'](_0x25c754['root']['rootName']);_0x4405d2[_0x1e9b0d]=this['_fixPosition'](_0x25c754,_0x375f7f);}if(_0x25c754 instanceof lt){const _0x4b90cb=_0x123705['get'](_0x25c754['root']['rootName']);_0x4405d2[_0x1e9b0d]=this['_fixRange'](_0x25c754,_0x4b90cb);}'root'===_0x1e9b0d&&(_0x4405d2['root']=_0x123705['get'](_0x4405d2['root']['rootName']));}}['_fixRange'](_0x1645b5,_0x2192f6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1645b5['start'],_0x2192f6),this['_fixPosition'](_0x1645b5['end'],_0x2192f6));}['_fixPosition'](_0x3eaa08,_0x3e14c7){return this['editor']['model']['createPositionFromPath'](_0x3e14c7,_0x3eaa08['path'],_0x3eaa08['stickiness']);}['_handleInsertOperation'](_0x53759a){const _0x557072=this['_idsRoots']['get'](_0x53759a['position']['root']['rootName']),_0x3a82e3=this['_fixPosition'](_0x53759a['position'],_0x557072),_0x1c7b87=null===_0x53759a['_authorId']?null:_0x53759a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x158bba=_0x3a82e3['parent'],_0x412ba8=this['_revisionId'],_0x41c5c8=[];for(const _0x59098d of _0x53759a['nodes'])if(_0x59098d['is']('element'))_0x41c5c8['push'](this['_makeIdsRoot'](_0x59098d));else{for(let _0x3a0430=0x0;_0x3a0430<_0x59098d['offsetSize'];_0x3a0430++)_0x41c5c8['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x182fb8=this['_revisionId'];for(let _0x586632=_0x412ba8;_0x586632<_0x182fb8;_0x586632++)this['_touched']['set'](_0x586632,{'userId':_0x1c7b87});_0x158bba['_insertChild'](_0x3a82e3['offset'],_0x41c5c8);}['_handleMoveOperation'](_0x1d937b){(_0x1d937b=this['_cloneOperation'](_0x1d937b,this['_idsRoots']))['_execute']();const _0xdcd3e6=null===_0x1d937b['_authorId']?null:_0x1d937b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x350b41=_0x1d937b['getMovedRangeStart'](),_0x553ec1=_0x350b41['parent'],_0xecb62c=_0x350b41['offset'];!function _0x8203c3(_0x4de6cb,_0xc632d0,_0x3baf0f,_0x33b896){for(let _0x14db60=_0x3baf0f;_0x14db60<_0x33b896;_0x14db60++){const _0x5dbb21=_0xc632d0['getChild'](_0x14db60);_0x5dbb21['is']('element','$text')?_0x4de6cb['set'](_0x5dbb21['getAttribute']('vid'),{'userId':_0xdcd3e6}):(_0x4de6cb['set'](_0x5dbb21['getAttribute']('vid_start'),{'userId':_0xdcd3e6}),_0x8203c3(_0x4de6cb,_0x5dbb21,0x0,_0x5dbb21['childCount']),_0x4de6cb['set'](_0x5dbb21['getAttribute']('vid_end'),{'userId':_0xdcd3e6}));}}(this['_touched'],_0x553ec1,_0xecb62c,_0xecb62c+_0x1d937b['howMany']);}['_handleMergeOperation'](_0x5f2ab7){const _0x76df15=null===(_0x5f2ab7=this['_cloneOperation'](_0x5f2ab7,this['_idsRoots']))['_authorId']?null:_0x5f2ab7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d55fd=_0x5f2ab7['targetPosition']['parent'],_0x374e14=_0x5f2ab7['sourcePosition']['parent'],_0x140d2e=_0x5d55fd['getAttribute']('vid_end'),_0x2ce5e1=_0x374e14['getAttribute']('vid_start');_0x5d55fd['_setAttribute']('vid_end',_0x374e14['getAttribute']('vid_end')),_0x374e14['_setAttribute']('vid_end',_0x140d2e),this['_touched']['set'](_0x2ce5e1,{'userId':_0x76df15}),this['_touched']['set'](_0x140d2e,{'userId':_0x76df15}),_0x5f2ab7['_execute']();}['_handleSplitOperation'](_0x2fdf3e){const _0xc3afb8=null===(_0x2fdf3e=this['_cloneOperation'](_0x2fdf3e,this['_idsRoots']))['_authorId']?null:_0x2fdf3e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe1bc01=_0x2fdf3e['graveyardPosition'],_0x5f07c5=_0x2fdf3e['splitPosition']['parent'];_0x2fdf3e['_execute']();const _0x242de5=_0x5f07c5['getAttribute']('vid_end'),_0x1d3ba4=_0x2fdf3e['insertionPosition']['nodeAfter'];if(_0xe1bc01){const _0x53c29c=_0x1d3ba4['getAttribute']('vid_end'),_0x531f68=_0x5f07c5['getAttribute']('vid_end');_0x5f07c5['_setAttribute']('vid_end',_0x53c29c),_0x1d3ba4['_setAttribute']('vid_end',_0x531f68),this['_touched']['set'](_0x5f07c5['getAttribute']('vid_end'),{'userId':_0xc3afb8}),this['_touched']['set'](_0x1d3ba4['getAttribute']('vid_start'),{'userId':_0xc3afb8});}else{const _0x5ec741=this['_revisionId']++,_0x5700de=this['_revisionId']++;_0x5f07c5['_setAttribute']('vid_end',_0x5ec741),_0x1d3ba4['_setAttribute']('vid_start',_0x5700de),_0x1d3ba4['_setAttribute']('vid_end',_0x242de5),this['_touched']['set'](_0x5ec741,{'userId':_0xc3afb8}),this['_touched']['set'](_0x5700de,{'userId':_0xc3afb8});}}['_handleMarkerOperation'](_0x157d93){if(!_0x157d93['affectsData'])return;const _0xd342d7=(_0x157d93=this['_cloneOperation'](_0x157d93,this['_diffRoots']))['oldRange']?_0x157d93['oldRange']['root']:null,_0x4a7a06=_0x157d93['newRange']?_0x157d93['newRange']['root']:null;_0xd342d7&&this['_markers']['delete'](_0x157d93['name']),_0x4a7a06&&this['_markers']['set'](_0x157d93['name'],_0x157d93['newRange']['clone']());const _0x5fcccb=null===_0x157d93['_authorId']?null:_0x157d93['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xce7710=_0x157d93['name'];if(!this['_touchedMarkers']['has'](_0xce7710))return void this['_touchedMarkers']['set'](_0xce7710,{'range':_0x157d93['oldRange'],'userId':_0x5fcccb});const _0x2f7fd6=this['_touchedMarkers']['get'](_0xce7710),_0x3343f1=_0x2f7fd6['range'],_0x1c217b=_0x157d93['newRange'];null==_0x3343f1&&null==_0x1c217b||_0x3343f1&&_0x1c217b&&_0x3343f1['isEqual'](_0x1c217b)?this['_touchedMarkers']['delete'](_0x157d93['name']):_0x2f7fd6['userId']=_0x5fcccb;}['_handleRootOperation'](_0x11df8d,_0x2af500){this['_diffRoots']['has'](_0x11df8d['rootName'])?this['_diffRoots']['get'](_0x11df8d['rootName'])['_isAttached']=_0x11df8d['isAdd']:(this['_diffRoots']['set'](_0x11df8d['rootName'],P(_0x11df8d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x11df8d['rootName'],{}),_0x2af500&&this['_idsRoots']['set'](_0x11df8d['rootName'],P(_0x11df8d['rootName'],!0x0)));const _0x360770=null===_0x11df8d['_authorId']?null:_0x11df8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1527ba=this['_touchedRoots']['get'](_0x11df8d['rootName']);_0x1527ba&&_0x1527ba['userId']===_0x360770?this['_touchedRoots']['delete'](_0x11df8d['rootName']):this['_touchedRoots']['set'](_0x11df8d['rootName'],{'userId':_0x360770,'isAttached':_0x11df8d['isAdd']});}['_handleRootAttributeOperation'](_0x4af867){const _0x35f1ad=this['_diffRootsAttributes']['get'](_0x4af867['root']['rootName']);null===_0x4af867['newValue']?delete _0x35f1ad[_0x4af867['key']]:_0x35f1ad[_0x4af867['key']]=_0x4af867['newValue'];}}function N(_0x20e8b6){const _0x49e341=P(_0x20e8b6['rootName'],_0x20e8b6['isAttached']());for(const _0x1e2446 of _0x20e8b6['getChildren']()){const _0x2a033b=_0x1e2446['_clone'](!0x0);_0x49e341['_appendChild'](_0x2a033b);}return _0x49e341;}function P(_0x57ec21,_0x156aef=!0x0){const _0x2dae3e=new vt();return _0x2dae3e['rootName']=_0x57ec21,_0x2dae3e['_isAttached']=_0x156aef,_0x2dae3e['isAttached']=()=>_0x2dae3e['_isAttached'],_0x2dae3e;}function F(_0x5497ec,_0x2e190b,_0x38a633){const _0x180c10='elementEnd'==_0x5497ec['type']?_0x38a633['createPositionAt'](_0x5497ec['item'],'end'):_0x38a633['createPositionBefore'](_0x5497ec['item']);return _0x38a633['createPositionFromPath'](_0x2e190b,_0x180c10['path'],_0x180c10['stickiness']);}function B(_0x467884,_0x27e3d9,_0x511aa6){const _0x720967='elementStart'==_0x467884['type']?_0x511aa6['createPositionAt'](_0x467884['item'],0x0):_0x511aa6['createPositionAfter'](_0x467884['item']);return _0x511aa6['createPositionFromPath'](_0x27e3d9,_0x720967['path'],_0x720967['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1fa8c2,_0x39196f){super(_0x1fa8c2),this['focusTracker']=new _0x4715eb(),this['keystrokes']=new _0x325c27(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x39196f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5a0fff(this);}['render'](){super['render'](),_0x106f11({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x15407c=_0x2e3e1c=>_0x2e3e1c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x15407c),this['keystrokes']['set']('arrowleft',_0x15407c),this['keystrokes']['set']('arrowup',_0x15407c),this['keystrokes']['set']('arrowdown',_0x15407c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4e367d){this['revisionNameInputView']['fieldView']['element']['value']=_0x4e367d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xa05664){const _0x58a849=new _0x48fea2(this['locale'],_0x36affa),_0x4b6ffd=_0x58a849['fieldView'];_0x4b6ffd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3a24cf=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0xa05664&&(_0x3a24cf+='\x20('+g(this['locale'],'optional')+')'),(_0x58a849['label']=_0x3a24cf,_0x4b6ffd['on']('input',()=>{this['revisionNameInputValue']=_0x4b6ffd['element']['value']['trim']();}),_0x58a849);}}class f extends _0x728dfc{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x207183=this['editor'],_0x1f4780=_0x207183['plugins']['get']('RevisionTracker');_0x207183['ui']['componentFactory']['add']('revisionHistory',_0x4e7b1f=>{const _0x470182=_0xa51226(_0x4e7b1f),_0x5540bc=_0x470182['panelView']['children'],_0x108a4b=new _0x48e2a1(_0x4e7b1f),_0x37ef35=new _0x29ab49(_0x4e7b1f),_0x5b8aca=new te(_0x4e7b1f),_0x5847d4=new _0x29ab49(_0x4e7b1f),_0x54bcbb=new te(_0x4e7b1f);return _0x470182['bind']('isEnabled')['to'](_0x1f4780,'isReady',_0x1f4780,'isEnabled',_0x207183,'isReadOnly',(_0x5001d3,_0x55bada,_0x5bfa3a)=>_0x5001d3&&_0x55bada&&!_0x5bfa3a),_0x470182['buttonView']['set']({'icon':_0x1e9784,'label':g(_0x4e7b1f,'Revision\x20history'),'tooltip':!0x0}),_0x5b8aca['set']({'label':g(_0x4e7b1f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5b8aca['bind']('isEnabled')['to'](_0x1f4780,'isReady',_0x1f4780,'isEnabled',_0x207183,'isReadOnly',(_0x30dd61,_0x336e6f,_0x2e2053)=>_0x30dd61&&_0x336e6f&&!_0x2e2053),_0x5b8aca['on']('execute',()=>this['_showDialog']()),_0x54bcbb['set']({'label':g(_0x4e7b1f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x54bcbb['bind']('isEnabled')['to'](_0x1f4780,'isReady',_0x207183,'isReadOnly',(_0x186625,_0x20b33b)=>_0x186625&&!_0x20b33b),_0x54bcbb['on']('execute',()=>{_0x207183['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x470182['isOpen']=!0x1,_0x207183['editing']['view']['focus']();}),_0x37ef35['children']['add'](_0x5b8aca),_0x5847d4['children']['add'](_0x54bcbb),_0x108a4b['role']='menu',_0x108a4b['items']['addMany']([_0x37ef35,_0x5847d4]),_0x5540bc['add'](_0x108a4b),_0x470182;}),_0x207183['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x822647=this['editor'],_0x2b1c43=_0x822647['locale'],_0x151258=new _0x5295df(_0x2b1c43),_0x2761ae=new _0x39ddd8(_0x2b1c43);_0x151258['buttonView']['set']({'icon':_0x1e9784,'label':g(_0x2b1c43,'Revision\x20history')});const _0x1b030c=new _0x2554a8(_0x2b1c43,_0x151258),_0x200aa2=new _0xf8df4a(_0x2b1c43);_0x200aa2['set']({'label':g(_0x2b1c43,'Save\x20current\x20revision')}),_0x200aa2['delegate']('execute')['to'](_0x151258),_0x200aa2['on']('execute',()=>{this['_showDialog']();}),_0x1b030c['children']['add'](_0x200aa2),_0x2761ae['items']['add'](_0x1b030c);const _0x189234=new _0x2554a8(_0x2b1c43,_0x151258),_0x1d8adc=new _0xf8df4a(_0x2b1c43);return _0x1d8adc['set']({'label':g(_0x2b1c43,'Open\x20revision\x20history')}),_0x1d8adc['delegate']('execute')['to'](_0x151258),_0x1d8adc['on']('execute',()=>{_0x822647['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x189234['children']['add'](_0x1d8adc),_0x2761ae['items']['add'](_0x189234),_0x151258['panelView']['children']['add'](_0x2761ae),_0x151258;}['_showDialog'](){const _0x27fa18=this['editor'],_0x1378d3=_0x27fa18['locale'],_0x358794=_0x27fa18['plugins']['get']('Dialog'),_0x4df6db=_0x27fa18['plugins']['get']('RevisionTracker');function _0x51973d(_0x4358cc){_0x27fa18['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4358cc['revisionName']?_0x4358cc['revisionNameInputView']['errorText']=g(_0x1378d3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x27fa18['plugins']['get'](u)['saveRevision']({'name':_0x4358cc['revisionName']}),_0x358794['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x51973d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x358794['show']({'id':'revisionSave','title':g(_0x1378d3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x27fa18['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x358794['hide']()},{'label':g(_0x27fa18['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x337e56){_0x337e56['bind']('isEnabled')['to'](_0x4df6db,'isReady',_0x4df6db,'isEnabled',_0x27fa18,'isReadOnly',(_0x7aafca,_0x476174,_0x26b92d)=>_0x7aafca&&_0x476174&&!_0x26b92d);},'onExecute':()=>_0x51973d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3ecbbe=this['editor'],_0x6f556=_0x3ecbbe['locale'];this['_saveRevisionFormView']=new hs(_0x6f556,_0x3ecbbe['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x189621,_0x371647){super(_0x189621),this['_model']=_0x371647,this['changeId']=_0x371647['id'];const _0x40acca=this['bindTemplate'],_0x4dfb31=g(_0x189621,_0x371647['data']['isSuggestion']?'Suggested\x20by':'add'==_0x371647['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x371647['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x40acca['to']('type',_0x5abddc=>'ck-revision-change__'+_0x5abddc)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4dfb31}]},{'text':'\x20'+_0x371647['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x10c5df(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x132c84){super(),this['id']=_0x132c84['id']||_0xccf9de(),this['author']=_0x132c84['author'],this['type']=_0x132c84['type'],this['data']=_0x132c84['data']||{},this['rootName']=_0x132c84['rootName'],this['set']('createdAt',_0x132c84['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x19b50c,_0x46fabe){this['newRevisionId']=_0x19b50c,this['oldRevisionId']=_0x46fabe,this['changes']=new _0x295397();}['_setChanges'](_0x560c12){for(const _0x1001c8 of _0x560c12)this['changes']['add'](_0x1001c8);}}class m extends _0x728dfc{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xb6588b,_0x2b3d33,I,V];}constructor(_0x3600fe){super(_0x3600fe),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x526423,_0x27edaf,_0x59bf39)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3060f3=>{for(const _0x4d1f1e of this['editor']['editing']['view']['document']['roots'])_0x59bf39?_0x3060f3['removeClass']('ck-editor__editable__overlay',_0x4d1f1e):_0x3060f3['addClass']('ck-editor__editable__overlay',_0x4d1f1e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3c6271=>null!==_0x3c6271),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2aea84,_0x159d2e,_0x76e54d)=>_0x2aea84&&_0x76e54d?_0x159d2e['changes']['getIndex'](_0x76e54d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5f336d,_0x42d541)=>_0x5f336d?_0x42d541['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2b3d33);}['init'](){const _0x1f6fc3=this['editor'],_0x56e33f=new wt(_0x1f6fc3,{'direction':'backward'}),_0x1b7f30=new wt(_0x1f6fc3,{'direction':'forward'});(_0x1f6fc3['commands']['add']('showPreviousChange',_0x56e33f),_0x1f6fc3['commands']['add']('showNextChange',_0x1b7f30),_0x1f6fc3['commands']['add']('restoreRevision',new mt(_0x1f6fc3)),this['on']('change:numberOfChanges',()=>{_0x56e33f['refresh'](),_0x1b7f30['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f6fc3['enableReadOnlyMode']('revision-viewer'),_0x1f6fc3['plugins']['has']('WidgetToolbarRepository'))&&_0x1f6fc3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1280b3){return await this['_utils']['loadRevisionData'](_0x1280b3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1280b3);}async['getRevisionRootsAttributes'](_0x7d0d84){return await this['_utils']['loadRevisionData'](_0x7d0d84,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x7d0d84);}async['compare'](_0x4e5138,_0x555df3,_0x490f67=!0x1){if(!this['isEnabled'])return;const _0x21ca7c=this['diff'],_0x369381=this['repository'],_0x52e5b6='string'==typeof _0x4e5138?_0x369381['getRevision'](_0x4e5138):_0x4e5138,_0x1fecdd='string'==typeof _0x555df3?_0x369381['getRevision'](_0x555df3):_0x555df3,_0x492cb3=_0x52e5b6['id'],_0x3d2027=_0x1fecdd?_0x1fecdd['id']:null;if(!_0x490f67&&this['diff']&&this['diff']['newRevisionId']===_0x492cb3&&this['diff']['oldRevisionId']===_0x3d2027)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x492cb3,_0x3d2027);const _0x24e298=this['_getRevisionsRange'](_0x52e5b6,_0x1fecdd,!0x0)['map'](_0x284394=>this['_utils']['loadRevisionData'](_0x284394,this['adapter']));return _0x24e298['push'](new Promise(_0x1e7e3c=>{setTimeout(_0x1e7e3c,0x14);})),Promise['all'](_0x24e298)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29a754=this['_getDiff'](_0x492cb3,_0x3d2027);for(const _0x398dbc of _0x29a754['changes'])this['_changeIdToChange']['set'](_0x398dbc['id'],_0x398dbc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x48d9eb=>{for(const _0x1a374e of this['editor']['model']['document']['getRootNames']())_0x48d9eb['detachRoot'](_0x1a374e);for(const _0x4f429b of Object['keys'](_0x29a754['model'])){const _0x39fde9=_0x48d9eb['addRoot'](_0x4f429b);for(const _0x4b6fcb of Object['keys'](_0x29a754['attributes'][_0x4f429b]))_0x48d9eb['setAttribute'](_0x4b6fcb,_0x29a754['attributes'][_0x4f429b][_0x4b6fcb],_0x39fde9);_0x48d9eb['insert'](_0x29a754['model'][_0x4f429b],_0x39fde9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29a754['changes'])),this['isReady']=!0x0;})['catch'](_0x65fcd4=>{console['error'](_0x65fcd4),this['_cleanUp'](),_0x21ca7c&&(this['diff']=_0x21ca7c),this['isReady']=!0x0;});}['addRevisionData'](_0x3612d9,_0x91ff89){const _0x1ce15f=this['repository']['createRevision'](_0x3612d9);return _0x1ce15f['on']('_update',(_0x22fa2f,_0x16c31e,_0xd87745)=>_0x91ff89(_0x16c31e,_0xd87745,_0x1ce15f)),this['repository']['addRevision'](_0x1ce15f),_0x1ce15f;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e35b4=>{for(const _0xe56cbc of this['editor']['model']['document']['getRootNames']())_0x3e35b4['detachRoot'](_0xe56cbc);});}['_sortAndFilterDiffChanges'](_0x438fb7){const _0x1de27f=[],_0x2fd4af=new Map();for(const _0x3c0e11 of this['editor']['model']['document']['getRootNames']()){const _0x24aa69=this['editor']['editing']['view']['getDomRoot'](_0x3c0e11);if(!_0x24aa69)continue;const _0x35b844=_0x24aa69['getClientRects']()['item'](0x0);_0x35b844&&(_0x1de27f['push'](_0x3c0e11),_0x2fd4af['set'](_0x3c0e11,_0x35b844));}return _0x1de27f['sort']((_0x34d873,_0x39efe7)=>{const _0x2cfdfd=_0x2fd4af['get'](_0x34d873),_0x6af37a=_0x2fd4af['get'](_0x39efe7);return _0x2cfdfd['y']-_0x6af37a['y']||_0x2cfdfd['x']-_0x6af37a['x'];}),(_0x438fb7=_0x438fb7['filter'](_0x55600f=>_0x1de27f['includes'](_0x55600f['rootName'])))['sort']((_0x4ec158,_0x753a02)=>_0x1de27f['indexOf'](_0x4ec158['rootName'])-_0x1de27f['indexOf'](_0x753a02['rootName'])),_0x438fb7;}['_makeTape'](_0x2de131){const _0x5ab249=Array['from'](_0x2de131['markers'])['filter'](([_0x43422b,_0x1f116f])=>_0x43422b['startsWith']('revision:')&&!_0x1f116f['isCollapsed']),_0x32602a=Array['from'](this['editor']['model']['createRangeIn'](_0x2de131)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5ab249['length'])for(const _0x4e5778 of _0x32602a){const [_0x3df169,_0x220240]=_0x5ab249[0x0],[,_0x2a2779,_0x4f1568]=_0x3df169['split'](':');if(_0x220240['end']['isEqual'](_0x4e5778['nextPosition'])&&_0x5ab249['shift'](),(_0x4e5778['previousPosition']['isEqual'](_0x220240['start'])||_0x4e5778['previousPosition']['isAfter'](_0x220240['start']))&&('insertion'==_0x2a2779?_0x4e5778['isAdded']={'userId':_0x4f1568}:'deletion'==_0x2a2779&&(_0x4e5778['isRemoved']={'userId':_0x4f1568})),0x0==_0x5ab249['length'])break;}return _0x32602a;}['_refreshStartEndIndex'](_0x3ee1f1){const _0x32b28e=new Map();for(let _0x2fe551=0x0;_0x2fe551<_0x3ee1f1['length'];_0x2fe551++)'text'===_0x3ee1f1[_0x2fe551]['type']?(_0x3ee1f1[_0x2fe551]['item']['startIndex']=_0x2fe551,_0x3ee1f1[_0x2fe551]['item']['endIndex']=_0x2fe551):('elementStart'===_0x3ee1f1[_0x2fe551]['type']?_0x3ee1f1[_0x2fe551]['item']['startIndex']=_0x2fe551:'elementEnd'===_0x3ee1f1[_0x2fe551]['type']&&(_0x3ee1f1[_0x2fe551]['item']['endIndex']=_0x2fe551),_0x32b28e['set'](_0x3ee1f1[_0x2fe551]['id'],_0x2fe551));for(const _0x5513f3 of _0x32b28e['values']())'elementStart'===_0x3ee1f1[_0x5513f3]['type']?_0x3ee1f1[_0x5513f3]['item']['endIndex']=_0x32b28e['get'](_0x3ee1f1[_0x5513f3]['pairId']):'elementEnd'===_0x3ee1f1[_0x5513f3]['type']&&(_0x3ee1f1[_0x5513f3]['item']['startIndex']=_0x32b28e['get'](_0x3ee1f1[_0x5513f3]['pairId']));}['_processTape'](_0x24a9aa){for(let _0x1b8afd=0x0;_0x1b8afd<_0x24a9aa['length'];_0x1b8afd++){if('elementStart'===_0x24a9aa[_0x1b8afd]['type'])_0x24a9aa[_0x1b8afd]['item']['startIndex']=_0x1b8afd;else{if('elementEnd'===_0x24a9aa[_0x1b8afd]['type']){_0x24a9aa[_0x1b8afd]['item']['endIndex']=_0x1b8afd;const _0x26c5a3=_0x24a9aa[_0x1b8afd]['item']['startIndex'];_0x24a9aa[_0x26c5a3]['pairId']=_0x24a9aa[_0x1b8afd]['id'],_0x24a9aa[_0x1b8afd]['pairId']=_0x24a9aa[_0x26c5a3]['id'];}else _0x24a9aa[_0x1b8afd]['item']['startIndex']=_0x1b8afd,_0x24a9aa[_0x1b8afd]['item']['endIndex']=_0x1b8afd,_0x24a9aa[_0x1b8afd]['pairId']=null;}_0x24a9aa[_0x1b8afd]['markersStart']||(_0x24a9aa[_0x1b8afd]['markersStart']=[],_0x24a9aa[_0x1b8afd]['markersEnd']=[]);}}['_markInsertions'](_0x52218f,_0x1902dc){const _0x3b8f4a=_0x52218f['filter'](_0x48e9f4=>!_0x48e9f4['isAdded']);for(let _0x3b1804=0x0;_0x3b1804<_0x1902dc['length'];_0x3b1804++)_0x1902dc[_0x3b1804]['isAdded']&&(_0x3b8f4a[_0x3b1804]['isAdded']=_0x1902dc[_0x3b1804]['isAdded']);}['_getDiff'](_0x18fb07,_0x397b62=null){const _0x44f73b=this['repository']['getRevision'](_0x18fb07),_0xeb9c46=_0x397b62?this['repository']['getRevision'](_0x397b62):null,_0x385bc2=this['_getRevisionsRange'](_0x44f73b,_0xeb9c46),_0x4e34b5=_0x385bc2[_0x385bc2['length']-0x1],_0x32e328=new Map(),_0x2091a4={'model':{},'attributes':{},'changes':[]},_0x372900=new Set(),_0x719c93=new Map();for(let _0x336631=_0x385bc2['length']-0x1;_0x336631>=0x0;_0x336631--){const _0x47b36c=_0x385bc2[_0x336631];for(const _0xcc8f2c of Object['keys'](_0x47b36c['diffData']))if(_0x47b36c['diffData'][_0xcc8f2c]['attachChange']){const _0x32ed10=_0x47b36c['diffData'][_0xcc8f2c]['attachChange'];_0x32ed10['isAttached']?(_0x372900['add'](_0xcc8f2c),_0x719c93['has'](_0xcc8f2c)&&_0x719c93['get'](_0xcc8f2c)['userId']==_0x32ed10['userId']?_0x719c93['delete'](_0xcc8f2c):_0x719c93['set'](_0xcc8f2c,_0x32ed10)):_0x719c93['has'](_0xcc8f2c)?(_0x372900['delete'](_0xcc8f2c),_0x719c93['delete'](_0xcc8f2c)):(_0x372900['add'](_0xcc8f2c),_0x719c93['set'](_0xcc8f2c,_0x32ed10));}else _0x372900['add'](_0xcc8f2c);}for(const _0x39b1c1 of _0x372900){const _0x2c8d33=_0x719c93['has'](_0x39b1c1)&&!_0x719c93['get'](_0x39b1c1)['isAttached'];let _0x3aa147=_0x2c8d33?_0x385bc2['length']-0x1:0x0;const _0x2a374d=_0x2c8d33?-0x1:0x1;for(;_0x385bc2[_0x3aa147];){const _0x628f2f=_0x385bc2[_0x3aa147];if(_0x628f2f['diffData'][_0x39b1c1]){const _0x416e2b=_0x2c8d33?_0x628f2f['diffData'][_0x39b1c1]['attributesBefore']:_0x628f2f['diffData'][_0x39b1c1]['attributesAfter'];_0x2091a4['attributes'][_0x39b1c1]=_0x416e2b?_0x48cfda(_0x416e2b):{};break;}_0x3aa147+=_0x2a374d;}}for(const _0x70a9ec of _0x385bc2){_0x70a9ec['model']={};for(const _0x318ea8 of _0x70a9ec['authors'])_0x32e328['set'](_0x318ea8['id'],_0x318ea8);for(const _0x38b810 of _0x372900){const _0x3d5f26=_0x70a9ec['diffData'][_0x38b810]?_0x70a9ec['diffData'][_0x38b810]['insertions']:'[]',_0x32b857=_0x70a9ec['diffData'][_0x38b810]?_0x70a9ec['diffData'][_0x38b810]['deletions']:'[]';_0x70a9ec['model'][_0x38b810]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3d5f26),'deletions':this['_utils']['_makeModelFromViewString'](_0x32b857)};}}for(const _0x3683f6 of _0x372900){let _0x15f70f=null,_0x31cf30=0x0;const _0x1ac733=new Map(Array['from'](_0x44f73b['model'][_0x3683f6]['insertions']['markers'])['filter'](([_0xb0cf3f])=>!_0xb0cf3f['startsWith']('revision:')));let _0xfbb27c=0x0;for(const _0x110574 of _0x385bc2){const _0x4c2703=this['_makeTape'](_0x110574['model'][_0x3683f6]['insertions']);_0x110574==_0x44f73b?(_0x15f70f=_0x4c2703,_0x31cf30=_0x15f70f['length'],_0x15f70f['forEach'](_0x221caf=>{_0x221caf['id']=_0xfbb27c++;}),this['_processTape'](_0x15f70f)):this['_markInsertions'](_0x15f70f,_0x4c2703);const _0x216852=_0x15f70f['filter'](_0x68654f=>!_0x68654f['isAdded'])['map'](_0x455258=>_0x455258['id']);let _0x3bc76d=0x0;const _0x119ddd=this['_makeTape'](_0x110574['model'][_0x3683f6]['deletions']);_0x119ddd['forEach'](_0xb212ca=>{_0xb212ca['isRemoved']?_0xb212ca['id']=_0x31cf30++:_0xb212ca['id']=_0x216852[_0x3bc76d++];}),this['_processTape'](_0x119ddd),this['_setDistance'](_0x15f70f,'isAdded'),this['_setDistance'](_0x119ddd,'isRemoved'),_0x110574==_0x44f73b&&this['_markMarkers'](_0x15f70f,_0x1ac733),_0x15f70f=this['_joinTapes'](_0x15f70f,_0x119ddd),this['_refreshStartEndIndex'](_0x15f70f),this['_setDistance'](_0x15f70f,'isRemoved');}_0x15f70f=_0x15f70f['filter'](_0x4fb117=>!(_0x4fb117['isAdded']&&_0x4fb117['isRemoved']));const _0x516c98=new Map(_0x4e34b5['model'][_0x3683f6]['deletions']['markers']),_0x5c88e2=new Set(_0x1ac733['keys']());for(const _0x3e96a0 of _0x516c98['keys']())_0x5c88e2['delete'](_0x3e96a0);this['_markSuggestions'](_0x15f70f,_0x5c88e2),this['_fixObsoleteTags'](_0x15f70f),_0x15f70f=this['_removeMissingPairs'](_0x15f70f),_0x15f70f=this['_markMismatchedRemovedTags'](_0x15f70f),_0x15f70f=this['_removeUnsupportedChanges'](_0x15f70f);const {root:_0x158af7,changes:_0x13a45e}=this['_makeModelFromTape'](_0x15f70f,_0x32e328,_0x3683f6);_0x2091a4['model'][_0x3683f6]=_0x158af7;const _0x70629a=_0x719c93['get'](_0x3683f6);if(_0x70629a){const _0x11d79d=_0x32e328['get'](_0x70629a['userId']),_0x4f5f49=new r({'author':_0x11d79d,'type':_0x70629a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3683f6});_0x13a45e['unshift'](_0x4f5f49),_0x2091a4['attributes'][_0x3683f6]['revisionHistoryAttachChange']=_0x4f5f49['id'];}_0x2091a4['changes']=_0x2091a4['changes']['concat'](_0x13a45e);}return _0x2091a4;}['_markMarkers'](_0x2fd9ca,_0x27f871){for(let _0x47f63c=0x0;_0x47f63c<_0x2fd9ca['length'];_0x47f63c++)for(const [_0x53d8ab,_0x3f73dc]of _0x27f871)!_0x3f73dc['isCollapsed']&&_0x3f73dc['start']['isEqual'](_0x2fd9ca[_0x47f63c]['previousPosition'])&&_0x2fd9ca[_0x47f63c]['markersStart']['push'](_0x53d8ab),_0x3f73dc['end']['isEqual'](_0x2fd9ca[_0x47f63c]['nextPosition'])&&_0x2fd9ca[_0x47f63c]['markersEnd']['push'](_0x53d8ab);}['_joinTapes'](_0x11d3b6,_0x31fb33){let _0x1c9b98=[],_0x852173=0x0,_0x2f983b=0x0;for(;_0x852173<_0x11d3b6['length']||_0x2f983b<_0x31fb33['length'];){const _0xb51f1b=_0x11d3b6[_0x852173]||{},_0x2f195b=_0x31fb33[_0x2f983b]||{};if(_0xb51f1b['id']==_0x2f195b['id'])_0x852173++,_0x2f983b++,_0x1c9b98['push'](_0xb51f1b);else{if(_0x2f195b['isRemoved']&&_0xb51f1b['isAdded']){const {commonTape:_0x511b9a,iEnd:_0x490586,jEnd:_0x5e452d}=this['_threeWayMerge'](_0x11d3b6,_0x852173,_0x31fb33,_0x2f983b);_0x1c9b98=_0x1c9b98['concat'](_0x511b9a),_0x852173=_0x490586,_0x2f983b=_0x5e452d;}else _0x2f195b['isRemoved']?(_0x2f983b++,_0x1c9b98['push'](_0x2f195b)):(_0x852173++,_0x1c9b98['push'](_0xb51f1b));}}return _0x1c9b98;}['_markSuggestions'](_0x3e5c4e,_0x43a9e1){const _0x4d8d27=[];for(let _0x158799=0x0;_0x158799<_0x3e5c4e['length'];_0x158799++){for(let _0x202a60=0x0;_0x202a60<_0x3e5c4e[_0x158799]['markersStart']['length'];_0x202a60++){const _0x4df05d=_0x3e5c4e[_0x158799]['markersStart'][_0x202a60];if(!_0x43a9e1['has'](_0x4df05d))continue;const {group:_0x4f3aa6,type:_0x536e0c,authorId:_0xd9291f}=_0x25f77d(_0x4df05d);'revision-suggestion'!=_0x4f3aa6||'insertion'!=_0x536e0c&&'deletion'!=_0x536e0c||(_0x4d8d27['unshift']({'type':_0x536e0c,'name':_0x4df05d,'userId':_0xd9291f}),_0x3e5c4e[_0x158799]['markersStart']['splice'](_0x202a60,0x1),_0x202a60--);}_0x4c71cc(_0x3e5c4e[_0x158799]);for(let _0x21a952=0x0;_0x21a952<_0x3e5c4e[_0x158799]['markersEnd']['length'];_0x21a952++){const _0x3998ca=_0x3e5c4e[_0x158799]['markersEnd'][_0x21a952];if(!_0x43a9e1['has'](_0x3998ca))continue;const {group:_0x1eeee6,type:_0x36e8b2}=_0x25f77d(_0x3998ca);if('revision-suggestion'!=_0x1eeee6||'insertion'!=_0x36e8b2&&'deletion'!=_0x36e8b2)continue;_0x3e5c4e[_0x158799]['markersEnd']['splice'](_0x21a952,0x1),_0x21a952--;const _0xfa3249=_0x4d8d27['findIndex'](_0x3f0718=>_0x3f0718['name']==_0x3998ca);_0xfa3249>-0x1&&_0x4d8d27['splice'](_0xfa3249,0x1);}}function _0x25f77d(_0x379dd6){const _0x39e889=_0x379dd6['split'](':');return{'group':_0x39e889[0x0],'type':_0x39e889[0x1],'subType':_0x39e889['length']>=0x5?_0x39e889[0x2]:null,'id':_0x39e889['length']<0x5?_0x39e889[0x2]:_0x39e889[0x3],'authorId':_0x39e889['length']<0x5?_0x39e889[0x3]:_0x39e889[0x4],'markerCount':0x6==_0x39e889['length']?_0x39e889[0x5]:null};}function _0x4c71cc(_0x539108){for(let _0x49b6e8=0x0;_0x49b6e8<_0x4d8d27['length'];_0x49b6e8++){if(_0x539108['isAdded']&&'insertion'==_0x4d8d27[_0x49b6e8]['type'])return _0x539108['isAddSuggestion']=_0x4d8d27[_0x49b6e8],void delete _0x539108['isAdded'];if(!_0x539108['isAdded']&&!_0x539108['isRemoved']&&'deletion'==_0x4d8d27[_0x49b6e8]['type'])return void(_0x539108['isRemoveSuggestion']=_0x4d8d27[_0x49b6e8]);}}}['_setDistance'](_0x7d5852,_0x3c4288){let _0x1c23fe=0x0,_0x42d50a=!0x1;const _0x2d01e7=new Map();for(const _0x3087e9 of _0x7d5852)_0x3087e9[_0x3c4288]?_0x42d50a&&(_0x1c23fe++,_0x42d50a=!0x1):(_0x1c23fe++,_0x42d50a=!0x0),_0x2d01e7['set'](_0x3087e9['id'],_0x1c23fe);for(let _0x3d47f4=0x0;_0x3d47f4<_0x7d5852['length'];_0x3d47f4++){if('isRemoved'==_0x3c4288&&_0x7d5852[_0x3d47f4]['isAdded']||'isAdded'==_0x3c4288&&_0x7d5852[_0x3d47f4]['isRemoved'])continue;if('text'==_0x7d5852[_0x3d47f4]['type']){_0x7d5852[_0x3d47f4]['distance']=0x0;continue;}const _0x46bf97=_0x2d01e7['get'](_0x7d5852[_0x3d47f4]['pairId']),_0x3bc5bd=_0x2d01e7['get'](_0x7d5852[_0x3d47f4]['id']);_0x7d5852[_0x3d47f4]['distance']=_0x46bf97-_0x3bc5bd;}}['_getRevisionsRange'](_0xa08661,_0x4acc26,_0x158c92=!0x1){const _0x4120c7=[];let _0x530be0=this['repository']['getIndex'](_0xa08661),_0x403159=this['repository']['getIndex'](_0x4acc26);for(-0x1==_0x403159&&(_0x403159=this['repository']['_revisions']['length'],_0x158c92=!0x1);_0x530be0<_0x403159;)_0x4120c7['push'](this['repository']['getRevision'](_0x530be0)),_0x530be0++;return _0x158c92&&_0x4120c7['push'](this['repository']['getRevision'](_0x530be0)),_0x4120c7;}['_threeWayMerge'](_0x42df3e,_0x335008,_0xc20981,_0x477d66){const _0x3b6712=this['editor']['model']['schema'];let _0x1ac805=_0x335008;for(;_0x42df3e[_0x1ac805]&&_0x42df3e[_0x1ac805]['isAdded'];)_0x1ac805++;let _0x45f995=_0x477d66;for(;_0xc20981[_0x45f995]&&_0xc20981[_0x45f995]['isRemoved'];)_0x45f995++;_0x437fbd(_0x42df3e,_0x335008,_0x1ac805),_0x437fbd(_0xc20981,_0x477d66,_0x45f995);const _0x31a7fa=_0xc20981['slice'](_0x477d66,_0x45f995)['concat'](_0x42df3e['slice'](_0x335008,_0x1ac805));return _0x31a7fa['sort']((_0x291514,_0x5e8524)=>_0x291514['side']!=_0x5e8524['side']?_0x291514['side']-_0x5e8524['side']:_0x291514['level']!=_0x5e8524['level']?_0x291514['level']-_0x5e8524['level']:_0x291514['distance']!=_0x5e8524['distance']?_0x5e8524['distance']-_0x291514['distance']:!!_0x291514['isAdded']!=!!_0x5e8524['isAdded']?-0x1==_0x291514['side']||0x0==_0x291514['side']?_0x291514['isAdded']?-0x1:0x1:_0x291514['isAdded']?0x1:-0x1:_0x291514['index']-_0x5e8524['index']),{'commonTape':_0x31a7fa,'iEnd':_0x1ac805,'jEnd':_0x45f995};function _0x437fbd(_0x142f99,_0x4e3846,_0xc9f0d0){let _0x3f19dd=-0x1,_0x561331=Number['POSITIVE_INFINITY'],_0x45e05d=!0x0;for(let _0x34d841=_0x4e3846;_0x34d841<_0xc9f0d0;_0x34d841++)if(_0x3b6712['isInline'](_0x142f99[_0x34d841]['item'])||(_0x45e05d=!0x1),_0x142f99[_0x34d841]['item']['startIndex']<_0x4e3846&&(_0x3f19dd=_0x34d841),_0x142f99[_0x34d841]['item']['endIndex']>=_0xc9f0d0){_0x561331=_0x34d841;break;}_0x45e05d&&(_0x3f19dd=_0xc9f0d0-0x1);for(let _0x131c31=_0x4e3846;_0x131c31<_0xc9f0d0;_0x131c31++)_0x142f99[_0x131c31]['side']=_0x131c31<=_0x3f19dd?-0x1:_0x131c31<_0x561331?0x0:0x1,_0x142f99[_0x131c31]['index']=_0x131c31;let _0x349908=0x0;for(let _0x28d5a9=_0x4e3846;_0x28d5a9<=_0x3f19dd;_0x28d5a9++)0x0==_0x142f99[_0x28d5a9]['distance']?_0x142f99[_0x28d5a9]['level']=_0x349908:(_0x349908++,_0x142f99[_0x28d5a9]['level']=_0x349908,_0x349908++);for(let _0x19f9de=_0x4e3846;_0x19f9de<_0xc9f0d0;_0x19f9de++)0x0==_0x142f99[_0x19f9de]['side']&&(_0x142f99[_0x19f9de]['level']=_0x349908);_0x349908=0x0;for(let _0x231bc0=_0xc9f0d0-0x1;_0x231bc0>=_0x561331;_0x231bc0--)0x0==_0x142f99[_0x231bc0]['distance']?_0x142f99[_0x231bc0]['level']=_0x349908:(_0x349908--,_0x142f99[_0x231bc0]['level']=_0x349908,_0x349908--);}}['_fixObsoleteTags'](_0x194fcc){const _0x477990=new Map(),_0x86dbb4=this['editor']['model']['schema'];for(let _0x256608=0x1;_0x256608<_0x194fcc['length'];_0x256608++){let _0x5c4799,_0x2fd3cc,_0x348466;const _0x24c69c=_0x194fcc[_0x256608],_0x55332c=_0x194fcc[_0x256608-0x1];if('text'==_0x24c69c['type'])continue;if(_0x24c69c['type']!=_0x55332c['type'])continue;if(!_0x86dbb4['isBlock'](_0x55332c['item'])||_0x86dbb4['isLimit'](_0x55332c['item']))continue;if(!_0x86dbb4['isBlock'](_0x24c69c['item'])||_0x86dbb4['isLimit'](_0x24c69c['item']))continue;if((_0x194fcc[_0x256608]['isAdded']||_0x194fcc[_0x256608]['isAddSuggestion'])&&_0x194fcc[_0x256608-0x1]['isRemoved'])_0x5c4799=_0x194fcc[_0x256608],_0x2fd3cc=_0x194fcc[_0x256608-0x1],_0x348466=_0x256608-0x1;else{if(!_0x194fcc[_0x256608]['isRemoved']||!_0x194fcc[_0x256608-0x1]['isAdded']&&!_0x194fcc[_0x256608-0x1]['isAddSuggestion'])continue;_0x5c4799=_0x194fcc[_0x256608-0x1],_0x2fd3cc=_0x194fcc[_0x256608],_0x348466=_0x256608;}const _0x522df4=_0x5c4799['level']==_0x2fd3cc['level'],_0x2d041d=Math['abs'](_0x5c4799['level'])<Math['abs'](_0x2fd3cc['level'])&&0x0==_0x2fd3cc['distance'];(_0x522df4||_0x2d041d)&&(_0x477990['set'](_0x2fd3cc['id'],_0x5c4799['id']),_0x194fcc['splice'](_0x348466,0x1),_0x256608--,_0x5c4799['isAdded']=!0x1);}for(let _0x51027e=0x0;_0x51027e<_0x194fcc['length'];_0x51027e++)_0x477990['has'](_0x194fcc[_0x51027e]['pairId'])&&(_0x194fcc[_0x51027e]['pairId']=_0x477990['get'](_0x194fcc[_0x51027e]['pairId']));}['_removeMissingPairs'](_0x4605a2){const _0x2a6985=new Set(_0x4605a2['map'](_0x29b2d2=>_0x29b2d2['id']));for(let _0x2b3d4b=0x0;_0x2b3d4b<_0x4605a2['length'];_0x2b3d4b++)_0x2a6985['has'](_0x4605a2[_0x2b3d4b]['pairId'])||0x0==_0x4605a2[_0x2b3d4b]['distance']||(_0x4605a2[_0x2b3d4b]['isIncorrect']=!0x0);return _0x4605a2['filter'](_0x596511=>!_0x596511['isIncorrect']);}['_markMismatchedRemovedTags'](_0x406ce9){const _0xaae57=new Set();for(let _0xd43ac3=0x0;_0xd43ac3<_0x406ce9['length'];_0xd43ac3++){if(_0xaae57['has'](_0x406ce9[_0xd43ac3]['id'])&&_0x406ce9[_0xd43ac3]['isRemoved']&&(_0x406ce9[_0xd43ac3]['isIncorrect']=!0x0),_0x406ce9[_0xd43ac3]['isIncorrect'])continue;if(0x0==_0x406ce9[_0xd43ac3]['distance'])continue;if('elementStart'!=_0x406ce9[_0xd43ac3]['type'])continue;if(null==_0x406ce9[_0xd43ac3]['pairId'])continue;let _0x5a45b4=_0xd43ac3+0x1,_0x1f2716=0x0;for(;_0x406ce9[_0x5a45b4]['id']!=_0x406ce9[_0xd43ac3]['pairId'];)'elementStart'==_0x406ce9[_0x5a45b4]['type']?_0x1f2716++:'elementEnd'==_0x406ce9[_0x5a45b4]['type']&&_0x1f2716--,_0x5a45b4++;if(0x0!=_0x1f2716){if(_0x406ce9[_0xd43ac3]['isRemoved'])_0x406ce9[_0xd43ac3]['isIncorrect']=!0x0;else{for(;_0x5a45b4!=_0xd43ac3;)_0x406ce9[_0x5a45b4]['isRemoved']&&0x0!=_0x406ce9[_0x5a45b4]['distance']&&(_0x406ce9[_0x5a45b4]['isIncorrect']=!0x0,_0xaae57['add'](_0x406ce9[_0x5a45b4]['pairId'])),_0x5a45b4--;}}}return _0x406ce9['filter'](_0xf0197=>!_0xf0197['isIncorrect']);}['_removeUnsupportedChanges'](_0x5b36a8){const _0x6a7dd7=this['editor']['model']['schema'];for(let _0x3b5a3b=0x0;_0x3b5a3b<_0x5b36a8['length'];_0x3b5a3b++){if(!(_0x5b36a8[_0x3b5a3b]['isAdded']||_0x5b36a8[_0x3b5a3b]['isAddSuggestion']||_0x5b36a8[_0x3b5a3b]['isRemoved']||_0x5b36a8[_0x3b5a3b]['isRemoveSuggestion']))continue;if(0x0==_0x5b36a8[_0x3b5a3b]['distance'])continue;const _0x550cb8=_0x5b36a8[_0x3b5a3b]['item'];_0x6a7dd7['isBlock'](_0x550cb8)||_0x6a7dd7['isLimit'](_0x550cb8)||(_0x5b36a8[_0x3b5a3b]['isAdded']&&delete _0x5b36a8[_0x3b5a3b]['isAdded'],_0x5b36a8[_0x3b5a3b]['isAddSuggestion']&&delete _0x5b36a8[_0x3b5a3b]['isAddSuggestion'],_0x5b36a8[_0x3b5a3b]['isRemoveSuggestion']&&delete _0x5b36a8[_0x3b5a3b]['isRemoveSuggestion'],_0x5b36a8[_0x3b5a3b]['isRemoved']&&(_0x5b36a8[_0x3b5a3b]['isIncorrect']=!0x0));}return _0x5b36a8['filter'](_0x5d071a=>!_0x5d071a['isIncorrect']);}['_makeModelFromTape'](_0x396479,_0x1194a5,_0x226d57){const _0x5962b7=new vt(),_0x4c8c59=[],_0x4da059=new Map(),_0x5956b1=this['editor']['model'],_0x14fe98=_0x5956b1['schema'],_0xa05ca3=[_0x5962b7],_0x357ed1={},_0x35b9c3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xfd025f=null;const _0x46dd85=[0x0];for(let _0x36d9c5=0x0;_0x36d9c5<_0x396479['length'];_0x36d9c5++)if('elementStart'===_0x396479[_0x36d9c5]['type']){_0x396479[_0x36d9c5]['previousPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85);const _0x1f5acf=new ut(_0x396479[_0x36d9c5]['item']['name'],_0x396479[_0x36d9c5]['item']['getAttributes']());_0xa05ca3[0x0]['_appendChild'](_0x1f5acf),_0x46dd85['push'](0x0),_0xa05ca3['unshift'](_0x1f5acf),_0x396479[_0x36d9c5]['nextPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85);}else'elementEnd'===_0x396479[_0x36d9c5]['type']?(_0xa05ca3['shift'](),_0x396479[_0x36d9c5]['previousPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85),_0x46dd85['pop'](),_0x46dd85[_0x46dd85['length']-0x1]++,_0x396479[_0x36d9c5]['nextPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85)):(_0x396479[_0x36d9c5]['previousPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85),_0xfd025f?_0xfd025f['_data']+=_0x396479[_0x36d9c5]['item']['data']:_0xfd025f=new gt(_0x396479[_0x36d9c5]['item']['data'],_0x396479[_0x36d9c5]['item']['getAttributes']()),_0x396479[_0x36d9c5+0x1]&&'text'===_0x396479[_0x36d9c5+0x1]['type']&&_0x409537(_0xfd025f,_0x396479[_0x36d9c5+0x1]['item'])||(_0xa05ca3[0x0]['_appendChild'](_0xfd025f),_0xfd025f=null),_0x46dd85[_0x46dd85['length']-0x1]+=_0x396479[_0x36d9c5]['item']['offsetSize'],_0x396479[_0x36d9c5]['nextPosition']=_0x5956b1['createPositionFromPath'](_0x5962b7,_0x46dd85));for(let _0x3ed3e5=0x0;_0x3ed3e5<_0x396479['length'];_0x3ed3e5++){const _0x4472d3=_0x396479[_0x3ed3e5]['previousPosition'],_0x11c3fb=_0x396479[_0x3ed3e5]['nextPosition'];for(const _0x53aed of _0x396479[_0x3ed3e5]['markersStart'])_0x4da059['set'](_0x53aed,{'start':_0x4472d3,'end':null});_0x2375d8('isRemoveSuggestion',_0x3ed3e5,_0x4472d3,_0x11c3fb),_0x2375d8('isAddSuggestion',_0x3ed3e5,_0x4472d3,_0x11c3fb),_0x2375d8('isRemoved',_0x3ed3e5,_0x4472d3,_0x11c3fb),_0x2375d8('isAdded',_0x3ed3e5,_0x4472d3,_0x11c3fb);for(const _0x25ee9a of _0x396479[_0x3ed3e5]['markersEnd']){const _0x467b3c=_0x4da059['get'](_0x25ee9a);_0x467b3c?_0x467b3c['end']=_0x11c3fb:_0x4da059['set'](_0x25ee9a,{'start':_0x11c3fb,'end':_0x11c3fb});}}for(const [_0x144126,_0x4e5953]of _0x4da059){const _0x2f8fe2=this['editor']['model']['createRange'](_0x4e5953['start'],_0x4e5953['end']);_0x5962b7['markers']['set'](_0x144126,_0x2f8fe2);}return _0x4c8c59['sort']((_0x338fe2,_0xf688f0)=>{const _0x543ace=_0x5962b7['markers']['get']('revision:'+_0x338fe2['id']),_0x58d5a6=_0x5962b7['markers']['get']('revision:'+_0xf688f0['id']);return _0x543ace['start']['isBefore'](_0x58d5a6['start'])?-0x1:_0x543ace['start']['isAfter'](_0x58d5a6['start'])?0x1:_0x543ace['end']['isBefore'](_0x58d5a6['end'])?-0x1:_0x543ace['end']['isAfter'](_0x58d5a6['end'])?0x1:'add'===_0x338fe2['type']?-0x1:0x1;}),{'root':_0x5962b7,'changes':_0x4c8c59};function _0x2375d8(_0x855f45,_0x3800eb,_0x384d86,_0x251a6f){const _0xe41104=!!_0x396479[_0x3800eb][_0x855f45],_0x439431=_0xe41104?_0x396479[_0x3800eb][_0x855f45]['userId']:null,_0x87a954=_0x3800eb===_0x396479['length']-0x1,_0x3c427d=_0x35b9c3[_0x855f45][0x0],_0x42e6c0=_0x14fe98['isObject'](_0x396479[_0x3800eb]['item']);!_0x357ed1[_0x855f45]&&_0xe41104?_0x357ed1[_0x855f45]={'start':_0x384d86,'tapeItem':_0x396479[_0x3800eb],'userId':_0x439431,'type':_0x855f45}:_0x357ed1[_0x855f45]&&!_0xe41104?(_0x357ed1[_0x855f45]['end']=_0x384d86,_0x24c1bc(_0x357ed1[_0x855f45]),_0x357ed1[_0x855f45]=null):_0x357ed1[_0x855f45]&&_0xe41104&&_0x357ed1[_0x855f45]['userId']!==_0x439431&&(_0x357ed1[_0x855f45]['end']=_0x384d86,_0x3c427d&&_0x3c427d['userId']===_0x357ed1[_0x855f45]['userId']||_0x24c1bc(_0x357ed1[_0x855f45]),_0x357ed1[_0x855f45]={'start':_0x384d86,'tapeItem':_0x396479[_0x3800eb],'userId':_0x439431,'type':_0x855f45}),_0x357ed1[_0x855f45]&&_0x42e6c0&&('elementStart'!==_0x396479[_0x3800eb]['type']||_0x3c427d&&_0x3c427d['userId']===_0x439431||_0x35b9c3[_0x855f45]['unshift']({'userId':_0x439431,'object':_0x396479[_0x3800eb]['item'],'change':_0x357ed1[_0x855f45]}),'elementEnd'===_0x396479[_0x3800eb]['type']&&_0x3c427d&&_0x3c427d['object']===_0x396479[_0x3800eb]['item']&&(_0x35b9c3[_0x855f45]['shift'](),_0x357ed1[_0x855f45]=_0x3c427d['change'])),_0x357ed1[_0x855f45]&&_0x87a954&&(_0x357ed1[_0x855f45]['end']=_0x251a6f,_0x24c1bc(_0x357ed1[_0x855f45]),_0x357ed1[_0x855f45]=null);}function _0x24c1bc({start:_0x2118c7,end:_0xda8ece,tapeItem:_0x2487f8,userId:_0x25cc76,type:_0x3f2d83}){const _0x6d42ff=_0x2487f8['item'],_0x407241=_0x5956b1['schema']['isBlock'](_0x6d42ff)&&!_0x5956b1['schema']['isLimit'](_0x6d42ff),_0x420d45=_0x2118c7['nodeAfter']==_0xda8ece['parent']&&_0xda8ece['isAtStart'];if(_0x407241&&_0x420d45)return;const _0x4cf9c7=_0x5956b1['createRange'](_0x2118c7,_0xda8ece),_0x3f419e=_0x1194a5['get'](_0x25cc76),_0x1973b6=new r({'author':_0x3f419e,'type':'isAdded'==_0x3f2d83||'isAddSuggestion'==_0x3f2d83?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3f2d83||'isRemoveSuggestion'==_0x3f2d83},'createdAt':new Date(),'rootName':_0x226d57});_0x4c8c59['push'](_0x1973b6),_0x5962b7['markers']['set']('revision:'+_0x1973b6['id'],_0x4cf9c7);}function _0x409537(_0xbeece0,_0x2d9a85){const _0x2f8c46=_0xbeece0['getAttributes'](),_0x7f5cfc=_0x2d9a85['getAttributes']();for(const _0x1ae9c6 of _0x2f8c46){if(_0x1ae9c6[0x1]!==_0x2d9a85['getAttribute'](_0x1ae9c6[0x0]))return!0x1;_0x7f5cfc['next']();}return _0x7f5cfc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4069c9=>{const _0x40b7db=_0x4069c9['markerName']['split'](':')[0x1],_0x22f06f=this['_getChangeFromId'](_0x40b7db);if(!_0x22f06f)return null;const _0x31a4ec='add'==_0x22f06f['type']?'insertion':'deletion',_0x1bfa93=['ck-suggestion-marker','ck-suggestion-marker-'+_0x31a4ec];return _0x22f06f['data']['isSuggestion']&&_0x1bfa93['push']('ck-suggestion-marker-'+_0x31a4ec+'-new'),this['activeChange']==_0x22f06f&&_0x1bfa93['push']('ck-suggestion-marker--active'),{'classes':_0x1bfa93,'attributes':{'data-change-id':_0x40b7db}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5302a5=>{_0x5302a5['on']('element:pre',(_0x314fa7,_0x281f0b,_0x457d95)=>{const _0x6b073b=_0x281f0b['viewItem']['getChild'](0x0);if(!_0x6b073b||!_0x6b073b['is']('element','code'))return;if(!_0x457d95['consumable']['consume'](_0x6b073b,{'attributes':['vid_start','vid_end']}))return;const _0xf904ee=_0x281f0b['modelRange']['start']['nodeAfter'];_0x457d95['writer']['setAttribute']('vid_start',_0x6b073b['getAttribute']('vid_start'),_0xf904ee),_0x457d95['writer']['setAttribute']('vid_end',_0x6b073b['getAttribute']('vid_end'),_0xf904ee);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x38cd98=>{_0x38cd98['on']('element',(_0x2cc658,_0x158c5c,_0x4d2428)=>{if(!_0x4d2428['consumable']['consume'](_0x158c5c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x158c5c['modelRange']['isCollapsed'])return;const _0x377c3d=_0x158c5c['modelRange']['start']['nodeAfter'];_0x377c3d['hasAttribute']('vid_start')||_0x377c3d['hasAttribute']('vid')||(_0x4d2428['writer']['setAttribute']('vid_start',_0x158c5c['viewItem']['getAttribute']('vid_start'),_0x377c3d),_0x4d2428['writer']['setAttribute']('vid_end',_0x158c5c['viewItem']['getAttribute']('vid_end'),_0x377c3d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5397b1=>_0x5397b1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4a03a5,[,_0x575fbd])=>{['vid_start','vid_end','vid']['includes'](_0x575fbd)&&(_0x4a03a5['return']=!0x0,_0x4a03a5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3dc612=>{_0x3dc612['on']('attribute:vid',(_0x39c389,_0x7ae185,_0x57557b)=>{if('\x20'!=_0x7ae185['item']['data']||_0x7ae185['item']['parent']['maxOffset']>0x1)return;if(!_0x57557b['consumable']['consume'](_0x7ae185['item'],_0x39c389['name']))return;const _0x4bcc92=_0x57557b['writer'],_0x47da6d=_0x57557b['mapper']['toViewRange'](_0x7ae185['range']);_0x4bcc92['wrap'](_0x47da6d,_0x4bcc92['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x593150){const _0x4b30a8=_0x593150['plugins']['get']('RevisionViewer');return(_0x2249e4,_0x42a3d7,_0x3b147a)=>{const _0x410f11=_0x42a3d7['markerName']['split'](':')[0x1],_0x147fb9=_0x4b30a8['_getChangeFromId'](_0x410f11);if(!_0x147fb9)return null;const _0x31f860='add'==_0x147fb9['type']?'split':'merge';if(!_0x3b147a['consumable']['test'](_0x42a3d7['markerRange'],_0x2249e4['name']))return;const _0x243733=_0x42a3d7['markerRange']['getWalker'](),_0x13e86c=_0x42a3d7['markerRange']['start'],_0x201dce=_0x593150['model']['schema'];let _0x43129f=null,_0x8b13ed=null,_0x3a03ef=!0x1,_0x523498=!0x1;for(const _0x5b7a78 of _0x243733){const _0x2b9732=_0x5b7a78['item'];_0x3a03ef=_0x3a03ef||_0x201dce['isContent'](_0x2b9732);const _0x562105=_0x3b147a['mapper']['toViewElement'](_0x2b9732);if(_0x562105&&_0x562105['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b7a78['type']&&(_0x201dce['isBlock'](_0x2b9732)&&!_0x201dce['isLimit'](_0x2b9732)&&(_0x2b9732['nextSibling']||_0x13e86c['isAtEnd']?_0x43129f&&_0x43129f['parent']==_0x2b9732||(_0x43129f=_0x2b9732,_0x496335(_0x5b7a78['previousPosition']),_0x523498=!0x0):_0x8b13ed=_0x8b13ed||_0x5b7a78['previousPosition']));}function _0x496335(_0x4d26fe){const _0x5ec436=_0x3b147a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31f860}),_0x1fcb07=_0x3b147a['mapper']['toViewPosition'](_0x4d26fe);_0x147fb9['data']['isSuggestion']&&_0x3b147a['writer']['addClass']('ck-suggestion-marker-'+_0x31f860+'-new',_0x5ec436),_0x4b30a8['activeChange']==_0x147fb9&&_0x3b147a['writer']['addClass']('ck-suggestion-marker--active',_0x5ec436),_0x3b147a['writer']['insert'](_0x1fcb07,_0x5ec436),_0x3b147a['mapper']['bindElementToMarker'](_0x5ec436,_0x42a3d7['markerName']);}_0x3a03ef||_0x523498||!_0x8b13ed||_0x496335(_0x8b13ed);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2dc087,_0x349a7c,_0x1cd46a)=>{const _0x18b8a7=_0x1cd46a['mapper']['markerNameToElements'](_0x349a7c['markerName']);if(_0x18b8a7){for(const _0x166e96 of _0x18b8a7)(_0x166e96['hasClass']('ck-suggestion-marker-split')||_0x166e96['hasClass']('ck-suggestion-marker-merge'))&&(_0x1cd46a['mapper']['unbindElementFromMarkerName'](_0x166e96,_0x349a7c['markerName']),_0x1cd46a['writer']['remove'](_0x166e96));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x175580,_0x355fa4,_0x3259db)=>{const _0x38f94d=_0x355fa4['markerName']['split'](':')[0x1],_0x28d467=this['_getChangeFromId'](_0x38f94d);if(!_0x28d467)return null;const _0x3bc358='add'==_0x28d467['type']?'split':'merge';if(_0x3259db['consumable']['test'](_0x355fa4['markerRange'],_0x175580['name']))for(const _0x5badb2 of _0x355fa4['markerRange']['getItems']()){if(!_0x5badb2['is']('element','softBreak'))continue;const _0x40d8ef=_0x3259db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3bc358}),_0x3fb564=_0x3259db['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5badb2));_0x28d467['data']['isSuggestion']&&_0x3259db['writer']['addClass']('ck-suggestion-marker-'+_0x3bc358+'-new',_0x40d8ef),this['activeChange']==_0x28d467&&_0x3259db['writer']['addClass']('ck-suggestion-marker--active',_0x40d8ef),_0x3259db['writer']['insert'](_0x3fb564,_0x40d8ef),_0x3259db['mapper']['bindElementToMarker'](_0x40d8ef,_0x355fa4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x27d080=>{for(const _0xd51974 of this['editor']['model']['document']['getRootNames']()){const _0x8a8ea2=this['editor']['model']['document']['getRoot'](_0xd51974),_0x305983=this['editor']['editing']['view']['document']['getRoot'](_0xd51974);if(_0x305983){const _0x297a41=_0x8a8ea2['getAttribute']('revisionHistoryAttachChange');if(_0x27d080['removeAttribute']('data-change-id',_0x305983),_0x27d080['removeClass']('ck-revision-history-root-add',_0x305983),_0x27d080['removeClass']('ck-revision-history-root-remove',_0x305983),_0x27d080['removeClass']('ck-revision-history-root--active',_0x305983),_0x297a41){const _0x4ea0ba=this['_getChangeFromId'](_0x297a41);if(!_0x4ea0ba)return null;_0x27d080['setAttribute']('data-change-id',_0x297a41,_0x305983),_0x27d080['addClass']('ck-revision-history-root-'+_0x4ea0ba['type'],_0x305983),this['activeChange']==_0x4ea0ba&&_0x27d080['addClass']('ck-revision-history-root--active',_0x305983);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x428e40=>'revision-comment:'+_0x428e40,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5da3b1=>'revision-suggestion:'+_0x5da3b1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x582144=>({'name':'suggestion:'+_0x582144,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2f74a0=>{const _0x891dcb=_0x2f74a0['markerName']['split'](':')[0x1];return'insertion'!=_0x891dcb&&'deletion'!=_0x891dcb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x891dcb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54238f,_0x40ed84,_0x4a6ad2)=>{const _0x318d10=_0x4a6ad2['mapper']['markerNameToElements'](_0x40ed84['markerName']);if(_0x318d10){for(const _0xeeece1 of _0x318d10)_0xeeece1['is']('uiElement')&&(_0x4a6ad2['mapper']['unbindElementFromMarkerName'](_0xeeece1,_0x40ed84['markerName']),_0x4a6ad2['writer']['remove'](_0xeeece1));}},{'priority':'high'});}['_getChangeFromId'](_0x143b80){return this['_changeIdToChange']['get'](_0x143b80);}['_getViewForChange'](_0x5e039f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5e039f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x496e0e,_0x463a55,_0x338e4e,_0x153133)=>{_0x153133&&this['_balloon']['remove'](_0x153133),_0x338e4e&&(this['_balloon']['add']({'view':_0x338e4e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3167fa=this['editor']['editing'],_0x2c8dcf=this['_getChangeFromId'](_0x338e4e['changeId']);let _0x131762;if(_0x2c8dcf['data']['isOnRoot']){const _0x2b2696=_0x3167fa['view']['getDomRoot'](_0x2c8dcf['rootName']);_0x131762=Array['from'](_0x2b2696['getClientRects']());}else{const _0x2c4f23=this['editor']['model']['markers']['get']('revision:'+_0x338e4e['changeId']);_0x131762=Array['from'](_0x3167fa['mapper']['markerNameToElements'](_0x2c4f23['name']))['map'](_0x153188=>_0x3167fa['view']['domConverter']['mapViewToDom'](_0x153188))['map'](_0x1db971=>Array['from'](_0x1db971['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x131762[0x0];return _0x131762['find'](_0x48341e=>_0x48341e['top']-0x3<=this['_activeViewTarget']['y']&&_0x48341e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x48341e['left']-0x3<=this['_activeViewTarget']['x']&&_0x48341e['right']+0x3>=this['_activeViewTarget']['x'])||_0x131762[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4de9a0,_0x4328d4,_0x17f8fa,_0x2c640c)=>{this['activeView']=_0x17f8fa?this['_getViewForChange'](_0x17f8fa):null,this['editor']['model']['change'](()=>{const _0x55db86=this['editor']['editing'];_0x2c640c&&(_0x2c640c['data']['isOnRoot']?_0x55db86['view']['change'](_0x18d3bd=>{_0x18d3bd['removeClass']('ck-revision-history-root--active',_0x55db86['view']['document']['getRoot'](_0x2c640c['rootName']));}):_0x55db86['reconvertMarker']('revision:'+_0x2c640c['id'])),_0x17f8fa&&(_0x17f8fa['data']['isOnRoot']?_0x55db86['view']['change'](_0x36eb50=>{_0x36eb50['addClass']('ck-revision-history-root--active',_0x55db86['view']['document']['getRoot'](_0x17f8fa['rootName']));}):_0x55db86['reconvertMarker']('revision:'+_0x17f8fa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1b6fd7,_0x3c0573)=>{if(this['activeChange'])return;const _0x582256=this['_findChangeIdFromDomTarget'](_0x3c0573['target']),_0x51f1a8=this['_changeIdToChange']['get'](_0x582256);_0x51f1a8?(this['_activeViewTarget']={'x':_0x3c0573['domEvent']['x'],'y':_0x3c0573['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x51f1a8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2b65cc,_0x3d3060)=>{const _0x42ae31=this['_findChangeIdFromDomTarget'](_0x3d3060['target']),_0xbcf074=this['_changeIdToChange']['get'](_0x42ae31);_0xbcf074?(this['_activeViewTarget']={'x':_0x3d3060['domEvent']['x'],'y':_0x3d3060['domEvent']['y']},_0xbcf074===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xbcf074):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4a24dd){do{const _0x26738a=_0x4a24dd['getAttribute']('data-change-id');if(_0x26738a)return _0x26738a;_0x4a24dd=_0x4a24dd['parent'];}while(_0x4a24dd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5e63f8=>{for(const _0x21b55f of this['editor']['model']['markers'])_0x5e63f8['removeMarker'](_0x21b55f);});}}function X(_0x232913,_0x310cdd){return(_0x345304,_0x2f8f3d,_0xd81633)=>{if(!_0xd81633['consumable']['test'](_0x2f8f3d['markerRange'],_0x345304['name']))return;const _0x142f95=_0x2f8f3d['markerRange']['getWalker'](),_0x2b0778=_0x2f8f3d['markerRange']['start'],_0x9280f7=_0x232913['model']['schema'];let _0x31c6c6=null,_0x45995f=null,_0xa8d7ec=!0x1,_0x1066ee=!0x1;for(const _0x5cca89 of _0x142f95){const _0x219e19=_0x5cca89['item'];_0xa8d7ec=_0xa8d7ec||_0x9280f7['isContent'](_0x219e19);const _0x2945f0=_0xd81633['mapper']['toViewElement'](_0x219e19);if(_0x2945f0&&_0x2945f0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5cca89['type']&&(_0x9280f7['isBlock'](_0x219e19)&&!_0x9280f7['isLimit'](_0x219e19)&&(_0x219e19['nextSibling']||_0x2b0778['isAtEnd']?_0x31c6c6&&_0x31c6c6['parent']==_0x219e19||(_0x31c6c6=_0x219e19,_0x369a8c(_0x5cca89['previousPosition']),_0x1066ee=!0x0):_0x45995f=_0x45995f||_0x5cca89['previousPosition']));}function _0x369a8c(_0xf3265d){const _0x256691=_0xd81633['mapper']['toViewPosition'](_0xf3265d),_0x202ece=_0xd81633['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x310cdd});_0xd81633['writer']['insert'](_0x256691,_0x202ece),_0xd81633['mapper']['bindElementToMarker'](_0x202ece,_0x2f8f3d['markerName']);}_0xa8d7ec||_0x1066ee||!_0x45995f||_0x369a8c(_0x45995f);};}class mt extends _0x21c6cc{constructor(_0x1b3756){super(_0x1b3756);const _0xed9bf8=_0x1b3756['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0xed9bf8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xed9bf8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a5e83=this['editor'],_0x533fb8=_0x4a5e83['plugins']['get'](m),_0xb8c6bb=_0x533fb8['isReady']?_0x533fb8['diff']['newRevisionId']:null;_0x4a5e83['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xb8c6bb);}['refresh'](){const {isReady:_0x37a1d3,isEnabled:_0xebaf75,repository:_0x4472bc,diff:_0x212020}=this['editor']['plugins']['get'](m),_0x38e2e5=_0x212020&&_0x4472bc['getLaterVisibleRevision'](_0x212020['newRevisionId']);this['isEnabled']=_0x37a1d3&&_0xebaf75&&Boolean(_0x38e2e5);}}class wt extends _0x21c6cc{['_step'];constructor(_0x3d165f,{direction:_0x44776d}){super(_0x3d165f);const _0x349d97=_0x3d165f['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x44776d?0x1:-0x1,this['listenTo'](_0x349d97,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x349d97,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x349d97,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x307b8d=this['editor'],_0x4b9f32=_0x307b8d['plugins']['get'](m),{isNavigationMode:_0x541516,currentChangeNumber:_0xfa7a76}=_0x4b9f32;let _0x2df31e;if(_0x4b9f32['activeChange']=_0x541516?_0x4b9f32['diff']['changes']['get'](_0xfa7a76+this['_step']):_0x4b9f32['diff']['changes']['first'],_0x4b9f32['activeChange']['data']['isOnRoot'])_0x2df31e=_0x307b8d['editing']['view']['getDomRoot'](_0x4b9f32['activeChange']['rootName']);else{const _0x478346=_0x307b8d['model']['markers']['get']('revision:'+_0x4b9f32['activeChange']['id']);_0x2df31e=_0x2d3abc(_0x307b8d['editing'],_0x478346);}_0x4b767d({'target':_0x2df31e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x9a1ab8,currentChangeNumber:_0x1c42a4,numberOfChanges:_0x5f395c,isReady:_0x29a477,isEnabled:_0x2470c5}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2470c5&&_0x29a477&&_0x5f395c)&&(!_0x9a1ab8||(0x1===this['_step']?_0x1c42a4<_0x5f395c-0x1:_0x1c42a4>0x0));}}class _i extends ts{constructor(_0x4cffc7){super(_0x4cffc7);const _0x456093=this['bindTemplate'],_0x49deff=new te(_0x4cffc7),_0x588d25=new te(_0x4cffc7);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',(_0x47ce2a,_0x19ad4b)=>_0x47ce2a&&_0x19ad4b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x476bb5,_0x39c240,_0x560dff,_0x24039e)=>{if(!_0x476bb5)return g(_0x4cffc7,'Loading...');if(!_0x560dff)return g(_0x4cffc7,'No\x20changes');const _0x3a97e4=g(_0x4cffc7,'NUMBER_OF_CHANGES',_0x560dff);return _0x24039e?g(_0x4cffc7,'X_OF_Y_CHANGES',[_0x39c240+0x1,_0x560dff]):_0x3a97e4;}),_0x49deff['set']({'label':g(_0x4cffc7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x59cc6b}),_0x588d25['set']({'label':g(_0x4cffc7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x162dda}),_0x49deff['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x588d25['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x49deff['on']('execute',()=>this['fire']('execute','backward')),_0x588d25['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',_0x456093['if']('_isStatusLabelVisible','ck-hidden',_0x4cf03a=>!_0x4cf03a)]},'children':[{'text':_0x456093['to']('isNavigationMode',_0x547be8=>_0x547be8?g(_0x4cffc7,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4cffc7,'Total')+':\x20')}]},{'text':_0x456093['to']('_statusText')}]},new _0x23fd5d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x49deff,_0x588d25]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x728dfc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x52c6e9=this['editor']['editing']['view'];_0x52c6e9['change'](_0x518e01=>{for(const _0x56c291 of _0x52c6e9['document']['roots'])_0x518e01['addClass'](le,_0x56c291);});}['hide'](){const _0x3d8079=this['editor']['editing']['view'];_0x3d8079['change'](_0x1a06ee=>{for(const _0x4642d0 of _0x3d8079['document']['roots'])_0x1a06ee['removeClass'](le,_0x4642d0);});}}class R extends _0x728dfc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2f6408=this['editor'],_0x335998=_0x2f6408['plugins']['get'](m),_0x1f6ea8=_0x2f6408['plugins']['get'](ge);_0x2f6408['ui']['componentFactory']['add']('exitToEditing',_0x44c122=>{const _0x54da1b=new te(_0x44c122);return _0x54da1b['set']({'label':g(_0x44c122,'Back\x20to\x20editing'),'icon':_0x3c9021,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x54da1b,'execute',()=>{_0x2f6408['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x54da1b;}),_0x2f6408['ui']['componentFactory']['add']('restoreRevision',_0xcb96e8=>{const _0xcd4b4=new te(_0xcb96e8);return _0xcd4b4['set']({'label':g(_0xcb96e8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xcd4b4['bind']('isEnabled')['to'](_0x2f6408['commands']['get']('restoreRevision')),this['listenTo'](_0xcd4b4,'execute',()=>_0x2f6408['execute']('restoreRevision')),_0xcd4b4;}),_0x2f6408['ui']['componentFactory']['add']('changesNavigation',_0x142e8b=>{const _0x5e18b3=new _i(_0x142e8b),_0x3ea209=_0x2f6408['commands']['get']('showPreviousChange'),_0x2b7cf1=_0x2f6408['commands']['get']('showNextChange');return _0x5e18b3['bind']('isBackwardNavigationEnabled')['to'](_0x3ea209,'isEnabled'),_0x5e18b3['bind']('isForwardNavigationEnabled')['to'](_0x2b7cf1,'isEnabled'),_0x5e18b3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x335998),this['listenTo'](_0x5e18b3,'execute',(_0x43f2bc,_0xda17d0)=>{_0x2f6408['execute']('forward'===_0xda17d0?'showNextChange':'showPreviousChange');}),_0x5e18b3;}),_0x1f6ea8['show'](),_0x335998['on']('change:isReady',(_0x12d712,_0x3c4127,_0x33896d)=>{_0x33896d?_0x1f6ea8['hide']():_0x1f6ea8['show']();});}}class at extends _0x48fea2{['_resizeObserver']=null;constructor(_0x406b45,_0x581d86){super(_0x406b45,_0x581d86);const _0x1c02c7=this['bindTemplate'];this['set']({'label':g(_0x406b45,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x406b45,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1c02c7['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3f4397=this['fieldView']['element'];this['_tooltipString']=_0x3f4397['scrollWidth']>_0x3f4397['clientWidth']&&_0x3f4397['value']||'';}}class si extends ts{constructor(_0x4e9e7b,_0x30e4b8,_0x3bb945){super(_0x4e9e7b);const _0x1368ab=new _0x1fa96f();_0x1368ab['set']({'content':_0x5cc77b,'viewBox':'0\x200\x2011\x2010'});const _0x3b327d=['ck','ck-revision-history-sidebar__revision-author'];_0x3bb945&&_0x3b327d['push']('ck-revision-history-sidebar__revision-author_creator');const _0xc4444c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x4e9e7b,_0x3bb945?'Revision\x20creator':'Revision\x20author')},'children':[_0x1368ab,_0x30e4b8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b327d},'children':_0xc4444c});}}function oi(_0xb714dd,_0x45434d){const _0x566373=_0xb714dd['bindTemplate'],_0x1fe6d2=_0xb714dd['locale'],_0x335646=_0xa51226(_0x1fe6d2);_0x335646['panelPosition']='sw';const _0x2afbe8=function(_0x229b65,_0x383349){const _0x328908=function(_0x56f184,_0x433622){const _0x22ffe1=_0x56f184['locale'],_0x3a7a36={'Compare\x20against\x20selected':g(_0x22ffe1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x22ffe1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x22ffe1,'Restore\x20this\x20revision')};return _0x433622['map'](_0x5ba413=>{const _0x3248cf=_0x3a7a36[_0x5ba413['name']];return _0x3248cf&&_0x3248cf!==_0x5ba413['name']&&(_0x5ba413['name']=_0x3248cf),_0x5ba413;});}(_0x229b65,_0x383349),_0x359927=new _0x295397();for(const _0x5a71df of _0x328908){const _0x569172={'type':'button','model':new to({'label':_0x5a71df['name'],'class':_0x5a71df['class'],'withText':!0x0,'role':'menuitem','_action':_0x5a71df['action']})};_0x569172['model']['bind']('isEnabled')['to'](_0x229b65,'isActionsDropdownOpen',_0x58c147=>'function'!=typeof _0x5a71df['isEnabled']||(!_0x58c147||_0x5a71df['isEnabled'](_0x229b65))),_0x359927['add'](_0x569172);}return _0x359927;}(_0xb714dd,_0x45434d);return _0xb714dd['bind']('isActionsDropdownOpen')['to'](_0x335646,'isOpen'),_0x335646['buttonView']['set']({'label':g(_0x1fe6d2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x12a411}),_0x335646['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x566373['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x566373['to'](_0x149326=>_0x149326['stopPropagation']())}}),_0x335646['on']('execute',_0x2f7e21=>{_0xb714dd['isReady']&&'function'==typeof _0x2f7e21['source']['_action']&&_0x2f7e21['source']['_action'](_0xb714dd);}),_0x1df76b(_0x335646,_0x2afbe8,{'role':'menu'}),_0x335646['listenTo'](_0xb714dd,'change:isActionsDropdownOpen',(_0x193fb9,_0x1a5ad4,_0x7efb3)=>{if(_0x7efb3)for(const _0x30a468 of _0x335646['listView']['items']){const _0xdde27e=_0x30a468['children']['first'],_0x3ed1dd=_0x45434d['find'](_0x394c28=>_0x394c28['action']===_0xdde27e['_action'])['isVisible'];_0x30a468['isVisible']=void 0x0===_0x3ed1dd||_0x3ed1dd(_0xb714dd);}}),_0x335646;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x22ad3d,_0x532850,_0x370cd7,_0x1a3d6d){super(_0x22ad3d);const _0x1bb259=this['bindTemplate'],_0x2032d7=function(_0x43a48a,_0x209798){const _0x4a138e=Array['from'](_0x209798['authors'])['filter'](_0x216baa=>_0x216baa!=_0x209798['creator']);return _0x209798['creator']&&_0x4a138e['unshift'](_0x209798['creator']),_0x4a138e['map'](_0x3cd107=>new si(_0x43a48a,_0x3cd107,_0x3cd107==_0x209798['creator']));}(_0x22ad3d,_0x532850);this['id']=_0x532850['id'],this['_revision']=_0x532850,this['_requireRevisionName']=_0x1a3d6d,this['bind']('name','createdAt')['to'](_0x532850),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1f9017=>{return _0x58de77=_0x22ad3d['uiLanguage'],(_0x1257f9=_0x1f9017)['toLocaleDateString'](_0x58de77,{'month':'long','day':'numeric'})+',\x20'+_0x1257f9['toLocaleTimeString'](_0x58de77,{'hour':'numeric','minute':'numeric'});var _0x58de77,_0x1257f9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x22ad3d,_0x36affa),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x28d396=>_0x28d396||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1f9797,_0x15d4e8)=>_0x1f9797&&_0x15d4e8),this['revisionActionsView']=_0x370cd7&&_0x370cd7['length']?oi(this,_0x370cd7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1bb259['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1bb259['if']('isEnabled','ck-disabled',_0x527d90=>!_0x527d90),_0x1bb259['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1bb259['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1bb259['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':_0x1bb259['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':_0x2032d7}]},this['revisionActionsView']],'on':{'click':_0x1bb259['to'](_0x1f2b21=>{_0x1f2b21['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2923e0=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2923e0,'change',()=>{this['_requireRevisionName']&&!_0x2923e0['value']||this['fire']('setName',{'id':this['id'],'name':_0x2923e0['value']}),_0x2923e0['value']||(_0x2923e0['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x5aa047,_0x360f4f){const _0x5b31a0=_0x4796ea['fromJSDate'](_0x5aa047)['setLocale'](_0x360f4f),_0x49b6d6=_0x4796ea['local'](),_0x5767d1=_0x49b6d6['minus']({'days':0x1})['startOf']('day');let _0x26e055,_0x508dbc;return _0x5b31a0['hasSame'](_0x49b6d6,'day')?(_0x26e055=_0x5b31a0['startOf']('day')['toJSDate'](),_0x508dbc=_0x5b31a0['toRelativeCalendar']()):_0x5b31a0['hasSame'](_0x5767d1,'day')?(_0x26e055=_0x5767d1['toJSDate'](),_0x508dbc=_0x5b31a0['toRelativeCalendar']()):_0x5b31a0['hasSame'](_0x49b6d6,'week')?(_0x26e055=_0x5b31a0['startOf']('week')['toJSDate'](),_0x508dbc=_0x5b31a0['weekdayLong']||''):_0x5b31a0['hasSame'](_0x49b6d6,'year')?(_0x26e055=_0x5b31a0['startOf']('month')['toJSDate'](),_0x508dbc=_0x5b31a0['monthLong']||''):(_0x26e055=_0x5b31a0['startOf']('year')['toJSDate'](),_0x508dbc=String(_0x5b31a0['year'])),{'startDate':_0x26e055,'localizedPeriodName':_0x508dbc};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4cde5d,_0x252230,_0x356a03,_0x3ce7fb){super(_0x4cde5d);const _0x4df51c=ai(_0x252230,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x252230,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x356a03,this['_requireRevisionName']=_0x3ce7fb,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':_0x4df51c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x235ffc){const _0x3da454=new hi(this['locale'],_0x235ffc,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3da454);}['removeRevision'](_0x5da46e){const _0x2d217e=this['revisionViews']['find'](_0x16ba12=>_0x16ba12['id']===_0x5da46e['id']);this['revisionViews']['remove'](_0x2d217e);}}class as extends ts{constructor(_0x352688){super(_0x352688);const _0x25f14e=new _0x1fa96f();_0x25f14e['content']=_0x1e9784,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x25f14e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x352688,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d4ebe,_0x4635eb,_0x40d946,_0x5d66fa){super(_0x2d4ebe);const _0x262ecd=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4635eb,this['_revisionActions']=_0x40d946,this['_requireRevisionName']=_0x5d66fa,this['on']('select',(_0x1d70c1,_0x133531)=>{this['fire']('revisionSelected',_0x133531);}),this['on']('setName',(_0x45a1fb,_0x5fbf49)=>{this['fire']('revisionSetName',_0x5fbf49);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2d4ebe),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x262ecd['if']('isEnabled','ck-disabled',_0xc4b80e=>!_0xc4b80e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2e1d97 of this['_revisions'])this['_addRevision'](_0x2e1d97);this['_revisions']['on']('add',(_0x657d79,_0x282bd1)=>{this['_addRevision'](_0x282bd1);}),this['_revisions']['on']('remove',(_0x3fb8ba,_0x100ac9)=>{this['_removeRevision'](_0x100ac9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5c4ce3=>_0x5c4ce3['revisionViews']['map'](_0xca1415=>_0xca1415))['flat']();}['selectRevision'](_0x2c9f01){for(const _0x32ce5a of this['revisionViews'])_0x2c9f01&&_0x2c9f01['id']===_0x32ce5a['id']?_0x32ce5a['select']():_0x32ce5a['deselect']();}['highlightRevisions'](_0x213979){for(const _0x151114 of this['revisionViews'])_0x213979['some'](({id:_0x535816})=>_0x535816===_0x151114['id'])?_0x151114['highlight']():_0x151114['unhighlight']();}['_addRevision'](_0x5158fc){const _0x42852e=ai(_0x5158fc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2323f6=this['timePeriodViews']['get'](0x0);_0x2323f6&&_0x2323f6['startDate']['getTime']()===_0x42852e['getTime']()||(_0x2323f6=new di(this['locale'],_0x42852e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2323f6)),_0x2323f6['addRevision'](_0x5158fc);}['_removeRevision'](_0xfa5c0f){const _0x10bfd4=ai(_0xfa5c0f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x10bfd4)['removeRevision'](_0xfa5c0f);}['_getTimePeriodViewByStartDate'](_0x1d3195){return this['timePeriodViews']['find'](_0x4012d3=>_0x4012d3['startDate']['getTime']()===_0x1d3195['getTime']());}}class d extends _0x728dfc{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x4753c3(_0x41b39a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4824ac,_0x281979){super(_0x281979),this['sourceElement']=_0x4824ac,this['model']['document']['createRoot']();const _0x102f57=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x102f57);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2d1dee,_0x22c2ac){const _0x4a5543=new this(_0x2d1dee,_0x22c2ac);return await _0x4a5543['initPlugins'](),await _0x4a5543['ui']['init'](_0x2d1dee),await _0x4a5543['data']['init'](_0x4a5543['config']['get']('initialData')||''),_0x4a5543['fire']('ready'),_0x4a5543;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x467a15{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x546fb5){function _0x56e2aa(_0x46a583){return _0x46a583['map'](_0x2da102=>String['fromCharCode'](_0x2da102))['join']('');}super(_0x546fb5),this['result']='end',_0x546fb5[_0x56e2aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56e2aa([0x76,0x69,0x65,0x77])][_0x56e2aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56e2aa([0x61,0x75,0x74,0x6f]),_0x546fb5[_0x56e2aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56e2aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56e2aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56e2aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56e2aa([0x6f,0x6b])});}}class k extends _0x467a15{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x410f35){if(super(_0x410f35),!this['editor']['config']['get']('revisionHistory'))throw new _0x1e0d91('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x56cf7b=>this['_showRevisionViewer']({..._0x56cf7b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x54dedd=>this['_closeRevisionViewer'](_0x54dedd)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x545a15=>this['_restoreRevision'](_0x545a15)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1fb014){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1fb014;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x428b0b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x428b0b);}['getRevision'](_0x7ccdd6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x7ccdd6);}['getRevisions'](_0x26fced){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x26fced||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3caa3d=this['editor'],_0x4144df=_0x1b8334(_0x3caa3d,p),_0x1767de=_0x3caa3d['plugins']['get']('RevisionTracker'),_0x4e0011=_0x3caa3d['plugins']['get']('Users')['users'];return _0x4144df['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4144df['lazyRoots'],(_0x4144df['plugins']['push'](_t,m,R,class extends _0x467a15{static get['requires'](){return[m,'Users'];}['init'](){const _0x43b83c=this['editor']['plugins']['get']('Users');for(const _0xd406b3 of _0x4e0011)_0xd406b3['isAnonymous']||_0x43b83c['getUser'](_0xd406b3['id'])||_0x43b83c['addUser'](_0xd406b3);const _0x3b8d8c=_0x1767de['repository']['getRevisions']();let _0x528297=null;const _0x33cad4=this['editor']['plugins']['get']('RevisionViewer');_0x33cad4['adapter']=_0x1767de['adapter'],_0x33cad4['bind']('isEnabled')['to'](_0x1767de),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3caa3d,'isReadOnly',_0x2ccbfb=>!_0x2ccbfb);for(const _0x462998 of _0x3b8d8c){const _0x573cd2=null===_0x462998['creator'];if(_0x573cd2&&_0x462998['toVersion']===_0x462998['fromVersion'])continue;const _0x54465a=_0x462998['toJSON']();_0x33cad4['addRevisionData'](_0x54465a,(_0x1d2145,_0x38ee0b,_0x18cab7)=>{if(_0x573cd2){if(_0x528297)_0x528297['_update'](_0x1d2145,_0x38ee0b);else{if(!_0x38ee0b){const _0x1d2117=_0x18cab7['toJSON']();_0x1d2117['id']=_0x57d2cb(),_0x1767de['saveRevision'](_0x1d2117,_0x18cab7['toVersion'])['then'](_0x5d0961=>{_0x528297=_0x5d0961;});}}}else _0x462998['_update'](_0x1d2145,_0x38ee0b);});}}},d),_0x4144df);}['_enhanceShowRevisionViewerCallback'](){const _0x73c1d0=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21827=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x169e7d=this['editor']['plugins']['get']('Autosave');await _0x169e7d['save']();}else await _0x21827['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x34873d=this['editor']['plugins']['get']('Dialog');_0x34873d['isOpen']&&_0x34873d['hide']();}const _0x4c72cd=this['_getRevisionViewerEditorConfig']();return _0x73c1d0(_0x4c72cd)['then'](_0x317de9=>{return(this['_viewerEditor']=_0x317de9,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x317de9);})['catch'](_0x12e469=>(console['error'](_0x12e469),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x32f6f5=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x32f6f5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x451e13=this['editor']['plugins']['get']('Annotations');_0x451e13['refreshVisibility'](),_0x451e13['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5249ef){const _0x129c00=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x25cf8d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3e8b5b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3e8b5b,_0x5249ef)['then'](_0x2c0262=>(_0x25cf8d['style']['display']='block',_0x129c00['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2c0262));}['_closeRevisionViewer'](_0x5f0050){const _0x27079e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x27079e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5f0050['destroy']();}async['_restoreRevision'](_0x48393d){const _0x248c5a=this['editor'],_0x5c6839=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x37eeea=_0x248c5a['plugins']['get']('RevisionTracker'),_0x5e28fc=_0x248c5a['plugins']['get']('RevisionHistoryUtils'),_0xbca4e8=_0x5c6839['repository']['getRevision'](_0x48393d);let _0x4830f8,_0x54b7f4,_0x332d6c;try{await _0x5e28fc['loadRevisionData'](_0xbca4e8,this['adapter']),_0x4830f8=_0x5e28fc['getRevisionDocumentData'](_0xbca4e8),_0x54b7f4=_0x5e28fc['getRevisionRootsAttributes'](_0xbca4e8);}catch(_0x55d0d5){return void console['error'](_0x55d0d5);}_0x248c5a['model']['change'](_0xc755fb=>{for(const _0x11220a of Array['from'](_0x248c5a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xc755fb['removeMarker'](_0x11220a);}),_0x5c6839['isReady']=!0x1,_0x248c5a['model']['enqueueChange'](_0x7ca78a=>{_0x7ca78a['setSelection'](null),_0x7ca78a['removeSelectionAttribute'](_0x248c5a['model']['document']['selection']['getAttributeKeys']());const _0xd10bc=Object['keys'](_0x4830f8);for(const _0x282211 of _0x248c5a['model']['document']['roots'])'$graveyard'!=_0x282211['rootName']&&_0x282211['isAttached']()&&!_0xd10bc['includes'](_0x282211['rootName'])&&_0x7ca78a['detachRoot'](_0x282211);for(const _0x4971ff of _0xd10bc){let _0x523894=_0x248c5a['model']['document']['getRoot'](_0x4971ff);_0x523894&&_0x523894['isAttached']()||(_0x523894=_0x7ca78a['addRoot'](_0x4971ff));const _0x114967=_0x54b7f4[_0x4971ff],_0x5cbe75=Object['keys'](_0x114967),_0x3c46b5=_0x4830f8[_0x4971ff];for(const _0x2a11da of _0x523894['getAttributeKeys']())_0x5cbe75['includes'](_0x2a11da)||_0x7ca78a['removeAttribute'](_0x2a11da,_0x523894);for(const _0x4a0c3b of _0x5cbe75)_0x7ca78a['setAttribute'](_0x4a0c3b,_0x54b7f4[_0x4971ff][_0x4a0c3b],_0x523894);_0x7ca78a['remove'](_0x7ca78a['createRangeIn'](_0x523894)),_0x7ca78a['insert'](_0x248c5a['data']['parse'](_0x3c46b5,_0x523894),_0x523894,0x0);}});const _0x54491c=g(_0x248c5a['locale'],'Restored');if(_0xbca4e8['name'])_0x332d6c=-0x1==_0xbca4e8['name']['indexOf'](_0x54491c)?_0x54491c+':\x20'+_0xbca4e8['name']:_0xbca4e8['name'];else _0x332d6c=_0x54491c+':\x20'+(_0xbca4e8['createdAt']['toLocaleDateString'](_0x248c5a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xbca4e8['createdAt']['toLocaleTimeString'](_0x248c5a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x37eeea['saveRevision']({'name':_0x332d6c}),_0x5c6839['isReady']=!0x0,_0x248c5a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1ec722){super(_0x1ec722),this['_revisionViewer']=_0x1ec722['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4cffe8=this['_revisionsRepository']['_revisions'],_0x71cd3=this['_createRevisionActions'](),_0x228a91=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4cffe8,_0x71cd3,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',(_0x586551,_0x3c6c9e)=>{_0x3c6c9e['revisionViews']['on']('add',(_0x3a309f,_0x4b1887)=>{_0x4b1887['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)),_0x228a91['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xaad071=this['_revisionsRepository']['getRevision'](0x0);if(_0xaad071){const _0x7ec227=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xaad071['id']);this['_revisionViewer']['compare'](_0xaad071,_0x7ec227);}}['_handleRevisionSelected'](_0x121578,_0x34fbed){const _0x9a4246=this['_revisionsRepository']['getRevision'](_0x34fbed['id']),_0x54b233=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9a4246['id']);this['_revisionViewer']['compare'](_0x9a4246,_0x54b233);}['_handleRevisionSetName'](_0x3dc18e,_0x2bf80c){this['_revisionsRepository']['getRevision'](_0x2bf80c['id'])['setName'](_0x2bf80c['name']);}['_handleDiffChange'](_0x5ec532,_0x4317ce,_0x529fd1){const _0x2239a4=this['_revisionsRepository']['getRevisionsInDiff'](_0x529fd1);_0x2239a4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2239a4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2239a4[0x0]));}['_createRevisionActions'](){const _0x367d03=this['editor'],_0x1f36d3=d['availableRevisionActions'],_0x12161a=_0x367d03['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x12161a['length'])return _0x12161a['map'](_0x31601b=>{const _0x41de5f='string'==typeof _0x31601b?Object['assign']({},_0x1f36d3[_0x31601b]):_0x31601b;return _0x41de5f['action']=_0x41de5f['action']['bind'](this,_0x367d03),_0x41de5f['isVisible']&&(_0x41de5f['isVisible']=_0x41de5f['isVisible']['bind'](this,_0x367d03)),_0x41de5f;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x308bc1},_0x280cf3)=>{const _0x53b85a=_0x308bc1['get'](m),_0x29e811=_0x53b85a['repository'];let _0x1832d2=_0x53b85a['diff']['newRevisionId'],_0x4b5e5a=_0x280cf3['id'];_0x29e811['getIndex'](_0x1832d2)>_0x29e811['getIndex'](_0x4b5e5a)&&([_0x1832d2,_0x4b5e5a]=[_0x4b5e5a,_0x1832d2]),_0x53b85a['compare'](_0x1832d2,_0x4b5e5a);},'isVisible':({plugins:_0x3bfde2},_0x99b793)=>{const _0x66adb0=_0x3bfde2['get'](m);return!(_0x66adb0['repository']['getRevisionsInDiff'](_0x66adb0['diff'])['length']>0x2)&&!_0x99b793['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2ff618,{id:_0x1a1ba4})=>{_0x2ff618['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a1ba4);},'isVisible':({plugins:_0x15350d},_0x1c57e3)=>!!_0x15350d['get'](m)['repository']['getLaterVisibleRevision'](_0x1c57e3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x755df5},{id:_0x4afb5f,revisionNameView:_0x2ff0ff})=>{const _0xe99e0c=_0x755df5['get'](m),_0x309d2c=_0xe99e0c['repository']['getEarlierVisibleRevision'](_0x4afb5f);_0xe99e0c['compare'](_0x4afb5f,_0x309d2c),_0x2ff0ff['focus'](),_0x2ff0ff['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x118fb2,_0x26e0b6){super(_0x118fb2),this['_view']=_0x26e0b6,this['_toolbarConfig']=et(_0x118fb2['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x48b7d9){const _0x4582ad=this['editor'],_0xc5c25b=this['view'],_0x113edc=_0x4582ad['editing']['view'],_0x51e0ab=_0xc5c25b['editable'],_0x41036d=_0x113edc['document']['getRoot']();_0x51e0ab['name']=_0x41036d['rootName'],_0xc5c25b['render']();const _0x31b4c=_0x51e0ab['element'];this['setEditableElement'](_0x51e0ab['name'],_0x31b4c),_0xc5c25b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x113edc['attachDomRoot'](_0x31b4c),this['_elementReplacer']['replace'](_0x48b7d9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x22fb59=this['view'],_0x2daf67=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2daf67['detachDomRoot'](_0x22fb59['editable']['name']),_0x22fb59['destroy']();}['_initToolbar'](){const _0xde7c24=this['view'];_0xde7c24['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xde7c24['stickyPanel']['limiterElement']=_0xde7c24['element'],_0xde7c24['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x255c8d})=>_0x255c8d),_0xde7c24['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xde7c24['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x294476,_0x4fd9ce,_0x5674df={}){super(_0x294476),this['stickyPanel']=new ht(_0x294476),this['toolbar']=new dt(_0x294476,{'shouldGroupWhenFull':_0x5674df['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x294476,_0x4fd9ce);}['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
|
+
_0x5e4158(_0x4922d5){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x58ff0d,_0x2d4db6){super(_0x2d4db6),this['sourceElement']=_0x58ff0d,this['model']['document']['createRoot']();const _0x33a28f=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x33a28f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x537eb1,_0x2b5c67){const _0x1cc849=new this(_0x537eb1,_0x2b5c67);return await _0x1cc849['initPlugins'](),await _0x1cc849['ui']['init'](_0x537eb1),await _0x1cc849['data']['init'](_0x1cc849['config']['get']('initialData')||''),_0x1cc849['fire']('ready'),_0x1cc849;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x728dfc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45aa6d){function _0x1361a0(_0x442a1d){return _0x442a1d['map'](_0x5e1493=>String['fromCharCode'](_0x5e1493))['join']('');}super(_0x45aa6d),this['result']='end',_0x45aa6d[_0x1361a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1361a0([0x76,0x69,0x65,0x77])][_0x1361a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1361a0([0x61,0x75,0x74,0x6f]),_0x45aa6d[_0x1361a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1361a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1361a0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1361a0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1361a0([0x6f,0x6b])});}}class k extends _0x728dfc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x206c34){if(super(_0x206c34),!this['editor']['config']['get']('revisionHistory'))throw new _0x23dfb7('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4dd40f=>this['_showRevisionViewer']({..._0x4dd40f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x195df2=>this['_closeRevisionViewer'](_0x195df2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5bae55=>this['_restoreRevision'](_0x5bae55)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11f8f0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11f8f0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5a5295){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5a5295);}['getRevision'](_0x574e37){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x574e37);}['getRevisions'](_0x16dd49){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x16dd49||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1f991b=this['editor'],_0xbf4580=_0x5ba270(_0x1f991b,p),_0x5ca931=_0x1f991b['plugins']['get']('RevisionTracker'),_0x256566=_0x1f991b['plugins']['get']('Users')['users'];return _0xbf4580['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xbf4580['lazyRoots'],(_0xbf4580['plugins']['push'](_t,m,R,class extends _0x728dfc{static get['requires'](){return[m,'Users'];}['init'](){const _0x16deaf=this['editor']['plugins']['get']('Users');for(const _0x4ed83b of _0x256566)_0x4ed83b['isAnonymous']||_0x16deaf['getUser'](_0x4ed83b['id'])||_0x16deaf['addUser'](_0x4ed83b);const _0x3f405=_0x5ca931['repository']['getRevisions']();let _0x5e0d73=null;const _0x34c8a6=this['editor']['plugins']['get']('RevisionViewer');_0x34c8a6['adapter']=_0x5ca931['adapter'],_0x34c8a6['bind']('isEnabled')['to'](_0x5ca931),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1f991b,'isReadOnly',_0x309467=>!_0x309467);for(const _0x18923d of _0x3f405){const _0x30b18a=null===_0x18923d['creator'];if(_0x30b18a&&_0x18923d['toVersion']===_0x18923d['fromVersion'])continue;const _0x783368=_0x18923d['toJSON']();_0x34c8a6['addRevisionData'](_0x783368,(_0x2448b6,_0x5f5133,_0x5baeaa)=>{if(_0x30b18a){if(_0x5e0d73)_0x5e0d73['_update'](_0x2448b6,_0x5f5133);else{if(!_0x5f5133){const _0x457d90=_0x5baeaa['toJSON']();_0x457d90['id']=_0xccf9de(),_0x5ca931['saveRevision'](_0x457d90,_0x5baeaa['toVersion'])['then'](_0x2ae35d=>{_0x5e0d73=_0x2ae35d;});}}}else _0x18923d['_update'](_0x2448b6,_0x5f5133);});}}},d),_0xbf4580);}['_enhanceShowRevisionViewerCallback'](){const _0x12b1db=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x177d0a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3c35e8=this['editor']['plugins']['get']('Autosave');await _0x3c35e8['save']();}else await _0x177d0a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16524b=this['editor']['plugins']['get']('Dialog');_0x16524b['isOpen']&&_0x16524b['hide']();}const _0x630bdf=this['_getRevisionViewerEditorConfig']();return _0x12b1db(_0x630bdf)['then'](_0x192b6e=>{return(this['_viewerEditor']=_0x192b6e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x192b6e);})['catch'](_0x47aa71=>(console['error'](_0x47aa71),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4bf60d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4bf60d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5af1ac=this['editor']['plugins']['get']('Annotations');_0x5af1ac['refreshVisibility'](),_0x5af1ac['refreshPositioning']();}})));}['_showRevisionViewer'](_0x28bcb0){const _0x5ab437=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe98fed=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5d7035=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5d7035,_0x28bcb0)['then'](_0x2d190f=>(_0xe98fed['style']['display']='block',_0x5ab437['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2d190f));}['_closeRevisionViewer'](_0x2a0aea){const _0x561055=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x561055['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2a0aea['destroy']();}async['_restoreRevision'](_0x2cdc64){const _0x968299=this['editor'],_0x522e6b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x205efc=_0x968299['plugins']['get']('RevisionTracker'),_0xc47ab1=_0x968299['plugins']['get']('RevisionHistoryUtils'),_0x1e3281=_0x522e6b['repository']['getRevision'](_0x2cdc64);let _0x3976fe,_0x5177a5,_0x2e2d5a;try{await _0xc47ab1['loadRevisionData'](_0x1e3281,this['adapter']),_0x3976fe=_0xc47ab1['getRevisionDocumentData'](_0x1e3281),_0x5177a5=_0xc47ab1['getRevisionRootsAttributes'](_0x1e3281);}catch(_0x278121){return void console['error'](_0x278121);}_0x968299['model']['change'](_0x2d2f4b=>{for(const _0x136b6b of Array['from'](_0x968299['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d2f4b['removeMarker'](_0x136b6b);}),_0x522e6b['isReady']=!0x1,_0x968299['model']['enqueueChange'](_0x5d6c7b=>{_0x5d6c7b['setSelection'](null),_0x5d6c7b['removeSelectionAttribute'](_0x968299['model']['document']['selection']['getAttributeKeys']());const _0xcdc077=Object['keys'](_0x3976fe);for(const _0x18422f of _0x968299['model']['document']['roots'])'$graveyard'!=_0x18422f['rootName']&&_0x18422f['isAttached']()&&!_0xcdc077['includes'](_0x18422f['rootName'])&&_0x5d6c7b['detachRoot'](_0x18422f);for(const _0x5708be of _0xcdc077){let _0x513ac1=_0x968299['model']['document']['getRoot'](_0x5708be);_0x513ac1&&_0x513ac1['isAttached']()||(_0x513ac1=_0x5d6c7b['addRoot'](_0x5708be));const _0x2f62b2=_0x5177a5[_0x5708be],_0x4b06a8=Object['keys'](_0x2f62b2),_0x5ac94f=_0x3976fe[_0x5708be];for(const _0x3a3a38 of _0x513ac1['getAttributeKeys']())_0x4b06a8['includes'](_0x3a3a38)||_0x5d6c7b['removeAttribute'](_0x3a3a38,_0x513ac1);for(const _0x364739 of _0x4b06a8)_0x5d6c7b['setAttribute'](_0x364739,_0x5177a5[_0x5708be][_0x364739],_0x513ac1);_0x5d6c7b['remove'](_0x5d6c7b['createRangeIn'](_0x513ac1)),_0x5d6c7b['insert'](_0x968299['data']['parse'](_0x5ac94f,_0x513ac1),_0x513ac1,0x0);}});const _0x11893b=g(_0x968299['locale'],'Restored');if(_0x1e3281['name'])_0x2e2d5a=-0x1==_0x1e3281['name']['indexOf'](_0x11893b)?_0x11893b+':\x20'+_0x1e3281['name']:_0x1e3281['name'];else _0x2e2d5a=_0x11893b+':\x20'+(_0x1e3281['createdAt']['toLocaleDateString'](_0x968299['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e3281['createdAt']['toLocaleTimeString'](_0x968299['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x205efc['saveRevision']({'name':_0x2e2d5a}),_0x522e6b['isReady']=!0x0,_0x968299['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|