@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251223.0 → 0.0.0-nightly-next-20251224.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/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2a0f48}from'ckeditor5/src/core.js';import{isWidget as _0x96e382,toWidget as _0x59b46d,toWidgetEditable as _0x20b9a8}from'ckeditor5/src/widget.js';import{uid as _0x18b89c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x53a94d,ClickObserver as _0x43c3f7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5210a7}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4eae2b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2a0f48{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5210a7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x17649a}=this;_0x17649a['config']['define']('footnotes.multiBlock',!0x0),_0x17649a['commands']['add']('insertFootnote',new _0x4eae2b(_0x17649a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3a41d0){const _0x5628d5=_0x501431([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0xc7c3ce=0x47a28506,_0x52fa42=0x47a5f9be^_0xc7c3ce,_0xb25ded=window[_0x501431([0x44,0x61,0x74,0x65])][_0x501431([0x6e,0x6f,0x77])](),_0x49be47=_0x3a41d0[_0x501431([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9b6865=new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f281=>{_0x49be47[_0x501431([0x6f,0x6e,0x63,0x65])](_0x501431([0x72,0x65,0x61,0x64,0x79]),_0x53f281);}),_0x49e920={[_0x501431([0x6b,0x74,0x79])]:_0x501431([0x45,0x43]),[_0x501431([0x75,0x73,0x65])]:_0x501431([0x73,0x69,0x67]),[_0x501431([0x63,0x72,0x76])]:_0x501431([0x50,0x2d,0x32,0x35,0x36]),[_0x501431([0x78])]:_0x501431([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]),[_0x501431([0x79])]:_0x501431([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]),[_0x501431([0x61,0x6c,0x67])]:_0x501431([0x45,0x53,0x32,0x35,0x36])},_0x445dd7=_0x49be47[_0x501431([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x501431([0x67,0x65,0x74])](_0x501431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xef2f19(){let _0x389c95,_0x205b05=null,_0x21d512=null;try{if(_0x445dd7==_0x501431([0x47,0x50,0x4c]))return _0x501431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x389c95=_0x24e42b(),!_0x389c95)return _0x501431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x389c95[_0x501431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21d512=_0x293963(_0x389c95[_0x501431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x389c95[_0x501431([0x6a,0x74,0x69])])),await _0x1d3019()?_0x5ddd44()?_0x597c49()?_0x501431([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24708b()?(_0x389c95[_0x501431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x501431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x205b05=_0x133743(_0x501431([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x389c95[_0x501431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x501431([0x74,0x72,0x69,0x61,0x6c])&&(_0x205b05=_0x133743(_0x501431([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d1872()):_0x501431([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x501431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x501431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x501431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x597c49(){const _0x32fee1=[_0x501431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x501431([0x74,0x72,0x69,0x61,0x6c])][_0x501431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c95[_0x501431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb25ded/0x3e8:0xe10*_0x52fa42;return _0x389c95[_0x501431([0x65,0x78,0x70])]<_0x32fee1;}function _0x5ddd44(){const _0x132f3c=_0x389c95[_0x501431([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x132f3c&&(!!_0x132f3c[_0x501431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501431([0x2a]))||!!_0x132f3c[_0x501431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501431([0x46,0x4f,0x4f])));}function _0x24708b(){const _0x3653d1=_0x389c95[_0x501431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3653d1||0x0==_0x3653d1[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b24b8}=new URL(window[_0x501431([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3653d1[_0x501431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b24b8))return!0x0;const _0x2b8577=_0x3b24b8[_0x501431([0x73,0x70,0x6c,0x69,0x74])](_0x501431([0x2e]));return _0x3653d1[_0x501431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d6ec5=>_0x2d6ec5[_0x501431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501431([0x2a])))[_0x501431([0x6d,0x61,0x70])](_0x50b140=>_0x50b140[_0x501431([0x73,0x70,0x6c,0x69,0x74])](_0x501431([0x2e])))[_0x501431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6e97a=>_0x6e97a[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b8577[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x501431([0x6d,0x61,0x70])](_0x1888af=>Array(_0x2b8577[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1888af[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x501431([0x66,0x69,0x6c,0x6c])](_0x1888af[0x0]===_0x501431([0x2a])?_0x501431([0x2a]):'')[_0x501431([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1888af))[_0x501431([0x73,0x6f,0x6d,0x65])](_0xf26b21=>_0x2b8577[_0x501431([0x65,0x76,0x65,0x72,0x79])]((_0x25b508,_0x2eec85)=>_0xf26b21[_0x2eec85]===_0x25b508||_0xf26b21[_0x2eec85]===_0x501431([0x2a])));}function _0x3d1872(){return _0x205b05&&_0x21d512?new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb15d,_0x3c92fb)=>{_0x205b05[_0x501431([0x74,0x68,0x65,0x6e])](_0x2cb15d,_0x3c92fb),_0x21d512[_0x501431([0x74,0x68,0x65,0x6e])](_0x17e2ea=>{_0x17e2ea!=_0x501431([0x56,0x61,0x6c,0x69,0x64])&&_0x2cb15d(_0x17e2ea);},_0x3c92fb);}):_0x205b05||_0x21d512||_0x501431([0x56,0x61,0x6c,0x69,0x64]);}}function _0x293963(_0xfd2859,_0xeb9db5){return new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39e66e=>{if(_0xd5e37d())return _0x39e66e(_0x501431([0x56,0x61,0x6c,0x69,0x64]));_0x33265b(),_0x49be47[_0x501431([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x501431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x38069a=!0x1;const _0x127e7d=_0x18b89c();function _0x41bbc8(_0x225d45){return!!_0x225d45&&(typeof _0x225d45===_0x501431([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x225d45===_0x501431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x225d45[_0x501431([0x74,0x68,0x65,0x6e])]===_0x501431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x225d45[_0x501431([0x63,0x61,0x74,0x63,0x68])]===_0x501431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3046c3(_0x21e8d4){_0x4cee44(_0x21e8d4)[_0x501431([0x74,0x68,0x65,0x6e])](_0x163bed=>{if(!_0x163bed||_0x163bed[_0x501431([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x501431([0x6f,0x6b]))return _0x501431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bc683(_0x2cc8bb(_0x127e7d+_0xeb9db5))!=_0x163bed[_0x501431([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x501431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x501431([0x56,0x61,0x6c,0x69,0x64]);})[_0x501431([0x74,0x68,0x65,0x6e])](_0x2bc96f=>(_0x357a59(),_0x2bc96f),()=>{const _0x4778b2=_0x510486();return null==_0x4778b2?(_0x357a59(),_0x501431([0x56,0x61,0x6c,0x69,0x64])):_0x501431(_0xb25ded-_0x4778b2>(0x63ae0106^_0xc7c3ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x501431([0x74,0x68,0x65,0x6e])](_0x39e66e)[_0x501431([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39e66e(_0x501431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e3b57=0x47946b86^_0xc7c3ce;function _0x357a59(){const _0x3dd0f9=_0x501431([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc683(_0x2cc8bb(_0xfd2859)),_0x16c55f=_0x1a82e4(_0x3bc683(window[_0x501431([0x4d,0x61,0x74,0x68])][_0x501431([0x63,0x65,0x69,0x6c])](_0xb25ded/_0x1e3b57)));window[_0x501431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x501431([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dd0f9,_0x16c55f);}function _0x510486(){const _0x3c56c5=_0x501431([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc683(_0x2cc8bb(_0xfd2859)),_0x2f6f8e=window[_0x501431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x501431([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c56c5);return _0x2f6f8e?window[_0x501431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a82e4(_0x2f6f8e),0x10)*_0x1e3b57:null;}function _0x4cee44(_0x291568){return new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x228770,_0x2aa55a)=>{_0x291568[_0x501431([0x74,0x68,0x65,0x6e])](_0x228770,_0x2aa55a),window[_0x501431([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2aa55a,0x47a351c6^_0xc7c3ce);});}}_0x49be47[_0x501431([0x6f,0x6e])](_0x501431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dd491,_0x518c78)=>{if(_0x518c78[0x0]!=_0xfd2859)return _0x39e66e(_0x501431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x518c78[0x1]={..._0x518c78[0x1],[_0x501431([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x127e7d};},{[_0x501431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x501431([0x68,0x69,0x67,0x68])}),_0x49be47[_0x501431([0x6f,0x6e])](_0x501431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4db82c=>{_0x41bbc8(_0x4db82c[_0x501431([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x38069a=!0x0,_0x3046c3(_0x4db82c[_0x501431([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x501431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x501431([0x6c,0x6f,0x77])}),_0x9b6865[_0x501431([0x74,0x68,0x65,0x6e])](()=>{_0x38069a||_0x39e66e(_0x501431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd5e37d(){return _0x49be47[_0x501431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x501431([0x76,0x69,0x65,0x77])][_0x501431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x501431([0x61,0x75,0x74,0x6f]);}function _0x33265b(){_0x49be47[_0x501431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x501431([0x76,0x69,0x65,0x77])][_0x501431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x501431([0x61,0x75,0x74,0x6f]);}}function _0x133743(_0x395fe6){const _0x1dcf4d=[new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fc58=>setTimeout(_0x34fc58,0x47abbbca^_0xc7c3ce)),_0x9b6865[_0x501431([0x74,0x68,0x65,0x6e])](()=>new window[(_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e4d6=>{let _0x553fa1=0x0;_0x49be47[_0x501431([0x6d,0x6f,0x64,0x65,0x6c])][_0x501431([0x6f,0x6e])](_0x501431([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42c182,_0x4d25df)=>{_0x4d25df[0x0][_0x501431([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x553fa1++,_0x553fa1==(0x47a280ee^_0xc7c3ce)&&(_0x47e4d6(),_0x42c182[_0x501431([0x6f,0x66,0x66])]());});}))];return window[_0x501431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x501431([0x72,0x61,0x63,0x65])](_0x1dcf4d)[_0x501431([0x74,0x68,0x65,0x6e])](()=>_0x395fe6);}async function _0x25314e(){await _0x9b6865,_0x49be47[_0x501431([0x6d,0x6f,0x64,0x65,0x6c])][_0x501431([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e04d5,_0x49be47[_0x501431([0x6d,0x6f,0x64,0x65,0x6c])][_0x501431([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e04d5,_0x49be47[_0x501431([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x501431([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x119c71(_0x5cdba2){const _0x43f0ba=_0x4dd14e();_0x49be47[_0x43f0ba]=_0x501431([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cdba2,_0x5cdba2!=_0x501431([0x56,0x61,0x6c,0x69,0x64])&&_0x25314e();}function _0x4dd14e(){const _0x120b9f=window[_0x501431([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x501431([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x501431([0x6e,0x6f,0x77])]())[_0x501431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x501431([0x2e]),'');let _0x368ee7=_0x501431([0x75]);for(let _0x4b237c=0x0;_0x4b237c<_0x120b9f[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b237c+=0x2){let _0x47a8ca=window[_0x501431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x120b9f[_0x501431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b237c,_0x4b237c+0x2));_0x47a8ca>=_0x5628d5[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47a8ca-=_0x5628d5[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x368ee7+=_0x5628d5[_0x47a8ca];}return _0x368ee7;}function _0x24e42b(){const _0x46865a=_0x445dd7[_0x501431([0x73,0x70,0x6c,0x69,0x74])](_0x501431([0x2e]));if(0x3!=_0x46865a[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ae7cf(_0x46865a[0x1]);function _0x5ae7cf(_0x2b6cdd){const _0x642a3b=_0x155a44(_0x2b6cdd);return _0x642a3b&&_0x3a6248()?_0x642a3b:null;function _0x3a6248(){const _0x112816=_0x642a3b[_0x501431([0x6a,0x74,0x69])],_0x13dd8d=window[_0x501431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112816[_0x501431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x112816[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x157677={..._0x642a3b,[_0x501431([0x6a,0x74,0x69])]:_0x112816[_0x501431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x112816[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x157677[_0x501431([0x76,0x63])],_0x2cc8bb(_0x157677)==_0x13dd8d;}}}async function _0x1d3019(){let _0x2d5606=!0x0;try{const _0x32247c=_0x445dd7[_0x501431([0x73,0x70,0x6c,0x69,0x74])](_0x501431([0x2e])),[_0x5d4068,_0x5e50a2,_0x160934]=_0x32247c;return _0x4eb5ef(_0x5d4068),await _0xd56291(_0x5d4068,_0x5e50a2,_0x160934),_0x2d5606;}catch{return!0x1;}function _0x4eb5ef(_0x410c16){const _0x18a9f9=_0x155a44(_0x410c16);_0x18a9f9&&_0x18a9f9[_0x501431([0x61,0x6c,0x67])]==_0x501431([0x45,0x53,0x32,0x35,0x36])||(_0x2d5606=!0x1);}async function _0xd56291(_0x1ad369,_0x32b2b7,_0xbda63d){const _0x2d3772=window[_0x501431([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x501431([0x66,0x72,0x6f,0x6d])](_0x38de56(_0xbda63d),_0x2238d2=>_0x2238d2[_0x501431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbdbbad=new window[(_0x501431([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x501431([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ad369+_0x501431([0x2e])+_0x32b2b7),_0x1909e0=window[_0x501431([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x501431([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1909e0)return;const _0x23eb8c=await _0x1909e0[_0x501431([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x501431([0x6a,0x77,0x6b]),_0x49e920,{[_0x501431([0x6e,0x61,0x6d,0x65])]:_0x501431([0x45,0x43,0x44,0x53,0x41]),[_0x501431([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x501431([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x501431([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1909e0[_0x501431([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x501431([0x6e,0x61,0x6d,0x65])]:_0x501431([0x45,0x43,0x44,0x53,0x41]),[_0x501431([0x68,0x61,0x73,0x68])]:{[_0x501431([0x6e,0x61,0x6d,0x65])]:_0x501431([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23eb8c,_0x2d3772,_0xbdbbad)||(_0x2d5606=!0x1);}}function _0x155a44(_0x5bf30d){return _0x5bf30d[_0x501431([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x501431([0x65,0x79]))?JSON[_0x501431([0x70,0x61,0x72,0x73,0x65])](_0x38de56(_0x5bf30d)):null;}function _0x38de56(_0xd5c42){return window[_0x501431([0x61,0x74,0x6f,0x62])](_0xd5c42[_0x501431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x501431([0x2b]))[_0x501431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x501431([0x2f])));}function _0x2cc8bb(_0x431fa6){let _0x2df111=0x1505;function _0x379ae9(_0x1b8a35){for(let _0x31ef8c=0x0;_0x31ef8c<_0x1b8a35[_0x501431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31ef8c++){const _0x2f4df7=_0x1b8a35[_0x501431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31ef8c);_0x2df111=(_0x2df111<<0x5)+_0x2df111+_0x2f4df7,_0x2df111&=_0x2df111;}}function _0x20e7de(_0x40e371){Array[_0x501431([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40e371)?_0x40e371[_0x501431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20e7de):_0x40e371&&typeof _0x40e371==_0x501431([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x501431([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40e371)[_0x501431([0x73,0x6f,0x72,0x74])]()[_0x501431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30e8dc,_0x44ab6d])=>{_0x379ae9(_0x30e8dc),_0x20e7de(_0x44ab6d);}):_0x379ae9(window[_0x501431([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40e371));}return _0x20e7de(_0x431fa6),_0x2df111>>>0x0;}function _0x3bc683(_0x17f19b){return _0x17f19b[_0x501431([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x501431([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x501431([0x30]));}function _0x1a82e4(_0x36ec5f){return _0x36ec5f[_0x501431([0x73,0x70,0x6c,0x69,0x74])]('')[_0x501431([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x501431([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e04d5(){}function _0x501431(_0x37b2a9){return _0x37b2a9['map'](_0x3393a8=>String['fromCharCode'](_0x3393a8))['join']('');}_0x119c71(await _0xef2f19());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2cbd2d){const {plugins:_0x28fa48,editing:_0x35f198,model:_0x5801b0}=this['editor'],_0x44b4f3=_0x28fa48['get'](_0x5210a7)['getFootnote'](_0x2cbd2d);return!!_0x44b4f3&&(_0x5801b0['change'](_0x379daf=>{_0x379daf['setSelection'](_0x379daf['createPositionAt'](_0x44b4f3['definition'],'end'));}),_0x35f198['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2ab113){const {plugins:_0x26fbff,editing:_0x519d1f,model:_0x487c15}=this['editor'],_0x170761=_0x26fbff['get'](_0x5210a7)['getFootnote'](_0x2ab113);return!!_0x170761&&(_0x487c15['change'](_0x11e775=>{_0x11e775['setSelection'](_0x170761['reference'],'on');}),_0x519d1f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5c6ce7}=this['editor']['model'],_0x19bf2f=this['editor']['config']['get']('footnotes.multiBlock');_0x5c6ce7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5c6ce7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5c6ce7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x19bf2f?_0x5c6ce7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5c6ce7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5c6ce7['addChildCheck'](_0x367d24=>{for(const _0x41a0d2 of _0x367d24)if('footnoteDefinition'===_0x41a0d2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b19eb}=this,{conversion:_0x506146,editing:_0x59a2f0}=_0x2b19eb,{t:t}=_0x2b19eb['locale'];_0x506146['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4782cf,{writer:_0x2b1459,consumable:_0x1d5108})=>{const _0x253404=_0x4782cf['getChild'](0x0);if(!_0x253404||!_0x253404['is']('element','a'))return null;const _0x355017=_0x253404['getAttribute']('href')||'';if(!_0x355017['startsWith']('#'))return null;const _0x510ed8=_0x355017['replace'](/^#/,'');if(!_0x510ed8)return null;_0x1d5108['consume'](_0x253404,{'name':!0x0,'attributes':['href']});for(const {item:_0x32caa2}of _0x59a2f0['view']['createRangeIn'](_0x253404))_0x32caa2['is']('$textProxy')?_0x1d5108['consume'](_0x32caa2['textNode'],{'name':!0x0}):_0x32caa2['is']('element')&&_0x1d5108['consume'](_0x32caa2,{'name':!0x0});return _0x2b1459['createElement']('footnoteRef',{'footnoteId':_0x510ed8});}}),_0x506146['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3678a2,{writer:_0xbace60})=>b(_0x3678a2,_0xbace60)}),_0x506146['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x550645,{writer:_0x1c42ee})=>{const _0x111d8a=_0x550645['getAttribute']('footnoteCounter');return _0x59b46d(b(_0x550645,_0x1c42ee),_0x1c42ee,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x111d8a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3a19b3}=this,{t:t}=_0x3a19b3['locale'],{conversion:_0x1739a4}=_0x3a19b3;_0x1739a4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1739a4['for']('upcast')['add'](_0x69be41=>{_0x69be41['on']('element:ol',(_0x4884c2,_0x5ae1e9,_0x48e0ae)=>{const _0x3c85dc=_0x5ae1e9['viewItem'];if(!_0x3c85dc['hasClass']('footnotes-list')||!_0x5ae1e9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x48e0ae['consumable']['consume'](_0x3c85dc,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x23184a,modelCursor:_0x3fe9be}=_0x48e0ae['convertChildren'](_0x5ae1e9['viewItem'],_0x5ae1e9['modelCursor']);_0x5ae1e9['modelRange']=_0x23184a,_0x5ae1e9['modelCursor']=_0x3fe9be;}),_0x69be41['on']('element:hr',(_0x3497ba,_0x47b209,_0x258a3a)=>{const _0x3f712b=_0x47b209['viewItem'];_0x3f712b['hasClass']('footnotes-divider')&&_0x47b209['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x258a3a['consumable']['consume'](_0x3f712b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1739a4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x251884,{writer:_0x1037b})=>D(_0x1037b)}),_0x1739a4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x20f148,{writer:_0x1e9e5a})=>{const _0x503ed0=D(_0x1e9e5a,{'data-footnotes-list-label':t('Footnotes')}),_0x3bbede=_0x59b46d(_0x503ed0,_0x1e9e5a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1e9e5a['setCustomProperty']('footnotesDefinitions',!0x0,_0x3bbede),_0x3bbede;}});}['_defineDefinitionConverters'](){const {editor:_0x28840e}=this,{conversion:_0x13310a,locale:_0x7f466a}=_0x28840e,_0x4877fd=_0x28840e['config']['get']('footnotes.multiBlock');_0x13310a['for']('upcast')['add'](_0x1271cd=>{_0x1271cd['on']('element:li',(_0x3b034f,_0x23f806,_0x5b0f63)=>{const _0x58aebc=_0x23f806['viewItem'];if(!_0x58aebc['hasClass']('footnote-definition')||!_0x58aebc['getAttribute']('id'))return;const _0x352905=_0x58aebc['parent'];if(!_0x352905['is']('element','ol')||!_0x352905['hasClass']('footnotes-list'))return;if(!_0x5b0f63['consumable']['test'](_0x58aebc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1aba7b=_0x5b0f63['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x58aebc['getAttribute']('id')});if(!_0x5b0f63['safeInsert'](_0x1aba7b,_0x23f806['modelCursor']))return;_0x5b0f63['consumable']['consume'](_0x58aebc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x56910c=Array['from'](_0x58aebc['getChildren']())['find'](_0x222e4e=>_0x222e4e['is']('element')&&_0x222e4e['hasClass']('footnote-content'));for(const _0x4e1b4b of _0x58aebc['getChildren']())_0x4e1b4b['is']('element')&&(_0x5b0f63['consumable']['consume'](_0x4e1b4b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b0f63['consumable']['consume'](_0x4e1b4b,{'name':!0x0,'classes':'footnote-content'}));if(_0x56910c){if(_0x4877fd)_0x5b0f63['convertChildren'](_0x56910c,_0x1aba7b);else{const _0x11bb61=_0x5b0f63['writer']['createElement']('footnoteInlineContent');_0x5b0f63['writer']['insert'](_0x11bb61,_0x1aba7b),_0x5b0f63['convertChildren'](_0x56910c,_0x11bb61);}}_0x5b0f63['updateConversionResult'](_0x1aba7b,_0x23f806);});}),_0x13310a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x108fb2,{writer:_0x38dfa7})=>y(_0x108fb2,_0x38dfa7,_0x7f466a,{'dataPipeline':!0x0})}),_0x13310a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x174b58,{writer:_0x16cffa})=>y(_0x174b58,_0x16cffa,_0x7f466a)});}['_defineBogusParagraphConverters'](){const {editor:_0x5e6a06}=this,{conversion:_0x47bf91}=_0x5e6a06;_0x5e6a06['config']['get']('footnotes.multiBlock')?(_0x47bf91['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x47bf91['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5e6a06['model']['document'],'change:data',()=>{!function(_0x1fbb5c,_0x5eeba2){const _0x3ea550=_0x1fbb5c['document']['differ'],_0x4737dc=new Set();for(const _0x55f156 of _0x3ea550['getChanges']()){const _0x4efde6='attribute'==_0x55f156['type']?_0x55f156['range']['start']['parent']:_0x55f156['position']['parent'];_0x4efde6['is']('element','footnoteDefinition')&&_0x4737dc['add'](_0x4efde6);}for(const _0x8bcdb5 of _0x4737dc['values']()){const _0x4cb13a=Array['from'](_0x8bcdb5['getChildren']())['filter'](_0x39e01b=>v(_0x39e01b,_0x5eeba2['mapper']));for(const _0x4cdc43 of _0x4cb13a)_0x5eeba2['reconvertItem'](_0x4cdc43);}}(_0x5e6a06['model'],_0x5e6a06['editing']);})):(_0x47bf91['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x47bf91['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x196055,{writer:_0x26283a})=>{const _0x140d68=_0x26283a['createContainerElement']('span');return _0x26283a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x140d68),_0x140d68;}}));}['_defineKeyboardHandlers'](){const {editor:_0x284d3d}=this,{editing:_0x15d23e,t:t}=_0x284d3d,_0x3d34d9=_0x284d3d['model']['document']['selection'];_0x284d3d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x284d3d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x15d23e['view']['document'],'enter',(_0x5755a4,_0x4d6afb)=>{const _0x2b9d3d=function(_0x1dc94f){const _0x4da16b=_0x1dc94f['getSelectedElement']();if(_0x4da16b?.['is']('element','footnoteRef'))return _0x4da16b;return null;}(_0x3d34d9);if(_0x2b9d3d){const _0x3f12b6=_0x2b9d3d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3f12b6),_0x4d6afb['preventDefault'](),_0x5755a4['stop']();}},{'context':_0x96e382});}['_defineClickHandlers'](){const {editor:_0x17202e}=this,{editing:_0x53882c}=_0x17202e;_0x17202e['editing']['view']['addObserver'](_0x53a94d),_0x17202e['editing']['view']['addObserver'](_0x43c3f7);let _0x54addc=!0x1;this['listenTo'](_0x53882c['view']['document'],'pointerdown',(_0x25656a,_0x131d75)=>{const {target:_0xed5e04}=_0x131d75,_0x1e0eca=_0x53882c['view']['document']['selection'];_0x54addc=!!(_0xed5e04?.['is']('element','a')&&_0xed5e04['parent']?.['is']('element','sup')&&_0xed5e04['parent']['hasClass']('footnote'))&&_0x1e0eca['getSelectedElement']()===_0xed5e04['parent'];},{'priority':'high'}),this['listenTo'](_0x53882c['view']['document'],'click',(_0x122c93,_0x293370)=>{const {target:_0x491b53}=_0x293370;if(!_0x491b53?.['is']('element','a'))return;if(_0x491b53['parent']?.['is']('element','sup')&&_0x491b53['parent']['hasClass']('footnote')&&!_0x54addc)return void _0x293370['preventDefault']();let _0x1178c9=_0x491b53['getAttribute']('href');if(!_0x1178c9?.['startsWith']('#'))return;_0x1178c9=_0x1178c9['slice'](0x1);let _0x32c3c4=!0x1;(_0x1178c9['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1178c9['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1178c9))&&(_0x32c3c4=!0x0),_0x32c3c4&&(_0x293370['preventDefault'](),_0x122c93['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3188d2}={}){return(_0x1470f9,{writer:_0x287f72})=>{if(!g(_0x1470f9))return null;if(!_0x3188d2)return _0x287f72['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x26d0a2=_0x287f72['createContainerElement']('p');return _0x287f72['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x26d0a2),_0x26d0a2;};}function g(_0x8533db){const {parent:_0x398dd5}=_0x8533db;if(!_0x398dd5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x398dd5['childCount'])return!0x1;for(const _0x31b43b of _0x8533db['getAttributeKeys']())if(!_0x31b43b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x31b43b)return!0x1;return!0x0;}function v(_0x1b5b86,_0x573143){if(!_0x1b5b86['is']('element','paragraph'))return!0x1;const _0x275da0=_0x573143['toViewElement'](_0x1b5b86);return!!_0x275da0&&g(_0x1b5b86)!==_0x275da0['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x416f3e){return _0x96e382(_0x416f3e)&&_0x416f3e['is']('containerElement')&&!!_0x416f3e['getCustomProperty']('footnotesDefinitions');}function D(_0x525728,_0x341c90={}){const _0xa506a5=_0x525728['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x53f5fc=_0x525728['createContainerElement']('ol',{'class':'footnotes-list'},_0x525728['createSlot']());return _0x525728['createContainerElement']('div',{'class':'footnotes',..._0x341c90},[_0xa506a5,_0x53f5fc]);}function b(_0x1f43d7,_0x2035e4){const _0x278349=_0x1f43d7['getAttribute']('footnoteId'),_0x2d29d4=_0x1f43d7['getAttribute']('footnoteCounter'),_0x101f04=_0x2035e4['createUIElement']('a',{'href':'#'+_0x278349},function(_0x663740){const _0x1c99b2=this['toDomElement'](_0x663740);return _0x1c99b2['textContent']=_0x2d29d4,_0x1c99b2;}),_0x4c7ade=_0x2035e4['createContainerElement']('sup',{'id':'ref-'+_0x278349,'class':'footnote'},[_0x101f04]);return _0x4c7ade['getFillerOffset']=()=>null,_0x4c7ade;}function y(_0x546d21,_0x4485ca,_0x2d9f85,{dataPipeline:_0x1a9e56}={}){const {t:t}=_0x2d9f85,_0x19a528=_0x546d21['getAttribute']('footnoteId'),_0x4aa00a=_0x4485ca['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x19a528},function(_0x4f2167){const _0x1b4088=this['toDomElement'](_0x4f2167);return _0x1b4088['innerText']='^',_0x1b4088;}),_0x1e35b6=_0x1a9e56?_0x4485ca['createContainerElement']('div',{'class':'footnote-content'}):_0x20b9a8(_0x4485ca['createEditableElement']('div',{'class':'footnote-content'}),_0x4485ca,{'label':t('Footnote\x20content.')});return _0x4485ca['insert'](_0x4485ca['createPositionAt'](_0x1e35b6,0x0),_0x4485ca['createSlot']()),_0x4485ca['createContainerElement']('li',{'class':'footnote-definition','id':_0x19a528},[_0x4aa00a,_0x1e35b6]);}
|
|
23
|
+
import{Plugin as _0x893be4}from'ckeditor5/src/core.js';import{isWidget as _0x4d366c,toWidget as _0x38363d,toWidgetEditable as _0x206794}from'ckeditor5/src/widget.js';import{uid as _0x50ad8c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4d796f,ClickObserver as _0x1f570d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2a3b9e}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x30cf12}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x893be4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2a3b9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52ba41}=this;_0x52ba41['config']['define']('footnotes.multiBlock',!0x0),_0x52ba41['commands']['add']('insertFootnote',new _0x30cf12(_0x52ba41)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x33eb2f){const _0x45c1ec=_0x1b132f([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x20462e=0x47a28506,_0x207ff9=0x47a5f9d6^_0x20462e,_0x2fbf19=window[_0x1b132f([0x44,0x61,0x74,0x65])][_0x1b132f([0x6e,0x6f,0x77])](),_0x160824=_0x33eb2f[_0x1b132f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58db01=new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x244e68=>{_0x160824[_0x1b132f([0x6f,0x6e,0x63,0x65])](_0x1b132f([0x72,0x65,0x61,0x64,0x79]),_0x244e68);}),_0x3d8a91={[_0x1b132f([0x6b,0x74,0x79])]:_0x1b132f([0x45,0x43]),[_0x1b132f([0x75,0x73,0x65])]:_0x1b132f([0x73,0x69,0x67]),[_0x1b132f([0x63,0x72,0x76])]:_0x1b132f([0x50,0x2d,0x32,0x35,0x36]),[_0x1b132f([0x78])]:_0x1b132f([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]),[_0x1b132f([0x79])]:_0x1b132f([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]),[_0x1b132f([0x61,0x6c,0x67])]:_0x1b132f([0x45,0x53,0x32,0x35,0x36])},_0x563df3=_0x160824[_0x1b132f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b132f([0x67,0x65,0x74])](_0x1b132f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12b72e(){let _0x359c70,_0x4d7e8f=null,_0x56c855=null;try{if(_0x563df3==_0x1b132f([0x47,0x50,0x4c]))return _0x1b132f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x359c70=_0x52e184(),!_0x359c70)return _0x1b132f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x359c70[_0x1b132f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56c855=_0x5cfa17(_0x359c70[_0x1b132f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x359c70[_0x1b132f([0x6a,0x74,0x69])])),await _0xc250a8()?_0x2de16c()?_0x3d1a91()?_0x1b132f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41d5af()?(_0x359c70[_0x1b132f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b132f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d7e8f=_0x3fc484(_0x1b132f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x359c70[_0x1b132f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b132f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d7e8f=_0x3fc484(_0x1b132f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x259257()):_0x1b132f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b132f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b132f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b132f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d1a91(){const _0x4fabc5=[_0x1b132f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b132f([0x74,0x72,0x69,0x61,0x6c])][_0x1b132f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359c70[_0x1b132f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fbf19/0x3e8:0xe10*_0x207ff9;return _0x359c70[_0x1b132f([0x65,0x78,0x70])]<_0x4fabc5;}function _0x2de16c(){const _0x1c330f=_0x359c70[_0x1b132f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c330f&&(!!_0x1c330f[_0x1b132f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b132f([0x2a]))||!!_0x1c330f[_0x1b132f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b132f([0x46,0x4f,0x4f])));}function _0x41d5af(){const _0x189e04=_0x359c70[_0x1b132f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x189e04||0x0==_0x189e04[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26ed5a}=new URL(window[_0x1b132f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x189e04[_0x1b132f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ed5a))return!0x0;const _0x1ccbcb=_0x26ed5a[_0x1b132f([0x73,0x70,0x6c,0x69,0x74])](_0x1b132f([0x2e]));return _0x189e04[_0x1b132f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e19e2=>_0x2e19e2[_0x1b132f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b132f([0x2a])))[_0x1b132f([0x6d,0x61,0x70])](_0xbfbc5b=>_0xbfbc5b[_0x1b132f([0x73,0x70,0x6c,0x69,0x74])](_0x1b132f([0x2e])))[_0x1b132f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x337fa3=>_0x337fa3[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ccbcb[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b132f([0x6d,0x61,0x70])](_0x1fbd79=>Array(_0x1ccbcb[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fbd79[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b132f([0x66,0x69,0x6c,0x6c])](_0x1fbd79[0x0]===_0x1b132f([0x2a])?_0x1b132f([0x2a]):'')[_0x1b132f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fbd79))[_0x1b132f([0x73,0x6f,0x6d,0x65])](_0x464e09=>_0x1ccbcb[_0x1b132f([0x65,0x76,0x65,0x72,0x79])]((_0x4f26f2,_0x220573)=>_0x464e09[_0x220573]===_0x4f26f2||_0x464e09[_0x220573]===_0x1b132f([0x2a])));}function _0x259257(){return _0x4d7e8f&&_0x56c855?new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a252b,_0x1e913d)=>{_0x4d7e8f[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x3a252b,_0x1e913d),_0x56c855[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x4790bd=>{_0x4790bd!=_0x1b132f([0x56,0x61,0x6c,0x69,0x64])&&_0x3a252b(_0x4790bd);},_0x1e913d);}):_0x4d7e8f||_0x56c855||_0x1b132f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cfa17(_0x2d5099,_0x2fa05a){return new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159d6b=>{if(_0x3e7eeb())return _0x159d6b(_0x1b132f([0x56,0x61,0x6c,0x69,0x64]));_0x1a710c(),_0x160824[_0x1b132f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b132f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13f547=!0x1;const _0x2af09a=_0x50ad8c();function _0x465dfa(_0x8dfe11){return!!_0x8dfe11&&(typeof _0x8dfe11===_0x1b132f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8dfe11===_0x1b132f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8dfe11[_0x1b132f([0x74,0x68,0x65,0x6e])]===_0x1b132f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8dfe11[_0x1b132f([0x63,0x61,0x74,0x63,0x68])]===_0x1b132f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d6b6b(_0x37ab93){_0x59a016(_0x37ab93)[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x26560e=>{if(!_0x26560e||_0x26560e[_0x1b132f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b132f([0x6f,0x6b]))return _0x1b132f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf829d1(_0x5cfbb1(_0x2af09a+_0x2fa05a))!=_0x26560e[_0x1b132f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b132f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b132f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x3a476d=>(_0x3a1dee(),_0x3a476d),()=>{const _0x30270e=_0x3f8b1d();return null==_0x30270e?(_0x3a1dee(),_0x1b132f([0x56,0x61,0x6c,0x69,0x64])):_0x1b132f(_0x2fbf19-_0x30270e>(0x63ae0106^_0x20462e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x159d6b)[_0x1b132f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x159d6b(_0x1b132f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379ee2=0x47946b86^_0x20462e;function _0x3a1dee(){const _0x2486dc=_0x1b132f([0x6c,0x6c,0x63,0x74,0x2d])+_0xf829d1(_0x5cfbb1(_0x2d5099)),_0x168b2c=_0x2bcdea(_0xf829d1(window[_0x1b132f([0x4d,0x61,0x74,0x68])][_0x1b132f([0x63,0x65,0x69,0x6c])](_0x2fbf19/_0x379ee2)));window[_0x1b132f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b132f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2486dc,_0x168b2c);}function _0x3f8b1d(){const _0x58d0ea=_0x1b132f([0x6c,0x6c,0x63,0x74,0x2d])+_0xf829d1(_0x5cfbb1(_0x2d5099)),_0x3d352a=window[_0x1b132f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b132f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58d0ea);return _0x3d352a?window[_0x1b132f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bcdea(_0x3d352a),0x10)*_0x379ee2:null;}function _0x59a016(_0x45736b){return new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e5758,_0x447781)=>{_0x45736b[_0x1b132f([0x74,0x68,0x65,0x6e])](_0x2e5758,_0x447781),window[_0x1b132f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x447781,0x47a351c6^_0x20462e);});}}_0x160824[_0x1b132f([0x6f,0x6e])](_0x1b132f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47aa60,_0x24e70f)=>{if(_0x24e70f[0x0]!=_0x2d5099)return _0x159d6b(_0x1b132f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24e70f[0x1]={..._0x24e70f[0x1],[_0x1b132f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2af09a};},{[_0x1b132f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b132f([0x68,0x69,0x67,0x68])}),_0x160824[_0x1b132f([0x6f,0x6e])](_0x1b132f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d5de2=>{_0x465dfa(_0x2d5de2[_0x1b132f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13f547=!0x0,_0x4d6b6b(_0x2d5de2[_0x1b132f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b132f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b132f([0x6c,0x6f,0x77])}),_0x58db01[_0x1b132f([0x74,0x68,0x65,0x6e])](()=>{_0x13f547||_0x159d6b(_0x1b132f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e7eeb(){return _0x160824[_0x1b132f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b132f([0x76,0x69,0x65,0x77])][_0x1b132f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b132f([0x61,0x75,0x74,0x6f]);}function _0x1a710c(){_0x160824[_0x1b132f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b132f([0x76,0x69,0x65,0x77])][_0x1b132f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b132f([0x61,0x75,0x74,0x6f]);}}function _0x3fc484(_0x192045){const _0x5a2d50=[new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4541b0=>setTimeout(_0x4541b0,0x47abbbca^_0x20462e)),_0x58db01[_0x1b132f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388a9b=>{let _0xe5a3b2=0x0;_0x160824[_0x1b132f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b132f([0x6f,0x6e])](_0x1b132f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a5608,_0x32969d)=>{_0x32969d[0x0][_0x1b132f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe5a3b2++,_0xe5a3b2==(0x47a280ee^_0x20462e)&&(_0x388a9b(),_0x1a5608[_0x1b132f([0x6f,0x66,0x66])]());});}))];return window[_0x1b132f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b132f([0x72,0x61,0x63,0x65])](_0x5a2d50)[_0x1b132f([0x74,0x68,0x65,0x6e])](()=>_0x192045);}async function _0x2cd387(){await _0x58db01,_0x160824[_0x1b132f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b132f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x592bbf,_0x160824[_0x1b132f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b132f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x592bbf,_0x160824[_0x1b132f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b132f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x570d75(_0x52f6e5){const _0x56b96c=_0x513c39();_0x160824[_0x56b96c]=_0x1b132f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52f6e5,_0x52f6e5!=_0x1b132f([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd387();}function _0x513c39(){const _0x138199=window[_0x1b132f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b132f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b132f([0x6e,0x6f,0x77])]())[_0x1b132f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b132f([0x2e]),'');let _0x1e0bf7=_0x1b132f([0x75]);for(let _0xd7ed85=0x0;_0xd7ed85<_0x138199[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd7ed85+=0x2){let _0x164002=window[_0x1b132f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x138199[_0x1b132f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd7ed85,_0xd7ed85+0x2));_0x164002>=_0x45c1ec[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x164002-=_0x45c1ec[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e0bf7+=_0x45c1ec[_0x164002];}return _0x1e0bf7;}function _0x52e184(){const _0x4d9d02=_0x563df3[_0x1b132f([0x73,0x70,0x6c,0x69,0x74])](_0x1b132f([0x2e]));if(0x3!=_0x4d9d02[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4adc24(_0x4d9d02[0x1]);function _0x4adc24(_0x14202a){const _0xe02e2c=_0xdbdd44(_0x14202a);return _0xe02e2c&&_0x29c82c()?_0xe02e2c:null;function _0x29c82c(){const _0x4c3090=_0xe02e2c[_0x1b132f([0x6a,0x74,0x69])],_0x23f71b=window[_0x1b132f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3090[_0x1b132f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3090[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cd9cb={..._0xe02e2c,[_0x1b132f([0x6a,0x74,0x69])]:_0x4c3090[_0x1b132f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c3090[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cd9cb[_0x1b132f([0x76,0x63])],_0x5cfbb1(_0x3cd9cb)==_0x23f71b;}}}async function _0xc250a8(){let _0x56a55e=!0x0;try{const _0x35cece=_0x563df3[_0x1b132f([0x73,0x70,0x6c,0x69,0x74])](_0x1b132f([0x2e])),[_0x49c5e5,_0x46c64a,_0x24cf59]=_0x35cece;return _0x20ed91(_0x49c5e5),await _0x14de68(_0x49c5e5,_0x46c64a,_0x24cf59),_0x56a55e;}catch{return!0x1;}function _0x20ed91(_0x2085a3){const _0xfc3580=_0xdbdd44(_0x2085a3);_0xfc3580&&_0xfc3580[_0x1b132f([0x61,0x6c,0x67])]==_0x1b132f([0x45,0x53,0x32,0x35,0x36])||(_0x56a55e=!0x1);}async function _0x14de68(_0x2faeb2,_0xb48d50,_0x4333df){const _0x2b2f27=window[_0x1b132f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b132f([0x66,0x72,0x6f,0x6d])](_0x50c8d2(_0x4333df),_0x1265d8=>_0x1265d8[_0x1b132f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49113b=new window[(_0x1b132f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b132f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2faeb2+_0x1b132f([0x2e])+_0xb48d50),_0x131890=window[_0x1b132f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b132f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x131890)return;const _0xb85ada=await _0x131890[_0x1b132f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b132f([0x6a,0x77,0x6b]),_0x3d8a91,{[_0x1b132f([0x6e,0x61,0x6d,0x65])]:_0x1b132f([0x45,0x43,0x44,0x53,0x41]),[_0x1b132f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b132f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b132f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x131890[_0x1b132f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b132f([0x6e,0x61,0x6d,0x65])]:_0x1b132f([0x45,0x43,0x44,0x53,0x41]),[_0x1b132f([0x68,0x61,0x73,0x68])]:{[_0x1b132f([0x6e,0x61,0x6d,0x65])]:_0x1b132f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb85ada,_0x2b2f27,_0x49113b)||(_0x56a55e=!0x1);}}function _0xdbdd44(_0x31f47e){return _0x31f47e[_0x1b132f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b132f([0x65,0x79]))?JSON[_0x1b132f([0x70,0x61,0x72,0x73,0x65])](_0x50c8d2(_0x31f47e)):null;}function _0x50c8d2(_0x3da898){return window[_0x1b132f([0x61,0x74,0x6f,0x62])](_0x3da898[_0x1b132f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b132f([0x2b]))[_0x1b132f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b132f([0x2f])));}function _0x5cfbb1(_0x173b96){let _0x5b37f3=0x1505;function _0x3548ed(_0x5c5530){for(let _0x1c0e20=0x0;_0x1c0e20<_0x5c5530[_0x1b132f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c0e20++){const _0x202822=_0x5c5530[_0x1b132f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1c0e20);_0x5b37f3=(_0x5b37f3<<0x5)+_0x5b37f3+_0x202822,_0x5b37f3&=_0x5b37f3;}}function _0x142c22(_0xc47258){Array[_0x1b132f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc47258)?_0xc47258[_0x1b132f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x142c22):_0xc47258&&typeof _0xc47258==_0x1b132f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b132f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc47258)[_0x1b132f([0x73,0x6f,0x72,0x74])]()[_0x1b132f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x288c49,_0x404839])=>{_0x3548ed(_0x288c49),_0x142c22(_0x404839);}):_0x3548ed(window[_0x1b132f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc47258));}return _0x142c22(_0x173b96),_0x5b37f3>>>0x0;}function _0xf829d1(_0x41789){return _0x41789[_0x1b132f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b132f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b132f([0x30]));}function _0x2bcdea(_0x3da887){return _0x3da887[_0x1b132f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b132f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b132f([0x6a,0x6f,0x69,0x6e])]('');}function _0x592bbf(){}function _0x1b132f(_0x2a0a52){return _0x2a0a52['map'](_0x19f202=>String['fromCharCode'](_0x19f202))['join']('');}_0x570d75(await _0x12b72e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3823d7){const {plugins:_0xd5ba40,editing:_0x3122bb,model:_0x2af4dc}=this['editor'],_0x3d23ab=_0xd5ba40['get'](_0x2a3b9e)['getFootnote'](_0x3823d7);return!!_0x3d23ab&&(_0x2af4dc['change'](_0x29fdcf=>{_0x29fdcf['setSelection'](_0x29fdcf['createPositionAt'](_0x3d23ab['definition'],'end'));}),_0x3122bb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x30cb84){const {plugins:_0x1db19b,editing:_0x87ad26,model:_0x381fe4}=this['editor'],_0x45c27e=_0x1db19b['get'](_0x2a3b9e)['getFootnote'](_0x30cb84);return!!_0x45c27e&&(_0x381fe4['change'](_0x1a271e=>{_0x1a271e['setSelection'](_0x45c27e['reference'],'on');}),_0x87ad26['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x24b7c3}=this['editor']['model'],_0x50da81=this['editor']['config']['get']('footnotes.multiBlock');_0x24b7c3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x24b7c3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x24b7c3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x50da81?_0x24b7c3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x24b7c3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x24b7c3['addChildCheck'](_0x1da0d6=>{for(const _0x415e4b of _0x1da0d6)if('footnoteDefinition'===_0x415e4b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xba0fa3}=this,{conversion:_0x262267,editing:_0x355036}=_0xba0fa3,{t:t}=_0xba0fa3['locale'];_0x262267['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x28cc09,{writer:_0x1c3168,consumable:_0x430047})=>{const _0x3f4c32=_0x28cc09['getChild'](0x0);if(!_0x3f4c32||!_0x3f4c32['is']('element','a'))return null;const _0x24fba8=_0x3f4c32['getAttribute']('href')||'';if(!_0x24fba8['startsWith']('#'))return null;const _0x559388=_0x24fba8['replace'](/^#/,'');if(!_0x559388)return null;_0x430047['consume'](_0x3f4c32,{'name':!0x0,'attributes':['href']});for(const {item:_0x51994}of _0x355036['view']['createRangeIn'](_0x3f4c32))_0x51994['is']('$textProxy')?_0x430047['consume'](_0x51994['textNode'],{'name':!0x0}):_0x51994['is']('element')&&_0x430047['consume'](_0x51994,{'name':!0x0});return _0x1c3168['createElement']('footnoteRef',{'footnoteId':_0x559388});}}),_0x262267['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x507929,{writer:_0x460ed3})=>b(_0x507929,_0x460ed3)}),_0x262267['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x303f16,{writer:_0x4f02fd})=>{const _0x40b277=_0x303f16['getAttribute']('footnoteCounter');return _0x38363d(b(_0x303f16,_0x4f02fd),_0x4f02fd,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x40b277)});}});}['_defineDefinitionsConverters'](){const {editor:_0x56aa3a}=this,{t:t}=_0x56aa3a['locale'],{conversion:_0x413d34}=_0x56aa3a;_0x413d34['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x413d34['for']('upcast')['add'](_0x585315=>{_0x585315['on']('element:ol',(_0x2ea5a5,_0x2c26d1,_0x373944)=>{const _0x1dd3e1=_0x2c26d1['viewItem'];if(!_0x1dd3e1['hasClass']('footnotes-list')||!_0x2c26d1['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x373944['consumable']['consume'](_0x1dd3e1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31c6ca,modelCursor:_0x25e34f}=_0x373944['convertChildren'](_0x2c26d1['viewItem'],_0x2c26d1['modelCursor']);_0x2c26d1['modelRange']=_0x31c6ca,_0x2c26d1['modelCursor']=_0x25e34f;}),_0x585315['on']('element:hr',(_0x3f161e,_0x5136f1,_0x254240)=>{const _0x52c13e=_0x5136f1['viewItem'];_0x52c13e['hasClass']('footnotes-divider')&&_0x5136f1['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x254240['consumable']['consume'](_0x52c13e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x413d34['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c0bc0,{writer:_0x50ef4a})=>D(_0x50ef4a)}),_0x413d34['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x53c208,{writer:_0x110ffa})=>{const _0x45dd57=D(_0x110ffa,{'data-footnotes-list-label':t('Footnotes')}),_0x33a538=_0x38363d(_0x45dd57,_0x110ffa,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x110ffa['setCustomProperty']('footnotesDefinitions',!0x0,_0x33a538),_0x33a538;}});}['_defineDefinitionConverters'](){const {editor:_0x2a3cf8}=this,{conversion:_0x2e0247,locale:_0x88b232}=_0x2a3cf8,_0x2c851e=_0x2a3cf8['config']['get']('footnotes.multiBlock');_0x2e0247['for']('upcast')['add'](_0x298a50=>{_0x298a50['on']('element:li',(_0x590968,_0x5f3bb0,_0x3edf9d)=>{const _0x6648d2=_0x5f3bb0['viewItem'];if(!_0x6648d2['hasClass']('footnote-definition')||!_0x6648d2['getAttribute']('id'))return;const _0x4d84f5=_0x6648d2['parent'];if(!_0x4d84f5['is']('element','ol')||!_0x4d84f5['hasClass']('footnotes-list'))return;if(!_0x3edf9d['consumable']['test'](_0x6648d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa28645=_0x3edf9d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x6648d2['getAttribute']('id')});if(!_0x3edf9d['safeInsert'](_0xa28645,_0x5f3bb0['modelCursor']))return;_0x3edf9d['consumable']['consume'](_0x6648d2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x360940=Array['from'](_0x6648d2['getChildren']())['find'](_0x1c24ab=>_0x1c24ab['is']('element')&&_0x1c24ab['hasClass']('footnote-content'));for(const _0x50bc9d of _0x6648d2['getChildren']())_0x50bc9d['is']('element')&&(_0x3edf9d['consumable']['consume'](_0x50bc9d,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3edf9d['consumable']['consume'](_0x50bc9d,{'name':!0x0,'classes':'footnote-content'}));if(_0x360940){if(_0x2c851e)_0x3edf9d['convertChildren'](_0x360940,_0xa28645);else{const _0x3cff63=_0x3edf9d['writer']['createElement']('footnoteInlineContent');_0x3edf9d['writer']['insert'](_0x3cff63,_0xa28645),_0x3edf9d['convertChildren'](_0x360940,_0x3cff63);}}_0x3edf9d['updateConversionResult'](_0xa28645,_0x5f3bb0);});}),_0x2e0247['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x296533,{writer:_0x52974a})=>y(_0x296533,_0x52974a,_0x88b232,{'dataPipeline':!0x0})}),_0x2e0247['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3e4be5,{writer:_0x2f2129})=>y(_0x3e4be5,_0x2f2129,_0x88b232)});}['_defineBogusParagraphConverters'](){const {editor:_0x55d7e7}=this,{conversion:_0x28998d}=_0x55d7e7;_0x55d7e7['config']['get']('footnotes.multiBlock')?(_0x28998d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x28998d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x55d7e7['model']['document'],'change:data',()=>{!function(_0x208fe2,_0xd4b9f6){const _0x427337=_0x208fe2['document']['differ'],_0x4cc4e1=new Set();for(const _0x315a3f of _0x427337['getChanges']()){const _0x3b16d8='attribute'==_0x315a3f['type']?_0x315a3f['range']['start']['parent']:_0x315a3f['position']['parent'];_0x3b16d8['is']('element','footnoteDefinition')&&_0x4cc4e1['add'](_0x3b16d8);}for(const _0xd65053 of _0x4cc4e1['values']()){const _0x433cc4=Array['from'](_0xd65053['getChildren']())['filter'](_0x40b82e=>v(_0x40b82e,_0xd4b9f6['mapper']));for(const _0x4086fe of _0x433cc4)_0xd4b9f6['reconvertItem'](_0x4086fe);}}(_0x55d7e7['model'],_0x55d7e7['editing']);})):(_0x28998d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x28998d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x26eb95,{writer:_0x810c8b})=>{const _0x4f2bc7=_0x810c8b['createContainerElement']('span');return _0x810c8b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4f2bc7),_0x4f2bc7;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4ac062}=this,{editing:_0x204622,t:t}=_0x4ac062,_0x2cefc9=_0x4ac062['model']['document']['selection'];_0x4ac062['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4ac062['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x204622['view']['document'],'enter',(_0x218996,_0x225fd4)=>{const _0xb38432=function(_0x5331b2){const _0x796e95=_0x5331b2['getSelectedElement']();if(_0x796e95?.['is']('element','footnoteRef'))return _0x796e95;return null;}(_0x2cefc9);if(_0xb38432){const _0xb542d1=_0xb38432['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xb542d1),_0x225fd4['preventDefault'](),_0x218996['stop']();}},{'context':_0x4d366c});}['_defineClickHandlers'](){const {editor:_0x4628ae}=this,{editing:_0x2725db}=_0x4628ae;_0x4628ae['editing']['view']['addObserver'](_0x4d796f),_0x4628ae['editing']['view']['addObserver'](_0x1f570d);let _0x953f0=!0x1;this['listenTo'](_0x2725db['view']['document'],'pointerdown',(_0xff1b5d,_0x155dde)=>{const {target:_0x349789}=_0x155dde,_0x2b3a26=_0x2725db['view']['document']['selection'];_0x953f0=!!(_0x349789?.['is']('element','a')&&_0x349789['parent']?.['is']('element','sup')&&_0x349789['parent']['hasClass']('footnote'))&&_0x2b3a26['getSelectedElement']()===_0x349789['parent'];},{'priority':'high'}),this['listenTo'](_0x2725db['view']['document'],'click',(_0x4d2f4a,_0x385016)=>{const {target:_0x2f95a5}=_0x385016;if(!_0x2f95a5?.['is']('element','a'))return;if(_0x2f95a5['parent']?.['is']('element','sup')&&_0x2f95a5['parent']['hasClass']('footnote')&&!_0x953f0)return void _0x385016['preventDefault']();let _0x5a7a4c=_0x2f95a5['getAttribute']('href');if(!_0x5a7a4c?.['startsWith']('#'))return;_0x5a7a4c=_0x5a7a4c['slice'](0x1);let _0x3ca4f1=!0x1;(_0x5a7a4c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5a7a4c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5a7a4c))&&(_0x3ca4f1=!0x0),_0x3ca4f1&&(_0x385016['preventDefault'](),_0x4d2f4a['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3dfe06}={}){return(_0x454e63,{writer:_0x2a6464})=>{if(!g(_0x454e63))return null;if(!_0x3dfe06)return _0x2a6464['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4179f0=_0x2a6464['createContainerElement']('p');return _0x2a6464['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4179f0),_0x4179f0;};}function g(_0x5f429c){const {parent:_0x5576cf}=_0x5f429c;if(!_0x5576cf?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5576cf['childCount'])return!0x1;for(const _0x1c25a0 of _0x5f429c['getAttributeKeys']())if(!_0x1c25a0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1c25a0)return!0x1;return!0x0;}function v(_0x56dc8c,_0x42608e){if(!_0x56dc8c['is']('element','paragraph'))return!0x1;const _0x9b6745=_0x42608e['toViewElement'](_0x56dc8c);return!!_0x9b6745&&g(_0x56dc8c)!==_0x9b6745['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x19e300){return _0x4d366c(_0x19e300)&&_0x19e300['is']('containerElement')&&!!_0x19e300['getCustomProperty']('footnotesDefinitions');}function D(_0x2b2508,_0x4f3a92={}){const _0x135e39=_0x2b2508['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x426f3c=_0x2b2508['createContainerElement']('ol',{'class':'footnotes-list'},_0x2b2508['createSlot']());return _0x2b2508['createContainerElement']('div',{'class':'footnotes',..._0x4f3a92},[_0x135e39,_0x426f3c]);}function b(_0x134903,_0x1e5043){const _0x18c841=_0x134903['getAttribute']('footnoteId'),_0x22c496=_0x134903['getAttribute']('footnoteCounter'),_0x5d3a42=_0x1e5043['createUIElement']('a',{'href':'#'+_0x18c841},function(_0x1c4496){const _0x572bba=this['toDomElement'](_0x1c4496);return _0x572bba['textContent']=_0x22c496,_0x572bba;}),_0x54ac73=_0x1e5043['createContainerElement']('sup',{'id':'ref-'+_0x18c841,'class':'footnote'},[_0x5d3a42]);return _0x54ac73['getFillerOffset']=()=>null,_0x54ac73;}function y(_0x1ed9de,_0x293617,_0x50ae6c,{dataPipeline:_0xf02d2d}={}){const {t:t}=_0x50ae6c,_0x8ba02a=_0x1ed9de['getAttribute']('footnoteId'),_0x5b11fa=_0x293617['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x8ba02a},function(_0x229369){const _0xf1f2c9=this['toDomElement'](_0x229369);return _0xf1f2c9['innerText']='^',_0xf1f2c9;}),_0x557904=_0xf02d2d?_0x293617['createContainerElement']('div',{'class':'footnote-content'}):_0x206794(_0x293617['createEditableElement']('div',{'class':'footnote-content'}),_0x293617,{'label':t('Footnote\x20content.')});return _0x293617['insert'](_0x293617['createPositionAt'](_0x557904,0x0),_0x293617['createSlot']()),_0x293617['createContainerElement']('li',{'class':'footnote-definition','id':_0x8ba02a},[_0x5b11fa,_0x557904]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x44a837=_0x2852;(function(_0x507c67,_0x5c9061){const _0x28286a=_0x2852,_0xc532f4=_0x507c67();while(!![]){try{const _0x1f23a4=parseInt(_0x28286a(0x18a))/0x1+parseInt(_0x28286a(0x186))/0x2*(parseInt(_0x28286a(0x183))/0x3)+-parseInt(_0x28286a(0x177))/0x4*(parseInt(_0x28286a(0x175))/0x5)+parseInt(_0x28286a(0x17d))/0x6+parseInt(_0x28286a(0x17a))/0x7*(parseInt(_0x28286a(0x181))/0x8)+-parseInt(_0x28286a(0x17f))/0x9+-parseInt(_0x28286a(0x17e))/0xa;if(_0x1f23a4===_0x5c9061)break;else _0xc532f4['push'](_0xc532f4['shift']());}catch(_0x13e0f7){_0xc532f4['push'](_0xc532f4['shift']());}}}(_0x5d14,0xe9497));function _0x5d14(){const _0x10bd33=['_updateFootnotesCounters','footnotesListStart','8888238JQSQYn','1539440ZTzUGr','2473632DDzwPN','value','789824WsyiLY','execute','9BpKAPO','refresh','model','687958FzioQR','setAttribute','isEnabled','change','410516tfRKOi','plugins','isInteger','1115qDdUIa','getAttribute','31156KzFqra','getFootnotesDefinitionsObjectElement','get','14FnVnpv'];_0x5d14=function(){return _0x10bd33;};return _0x5d14();}function _0x2852(_0x128d25,_0x42399f){const _0x5d1481=_0x5d14();return _0x2852=function(_0x285263,_0x2ca761){_0x285263=_0x285263-0x175;let _0x59ad9f=_0x5d1481[_0x285263];return _0x59ad9f;},_0x2852(_0x128d25,_0x42399f);}import{Command as _0x2e5de9}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x3e2769}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x2e5de9{[_0x44a837(0x184)](){const _0x53693d=_0x44a837,{editor:_0x50c04d}=this,_0x400146=_0x50c04d[_0x53693d(0x18b)][_0x53693d(0x179)](_0x3e2769)[_0x53693d(0x178)]();this[_0x53693d(0x188)]=!!_0x400146,this[_0x53693d(0x180)]=_0x400146?.[_0x53693d(0x176)](_0x53693d(0x17c))??null;}[_0x44a837(0x182)]({value:_0x35419d}){const _0x18a4ac=_0x44a837,{editor:_0x39eca2}=this,_0x1914b5=_0x39eca2[_0x18a4ac(0x18b)][_0x18a4ac(0x179)](_0x3e2769),_0x9d2e17=_0x1914b5[_0x18a4ac(0x178)]();_0x9d2e17&&Number[_0x18a4ac(0x18c)](_0x35419d)&&_0x39eca2[_0x18a4ac(0x185)][_0x18a4ac(0x189)](_0x4e76b=>{const _0x5cc8fd=_0x18a4ac;_0x4e76b[_0x5cc8fd(0x187)](_0x5cc8fd(0x17c),_0x35419d,_0x9d2e17),_0x1914b5[_0x5cc8fd(0x17b)](_0x4e76b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f9df5=_0x31bf;(function(_0x128c33,_0x24643e){const _0x16fe03=_0x31bf,_0x41b3e9=_0x128c33();while(!![]){try{const _0x54126c=parseInt(_0x16fe03(0x1a5))/0x1*(parseInt(_0x16fe03(0x192))/0x2)+-parseInt(_0x16fe03(0x1a0))/0x3+parseInt(_0x16fe03(0x191))/0x4*(parseInt(_0x16fe03(0x19d))/0x5)+parseInt(_0x16fe03(0x19f))/0x6+-parseInt(_0x16fe03(0x1a2))/0x7+-parseInt(_0x16fe03(0x19c))/0x8+parseInt(_0x16fe03(0x1a4))/0x9;if(_0x54126c===_0x24643e)break;else _0x41b3e9['push'](_0x41b3e9['shift']());}catch(_0x4a01ca){_0x41b3e9['push'](_0x41b3e9['shift']());}}}(_0x2555,0x3b5b6));import{Command as _0x48ef3d}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x2bc169}from'../footnotespropertiesconfig.js';function _0x31bf(_0x400a83,_0x22a3cd){const _0x2555a1=_0x2555();return _0x31bf=function(_0x31bf59,_0x17a6ae){_0x31bf59=_0x31bf59-0x190;let _0xa7a299=_0x2555a1[_0x31bf59];return _0xa7a299;},_0x31bf(_0x400a83,_0x22a3cd);}function _0x2555(){const _0x13aa62=['isEnabled','2333190zVUcNe','1182759fvPHlh','refresh','3153689XMawAS','change','2263608YxiUph','2uIJLxg','value','getAttribute','56BnctTq','459390pqTBNg','plugins','execute','model','get','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','includes','setAttribute','footnotesListStyle','311944iInUWA','9690PqUeEw'];_0x2555=function(){return _0x13aa62;};return _0x2555();}import{FootnotesTracker as _0x33110d}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x48ef3d{[_0x1f9df5(0x1a1)](){const _0xcf1d32=_0x1f9df5,{editor:_0x2f4b6f}=this,_0x3a25e1=_0x2f4b6f[_0xcf1d32(0x193)][_0xcf1d32(0x196)](_0x33110d)[_0xcf1d32(0x198)]();this[_0xcf1d32(0x19e)]=!!_0x3a25e1,this[_0xcf1d32(0x1a6)]=_0x3a25e1?.[_0xcf1d32(0x190)](_0xcf1d32(0x19b))??null;}[_0x1f9df5(0x194)]({value:_0xd3919d}){const _0x4ed3a0=_0x1f9df5,{editor:_0x371a5c}=this,_0x6e6661=_0x371a5c[_0x4ed3a0(0x193)][_0x4ed3a0(0x196)](_0x33110d),_0x50514f=_0x6e6661[_0x4ed3a0(0x198)]();_0x50514f&&_0x2bc169[_0x4ed3a0(0x199)](_0xd3919d)&&_0x371a5c[_0x4ed3a0(0x195)][_0x4ed3a0(0x1a3)](_0x4c0718=>{const _0x5a1bab=_0x4ed3a0;_0x4c0718[_0x5a1bab(0x19a)](_0x5a1bab(0x19b),_0xd3919d,_0x50514f),_0x6e6661[_0x5a1bab(0x197)](_0x4c0718);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x197302=_0x59cc;(function(_0x13698b,_0x24dc3d){const _0x3ad696=_0x59cc,_0x3aa970=_0x13698b();while(!![]){try{const _0x339911=parseInt(_0x3ad696(0x1ad))/0x1*(parseInt(_0x3ad696(0x1a4))/0x2)+-parseInt(_0x3ad696(0x19e))/0x3*(-parseInt(_0x3ad696(0x1a5))/0x4)+-parseInt(_0x3ad696(0x1a0))/0x5*(-parseInt(_0x3ad696(0x1a1))/0x6)+parseInt(_0x3ad696(0x1ac))/0x7*(-parseInt(_0x3ad696(0x19f))/0x8)+parseInt(_0x3ad696(0x1a6))/0x9*(parseInt(_0x3ad696(0x19d))/0xa)+parseInt(_0x3ad696(0x1a7))/0xb+parseInt(_0x3ad696(0x19c))/0xc*(-parseInt(_0x3ad696(0x1b0))/0xd);if(_0x339911===_0x24dc3d)break;else _0x3aa970['push'](_0x3aa970['shift']());}catch(_0x2a89fa){_0x3aa970['push'](_0x3aa970['shift']());}}}(_0x41d5,0x85a20));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x197302(0x1a2),_0x197302(0x1a8),_0x197302(0x1ae),_0x197302(0x1aa),_0x197302(0x1a9),_0x197302(0x1af),_0x197302(0x1a3),_0x197302(0x1ab)];function _0x59cc(_0x38a546,_0x38ce90){const _0x41d592=_0x41d5();return _0x59cc=function(_0x59cc2b,_0x366c03){_0x59cc2b=_0x59cc2b-0x19c;let _0x247979=_0x41d592[_0x59cc2b];return _0x247979;},_0x59cc(_0x38a546,_0x38ce90);}function _0x41d5(){const _0x22596f=['13836ksIsxY','decimal','lower-roman','185582mRcmUv','3705084HUmmew','4005fsEYGE','3652583tObpoP','decimal-leading-zero','lower-alpha','upper-latin','upper-roman','14uCYTTZ','3zbWePH','lower-latin','upper-alpha','312ccEjhq','973332TRymYb','16970AkhzOw','3ddrJmK','2687248KDfayL','1895NxgsFz'];_0x41d5=function(){return _0x22596f;};return _0x41d5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5ca096=_0x40cb;(function(_0x2e3362,_0x47847d){const _0x4de736=_0x40cb,_0x300db5=_0x2e3362();while(!![]){try{const _0x46181a=-parseInt(_0x4de736(0x181))/0x1+parseInt(_0x4de736(0x1be))/0x2+-parseInt(_0x4de736(0x18e))/0x3*(-parseInt(_0x4de736(0x1b8))/0x4)+-parseInt(_0x4de736(0x1c0))/0x5*(parseInt(_0x4de736(0x1d0))/0x6)+parseInt(_0x4de736(0x1d1))/0x7*(-parseInt(_0x4de736(0x1af))/0x8)+-parseInt(_0x4de736(0x19c))/0x9+-parseInt(_0x4de736(0x19e))/0xa*(-parseInt(_0x4de736(0x1d5))/0xb);if(_0x46181a===_0x47847d)break;else _0x300db5['push'](_0x300db5['shift']());}catch(_0x4bec7e){_0x300db5['push'](_0x300db5['shift']());}}}(_0x132e,0x4da95));import{Plugin as _0x5ac13f}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x4105bd}from'./commands/footnotesstylecommand.js';function _0x40cb(_0x3eeca5,_0x2dc5d7){const _0x132e4a=_0x132e();return _0x40cb=function(_0x40cb4d,_0x384271){_0x40cb4d=_0x40cb4d-0x178;let _0x2615b0=_0x132e4a[_0x40cb4d];return _0x2615b0;},_0x40cb(_0x3eeca5,_0x2dc5d7);}import{FootnotesStartCommand as _0x2cb6fb}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x404609}from'../footnotestracker.js';import{FootnotesEditing as _0x2d0e55}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x5ac13f{static get[_0x5ca096(0x1ad)](){const _0x3e60e6=_0x5ca096;return _0x3e60e6(0x1d4);}static get[_0x5ca096(0x1d2)](){return[_0x2d0e55,_0x404609];}static get[_0x5ca096(0x193)](){return!0x0;}static get[_0x5ca096(0x1bd)](){return!0x0;}[_0x5ca096(0x1c2)](){const _0x509099=_0x5ca096,{editor:_0x32b510}=this;_0x32b510[_0x509099(0x192)][_0x509099(0x1d9)](_0x509099(0x1b0),_0x509099(0x199)),_0x32b510[_0x509099(0x192)][_0x509099(0x1d9)](_0x509099(0x18f),0x1),_0x32b510[_0x509099(0x188)][_0x509099(0x19f)](_0x509099(0x1a5),new _0x4105bd(_0x32b510)),_0x32b510[_0x509099(0x188)][_0x509099(0x19f)](_0x509099(0x18d),new _0x2cb6fb(_0x32b510)),this[_0x509099(0x17b)](),this[_0x509099(0x1cd)](),this[_0x509099(0x1b6)](),this[_0x509099(0x1a9)]();}[_0x5ca096(0x17b)](){const _0x2abae1=_0x5ca096,{editor:_0x356ca1}=this,{schema:_0x5cdee5}=_0x356ca1[_0x2abae1(0x182)];_0x5cdee5[_0x2abae1(0x1b1)](_0x2abae1(0x1dd),{'allowAttributes':[_0x2abae1(0x196),_0x2abae1(0x1c5)]});}[_0x5ca096(0x1cd)](){const _0x4d2e84=_0x5ca096,{editor:_0x56289a}=this,{conversion:_0x573e01,model:_0x512edb}=_0x56289a,{schema:_0x6b0953}=_0x512edb;_0x573e01[_0x4d2e84(0x179)](_0x4d2e84(0x1d7))[_0x4d2e84(0x19f)](_0x259bac=>{const _0x301741=_0x4d2e84;_0x259bac['on'](_0x301741(0x1b9),(_0x1312e3,_0x5ca4c5,_0x12d79)=>{const _0x26d21c=_0x301741,_0x4c6f80=_0x5ca4c5[_0x26d21c(0x194)],_0x24408a=_0x5ca4c5[_0x26d21c(0x17c)]?.[_0x26d21c(0x1b5)];_0x4c6f80[_0x26d21c(0x1cc)](_0x26d21c(0x1ab))&&_0x24408a?.['is'](_0x26d21c(0x1b2),_0x26d21c(0x1dd))&&(function(_0x23539,_0x536fd9,_0x59ad65,_0x379d49){const _0x2118fb=_0x26d21c;if(!_0x379d49[_0x2118fb(0x186)](_0x536fd9,_0x2118fb(0x1c5)))return;let _0x21242f=0x1;const _0x5d5d57=_0x59ad65[_0x2118fb(0x17a)][_0x2118fb(0x1ce)](_0x23539,{'attributes':_0x2118fb(0x1a2)});if(_0x5d5d57){const _0x9afec2=Number[_0x2118fb(0x1c4)](_0x23539[_0x2118fb(0x19a)](_0x2118fb(0x1a2)),0xa);Number[_0x2118fb(0x1a0)](_0x9afec2)||(_0x21242f=_0x9afec2);}!_0x5d5d57&&_0x536fd9[_0x2118fb(0x180)](_0x2118fb(0x1c5))||_0x59ad65[_0x2118fb(0x1a8)][_0x2118fb(0x1dc)](_0x2118fb(0x1c5),_0x21242f,_0x536fd9);}(_0x4c6f80,_0x24408a,_0x12d79,_0x6b0953),function(_0x2d8934,_0x4ed69e,_0x504b75,_0x184f09){const _0x16752c=_0x26d21c;if(!_0x184f09[_0x16752c(0x186)](_0x4ed69e,_0x16752c(0x196)))return;let _0x32edf5=_0x16752c(0x199),_0xfbdcea=!0x1;if(_0x504b75[_0x16752c(0x17a)][_0x16752c(0x1ce)](_0x2d8934,{'attributes':_0x16752c(0x1a3)})){const _0xd443ad={0x1:_0x16752c(0x199),'a':_0x16752c(0x195),'A':_0x16752c(0x1c9),'i':_0x16752c(0x1b7),'I':_0x16752c(0x1b4)}[_0x2d8934[_0x16752c(0x19a)](_0x16752c(0x1a3))];_0xd443ad&&(_0x32edf5=_0xd443ad),_0xfbdcea=!0x0;}_0x504b75[_0x16752c(0x17a)][_0x16752c(0x1ce)](_0x2d8934,{'styles':_0x16752c(0x1d6)})&&(_0x32edf5=function(_0x1157b9){const _0x324893=_0x16752c;switch(_0x1157b9){case _0x324893(0x195):return _0x324893(0x17f);case _0x324893(0x1c9):return _0x324893(0x1ae);default:return _0x1157b9;}}(_0x2d8934[_0x16752c(0x1aa)](_0x16752c(0x1d6))),_0xfbdcea=!0x0),!_0xfbdcea&&_0x4ed69e[_0x16752c(0x180)](_0x16752c(0x196))||_0x504b75[_0x16752c(0x1a8)][_0x16752c(0x1dc)](_0x16752c(0x196),_0x32edf5,_0x4ed69e);}(_0x4c6f80,_0x24408a,_0x12d79,_0x6b0953));});}),_0x573e01[_0x4d2e84(0x179)](_0x4d2e84(0x17e))[_0x4d2e84(0x19f)](_0x129965=>{const _0x2c1018=_0x4d2e84;_0x129965['on'](_0x2c1018(0x1db),(_0x10e926,_0x2758ef,_0x5cbddb)=>{const _0x88fc12=_0x2c1018;if(!_0x5cbddb[_0x88fc12(0x17a)][_0x88fc12(0x1ce)](_0x2758ef[_0x88fc12(0x1c6)],_0x10e926[_0x88fc12(0x1ca)]))return;const _0x31257f=M(_0x2758ef[_0x88fc12(0x1c6)],_0x5cbddb[_0x88fc12(0x1ba)]),{attributeNewValue:_0x290390}=_0x2758ef;null==_0x290390||0x1===_0x290390?_0x5cbddb[_0x88fc12(0x1a8)][_0x88fc12(0x191)](_0x88fc12(0x1a2),_0x31257f):_0x5cbddb[_0x88fc12(0x1a8)][_0x88fc12(0x1dc)](_0x88fc12(0x1a2),String(_0x290390),_0x31257f);}),_0x129965['on'](_0x2c1018(0x1a6),(_0x3dc322,_0x283654,_0x415b82)=>{const _0x1bc114=_0x2c1018;if(!_0x415b82[_0x1bc114(0x17a)][_0x1bc114(0x1ce)](_0x283654[_0x1bc114(0x1c6)],_0x3dc322[_0x1bc114(0x1ca)]))return;const _0xce039c=M(_0x283654[_0x1bc114(0x1c6)],_0x415b82[_0x1bc114(0x1ba)]),{attributeNewValue:_0x1b6493}=_0x283654;_0x1b6493&&_0x1bc114(0x199)!==_0x1b6493?_0x415b82[_0x1bc114(0x1a8)][_0x1bc114(0x183)](_0x1bc114(0x1d6),_0x1b6493,_0xce039c):_0x415b82[_0x1bc114(0x1a8)][_0x1bc114(0x1d8)](_0x1bc114(0x1d6),_0xce039c);});});}[_0x5ca096(0x1a9)](){const _0x3dcdb0=_0x5ca096,{editor:_0x21086d}=this,{model:_0x404173}=_0x21086d,_0x8003ad=_0x21086d[_0x3dcdb0(0x18b)][_0x3dcdb0(0x187)](_0x404609),_0x32167e=this[_0x3dcdb0(0x1cf)](),_0x48160a=this[_0x3dcdb0(0x1d3)]();_0x404173[_0x3dcdb0(0x1a7)][_0x3dcdb0(0x1c1)](_0x4d0d88=>{const _0x3cac6a=_0x3dcdb0,_0x228046=_0x404173[_0x3cac6a(0x1a7)][_0x3cac6a(0x1bb)][_0x3cac6a(0x1c7)]();let _0x54bab3=!0x1;for(const _0x477bc1 of _0x228046){if(_0x3cac6a(0x1da)!==_0x477bc1[_0x3cac6a(0x1a3)]||_0x3cac6a(0x189)===_0x477bc1[_0x3cac6a(0x1ca)])continue;const _0x524107=_0x404173[_0x3cac6a(0x178)](_0x477bc1[_0x3cac6a(0x1a4)][_0x3cac6a(0x1ac)]);for(const _0x1ebfc9 of _0x524107[_0x3cac6a(0x197)]())_0x1ebfc9['is'](_0x3cac6a(0x1b2),_0x3cac6a(0x1dd))&&(!_0x1ebfc9[_0x3cac6a(0x180)](_0x3cac6a(0x1c5))&&_0x404173[_0x3cac6a(0x1b3)][_0x3cac6a(0x186)](_0x1ebfc9,_0x3cac6a(0x1c5))&&(_0x4d0d88[_0x3cac6a(0x1dc)](_0x3cac6a(0x1c5),_0x48160a,_0x1ebfc9),_0x54bab3=!0x0),!_0x1ebfc9[_0x3cac6a(0x180)](_0x3cac6a(0x196))&&_0x404173[_0x3cac6a(0x1b3)][_0x3cac6a(0x186)](_0x1ebfc9,_0x3cac6a(0x196))&&(_0x4d0d88[_0x3cac6a(0x1dc)](_0x3cac6a(0x196),_0x32167e,_0x1ebfc9),_0x54bab3=!0x0));}return _0x54bab3&&_0x8003ad[_0x3cac6a(0x1c3)](_0x4d0d88),_0x54bab3;});}[_0x5ca096(0x1b6)](){const _0x3a97a9=_0x5ca096,{editor:_0x420f69}=this;_0x420f69[_0x3a97a9(0x18b)][_0x3a97a9(0x187)](_0x404609)[_0x3a97a9(0x1bc)](_0x1f7168=>this[_0x3a97a9(0x1cb)](_0x1f7168));}[_0x5ca096(0x1cf)](){const _0x320e19=_0x5ca096;return this[_0x320e19(0x19b)][_0x320e19(0x192)][_0x320e19(0x187)](_0x320e19(0x1b0));}[_0x5ca096(0x1d3)](){const _0xb5165b=_0x5ca096;return this[_0xb5165b(0x19b)][_0xb5165b(0x192)][_0xb5165b(0x187)](_0xb5165b(0x18f));}[_0x5ca096(0x1cb)]({container:_0x41e8fb,value:_0x3ac1d8,digits:_0x4988a1}){const _0x2f489b=_0x5ca096,_0x21cc06=_0x41e8fb[_0x2f489b(0x19a)](_0x2f489b(0x196)),_0x1da601=_0x41e8fb[_0x2f489b(0x19a)](_0x2f489b(0x1c5)),_0xff974e=Math[_0x2f489b(0x185)](_0x3ac1d8)+(_0x1da601??0x1)-0x1;switch(_0x21cc06){case _0x2f489b(0x1c8):return function(_0x347e6f,_0x4168c6){const _0x4d5136=_0x2f489b;return String(_0x347e6f)[_0x4d5136(0x1a1)](_0x4168c6,'0');}(_0xff974e,Math[_0x2f489b(0x184)](0x2,_0x4988a1));case _0x2f489b(0x195):case _0x2f489b(0x17f):return N(_0xff974e,!0x1);case _0x2f489b(0x1c9):case _0x2f489b(0x1ae):return N(_0xff974e,!0x0);case _0x2f489b(0x1b7):return X(_0xff974e,!0x1);case _0x2f489b(0x1b4):return X(_0xff974e,!0x0);default:return String(_0xff974e);}}}function _0x132e(){const _0x515778=['setStyle','max','floor','checkAttribute','get','commands','$text','getChildren','plugins','toViewElement','footnotesStart','14883PzVwRk','footnotes.footnotesProperties.defaultStartIndex','toLowerCase','removeAttribute','config','isOfficialPlugin','viewItem','lower-alpha','footnotesListStyle','getItems','toUpperCase','decimal','getAttribute','editor','438480vSIuxx','find','10MpKFBg','add','isNaN','padStart','start','type','position','footnotesStyle','attribute:footnotesListStyle:footnotesDefinitions','document','writer','_definePostfixer','getStyle','footnotes-list','nodeAfter','pluginName','upper-latin','24ngYFzA','footnotes.footnotesProperties.defaultListStyle','extend','element','schema','upper-roman','parent','_defineFormatter','lower-roman','496coayHR','element:ol','mapper','differ','setFootnoteFormatter','isPremiumPlugin','950078nMSkWe','fromCharCode','2554795ypITLV','registerPostFixer','init','_updateFootnotesCounters','parseInt','footnotesListStart','item','getChanges','decimal-leading-zero','upper-alpha','name','_formatFootnoteListValue','hasClass','_defineConverters','consume','_getDefaultListStyle','6MjhEob','976241pGPxMU','requires','_getDefaultStartIndex','FootnotesPropertiesEditing','2560393zyooYY','list-style-type','upcast','removeStyle','define','insert','attribute:footnotesListStart:footnotesDefinitions','setAttribute','footnotesDefinitions','createRangeOn','for','consumable','_defineSchema','modelCursor','from','downcast','lower-latin','hasAttribute','26797GjWWal','model'];_0x132e=function(){return _0x515778;};return _0x132e();}function M(_0x279af1,_0x3bcb4b){const _0x5d91ad=_0x5ca096,_0x5a4aaf=_0x3bcb4b[_0x5d91ad(0x18c)](_0x279af1);return Array[_0x5d91ad(0x17d)](_0x5a4aaf[_0x5d91ad(0x18a)]())[_0x5d91ad(0x19d)](_0xdfd2bc=>_0xdfd2bc['is'](_0x5d91ad(0x1b2),'ol')&&_0xdfd2bc[_0x5d91ad(0x1cc)](_0x5d91ad(0x1ab)));}function N(_0xf78622,_0x32f5bb){const _0x6bbf60=_0x5ca096;let _0x54496a='',_0xd0dfee=_0xf78622;for(;_0xd0dfee>0x0;){const _0x1dc205=(_0xd0dfee-0x1)%0x1a;_0x54496a=String[_0x6bbf60(0x1bf)](0x61+_0x1dc205)+_0x54496a,_0xd0dfee=Math[_0x6bbf60(0x185)]((_0xd0dfee-0x1)/0x1a);}return _0x32f5bb?_0x54496a[_0x6bbf60(0x198)]():_0x54496a;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x502d4b,_0x1ada55){const _0x56bc3b=_0x5ca096;let _0x3a9996='',_0x4d7bcd=_0x502d4b;for(const {value:_0x3a6995,numeral:_0x52c390}of V)for(;_0x4d7bcd>=_0x3a6995;)_0x3a9996+=_0x52c390,_0x4d7bcd-=_0x3a6995;return _0x1ada55?_0x3a9996:_0x3a9996[_0x56bc3b(0x190)]();}
|
|
23
|
+
const _0x4b6b95=_0x2e02;(function(_0xcb06e9,_0x236711){const _0x550e4d=_0x2e02,_0xb2e5a3=_0xcb06e9();while(!![]){try{const _0x3fe5e5=-parseInt(_0x550e4d(0xac))/0x1+parseInt(_0x550e4d(0x92))/0x2*(-parseInt(_0x550e4d(0x8a))/0x3)+-parseInt(_0x550e4d(0x7b))/0x4+parseInt(_0x550e4d(0x9f))/0x5+parseInt(_0x550e4d(0xc2))/0x6+parseInt(_0x550e4d(0x98))/0x7*(-parseInt(_0x550e4d(0x96))/0x8)+-parseInt(_0x550e4d(0x9a))/0x9*(-parseInt(_0x550e4d(0xb1))/0xa);if(_0x3fe5e5===_0x236711)break;else _0xb2e5a3['push'](_0xb2e5a3['shift']());}catch(_0x21abff){_0xb2e5a3['push'](_0xb2e5a3['shift']());}}}(_0x6f4d,0x98cfe));import{Plugin as _0x16a583}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x1af19b}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x30d088}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x462994}from'../footnotestracker.js';function _0x6f4d(){const _0x4889e0=['$text','lower-alpha','footnotes.footnotesProperties.defaultStartIndex','type','fromCharCode','schema','mapper','isOfficialPlugin','_formatFootnoteListValue','from','removeAttribute','lower-roman','4482744NMIiUj','_getDefaultStartIndex','element:ol','toLowerCase','name','upper-roman','start','_updateFootnotesCounters','model','footnotesListStyle','editor','consumable','footnotesDefinitions','toViewElement','padStart','63UDAHoH','downcast','writer','registerPostFixer','item','find','hasAttribute','init','664pELlsO','footnotesListStart','parseInt','upper-latin','6073352iPRbpu','list-style-type','7OKsQfS','document','603flkMcd','requires','get','footnotes.footnotesProperties.defaultListStyle','upper-alpha','1620700HFQEAU','modelCursor','getChanges','attribute:footnotesListStyle:footnotesDefinitions','pluginName','setFootnoteFormatter','getItems','toUpperCase','lower-latin','element','for','getChildren','viewItem','450576PplLXs','footnotesStyle','define','differ','footnotesStart','273680DJNrFT','FootnotesPropertiesEditing','commands','checkAttribute','_defineConverters','upcast','attribute:footnotesListStart:footnotesDefinitions','max','floor','removeStyle','_getDefaultListStyle','parent','_definePostfixer','extend','_defineSchema','isNaN','setAttribute','4833150WusLhY','hasClass','position','add','plugins','setStyle','consume','decimal-leading-zero','getAttribute','insert','getStyle','config','_defineFormatter','footnotes-list','nodeAfter','isPremiumPlugin','createRangeOn','decimal'];_0x6f4d=function(){return _0x4889e0;};return _0x6f4d();}import{FootnotesEditing as _0x226b2b}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x16a583{static get[_0x4b6b95(0xa3)](){const _0x3b0055=_0x4b6b95;return _0x3b0055(0xb2);}static get[_0x4b6b95(0x9b)](){return[_0x226b2b,_0x462994];}static get[_0x4b6b95(0x76)](){return!0x0;}static get[_0x4b6b95(0xd1)](){return!0x0;}[_0x4b6b95(0x91)](){const _0x433d25=_0x4b6b95,{editor:_0x58e067}=this;_0x58e067[_0x433d25(0xcd)][_0x433d25(0xae)](_0x433d25(0x9d),_0x433d25(0xd3)),_0x58e067[_0x433d25(0xcd)][_0x433d25(0xae)](_0x433d25(0xd6),0x1),_0x58e067[_0x433d25(0xb3)][_0x433d25(0xc5)](_0x433d25(0xad),new _0x1af19b(_0x58e067)),_0x58e067[_0x433d25(0xb3)][_0x433d25(0xc5)](_0x433d25(0xb0),new _0x30d088(_0x58e067)),this[_0x433d25(0xbf)](),this[_0x433d25(0xb5)](),this[_0x433d25(0xce)](),this[_0x433d25(0xbd)]();}[_0x4b6b95(0xbf)](){const _0x688b75=_0x4b6b95,{editor:_0x1c3d53}=this,{schema:_0x13b2d6}=_0x1c3d53[_0x688b75(0x83)];_0x13b2d6[_0x688b75(0xbe)](_0x688b75(0x87),{'allowAttributes':[_0x688b75(0x84),_0x688b75(0x93)]});}[_0x4b6b95(0xb5)](){const _0x5c5c6f=_0x4b6b95,{editor:_0x4da16e}=this,{conversion:_0x4e3c35,model:_0x31a26d}=_0x4da16e,{schema:_0x366366}=_0x31a26d;_0x4e3c35[_0x5c5c6f(0xa9)](_0x5c5c6f(0xb6))[_0x5c5c6f(0xc5)](_0x277f65=>{const _0x6b37f=_0x5c5c6f;_0x277f65['on'](_0x6b37f(0x7d),(_0x1ea756,_0x2a18c0,_0x47895d)=>{const _0x42ff08=_0x6b37f,_0x4870d0=_0x2a18c0[_0x42ff08(0xab)],_0xfcfc6a=_0x2a18c0[_0x42ff08(0xa0)]?.[_0x42ff08(0xbc)];_0x4870d0[_0x42ff08(0xc3)](_0x42ff08(0xcf))&&_0xfcfc6a?.['is'](_0x42ff08(0xa8),_0x42ff08(0x87))&&(function(_0xb9818b,_0x2c1598,_0x43877d,_0x5700e2){const _0x1052c9=_0x42ff08;if(!_0x5700e2[_0x1052c9(0xb4)](_0x2c1598,_0x1052c9(0x93)))return;let _0x990813=0x1;const _0x590d1d=_0x43877d[_0x1052c9(0x86)][_0x1052c9(0xc8)](_0xb9818b,{'attributes':_0x1052c9(0x81)});if(_0x590d1d){const _0x58ae03=Number[_0x1052c9(0x94)](_0xb9818b[_0x1052c9(0xca)](_0x1052c9(0x81)),0xa);Number[_0x1052c9(0xc0)](_0x58ae03)||(_0x990813=_0x58ae03);}!_0x590d1d&&_0x2c1598[_0x1052c9(0x90)](_0x1052c9(0x93))||_0x43877d[_0x1052c9(0x8c)][_0x1052c9(0xc1)](_0x1052c9(0x93),_0x990813,_0x2c1598);}(_0x4870d0,_0xfcfc6a,_0x47895d,_0x366366),function(_0x34b5b1,_0x38c51f,_0x42c6c9,_0x3fdad3){const _0x298ae6=_0x42ff08;if(!_0x3fdad3[_0x298ae6(0xb4)](_0x38c51f,_0x298ae6(0x84)))return;let _0xb3102c=_0x298ae6(0xd3),_0x1fd4c5=!0x1;if(_0x42c6c9[_0x298ae6(0x86)][_0x298ae6(0xc8)](_0x34b5b1,{'attributes':_0x298ae6(0xd7)})){const _0x5b2a9e={0x1:_0x298ae6(0xd3),'a':_0x298ae6(0xd5),'A':_0x298ae6(0x9e),'i':_0x298ae6(0x7a),'I':_0x298ae6(0x80)}[_0x34b5b1[_0x298ae6(0xca)](_0x298ae6(0xd7))];_0x5b2a9e&&(_0xb3102c=_0x5b2a9e),_0x1fd4c5=!0x0;}_0x42c6c9[_0x298ae6(0x86)][_0x298ae6(0xc8)](_0x34b5b1,{'styles':_0x298ae6(0x97)})&&(_0xb3102c=function(_0x4152ee){const _0x5d56cd=_0x298ae6;switch(_0x4152ee){case _0x5d56cd(0xd5):return _0x5d56cd(0xa7);case _0x5d56cd(0x9e):return _0x5d56cd(0x95);default:return _0x4152ee;}}(_0x34b5b1[_0x298ae6(0xcc)](_0x298ae6(0x97))),_0x1fd4c5=!0x0),!_0x1fd4c5&&_0x38c51f[_0x298ae6(0x90)](_0x298ae6(0x84))||_0x42c6c9[_0x298ae6(0x8c)][_0x298ae6(0xc1)](_0x298ae6(0x84),_0xb3102c,_0x38c51f);}(_0x4870d0,_0xfcfc6a,_0x47895d,_0x366366));});}),_0x4e3c35[_0x5c5c6f(0xa9)](_0x5c5c6f(0x8b))[_0x5c5c6f(0xc5)](_0x3f0835=>{const _0x2f2e51=_0x5c5c6f;_0x3f0835['on'](_0x2f2e51(0xb7),(_0x508aaa,_0x307755,_0x23ad1d)=>{const _0x58c8a6=_0x2f2e51;if(!_0x23ad1d[_0x58c8a6(0x86)][_0x58c8a6(0xc8)](_0x307755[_0x58c8a6(0x8e)],_0x508aaa[_0x58c8a6(0x7f)]))return;const _0x2710d2=M(_0x307755[_0x58c8a6(0x8e)],_0x23ad1d[_0x58c8a6(0x75)]),{attributeNewValue:_0xa446}=_0x307755;null==_0xa446||0x1===_0xa446?_0x23ad1d[_0x58c8a6(0x8c)][_0x58c8a6(0x79)](_0x58c8a6(0x81),_0x2710d2):_0x23ad1d[_0x58c8a6(0x8c)][_0x58c8a6(0xc1)](_0x58c8a6(0x81),String(_0xa446),_0x2710d2);}),_0x3f0835['on'](_0x2f2e51(0xa2),(_0x6cff3e,_0x434882,_0x471303)=>{const _0x294cdc=_0x2f2e51;if(!_0x471303[_0x294cdc(0x86)][_0x294cdc(0xc8)](_0x434882[_0x294cdc(0x8e)],_0x6cff3e[_0x294cdc(0x7f)]))return;const _0x47e948=M(_0x434882[_0x294cdc(0x8e)],_0x471303[_0x294cdc(0x75)]),{attributeNewValue:_0x34a20c}=_0x434882;_0x34a20c&&_0x294cdc(0xd3)!==_0x34a20c?_0x471303[_0x294cdc(0x8c)][_0x294cdc(0xc7)](_0x294cdc(0x97),_0x34a20c,_0x47e948):_0x471303[_0x294cdc(0x8c)][_0x294cdc(0xba)](_0x294cdc(0x97),_0x47e948);});});}[_0x4b6b95(0xbd)](){const _0x33578b=_0x4b6b95,{editor:_0x27c842}=this,{model:_0x1a91a5}=_0x27c842,_0x28ca39=_0x27c842[_0x33578b(0xc6)][_0x33578b(0x9c)](_0x462994),_0x3f5d47=this[_0x33578b(0xbb)](),_0x9d5950=this[_0x33578b(0x7c)]();_0x1a91a5[_0x33578b(0x99)][_0x33578b(0x8d)](_0x586b99=>{const _0x5e69fc=_0x33578b,_0x4d954e=_0x1a91a5[_0x5e69fc(0x99)][_0x5e69fc(0xaf)][_0x5e69fc(0xa1)]();let _0x3dfefc=!0x1;for(const _0x2bbca7 of _0x4d954e){if(_0x5e69fc(0xcb)!==_0x2bbca7[_0x5e69fc(0xd7)]||_0x5e69fc(0xd4)===_0x2bbca7[_0x5e69fc(0x7f)])continue;const _0x2df96a=_0x1a91a5[_0x5e69fc(0xd2)](_0x2bbca7[_0x5e69fc(0xc4)][_0x5e69fc(0xd0)]);for(const _0x516cd4 of _0x2df96a[_0x5e69fc(0xa5)]())_0x516cd4['is'](_0x5e69fc(0xa8),_0x5e69fc(0x87))&&(!_0x516cd4[_0x5e69fc(0x90)](_0x5e69fc(0x93))&&_0x1a91a5[_0x5e69fc(0xd9)][_0x5e69fc(0xb4)](_0x516cd4,_0x5e69fc(0x93))&&(_0x586b99[_0x5e69fc(0xc1)](_0x5e69fc(0x93),_0x9d5950,_0x516cd4),_0x3dfefc=!0x0),!_0x516cd4[_0x5e69fc(0x90)](_0x5e69fc(0x84))&&_0x1a91a5[_0x5e69fc(0xd9)][_0x5e69fc(0xb4)](_0x516cd4,_0x5e69fc(0x84))&&(_0x586b99[_0x5e69fc(0xc1)](_0x5e69fc(0x84),_0x3f5d47,_0x516cd4),_0x3dfefc=!0x0));}return _0x3dfefc&&_0x28ca39[_0x5e69fc(0x82)](_0x586b99),_0x3dfefc;});}[_0x4b6b95(0xce)](){const _0x4eca8f=_0x4b6b95,{editor:_0x54248f}=this;_0x54248f[_0x4eca8f(0xc6)][_0x4eca8f(0x9c)](_0x462994)[_0x4eca8f(0xa4)](_0xd889a7=>this[_0x4eca8f(0x77)](_0xd889a7));}[_0x4b6b95(0xbb)](){const _0x2047fc=_0x4b6b95;return this[_0x2047fc(0x85)][_0x2047fc(0xcd)][_0x2047fc(0x9c)](_0x2047fc(0x9d));}[_0x4b6b95(0x7c)](){const _0x30b16b=_0x4b6b95;return this[_0x30b16b(0x85)][_0x30b16b(0xcd)][_0x30b16b(0x9c)](_0x30b16b(0xd6));}[_0x4b6b95(0x77)]({container:_0x1a6449,value:_0x15e730,digits:_0x2d1512}){const _0x1cc866=_0x4b6b95,_0x2ef443=_0x1a6449[_0x1cc866(0xca)](_0x1cc866(0x84)),_0x582d56=_0x1a6449[_0x1cc866(0xca)](_0x1cc866(0x93)),_0x1f5c19=Math[_0x1cc866(0xb9)](_0x15e730)+(_0x582d56??0x1)-0x1;switch(_0x2ef443){case _0x1cc866(0xc9):return function(_0x5bb669,_0x16a6c7){const _0x331784=_0x1cc866;return String(_0x5bb669)[_0x331784(0x89)](_0x16a6c7,'0');}(_0x1f5c19,Math[_0x1cc866(0xb8)](0x2,_0x2d1512));case _0x1cc866(0xd5):case _0x1cc866(0xa7):return N(_0x1f5c19,!0x1);case _0x1cc866(0x9e):case _0x1cc866(0x95):return N(_0x1f5c19,!0x0);case _0x1cc866(0x7a):return X(_0x1f5c19,!0x1);case _0x1cc866(0x80):return X(_0x1f5c19,!0x0);default:return String(_0x1f5c19);}}}function _0x2e02(_0x51d84d,_0x3b60b5){const _0x6f4d6a=_0x6f4d();return _0x2e02=function(_0x2e0255,_0x5d2d8b){_0x2e0255=_0x2e0255-0x75;let _0x2f0d39=_0x6f4d6a[_0x2e0255];return _0x2f0d39;},_0x2e02(_0x51d84d,_0x3b60b5);}function M(_0x5cc0b6,_0x61b472){const _0x345ac0=_0x4b6b95,_0x1e3fb5=_0x61b472[_0x345ac0(0x88)](_0x5cc0b6);return Array[_0x345ac0(0x78)](_0x1e3fb5[_0x345ac0(0xaa)]())[_0x345ac0(0x8f)](_0x2e500e=>_0x2e500e['is'](_0x345ac0(0xa8),'ol')&&_0x2e500e[_0x345ac0(0xc3)](_0x345ac0(0xcf)));}function N(_0x3e274c,_0x939884){const _0x11ea83=_0x4b6b95;let _0x3d6c32='',_0x2eb66e=_0x3e274c;for(;_0x2eb66e>0x0;){const _0x3ac929=(_0x2eb66e-0x1)%0x1a;_0x3d6c32=String[_0x11ea83(0xd8)](0x61+_0x3ac929)+_0x3d6c32,_0x2eb66e=Math[_0x11ea83(0xb9)]((_0x2eb66e-0x1)/0x1a);}return _0x939884?_0x3d6c32[_0x11ea83(0xa6)]():_0x3d6c32;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x1ba0cd,_0x5b9cc0){const _0x46afbd=_0x4b6b95;let _0x11fdeb='',_0x4cb0e6=_0x1ba0cd;for(const {value:_0x2a3265,numeral:_0x1e9703}of V)for(;_0x4cb0e6>=_0x2a3265;)_0x11fdeb+=_0x1e9703,_0x4cb0e6-=_0x2a3265;return _0x5b9cc0?_0x11fdeb:_0x11fdeb[_0x46afbd(0x7e)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x13079f,ButtonView as _0x256316,ContextualBalloon as _0x45756b,createDropdown as _0x34829e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x57debd}from'ckeditor5/src/widget.js';import{Plugin as _0x42d236}from'ckeditor5/src/core.js';import{IconFootnote as _0x19eb95,IconListStyleDecimal as _0x36977f,IconListStyleDecimalLeadingZero as _0x14b99c,IconListStyleLowerLatin as _0x49c4b,IconListStyleLowerRoman as _0x2802d2,IconListStyleUpperLatin as _0x1eaa32,IconListStyleUpperRoman as _0xb324d1}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x525fc0}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xff51b5}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x42d236{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x45756b,_0x57debd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x548734}=this,{componentFactory:_0x2ee626}=_0x548734['ui'];_0x548734['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2ee626['add']('footnotesStyle',function(_0x297de8){return _0x3e109a=>{const {t:t}=_0x3e109a,_0x390102=_0x297de8['commands']['get']('footnotesStyle'),_0xa3b64f=_0x34829e(_0x3e109a),{buttonView:_0x279d58}=_0xa3b64f;return _0xa3b64f['class']='ck-footnotes-styles-dropdown',_0xa3b64f['bind']('isEnabled')['to'](_0x390102,'isEnabled'),_0x279d58['set']({'label':t('Footnotes\x20style'),'icon':_0x19eb95,'tooltip':!0x0}),_0xa3b64f['once']('change:isOpen',()=>{const _0x7b0957=function({editor:_0x2ede62,dropdownView:_0x6f583d}){const {t:t}=_0x2ede62['locale'],_0x137969=t('Footnotes\x20definitions\x20styles'),_0x3f6a06=function(_0x131d14){const t=_0x131d14['locale']['t'],_0x259be8=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x36977f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x14b99c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2802d2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xb324d1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x49c4b},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1eaa32}];return _0x259be8['map'](function(_0x32a886){const _0x513a09=_0x32a886['locale'];return({label:_0x3b3b5a,icon:_0x2b3c23,tooltip:_0x435c1a,style:_0x5a144b})=>{const _0x51ebff=_0x32a886['commands']['get']('footnotesStyle'),_0x433c9b=new _0x256316(_0x513a09);return _0x433c9b['set']({'label':_0x3b3b5a,'icon':_0x2b3c23,'tooltip':_0x435c1a}),_0x433c9b['bind']('isOn')['to'](_0x51ebff,'value',_0x2eb1e3=>_0x2eb1e3===_0x5a144b),_0x433c9b['bind']('isEnabled')['to'](_0x51ebff,'isEnabled'),_0x433c9b['on']('execute',()=>{_0x32a886['execute']('footnotesStyle',{'value':_0x5a144b}),_0x32a886['editing']['view']['focus']();}),_0x433c9b;};}(_0x131d14));}(_0x2ede62),_0x404eb1=new _0x525fc0(_0x2ede62['locale'],{'styleGridAriaLabel':_0x137969,'styleButtonViews':_0x3f6a06}),_0x16f339=_0x2ede62['commands']['get']('footnotesStart');return _0x404eb1['startIndexFieldView']['bind']('isEnabled')['to'](_0x16f339),_0x404eb1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x16f339),_0x404eb1['on']('footnotesListStart',(_0x4e764a,_0x2856d2)=>{_0x2ede62['execute']('footnotesStart',{'value':_0x2856d2['startIndex']});}),_0x404eb1['delegate']('execute')['to'](_0x6f583d),_0x404eb1;}({'editor':_0x297de8,'dropdownView':_0xa3b64f});_0xa3b64f['panelView']['children']['add'](_0x7b0957);}),_0xa3b64f;};}(_0x548734));}['afterInit'](){const {editor:_0x1f37fb}=this,{t:t}=_0x1f37fb['locale'],_0x7a41fb=_0x1f37fb['plugins']['get'](_0x57debd),{defaultPositions:_0x17958e}=_0x13079f;_0x7a41fb['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1f37fb['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x200179=>{let _0x4065cd=_0x200179['getFirstPosition']()?.['parent'];return _0x4065cd?.['is']('$text')&&(_0x4065cd=_0x4065cd['parent']),_0x4065cd?.['is']('element')?_0x4065cd['findAncestor'](_0xff51b5):null;},'positions':[_0x17958e['southArrowNorth'],_0x17958e['southArrowNorthMiddleWest'],_0x17958e['southArrowNorthMiddleEast'],_0x17958e['southArrowNorthWest'],_0x17958e['southArrowNorthEast'],_0x17958e['northArrowSouth'],_0x17958e['northArrowSouthMiddleWest'],_0x17958e['northArrowSouthMiddleEast'],_0x17958e['northArrowSouthWest'],_0x17958e['northArrowSouthEast'],_0x17958e['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4be216,View as _0x80d0d6,ViewCollection as _0x4d0814,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x80d0d6{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x4d0814();['focusCycler'];constructor(_0x45536a,{styleButtonViews:_0x3325b4,styleGridAriaLabel:_0x5affcc}){super(_0x45536a),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3325b4,_0x5affcc),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x594daa of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x594daa['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x50103f=_0x43f3fa=>_0x43f3fa['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50103f),this['keystrokes']['set']('arrowleft',_0x50103f),this['keystrokes']['set']('arrowup',_0x50103f),this['keystrokes']['set']('arrowdown',_0x50103f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4677af,_0x294ca3){const _0x2d20b6=new _0x80d0d6(this['locale']);return _0x2d20b6['children']=_0x2d20b6['createCollection'](),_0x2d20b6['children']['addMany'](_0x4677af),_0x2d20b6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x294ca3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2d20b6['children']}),_0x2d20b6['children']['delegate']('execute')['to'](this),_0x2d20b6['focus']=function(){for(const _0x1db100 of this['children'])if(_0x1db100 instanceof _0x4be216&&_0x1db100['isOn'])return void _0x1db100['focus']();this['children']['first']['focus']();},_0x2d20b6['focusTracker']=new rt(),_0x2d20b6['keystrokes']=new nt(),_0x2d20b6['render'](),_0x2d20b6['keystrokes']['listenTo'](_0x2d20b6['element']),this['children']['add'](_0x2d20b6),_0x2d20b6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3e741b=this['_createStartIndexPropertyView'](),_0x205025=[_0x3e741b],_0x24fe94=new it(this['locale'],_0x205025);return _0x24fe94['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x24fe94['buttonView']['bind']('isEnabled')['toMany'](_0x205025,'isEnabled',(..._0x574d1c)=>_0x574d1c['some'](_0x2585ee=>_0x2585ee)),_0x24fe94['buttonView']['on']('change:isEnabled',(_0x41dd76,_0x3a2fe0,_0x54bb95)=>{_0x54bb95||(_0x24fe94['isCollapsed']=!0x0);}),this['children']['add'](_0x24fe94),[_0x3e741b,_0x24fe94];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x41d086=new et(this['locale'],ot);return _0x41d086['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x41d086['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x41d086['fieldView']['on']('input',()=>{const _0x322f8f=_0x41d086['fieldView']['element'],_0x2fb9c4=_0x322f8f['valueAsNumber'];Number['isNaN'](_0x2fb9c4)?_0x41d086['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x322f8f['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2fb9c4}):_0x41d086['errorText']=t(_0x2fb9c4<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x41d086;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x526368=_0x3aaa;function _0x3aaa(_0x453ac2,_0x117de3){var _0x35f41d=_0x35f4();return _0x3aaa=function(_0x3aaab0,_0x42f917){_0x3aaab0=_0x3aaab0-0x70;var _0x33e542=_0x35f41d[_0x3aaab0];return _0x33e542;},_0x3aaa(_0x453ac2,_0x117de3);}(function(_0x1910f5,_0x12f928){var _0x22b03c=_0x3aaa,_0x1a4662=_0x1910f5();while(!![]){try{var _0x1efc89=parseInt(_0x22b03c(0x7f))/0x1+-parseInt(_0x22b03c(0x7d))/0x2*(-parseInt(_0x22b03c(0x70))/0x3)+parseInt(_0x22b03c(0x79))/0x4*(parseInt(_0x22b03c(0x77))/0x5)+-parseInt(_0x22b03c(0x72))/0x6+-parseInt(_0x22b03c(0x75))/0x7*(-parseInt(_0x22b03c(0x76))/0x8)+parseInt(_0x22b03c(0x78))/0x9*(-parseInt(_0x22b03c(0x7c))/0xa)+parseInt(_0x22b03c(0x7a))/0xb*(-parseInt(_0x22b03c(0x80))/0xc);if(_0x1efc89===_0x12f928)break;else _0x1a4662['push'](_0x1a4662['shift']());}catch(_0x3b1aef){_0x1a4662['push'](_0x1a4662['shift']());}}}(_0x35f4,0x67237));import{Plugin as _0x2296bd}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x1581b9}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x5611cf}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x2296bd{static get[_0x526368(0x7b)](){var _0x377134=_0x526368;return _0x377134(0x7e);}static get[_0x526368(0x74)](){return[_0x1581b9,_0x5611cf];}static get[_0x526368(0x71)](){return!0x0;}static get[_0x526368(0x73)](){return!0x0;}}function _0x35f4(){var _0x4e43ae=['pluginName','40TKLaTi','125098GYPyNK','FootnotesProperties','121635MtGYCq','43572EkHncZ','12CmlPqx','isOfficialPlugin','4157640oayGoX','isPremiumPlugin','requires','147ifLvbO','267112tqqNrl','21830gUemIr','1563228SwIUIv','692IKnxkI','55ArNDqf'];_0x35f4=function(){return _0x4e43ae;};return _0x35f4();}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42caa7=_0x3078;(function(_0x260160,_0x4ab538){const _0x173653=_0x3078,_0xf6b2fa=_0x260160();while(!![]){try{const _0x22bcb2=-parseInt(_0x173653(0x180))/0x1+-parseInt(_0x173653(0x186))/0x2*(-parseInt(_0x173653(0x16b))/0x3)+parseInt(_0x173653(0x18a))/0x4*(-parseInt(_0x173653(0x197))/0x5)+-parseInt(_0x173653(0x1a8))/0x6*(-parseInt(_0x173653(0x18f))/0x7)+-parseInt(_0x173653(0x172))/0x8+parseInt(_0x173653(0x14f))/0x9+parseInt(_0x173653(0x165))/0xa*(parseInt(_0x173653(0x187))/0xb);if(_0x22bcb2===_0x4ab538)break;else _0xf6b2fa['push'](_0xf6b2fa['shift']());}catch(_0x56d4e4){_0xf6b2fa['push'](_0xf6b2fa['shift']());}}}(_0x3a31,0x39df6));import{Plugin as _0xd2e1dd}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x127169}from'./modelelementtracker.js';export class FootnotesTracker extends _0xd2e1dd{[_0x42caa7(0x17c)]=[];[_0x42caa7(0x16f)]=null;[_0x42caa7(0x1a9)]=null;[_0x42caa7(0x156)];[_0x42caa7(0x194)];[_0x42caa7(0x195)];static get[_0x42caa7(0x16c)](){const _0x170055=_0x42caa7;return _0x170055(0x16e);}static get[_0x42caa7(0x15b)](){return!0x0;}static get[_0x42caa7(0x15f)](){return!0x0;}constructor(_0x39d776){const _0xb85767=_0x42caa7;super(_0x39d776),this[_0xb85767(0x156)]=new _0x127169(this[_0xb85767(0x147)][_0xb85767(0x19f)],{'elementName':_0xb85767(0x179),'getElementKey':()=>_0xb85767(0x18c)}),this[_0xb85767(0x194)]=new _0x127169(this[_0xb85767(0x147)][_0xb85767(0x19f)],{'elementName':_0xb85767(0x148),'getElementKey':_0x51bbcb=>_0x51bbcb[_0xb85767(0x15c)](_0xb85767(0x168))}),this[_0xb85767(0x195)]=new _0x127169(this[_0xb85767(0x147)][_0xb85767(0x19f)],{'elementName':_0xb85767(0x14d),'getElementKey':_0x51de9f=>_0x51de9f[_0xb85767(0x15c)](_0xb85767(0x168))});}[_0x42caa7(0x185)](){const _0xff5fec=_0x42caa7,{editor:_0x161b76}=this,{model:_0x3e54dd,data:_0x5ef362}=_0x161b76;_0x3e54dd[_0xff5fec(0x17d)][_0xff5fec(0x190)](_0x310f79=>{const _0x3264fd=_0xff5fec,_0x1c69e3=_0x3e54dd[_0x3264fd(0x17d)][_0x3264fd(0x18b)][_0x3264fd(0x15d)]();let _0x50de56=!0x1;return this[_0x3264fd(0x174)](_0x310f79,_0x1c69e3)&&(_0x50de56=!0x0),this[_0x3264fd(0x192)](_0x310f79,_0x1c69e3)&&(_0x50de56=!0x0),this[_0x3264fd(0x17f)](_0x310f79,_0x1c69e3)&&(_0x50de56=!0x0),this[_0x3264fd(0x160)](_0x310f79)&&(_0x50de56=!0x0),this[_0x3264fd(0x1a1)](_0x310f79)&&(_0x50de56=!0x0),this[_0x3264fd(0x19c)](_0x310f79)&&(_0x50de56=!0x0),_0x50de56;}),this[_0xff5fec(0x18d)](_0x3e54dd[_0xff5fec(0x17d)],_0xff5fec(0x17e),()=>{const _0x453638=_0xff5fec;_0x3e54dd[_0x453638(0x196)]({'isUndoable':!0x1},_0x2f52b2=>{const _0x103efc=_0x453638;this[_0x103efc(0x14a)](_0x2f52b2);});},{'priority':_0xff5fec(0x189)}),this[_0xff5fec(0x18d)](_0x5ef362,_0xff5fec(0x193),()=>{const _0x4fd36a=_0xff5fec;this[_0x4fd36a(0x17c)]=[],this[_0x4fd36a(0x156)][_0x4fd36a(0x158)](),this[_0x4fd36a(0x194)][_0x4fd36a(0x158)](),this[_0x4fd36a(0x195)][_0x4fd36a(0x158)]();},{'priority':_0xff5fec(0x171)});}[_0x42caa7(0x164)](){const _0x32593d=_0x42caa7;return this[_0x32593d(0x16f)];}[_0x42caa7(0x1a0)](_0x4ec099){const _0x3840f7=_0x42caa7;return this[_0x3840f7(0x17c)][_0x3840f7(0x177)](_0x3db01=>_0x3db01['id']===_0x4ec099)||null;}[_0x42caa7(0x16a)](){const _0x20f18c=_0x42caa7;return Array[_0x20f18c(0x152)](this[_0x20f18c(0x17c)]);}[_0x42caa7(0x149)](){const _0x3ee72b=_0x42caa7;return this[_0x3ee72b(0x1a9)];}[_0x42caa7(0x153)](_0x404e65){const _0x5b320b=_0x42caa7;this[_0x5b320b(0x1a9)]=_0x404e65;}[_0x42caa7(0x19b)](_0x20e21a,_0x80af2a=0x0){const _0x46a4d2=_0x42caa7;let _0x36d619=!0x1;for(let _0x3b3d81=_0x80af2a;_0x3b3d81<this[_0x46a4d2(0x17c)][_0x46a4d2(0x15e)];_0x3b3d81++)this[_0x46a4d2(0x15a)](_0x20e21a,_0x3b3d81)&&(_0x36d619=!0x0);return _0x36d619;}[_0x42caa7(0x19e)](_0x3a2e71,_0x231306){const _0x5e944f=_0x42caa7,_0x4dd7c0=_0x3a2e71[_0x5e944f(0x18e)](_0x5e944f(0x179),{});return _0x3a2e71[_0x5e944f(0x16d)](_0x4dd7c0,_0x231306),this[_0x5e944f(0x16f)]=_0x4dd7c0,_0x4dd7c0;}[_0x42caa7(0x14a)](_0x35869e){const _0x31e067=_0x42caa7;if(!this[_0x31e067(0x17c)][_0x31e067(0x15e)]||this[_0x31e067(0x16f)])return;const _0x4a383f=this[_0x31e067(0x17c)][0x0][_0x31e067(0x175)][_0x31e067(0x183)],_0x48c9bc=this[_0x31e067(0x19e)](_0x35869e,_0x4a383f);for(const _0x566357 of this[_0x31e067(0x17c)])_0x566357[_0x31e067(0x182)][_0x31e067(0x181)]||_0x35869e[_0x31e067(0x14b)](_0x566357[_0x31e067(0x182)],_0x48c9bc,_0x31e067(0x161));this[_0x31e067(0x19b)](_0x35869e);}[_0x42caa7(0x174)](_0x25834a,_0x2c399c){const _0x44a70b=_0x42caa7;let _0x3e35ad=!0x1;const {inserted:_0x1fd569,removed:_0x50f193,moved:_0x26f962}=this[_0x44a70b(0x156)][_0x44a70b(0x15d)](_0x2c399c);if(_0x26f962[_0x44a70b(0x15e)]&&(this[_0x44a70b(0x16f)]=_0x26f962[0x0]),_0x1fd569[_0x44a70b(0x15e)]){if(_0x1fd569[_0x44a70b(0x15e)]>0x1||this[_0x44a70b(0x16f)]&&_0x1fd569[_0x44a70b(0x1a7)](_0x57249c=>_0x57249c!==this[_0x44a70b(0x16f)])){const _0x432eb6=_0x25834a[_0x44a70b(0x18e)](_0x44a70b(0x179),{}),_0x501fe2=[];this[_0x44a70b(0x16f)]&&_0x501fe2[_0x44a70b(0x1ab)](this[_0x44a70b(0x16f)]),_0x501fe2[_0x44a70b(0x1ab)](..._0x1fd569),_0x25834a[_0x44a70b(0x14b)](_0x432eb6,_0x501fe2[0x0],_0x44a70b(0x19a));for(const _0x263622 of _0x501fe2)_0x25834a[_0x44a70b(0x198)](_0x25834a[_0x44a70b(0x1a4)](_0x263622),_0x25834a[_0x44a70b(0x167)](_0x432eb6,_0x44a70b(0x161))),_0x25834a[_0x44a70b(0x199)](_0x263622);this[_0x44a70b(0x16f)]=_0x432eb6,this[_0x44a70b(0x19b)](_0x25834a),_0x3e35ad=!0x0;}else this[_0x44a70b(0x16f)]=_0x1fd569[0x0];}if(_0x50f193[_0x44a70b(0x15e)]&&_0x44a70b(0x184)===this[_0x44a70b(0x16f)]?.[_0x44a70b(0x183)][_0x44a70b(0x188)]){for(const _0x3281f1 of this[_0x44a70b(0x17c)])_0x25834a[_0x44a70b(0x199)](_0x3281f1[_0x44a70b(0x175)]),_0x3e35ad=!0x0;this[_0x44a70b(0x17c)]=[],this[_0x44a70b(0x16f)]=null;}return _0x3e35ad;}[_0x42caa7(0x192)](_0x1ddab4,_0x28db0d){const _0x118846=_0x42caa7;let _0x100c79=!0x1;const _0x1ade2b=this[_0x118846(0x147)][_0x118846(0x159)][_0x118846(0x170)](_0x118846(0x151)),{inserted:_0x104a66,moved:_0x463b8e}=this[_0x118846(0x195)][_0x118846(0x15d)](_0x28db0d);for(const _0x272d1f of[..._0x463b8e,..._0x104a66]){const _0x2ea9d3=_0x272d1f[_0x118846(0x15c)](_0x118846(0x168)),_0x4ae64d=this[_0x118846(0x1a0)](_0x2ea9d3);_0x4ae64d&&(_0x4ae64d[_0x118846(0x182)]=_0x272d1f),_(_0x1ddab4,_0x1ade2b,_0x272d1f)&&(_0x100c79=!0x0);}return _0x100c79;}[_0x42caa7(0x17f)](_0x67b622,_0x40f988){const _0x39e44b=_0x42caa7;let _0x15817b=!0x1;const {removed:_0x57262c,inserted:_0x4a5bb0,moved:_0x27f49f}=this[_0x39e44b(0x194)][_0x39e44b(0x15d)](_0x40f988);for(const _0xce6aa0 of _0x57262c)this[_0x39e44b(0x176)](_0x67b622,_0xce6aa0)&&(_0x15817b=!0x0);for(const _0xe0e3a4 of _0x4a5bb0)this[_0x39e44b(0x1a2)](_0x67b622,_0xe0e3a4)&&(_0x15817b=!0x0);for(const _0xd2dc1d of _0x27f49f)this[_0x39e44b(0x17a)](_0x67b622,_0xd2dc1d)&&(_0x15817b=!0x0);return _0x15817b;}[_0x42caa7(0x1a1)](_0xd569e3){const _0x3482fa=_0x42caa7;if(!this[_0x3482fa(0x16f)])return!0x1;let _0x5d856b=!0x1;if(this[_0x3482fa(0x16f)][_0x3482fa(0x14e)]!==this[_0x3482fa(0x17c)][_0x3482fa(0x15e)]){const _0x37ef4e=[];for(const _0x29d23b of this[_0x3482fa(0x16f)][_0x3482fa(0x155)]()){const _0x391531=_0x29d23b[_0x3482fa(0x15c)](_0x3482fa(0x168));this[_0x3482fa(0x1a0)](_0x391531)||(_0x37ef4e[_0x3482fa(0x14c)](_0x29d23b),_0x5d856b=!0x0);}for(const _0x4a1e7d of _0x37ef4e)_0xd569e3[_0x3482fa(0x199)](_0x4a1e7d);}const _0x5749b0=new Set(),_0xf45186=[];for(const _0x705ca4 of this[_0x3482fa(0x16f)][_0x3482fa(0x155)]()){const _0x296aa9=_0x705ca4[_0x3482fa(0x15c)](_0x3482fa(0x168));_0x5749b0[_0x3482fa(0x169)](_0x296aa9)?(_0xf45186[_0x3482fa(0x14c)](_0x705ca4),_0x5d856b=!0x0):_0x5749b0[_0x3482fa(0x1a6)](_0x296aa9);}for(const _0x1333f6 of _0xf45186)_0xd569e3[_0x3482fa(0x199)](_0x1333f6);return this[_0x3482fa(0x16f)][_0x3482fa(0x14e)]||(_0xd569e3[_0x3482fa(0x199)](this[_0x3482fa(0x16f)]),this[_0x3482fa(0x16f)]=null,_0x5d856b=!0x0),_0x5d856b;}[_0x42caa7(0x1a2)](_0x105d40,_0x38a963){const _0x183912=_0x42caa7;if(this[_0x183912(0x17c)][_0x183912(0x177)](_0x897a8=>_0x897a8[_0x183912(0x175)]===_0x38a963))return!0x1;let _0x1c0611=!0x1;const _0x263105=_0x38a963[_0x183912(0x15c)](_0x183912(0x168)),_0x2a33e9=this[_0x183912(0x17c)][_0x183912(0x1a5)](_0x54b418=>_0x54b418['id']===_0x263105);-0x1!==_0x2a33e9&&(_0x105d40[_0x183912(0x199)](this[_0x183912(0x17c)][_0x2a33e9][_0x183912(0x175)]),this[_0x183912(0x17c)][_0x183912(0x19d)](_0x2a33e9,0x1),_0x1c0611=!0x0);let _0x485610=this[_0x183912(0x16f)]?function(_0x5887c0,_0x28938e){const _0xc7278b=_0x183912;for(const _0x278810 of _0x5887c0[_0xc7278b(0x155)]())if(_0x278810[_0xc7278b(0x15c)](_0xc7278b(0x168))===_0x28938e)return _0x278810;return null;}(this[_0x183912(0x16f)],_0x263105):null;_0x485610||(_0x485610=_0x105d40[_0x183912(0x18e)](_0x183912(0x14d),{'footnoteId':_0x263105}),this[_0x183912(0x16f)]&&(_0x105d40[_0x183912(0x14b)](_0x485610,this[_0x183912(0x16f)],_0x183912(0x161)),_0x1c0611=!0x0));const _0x483ff5={'id':_0x263105,'reference':_0x38a963,'definition':_0x485610},_0x43a125=I(this[_0x183912(0x147)][_0x183912(0x19f)],this[_0x183912(0x17c)],_0x38a963);this[_0x183912(0x17c)][_0x183912(0x19d)](_0x43a125,0x0,_0x483ff5);let _0x23a73a=_0x43a125;return-0x1!==_0x2a33e9&&(_0x23a73a=Math[_0x183912(0x166)](_0x43a125,_0x2a33e9)),this[_0x183912(0x19b)](_0x105d40,_0x23a73a)&&(_0x1c0611=!0x0),_0x1c0611;}[_0x42caa7(0x176)](_0x2d472e,_0x558ef1){const _0x37f4bf=_0x42caa7,_0x416a16=this[_0x37f4bf(0x17c)][_0x37f4bf(0x1a5)](_0xa9cc55=>_0xa9cc55['id']===_0x558ef1);if(-0x1===_0x416a16)return!0x1;let _0x4098d0=!0x1;const _0x622cbc=this[_0x37f4bf(0x17c)][_0x416a16];return _0x37f4bf(0x184)!==_0x622cbc[_0x37f4bf(0x182)][_0x37f4bf(0x183)][_0x37f4bf(0x188)]&&(_0x2d472e[_0x37f4bf(0x199)](_0x622cbc[_0x37f4bf(0x182)]),_0x4098d0=!0x0),this[_0x37f4bf(0x17c)][_0x37f4bf(0x19d)](_0x416a16,0x1),this[_0x37f4bf(0x19b)](_0x2d472e,_0x416a16)&&(_0x4098d0=!0x0),_0x4098d0;}[_0x42caa7(0x17a)](_0x130226,_0xf8577){const _0x174c37=_0x42caa7,_0x327985=_0xf8577[_0x174c37(0x15c)](_0x174c37(0x168)),_0x584fd9=this[_0x174c37(0x17c)][_0x174c37(0x1a5)](_0x3daab8=>_0x3daab8['id']===_0x327985),_0x5069b7=this[_0x174c37(0x17c)][_0x584fd9];let _0x10a821=!0x1;_0x5069b7[_0x174c37(0x175)]=_0xf8577,this[_0x174c37(0x17c)][_0x174c37(0x19d)](_0x584fd9,0x1);const _0x573468=I(this[_0x174c37(0x147)][_0x174c37(0x19f)],this[_0x174c37(0x17c)],_0xf8577);return this[_0x174c37(0x17c)][_0x174c37(0x19d)](_0x573468,0x0,_0x5069b7),this[_0x174c37(0x19b)](_0x130226,Math[_0x174c37(0x166)](_0x584fd9,_0x573468))&&(_0x10a821=!0x0),_0x10a821;}[_0x42caa7(0x15a)](_0x586711,_0x2c75fc){const _0x190400=_0x42caa7;if(!this[_0x190400(0x16f)])return!0x1;const _0x2d935f=this[_0x190400(0x17c)][_0x2c75fc];let _0x4d3fa8;return _0x4d3fa8=this[_0x190400(0x1a9)]?this[_0x190400(0x1a9)]({'footnote':_0x2d935f,'container':this[_0x190400(0x16f)],'digits':String(this[_0x190400(0x17c)][_0x190400(0x15e)])[_0x190400(0x15e)],'value':_0x2c75fc+0x1}):String(_0x2c75fc+0x1),_0x2d935f[_0x190400(0x175)][_0x190400(0x15c)](_0x190400(0x1a3))!=_0x4d3fa8&&(_0x586711[_0x190400(0x163)](_0x190400(0x1a3),_0x4d3fa8,_0x2d935f[_0x190400(0x175)]),!0x0);}[_0x42caa7(0x19c)](_0x251e61){const _0x21e7f5=_0x42caa7;if(!this[_0x21e7f5(0x16f)]||this[_0x21e7f5(0x17c)][_0x21e7f5(0x15e)]<0x2)return!0x1;if(function(_0x2ac31c,_0x1237bf){const _0x45e1b6=_0x21e7f5;if(_0x2ac31c[_0x45e1b6(0x15e)]!==_0x1237bf[_0x45e1b6(0x15e)])return!0x1;for(let _0x40dd5b=0x0;_0x40dd5b<_0x2ac31c[_0x45e1b6(0x15e)];_0x40dd5b++)if(_0x2ac31c[_0x40dd5b]!==_0x1237bf[_0x40dd5b])return!0x1;return!0x0;}(this[_0x21e7f5(0x17c)][_0x21e7f5(0x1ac)](_0x3dc292=>_0x3dc292['id']),Array[_0x21e7f5(0x152)](this[_0x21e7f5(0x16f)][_0x21e7f5(0x155)]())[_0x21e7f5(0x1ac)](_0x2e593b=>_0x2e593b[_0x21e7f5(0x15c)](_0x21e7f5(0x168)))))return!0x1;let _0x551660=!0x1;for(let _0x403919=0x0;_0x403919<this[_0x21e7f5(0x17c)][_0x21e7f5(0x15e)];_0x403919++){const _0x688e34=this[_0x21e7f5(0x17c)][_0x403919],_0x4ababa=_0x251e61[_0x21e7f5(0x154)](_0x688e34[_0x21e7f5(0x182)]),_0x11cb10=_0x251e61[_0x21e7f5(0x167)](this[_0x21e7f5(0x16f)],_0x403919);_0x4ababa[_0x21e7f5(0x1aa)](_0x11cb10)||(_0x251e61[_0x21e7f5(0x198)](_0x251e61[_0x21e7f5(0x191)](_0x688e34[_0x21e7f5(0x182)]),_0x11cb10),_0x551660=!0x0);}return _0x551660;}[_0x42caa7(0x160)](_0x37335d){const _0x5578cf=_0x42caa7;if(!this[_0x5578cf(0x17c)][_0x5578cf(0x15e)])return!0x1;const {model:_0x1baf57}=this[_0x5578cf(0x147)];let _0x485bbb=!0x1;for(let _0x547fae=0x0;_0x547fae<this[_0x5578cf(0x17c)][_0x5578cf(0x15e)]-0x1;_0x547fae++){const _0x187a5d=this[_0x5578cf(0x17c)][_0x547fae],_0x121ebe=this[_0x5578cf(0x17c)][_0x547fae+0x1],_0x14b7bb=_0x1baf57[_0x5578cf(0x154)](_0x187a5d[_0x5578cf(0x175)]),_0x4a92b8=_0x1baf57[_0x5578cf(0x154)](_0x121ebe[_0x5578cf(0x175)]);_0x5578cf(0x150)===_0x14b7bb[_0x5578cf(0x178)](_0x4a92b8)&&(this[_0x5578cf(0x17a)](_0x37335d,_0x187a5d[_0x5578cf(0x175)]),_0x547fae=-0x1,_0x485bbb=!0x0);}return _0x485bbb;}}function _(_0x2468ab,_0x26dcab,_0x3afc7b){const _0xa0eaed=_0x42caa7;if(_0x3afc7b[_0xa0eaed(0x14e)])return!0x1;const _0x2fbad9=_0x26dcab?_0xa0eaed(0x17b):_0xa0eaed(0x157);return _0x2468ab[_0xa0eaed(0x14b)](_0x2468ab[_0xa0eaed(0x18e)](_0x2fbad9),_0x3afc7b),!0x0;}function _0x3078(_0xd092b3,_0x104ee){const _0x3a31e5=_0x3a31();return _0x3078=function(_0x3078ef,_0x43ab9f){_0x3078ef=_0x3078ef-0x147;let _0x228e35=_0x3a31e5[_0x3078ef];return _0x228e35;},_0x3078(_0xd092b3,_0x104ee);}function _0x3a31(){const _0x424520=['createPositionBefore','getChildren','_footnoteDefsContainerTracker','footnoteInlineContent','reset','config','_updateFootnoteRefCounter','isOfficialPlugin','getAttribute','getChanges','length','isPremiumPlugin','_ensureFootnotesReferencesHaveProperOrder','end','indexOf','setAttribute','getFootnotesDefinitionsObjectElement','50jgfTKY','min','createPositionAt','footnoteId','has','getFootnotes','366QWJmGX','pluginName','append','FootnotesTracker','_footnotesDefinitions','get','high','1853072FhSxdz','getRootNames','_handleFootnotesDefinitionsObjectChanges','reference','_handleRemoveFootnoteReferenceById','find','compareWith','footnotesDefinitions','_handleMovedFootnoteReference','paragraph','_footnotes','document','change:data','_handleFootnoteReferencesChanges','405372FaHyxz','parent','definition','root','$graveyard','init','4654liftCJ','1068859zLgaNs','rootName','low','76jOeNZa','differ','singleton','listenTo','createElement','163261pWipup','registerPostFixer','createRangeOn','_handleFootnoteDefinitionsChanges','set','_footnoteRefsTracker','_footnoteDefsTracker','enqueueChange','91525jARMNB','move','remove','before','_updateFootnotesCounters','_sortFootnoteDefinitions','splice','_insertEmptyFootnotesDefinitionsContainer','model','getFootnote','_handleFootnotesDefinitionsObjectSync','_handleInsertedFootnoteReference','footnoteCounter','createRangeIn','findIndex','add','some','24fvCywp','_footnoteFormatter','isEqual','push','map','editor','footnoteRef','getFootnotesFormatter','_ensureFootnotesDefinitionsContainerExists','insert','unshift','footnoteDefinition','childCount','3229344QBhJyn','after','footnotes.multiBlock','from','setFootnoteFormatter'];_0x3a31=function(){return _0x424520;};return _0x3a31();}function I(_0x578952,_0x7ad430,_0x54a9d5){const _0x3c0cf1=_0x42caa7;if(0x0===_0x7ad430[_0x3c0cf1(0x15e)])return 0x0;const _0x1b2bf7=_0x578952[_0x3c0cf1(0x154)](_0x54a9d5);for(let _0x53a719=0x0;_0x53a719<_0x7ad430[_0x3c0cf1(0x15e)];_0x53a719++){const _0x2a3f83=_0x7ad430[_0x53a719],_0x507799=_0x578952[_0x3c0cf1(0x154)](_0x2a3f83[_0x3c0cf1(0x175)]);if(_0x3c0cf1(0x19a)===_0x1b2bf7[_0x3c0cf1(0x178)](_0x507799))return _0x53a719;}const _0x24ec77=_0x54a9d5[_0x3c0cf1(0x183)];let _0x37af26=-0x1;for(let _0x2352ab=_0x7ad430[_0x3c0cf1(0x15e)]-0x1;_0x2352ab>=0x0;_0x2352ab--)if(_0x7ad430[_0x2352ab][_0x3c0cf1(0x175)][_0x3c0cf1(0x183)]===_0x24ec77){_0x37af26=_0x2352ab;break;}if(-0x1!==_0x37af26)return _0x37af26+0x1;const _0x4a0e2f=_0x578952[_0x3c0cf1(0x17d)][_0x3c0cf1(0x173)](),_0x2852d2=_0x4a0e2f[_0x3c0cf1(0x162)](_0x24ec77[_0x3c0cf1(0x188)]),_0x420e12=_0x4a0e2f[_0x2852d2+0x1];if(_0x420e12){for(let _0x268c7e=0x0;_0x268c7e<_0x7ad430[_0x3c0cf1(0x15e)];_0x268c7e++)if(_0x7ad430[_0x268c7e][_0x3c0cf1(0x175)][_0x3c0cf1(0x183)][_0x3c0cf1(0x188)]===_0x420e12)return _0x268c7e;}return _0x7ad430[_0x3c0cf1(0x15e)];}
|
|
23
|
+
const _0x1335be=_0x2865;function _0x2865(_0x428e0b,_0x2ee0fc){const _0x2c81ec=_0x2c81();return _0x2865=function(_0x286560,_0x32d44c){_0x286560=_0x286560-0x1da;let _0x15f113=_0x2c81ec[_0x286560];return _0x15f113;},_0x2865(_0x428e0b,_0x2ee0fc);}(function(_0x40329f,_0x4f7ca6){const _0x142688=_0x2865,_0x5f2c17=_0x40329f();while(!![]){try{const _0x4f7f36=-parseInt(_0x142688(0x23e))/0x1*(parseInt(_0x142688(0x1ec))/0x2)+-parseInt(_0x142688(0x228))/0x3+-parseInt(_0x142688(0x237))/0x4*(-parseInt(_0x142688(0x203))/0x5)+-parseInt(_0x142688(0x233))/0x6*(-parseInt(_0x142688(0x204))/0x7)+-parseInt(_0x142688(0x1f5))/0x8+-parseInt(_0x142688(0x1fc))/0x9+parseInt(_0x142688(0x21e))/0xa;if(_0x4f7f36===_0x4f7ca6)break;else _0x5f2c17['push'](_0x5f2c17['shift']());}catch(_0x2c132a){_0x5f2c17['push'](_0x5f2c17['shift']());}}}(_0x2c81,0x6c77e));import{Plugin as _0x119197}from'ckeditor5/src/core.js';function _0x2c81(){const _0x3bb2ad=['_updateFootnoteRefCounter','getFootnotesFormatter','footnoteRef','after','6tdZsPR','some','createPositionBefore','registerPostFixer','2958048pTBlyd','_footnoteRefsTracker','insert','parent','createRangeIn','document','has','11fsgenj','footnoteInlineContent','isOfficialPlugin','createPositionAt','editor','_footnotesDefinitions','findIndex','getFootnote','_sortFootnoteDefinitions','singleton','_handleFootnoteReferencesChanges','set','high','setAttribute','footnotesDefinitions','footnoteDefinition','_ensureFootnotesDefinitionsContainerExists','append','getFootnotes','52978ehWGxf','_updateFootnotesCounters','change:data','rootName','splice','min','_handleFootnoteDefinitionsChanges','setFootnoteFormatter','_insertEmptyFootnotesDefinitionsContainer','1920984hpAmsc','_handleInsertedFootnoteReference','_footnoteDefsTracker','$graveyard','enqueueChange','isPremiumPlugin','getChildren','3265857EyWaqh','init','map','differ','config','_footnoteFormatter','reset','5fyxMLP','1197301LPalRh','footnotes.multiBlock','_handleMovedFootnoteReference','getRootNames','before','length','indexOf','FootnotesTracker','_footnotes','createRangeOn','low','getFootnotesDefinitionsObjectElement','find','childCount','compareWith','definition','getAttribute','unshift','footnoteId','model','root','listenTo','end','move','from','_footnoteDefsContainerTracker','7298340mWWrzV','push','reference','_ensureFootnotesReferencesHaveProperOrder','getChanges','get','pluginName','remove','footnoteCounter','paragraph','905184qaWETw','isEqual','add','_handleFootnotesDefinitionsObjectSync','createElement','_handleRemoveFootnoteReferenceById','_handleFootnotesDefinitionsObjectChanges'];_0x2c81=function(){return _0x3bb2ad;};return _0x2c81();}import{ModelElementTracker as _0x2cf2da}from'./modelelementtracker.js';export class FootnotesTracker extends _0x119197{[_0x1335be(0x20c)]=[];[_0x1335be(0x1de)]=null;[_0x1335be(0x201)]=null;[_0x1335be(0x21d)];[_0x1335be(0x238)];[_0x1335be(0x1f7)];static get[_0x1335be(0x224)](){const _0x415c37=_0x1335be;return _0x415c37(0x20b);}static get[_0x1335be(0x1db)](){return!0x0;}static get[_0x1335be(0x1fa)](){return!0x0;}constructor(_0x22e5f7){const _0x5dde36=_0x1335be;super(_0x22e5f7),this[_0x5dde36(0x21d)]=new _0x2cf2da(this[_0x5dde36(0x1dd)][_0x5dde36(0x217)],{'elementName':_0x5dde36(0x1e7),'getElementKey':()=>_0x5dde36(0x1e2)}),this[_0x5dde36(0x238)]=new _0x2cf2da(this[_0x5dde36(0x1dd)][_0x5dde36(0x217)],{'elementName':_0x5dde36(0x231),'getElementKey':_0x18e76e=>_0x18e76e[_0x5dde36(0x214)](_0x5dde36(0x216))}),this[_0x5dde36(0x1f7)]=new _0x2cf2da(this[_0x5dde36(0x1dd)][_0x5dde36(0x217)],{'elementName':_0x5dde36(0x1e8),'getElementKey':_0x52d969=>_0x52d969[_0x5dde36(0x214)](_0x5dde36(0x216))});}[_0x1335be(0x1fd)](){const _0x38ef01=_0x1335be,{editor:_0x5ec38d}=this,{model:_0x312627,data:_0x2d3dab}=_0x5ec38d;_0x312627[_0x38ef01(0x23c)][_0x38ef01(0x236)](_0x3923a7=>{const _0x374eec=_0x38ef01,_0x254489=_0x312627[_0x374eec(0x23c)][_0x374eec(0x1ff)][_0x374eec(0x222)]();let _0x13318f=!0x1;return this[_0x374eec(0x22e)](_0x3923a7,_0x254489)&&(_0x13318f=!0x0),this[_0x374eec(0x1f2)](_0x3923a7,_0x254489)&&(_0x13318f=!0x0),this[_0x374eec(0x1e3)](_0x3923a7,_0x254489)&&(_0x13318f=!0x0),this[_0x374eec(0x221)](_0x3923a7)&&(_0x13318f=!0x0),this[_0x374eec(0x22b)](_0x3923a7)&&(_0x13318f=!0x0),this[_0x374eec(0x1e1)](_0x3923a7)&&(_0x13318f=!0x0),_0x13318f;}),this[_0x38ef01(0x219)](_0x312627[_0x38ef01(0x23c)],_0x38ef01(0x1ee),()=>{const _0x36dc9e=_0x38ef01;_0x312627[_0x36dc9e(0x1f9)]({'isUndoable':!0x1},_0x763e11=>{const _0x3d73b9=_0x36dc9e;this[_0x3d73b9(0x1e9)](_0x763e11);});},{'priority':_0x38ef01(0x20e)}),this[_0x38ef01(0x219)](_0x2d3dab,_0x38ef01(0x1e4),()=>{const _0x19ebd0=_0x38ef01;this[_0x19ebd0(0x20c)]=[],this[_0x19ebd0(0x21d)][_0x19ebd0(0x202)](),this[_0x19ebd0(0x238)][_0x19ebd0(0x202)](),this[_0x19ebd0(0x1f7)][_0x19ebd0(0x202)]();},{'priority':_0x38ef01(0x1e5)});}[_0x1335be(0x20f)](){const _0x4ae42f=_0x1335be;return this[_0x4ae42f(0x1de)];}[_0x1335be(0x1e0)](_0x4bba6b){const _0x21803f=_0x1335be;return this[_0x21803f(0x20c)][_0x21803f(0x210)](_0x1e5338=>_0x1e5338['id']===_0x4bba6b)||null;}[_0x1335be(0x1eb)](){const _0x2ca7ce=_0x1335be;return Array[_0x2ca7ce(0x21c)](this[_0x2ca7ce(0x20c)]);}[_0x1335be(0x230)](){const _0x4e7375=_0x1335be;return this[_0x4e7375(0x201)];}[_0x1335be(0x1f3)](_0x365ec8){const _0x2bfd29=_0x1335be;this[_0x2bfd29(0x201)]=_0x365ec8;}[_0x1335be(0x1ed)](_0x291a18,_0x19272d=0x0){const _0x120c02=_0x1335be;let _0x317c17=!0x1;for(let _0x417dd5=_0x19272d;_0x417dd5<this[_0x120c02(0x20c)][_0x120c02(0x209)];_0x417dd5++)this[_0x120c02(0x22f)](_0x291a18,_0x417dd5)&&(_0x317c17=!0x0);return _0x317c17;}[_0x1335be(0x1f4)](_0x57a6c1,_0x1f7cbd){const _0x3b252d=_0x1335be,_0x5de5ac=_0x57a6c1[_0x3b252d(0x22c)](_0x3b252d(0x1e7),{});return _0x57a6c1[_0x3b252d(0x1ea)](_0x5de5ac,_0x1f7cbd),this[_0x3b252d(0x1de)]=_0x5de5ac,_0x5de5ac;}[_0x1335be(0x1e9)](_0x1dc344){const _0x3c37d5=_0x1335be;if(!this[_0x3c37d5(0x20c)][_0x3c37d5(0x209)]||this[_0x3c37d5(0x1de)])return;const _0x2b4a27=this[_0x3c37d5(0x20c)][0x0][_0x3c37d5(0x220)][_0x3c37d5(0x218)],_0x584677=this[_0x3c37d5(0x1f4)](_0x1dc344,_0x2b4a27);for(const _0x3d9007 of this[_0x3c37d5(0x20c)])_0x3d9007[_0x3c37d5(0x213)][_0x3c37d5(0x23a)]||_0x1dc344[_0x3c37d5(0x239)](_0x3d9007[_0x3c37d5(0x213)],_0x584677,_0x3c37d5(0x21a));this[_0x3c37d5(0x1ed)](_0x1dc344);}[_0x1335be(0x22e)](_0x4c3b1b,_0x5a7613){const _0x2d4544=_0x1335be;let _0x2c6e5c=!0x1;const {inserted:_0x4ce720,removed:_0x1c57b5,moved:_0x55c841}=this[_0x2d4544(0x21d)][_0x2d4544(0x222)](_0x5a7613);if(_0x55c841[_0x2d4544(0x209)]&&(this[_0x2d4544(0x1de)]=_0x55c841[0x0]),_0x4ce720[_0x2d4544(0x209)]){if(_0x4ce720[_0x2d4544(0x209)]>0x1||this[_0x2d4544(0x1de)]&&_0x4ce720[_0x2d4544(0x234)](_0x1f7a4a=>_0x1f7a4a!==this[_0x2d4544(0x1de)])){const _0x495876=_0x4c3b1b[_0x2d4544(0x22c)](_0x2d4544(0x1e7),{}),_0x27d1e8=[];this[_0x2d4544(0x1de)]&&_0x27d1e8[_0x2d4544(0x21f)](this[_0x2d4544(0x1de)]),_0x27d1e8[_0x2d4544(0x21f)](..._0x4ce720),_0x4c3b1b[_0x2d4544(0x239)](_0x495876,_0x27d1e8[0x0],_0x2d4544(0x208));for(const _0x3a6b49 of _0x27d1e8)_0x4c3b1b[_0x2d4544(0x21b)](_0x4c3b1b[_0x2d4544(0x23b)](_0x3a6b49),_0x4c3b1b[_0x2d4544(0x1dc)](_0x495876,_0x2d4544(0x21a))),_0x4c3b1b[_0x2d4544(0x225)](_0x3a6b49);this[_0x2d4544(0x1de)]=_0x495876,this[_0x2d4544(0x1ed)](_0x4c3b1b),_0x2c6e5c=!0x0;}else this[_0x2d4544(0x1de)]=_0x4ce720[0x0];}if(_0x1c57b5[_0x2d4544(0x209)]&&_0x2d4544(0x1f8)===this[_0x2d4544(0x1de)]?.[_0x2d4544(0x218)][_0x2d4544(0x1ef)]){for(const _0x47aa09 of this[_0x2d4544(0x20c)])_0x4c3b1b[_0x2d4544(0x225)](_0x47aa09[_0x2d4544(0x220)]),_0x2c6e5c=!0x0;this[_0x2d4544(0x20c)]=[],this[_0x2d4544(0x1de)]=null;}return _0x2c6e5c;}[_0x1335be(0x1f2)](_0x30ee73,_0x580e83){const _0x127c5f=_0x1335be;let _0x542cd1=!0x1;const _0x520eaa=this[_0x127c5f(0x1dd)][_0x127c5f(0x200)][_0x127c5f(0x223)](_0x127c5f(0x205)),{inserted:_0x3887ed,moved:_0x65c1be}=this[_0x127c5f(0x1f7)][_0x127c5f(0x222)](_0x580e83);for(const _0x132234 of[..._0x65c1be,..._0x3887ed]){const _0xf20c15=_0x132234[_0x127c5f(0x214)](_0x127c5f(0x216)),_0x24d291=this[_0x127c5f(0x1e0)](_0xf20c15);_0x24d291&&(_0x24d291[_0x127c5f(0x213)]=_0x132234),_(_0x30ee73,_0x520eaa,_0x132234)&&(_0x542cd1=!0x0);}return _0x542cd1;}[_0x1335be(0x1e3)](_0xa361bc,_0x61f5ac){const _0x1dcb14=_0x1335be;let _0x5e07dd=!0x1;const {removed:_0xe40665,inserted:_0x253cde,moved:_0x21f43a}=this[_0x1dcb14(0x238)][_0x1dcb14(0x222)](_0x61f5ac);for(const _0x1e1b5d of _0xe40665)this[_0x1dcb14(0x22d)](_0xa361bc,_0x1e1b5d)&&(_0x5e07dd=!0x0);for(const _0x3912be of _0x253cde)this[_0x1dcb14(0x1f6)](_0xa361bc,_0x3912be)&&(_0x5e07dd=!0x0);for(const _0x3ebdf6 of _0x21f43a)this[_0x1dcb14(0x206)](_0xa361bc,_0x3ebdf6)&&(_0x5e07dd=!0x0);return _0x5e07dd;}[_0x1335be(0x22b)](_0x5ecb80){const _0x2e8bac=_0x1335be;if(!this[_0x2e8bac(0x1de)])return!0x1;let _0x305d4c=!0x1;if(this[_0x2e8bac(0x1de)][_0x2e8bac(0x211)]!==this[_0x2e8bac(0x20c)][_0x2e8bac(0x209)]){const _0x2fc94c=[];for(const _0x258891 of this[_0x2e8bac(0x1de)][_0x2e8bac(0x1fb)]()){const _0x358971=_0x258891[_0x2e8bac(0x214)](_0x2e8bac(0x216));this[_0x2e8bac(0x1e0)](_0x358971)||(_0x2fc94c[_0x2e8bac(0x215)](_0x258891),_0x305d4c=!0x0);}for(const _0x31e91f of _0x2fc94c)_0x5ecb80[_0x2e8bac(0x225)](_0x31e91f);}const _0x3bdd2a=new Set(),_0x3930ce=[];for(const _0x530454 of this[_0x2e8bac(0x1de)][_0x2e8bac(0x1fb)]()){const _0xf060d4=_0x530454[_0x2e8bac(0x214)](_0x2e8bac(0x216));_0x3bdd2a[_0x2e8bac(0x23d)](_0xf060d4)?(_0x3930ce[_0x2e8bac(0x215)](_0x530454),_0x305d4c=!0x0):_0x3bdd2a[_0x2e8bac(0x22a)](_0xf060d4);}for(const _0x4acfeb of _0x3930ce)_0x5ecb80[_0x2e8bac(0x225)](_0x4acfeb);return this[_0x2e8bac(0x1de)][_0x2e8bac(0x211)]||(_0x5ecb80[_0x2e8bac(0x225)](this[_0x2e8bac(0x1de)]),this[_0x2e8bac(0x1de)]=null,_0x305d4c=!0x0),_0x305d4c;}[_0x1335be(0x1f6)](_0x1a9383,_0x5e3fef){const _0x336db8=_0x1335be;if(this[_0x336db8(0x20c)][_0x336db8(0x210)](_0x50b889=>_0x50b889[_0x336db8(0x220)]===_0x5e3fef))return!0x1;let _0x52e819=!0x1;const _0xb5cede=_0x5e3fef[_0x336db8(0x214)](_0x336db8(0x216)),_0xe76be2=this[_0x336db8(0x20c)][_0x336db8(0x1df)](_0x3e7c09=>_0x3e7c09['id']===_0xb5cede);-0x1!==_0xe76be2&&(_0x1a9383[_0x336db8(0x225)](this[_0x336db8(0x20c)][_0xe76be2][_0x336db8(0x220)]),this[_0x336db8(0x20c)][_0x336db8(0x1f0)](_0xe76be2,0x1),_0x52e819=!0x0);let _0x2b24b9=this[_0x336db8(0x1de)]?function(_0x10dd99,_0x27ad72){const _0x3e2143=_0x336db8;for(const _0x3ba3c9 of _0x10dd99[_0x3e2143(0x1fb)]())if(_0x3ba3c9[_0x3e2143(0x214)](_0x3e2143(0x216))===_0x27ad72)return _0x3ba3c9;return null;}(this[_0x336db8(0x1de)],_0xb5cede):null;_0x2b24b9||(_0x2b24b9=_0x1a9383[_0x336db8(0x22c)](_0x336db8(0x1e8),{'footnoteId':_0xb5cede}),this[_0x336db8(0x1de)]&&(_0x1a9383[_0x336db8(0x239)](_0x2b24b9,this[_0x336db8(0x1de)],_0x336db8(0x21a)),_0x52e819=!0x0));const _0x6b5853={'id':_0xb5cede,'reference':_0x5e3fef,'definition':_0x2b24b9},_0xe928de=I(this[_0x336db8(0x1dd)][_0x336db8(0x217)],this[_0x336db8(0x20c)],_0x5e3fef);this[_0x336db8(0x20c)][_0x336db8(0x1f0)](_0xe928de,0x0,_0x6b5853);let _0x399baa=_0xe928de;return-0x1!==_0xe76be2&&(_0x399baa=Math[_0x336db8(0x1f1)](_0xe928de,_0xe76be2)),this[_0x336db8(0x1ed)](_0x1a9383,_0x399baa)&&(_0x52e819=!0x0),_0x52e819;}[_0x1335be(0x22d)](_0x23d322,_0x19e9a2){const _0x2fb263=_0x1335be,_0x1b64d0=this[_0x2fb263(0x20c)][_0x2fb263(0x1df)](_0x3ff1ce=>_0x3ff1ce['id']===_0x19e9a2);if(-0x1===_0x1b64d0)return!0x1;let _0x4f256c=!0x1;const _0x2a269c=this[_0x2fb263(0x20c)][_0x1b64d0];return _0x2fb263(0x1f8)!==_0x2a269c[_0x2fb263(0x213)][_0x2fb263(0x218)][_0x2fb263(0x1ef)]&&(_0x23d322[_0x2fb263(0x225)](_0x2a269c[_0x2fb263(0x213)]),_0x4f256c=!0x0),this[_0x2fb263(0x20c)][_0x2fb263(0x1f0)](_0x1b64d0,0x1),this[_0x2fb263(0x1ed)](_0x23d322,_0x1b64d0)&&(_0x4f256c=!0x0),_0x4f256c;}[_0x1335be(0x206)](_0x452ed8,_0x14a9d2){const _0x4c347c=_0x1335be,_0x46225a=_0x14a9d2[_0x4c347c(0x214)](_0x4c347c(0x216)),_0x574a25=this[_0x4c347c(0x20c)][_0x4c347c(0x1df)](_0x3f3a2d=>_0x3f3a2d['id']===_0x46225a),_0x75a1c2=this[_0x4c347c(0x20c)][_0x574a25];let _0x2e9c40=!0x1;_0x75a1c2[_0x4c347c(0x220)]=_0x14a9d2,this[_0x4c347c(0x20c)][_0x4c347c(0x1f0)](_0x574a25,0x1);const _0x465a74=I(this[_0x4c347c(0x1dd)][_0x4c347c(0x217)],this[_0x4c347c(0x20c)],_0x14a9d2);return this[_0x4c347c(0x20c)][_0x4c347c(0x1f0)](_0x465a74,0x0,_0x75a1c2),this[_0x4c347c(0x1ed)](_0x452ed8,Math[_0x4c347c(0x1f1)](_0x574a25,_0x465a74))&&(_0x2e9c40=!0x0),_0x2e9c40;}[_0x1335be(0x22f)](_0x204aa4,_0x45179c){const _0x455076=_0x1335be;if(!this[_0x455076(0x1de)])return!0x1;const _0x9818b0=this[_0x455076(0x20c)][_0x45179c];let _0x321723;return _0x321723=this[_0x455076(0x201)]?this[_0x455076(0x201)]({'footnote':_0x9818b0,'container':this[_0x455076(0x1de)],'digits':String(this[_0x455076(0x20c)][_0x455076(0x209)])[_0x455076(0x209)],'value':_0x45179c+0x1}):String(_0x45179c+0x1),_0x9818b0[_0x455076(0x220)][_0x455076(0x214)](_0x455076(0x226))!=_0x321723&&(_0x204aa4[_0x455076(0x1e6)](_0x455076(0x226),_0x321723,_0x9818b0[_0x455076(0x220)]),!0x0);}[_0x1335be(0x1e1)](_0x59a432){const _0x311393=_0x1335be;if(!this[_0x311393(0x1de)]||this[_0x311393(0x20c)][_0x311393(0x209)]<0x2)return!0x1;if(function(_0xaaba09,_0x29e372){const _0x2789f0=_0x311393;if(_0xaaba09[_0x2789f0(0x209)]!==_0x29e372[_0x2789f0(0x209)])return!0x1;for(let _0x3794b6=0x0;_0x3794b6<_0xaaba09[_0x2789f0(0x209)];_0x3794b6++)if(_0xaaba09[_0x3794b6]!==_0x29e372[_0x3794b6])return!0x1;return!0x0;}(this[_0x311393(0x20c)][_0x311393(0x1fe)](_0x3f2884=>_0x3f2884['id']),Array[_0x311393(0x21c)](this[_0x311393(0x1de)][_0x311393(0x1fb)]())[_0x311393(0x1fe)](_0x4728ba=>_0x4728ba[_0x311393(0x214)](_0x311393(0x216)))))return!0x1;let _0x462437=!0x1;for(let _0x334c06=0x0;_0x334c06<this[_0x311393(0x20c)][_0x311393(0x209)];_0x334c06++){const _0x1a8e47=this[_0x311393(0x20c)][_0x334c06],_0x41df4b=_0x59a432[_0x311393(0x235)](_0x1a8e47[_0x311393(0x213)]),_0x4d4535=_0x59a432[_0x311393(0x1dc)](this[_0x311393(0x1de)],_0x334c06);_0x41df4b[_0x311393(0x229)](_0x4d4535)||(_0x59a432[_0x311393(0x21b)](_0x59a432[_0x311393(0x20d)](_0x1a8e47[_0x311393(0x213)]),_0x4d4535),_0x462437=!0x0);}return _0x462437;}[_0x1335be(0x221)](_0x225152){const _0x19b620=_0x1335be;if(!this[_0x19b620(0x20c)][_0x19b620(0x209)])return!0x1;const {model:_0x3a9d46}=this[_0x19b620(0x1dd)];let _0x504b59=!0x1;for(let _0xdf0c9f=0x0;_0xdf0c9f<this[_0x19b620(0x20c)][_0x19b620(0x209)]-0x1;_0xdf0c9f++){const _0x39fe77=this[_0x19b620(0x20c)][_0xdf0c9f],_0x21d2ed=this[_0x19b620(0x20c)][_0xdf0c9f+0x1],_0x101eb0=_0x3a9d46[_0x19b620(0x235)](_0x39fe77[_0x19b620(0x220)]),_0x7c43a9=_0x3a9d46[_0x19b620(0x235)](_0x21d2ed[_0x19b620(0x220)]);_0x19b620(0x232)===_0x101eb0[_0x19b620(0x212)](_0x7c43a9)&&(this[_0x19b620(0x206)](_0x225152,_0x39fe77[_0x19b620(0x220)]),_0xdf0c9f=-0x1,_0x504b59=!0x0);}return _0x504b59;}}function _(_0x56919e,_0x1c9b22,_0x1f2ec5){const _0x5042c4=_0x1335be;if(_0x1f2ec5[_0x5042c4(0x211)])return!0x1;const _0x208363=_0x1c9b22?_0x5042c4(0x227):_0x5042c4(0x1da);return _0x56919e[_0x5042c4(0x239)](_0x56919e[_0x5042c4(0x22c)](_0x208363),_0x1f2ec5),!0x0;}function I(_0x4884d6,_0x15dd3d,_0x464330){const _0x4d2a9b=_0x1335be;if(0x0===_0x15dd3d[_0x4d2a9b(0x209)])return 0x0;const _0x1140c6=_0x4884d6[_0x4d2a9b(0x235)](_0x464330);for(let _0xe95195=0x0;_0xe95195<_0x15dd3d[_0x4d2a9b(0x209)];_0xe95195++){const _0x228307=_0x15dd3d[_0xe95195],_0x54bc1a=_0x4884d6[_0x4d2a9b(0x235)](_0x228307[_0x4d2a9b(0x220)]);if(_0x4d2a9b(0x208)===_0x1140c6[_0x4d2a9b(0x212)](_0x54bc1a))return _0xe95195;}const _0x318666=_0x464330[_0x4d2a9b(0x218)];let _0x13e0ca=-0x1;for(let _0x5a4b09=_0x15dd3d[_0x4d2a9b(0x209)]-0x1;_0x5a4b09>=0x0;_0x5a4b09--)if(_0x15dd3d[_0x5a4b09][_0x4d2a9b(0x220)][_0x4d2a9b(0x218)]===_0x318666){_0x13e0ca=_0x5a4b09;break;}if(-0x1!==_0x13e0ca)return _0x13e0ca+0x1;const _0x289979=_0x4884d6[_0x4d2a9b(0x23c)][_0x4d2a9b(0x207)](),_0x41f696=_0x289979[_0x4d2a9b(0x20a)](_0x318666[_0x4d2a9b(0x1ef)]),_0x373764=_0x289979[_0x41f696+0x1];if(_0x373764){for(let _0x3f4880=0x0;_0x3f4880<_0x15dd3d[_0x4d2a9b(0x209)];_0x3f4880++)if(_0x15dd3d[_0x3f4880][_0x4d2a9b(0x220)][_0x4d2a9b(0x218)][_0x4d2a9b(0x1ef)]===_0x373764)return _0x3f4880;}return _0x15dd3d[_0x4d2a9b(0x209)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1a4973,MenuBarMenuListItemButtonView as _0x167afa}from'ckeditor5/src/ui.js';import{Plugin as _0x326354}from'ckeditor5/src/core.js';import{IconFootnote as _0x313591}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x326354{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x292f08}=this,{componentFactory:_0x342be5}=_0x292f08['ui'];_0x342be5['add']('insertFootnote',E(_0x292f08,_0x1a4973)),_0x342be5['add']('menuBar:insertFootnote',E(_0x292f08,_0x167afa)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x447e34=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a0bbc;for(const _0x4313de in _0x447e34){const _0x53b221=_0x4313de,_0x4683a3=_0x447e34[_0x53b221];if('footnotesLicenseKeyValid'==_0x4683a3||'footnotesLicenseKeyInvalid'==_0x4683a3||'footnotesLicenseKeyExpired'==_0x4683a3||'footnotesLicenseKeyDomainLimit'==_0x4683a3||'footnotesLicenseKeyNotAllowed'==_0x4683a3||'footnotesLicenseKeyEvaluationLimit'==_0x4683a3||'footnotesLicenseKeyTrialLimit'==_0x4683a3||'footnotesLicenseKeyUsageLimit'==_0x4683a3){delete _0x447e34[_0x53b221],_0x3a0bbc=_0x4683a3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3a0bbc&&_0x447e34['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3a0bbc&&_0x447e34['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3a0bbc&&_0x447e34['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3a0bbc&&_0x447e34['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3a0bbc&&_0x447e34['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x3a0bbc&&_0x447e34['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x3a0bbc&&_0x447e34['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x1c677e,_0x30fede){const _0x9b89b2=_0x1c677e['commands']['get']('insertFootnote');return _0xbf2264=>{const {t:t}=_0xbf2264,_0x124082=new _0x30fede(_0xbf2264),_0x20a77c=_0x124082 instanceof _0x167afa;return _0x124082['bind']('isEnabled')['to'](_0x9b89b2,'isEnabled'),_0x124082['set']({'label':t(_0x20a77c?'Footnote':'Insert\x20footnote'),'icon':_0x313591,'tooltip':!0x0}),_0x124082['on']('execute',()=>{_0x9b89b2['execute'](),_0x1c677e['editing']['view']['focus']();}),_0x124082;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xf2c3ab,_0x4d7ef2){var _0x519d4b=_0xe7b7,_0x519b20=_0xf2c3ab();while(!![]){try{var _0x2a4363=-parseInt(_0x519d4b(0x180))/0x1+-parseInt(_0x519d4b(0x17d))/0x2+parseInt(_0x519d4b(0x181))/0x3*(-parseInt(_0x519d4b(0x17e))/0x4)+-parseInt(_0x519d4b(0x182))/0x5*(-parseInt(_0x519d4b(0x17c))/0x6)+parseInt(_0x519d4b(0x17f))/0x7+-parseInt(_0x519d4b(0x17b))/0x8+parseInt(_0x519d4b(0x17a))/0x9;if(_0x2a4363===_0x4d7ef2)break;else _0x519b20['push'](_0x519b20['shift']());}catch(_0x54ae7a){_0x519b20['push'](_0x519b20['shift']());}}}(_0x3135,0x9e1fa));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';function _0xe7b7(_0x36f972,_0x6ad333){var _0x31359a=_0x3135();return _0xe7b7=function(_0xe7b774,_0x24659d){_0xe7b774=_0xe7b774-0x17a;var _0x1d60e7=_0x31359a[_0xe7b774];return _0x1d60e7;},_0xe7b7(_0x36f972,_0x6ad333);}function _0x3135(){var _0x2f3c1f=['873nXbujP','8665KKxbGD','37134522rtahbk','10161568jwuisS','762ffwCBk','1498428fUAssR','11148mYsiQT','2450672TNWQEs','1218144osEpRY'];_0x3135=function(){return _0x2f3c1f;};return _0x3135();}export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5761(_0x1441e8,_0x51db00){const _0x46a33e=_0x46a3();return _0x5761=function(_0x57615e,_0x3a8146){_0x57615e=_0x57615e-0x9f;let _0x9d45a3=_0x46a33e[_0x57615e];return _0x9d45a3;},_0x5761(_0x1441e8,_0x51db00);}function _0x46a3(){const _0x12362a=['$text','slice','clear','length','7595240OoNVxG','6488314ELYztC','flat','get','453165aIRtUV','name','getItems','getChanges','from','getElementKey','insert','nodeAfter','2792fNyiZb','element','has','set','1617767hdjoVc','remove','_elementName','delete','type','add','4509zmVhRp','$graveyard','push','root','_model','elementName','position','114BSbttP','5183802wLBgIl','attributes','2851738VBqhRM','reset','_trackedElements','values','createRangeOn','_getElementKey','rootName'];_0x46a3=function(){return _0x12362a;};return _0x46a3();}const _0xf0bc04=_0x5761;(function(_0xd13dd0,_0x55765c){const _0x1d879d=_0x5761,_0x279dc1=_0xd13dd0();while(!![]){try{const _0x3d93e6=-parseInt(_0x1d879d(0xbe))/0x1+parseInt(_0x1d879d(0xa3))/0x2+parseInt(_0x1d879d(0xa1))/0x3+parseInt(_0x1d879d(0xae))/0x4+parseInt(_0x1d879d(0xb2))/0x5*(-parseInt(_0x1d879d(0xa0))/0x6)+-parseInt(_0x1d879d(0xaf))/0x7+-parseInt(_0x1d879d(0xba))/0x8*(-parseInt(_0x1d879d(0xc4))/0x9);if(_0x3d93e6===_0x55765c)break;else _0x279dc1['push'](_0x279dc1['shift']());}catch(_0x2b4237){_0x279dc1['push'](_0x279dc1['shift']());}}}(_0x46a3,0xea8fe));export class ModelElementTracker{[_0xf0bc04(0xc8)];[_0xf0bc04(0xc0)];[_0xf0bc04(0xa8)];[_0xf0bc04(0xa5)]=new Map();constructor(_0x51a35d,_0x29e08e){const _0x403c82=_0xf0bc04;this[_0x403c82(0xc8)]=_0x51a35d,this[_0x403c82(0xc0)]=_0x29e08e[_0x403c82(0xc9)],this[_0x403c82(0xa8)]=_0x29e08e[_0x403c82(0xb7)];}[_0xf0bc04(0xa4)](){const _0xe31981=_0xf0bc04;this[_0xe31981(0xa5)][_0xe31981(0xac)]();}[_0xf0bc04(0xb5)](_0x24d6a0){const _0x504a49=_0xf0bc04,_0x3281e3=new Set(),_0x59c29e=new Map();for(const _0x134793 of _0x24d6a0){if(_0x504a49(0xb8)===_0x134793[_0x504a49(0xc2)]&&_0x504a49(0xaa)!==_0x134793[_0x504a49(0xb3)]&&_0x134793[_0x504a49(0x9f)][_0x504a49(0xb9)]){const _0x981639=this[_0x504a49(0xc8)][_0x504a49(0xa7)](_0x134793[_0x504a49(0x9f)][_0x504a49(0xb9)]);for(const _0x363179 of _0x981639[_0x504a49(0xb4)]()){if(!_0x363179['is'](_0x504a49(0xbb),this[_0x504a49(0xc0)]))continue;const _0x4636a4=this[_0x504a49(0xa8)](_0x363179);_0x59c29e[_0x504a49(0xbc)](_0x4636a4)||_0x59c29e[_0x504a49(0xbd)](_0x4636a4,[]),_0x59c29e[_0x504a49(0xb1)](_0x4636a4)[_0x504a49(0xc6)](_0x363179);}}if(_0x504a49(0xbf)===_0x134793[_0x504a49(0xc2)]&&_0x134793[_0x504a49(0xb3)]===this[_0x504a49(0xc0)]){const _0x50a3bc=this[_0x504a49(0xa8)]({'getAttribute':_0x4bd906=>_0x134793[_0x504a49(0xa2)][_0x504a49(0xb1)](_0x4bd906)});_0x3281e3[_0x504a49(0xc3)](_0x50a3bc);}}for(const [_0x1ab862,_0x37ed43]of this[_0x504a49(0xa5)])_0x504a49(0xc5)===_0x37ed43[_0x504a49(0xc7)][_0x504a49(0xa9)]&&_0x3281e3[_0x504a49(0xc3)](_0x1ab862);for(const _0x5c3cb6 of _0x3281e3)this[_0x504a49(0xa5)][_0x504a49(0xc1)](_0x5c3cb6);for(const [_0x17a19b,_0x1e490e]of _0x59c29e)this[_0x504a49(0xa5)][_0x504a49(0xbd)](_0x17a19b,_0x1e490e[_0x1e490e[_0x504a49(0xad)]-0x1]);const _0x1229b2=new Set();for(const [_0x2d1a3b,_0x112b52]of _0x59c29e)_0x3281e3[_0x504a49(0xbc)](_0x2d1a3b)&&(_0x1229b2[_0x504a49(0xc3)](_0x112b52[0x0]),_0x112b52[_0x504a49(0xad)]>0x1?_0x59c29e[_0x504a49(0xbd)](_0x2d1a3b,_0x112b52[_0x504a49(0xab)](0x1)):_0x59c29e[_0x504a49(0xc1)](_0x2d1a3b),_0x3281e3[_0x504a49(0xc1)](_0x2d1a3b));return{'removed':Array[_0x504a49(0xb6)](_0x3281e3),'inserted':Array[_0x504a49(0xb6)](_0x59c29e[_0x504a49(0xa6)]())[_0x504a49(0xb0)](),'moved':Array[_0x504a49(0xb6)](_0x1229b2)};}}
|