@ckeditor/ckeditor5-footnotes 47.3.0-alpha.1 → 47.3.0-alpha.2
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 _0x1d6d2f}from'ckeditor5/src/core.js';import{isWidget as _0x19d4b9,toWidget as _0xdeed9a,toWidgetEditable as _0x481f65}from'ckeditor5/src/widget.js';import{uid as _0x55b78a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x35260b,ClickObserver as _0x2c6cd9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2d4304}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1876a0}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1d6d2f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2d4304];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6afa1e}=this;_0x6afa1e['config']['define']('footnotes.multiBlock',!0x0),_0x6afa1e['commands']['add']('insertFootnote',new _0x1876a0(_0x6afa1e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x54f57f){const _0x11006d=_0x46cc3f([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]),_0x573f70=0x47a28506,_0x215247=0x47a5ff4e^_0x573f70,_0x35c501=window[_0x46cc3f([0x44,0x61,0x74,0x65])][_0x46cc3f([0x6e,0x6f,0x77])](),_0x2064ca=_0x54f57f[_0x46cc3f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x246637=new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23767d=>{_0x2064ca[_0x46cc3f([0x6f,0x6e,0x63,0x65])](_0x46cc3f([0x72,0x65,0x61,0x64,0x79]),_0x23767d);}),_0x23aabe={[_0x46cc3f([0x6b,0x74,0x79])]:_0x46cc3f([0x45,0x43]),[_0x46cc3f([0x75,0x73,0x65])]:_0x46cc3f([0x73,0x69,0x67]),[_0x46cc3f([0x63,0x72,0x76])]:_0x46cc3f([0x50,0x2d,0x32,0x35,0x36]),[_0x46cc3f([0x78])]:_0x46cc3f([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]),[_0x46cc3f([0x79])]:_0x46cc3f([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]),[_0x46cc3f([0x61,0x6c,0x67])]:_0x46cc3f([0x45,0x53,0x32,0x35,0x36])},_0xdd8640=_0x2064ca[_0x46cc3f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46cc3f([0x67,0x65,0x74])](_0x46cc3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52e5ef(){let _0x648965,_0x455ba7=null,_0x4c7b8d=null;try{if(_0xdd8640==_0x46cc3f([0x47,0x50,0x4c]))return _0x46cc3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x648965=_0x5ea593(),!_0x648965)return _0x46cc3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x648965[_0x46cc3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c7b8d=_0x4c57cf(_0x648965[_0x46cc3f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x648965[_0x46cc3f([0x6a,0x74,0x69])])),await _0x4e25e9()?_0x47eb7b()?_0x1df6bf()?_0x46cc3f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46432b()?(_0x648965[_0x46cc3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x455ba7=_0x210c16(_0x46cc3f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x648965[_0x46cc3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc3f([0x74,0x72,0x69,0x61,0x6c])&&(_0x455ba7=_0x210c16(_0x46cc3f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fcf92()):_0x46cc3f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc3f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46cc3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46cc3f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1df6bf(){const _0x520730=[_0x46cc3f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46cc3f([0x74,0x72,0x69,0x61,0x6c])][_0x46cc3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x648965[_0x46cc3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35c501/0x3e8:0xe10*_0x215247;return _0x648965[_0x46cc3f([0x65,0x78,0x70])]<_0x520730;}function _0x47eb7b(){const _0x21bd42=_0x648965[_0x46cc3f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21bd42&&(!!_0x21bd42[_0x46cc3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc3f([0x2a]))||!!_0x21bd42[_0x46cc3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc3f([0x46,0x4f,0x4f])));}function _0x46432b(){const _0x2c36d7=_0x648965[_0x46cc3f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c36d7||0x0==_0x2c36d7[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28e965}=new URL(window[_0x46cc3f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c36d7[_0x46cc3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28e965))return!0x0;const _0x2849ee=_0x28e965[_0x46cc3f([0x73,0x70,0x6c,0x69,0x74])](_0x46cc3f([0x2e]));return _0x2c36d7[_0x46cc3f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bc0d4=>_0x3bc0d4[_0x46cc3f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc3f([0x2a])))[_0x46cc3f([0x6d,0x61,0x70])](_0xffbee1=>_0xffbee1[_0x46cc3f([0x73,0x70,0x6c,0x69,0x74])](_0x46cc3f([0x2e])))[_0x46cc3f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x232b9f=>_0x232b9f[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2849ee[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46cc3f([0x6d,0x61,0x70])](_0x1ca60e=>Array(_0x2849ee[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ca60e[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46cc3f([0x66,0x69,0x6c,0x6c])](_0x1ca60e[0x0]===_0x46cc3f([0x2a])?_0x46cc3f([0x2a]):'')[_0x46cc3f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ca60e))[_0x46cc3f([0x73,0x6f,0x6d,0x65])](_0xf45e36=>_0x2849ee[_0x46cc3f([0x65,0x76,0x65,0x72,0x79])]((_0x65f9ce,_0x24b12d)=>_0xf45e36[_0x24b12d]===_0x65f9ce||_0xf45e36[_0x24b12d]===_0x46cc3f([0x2a])));}function _0x1fcf92(){return _0x455ba7&&_0x4c7b8d?new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x158881,_0x251a24)=>{_0x455ba7[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x158881,_0x251a24),_0x4c7b8d[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x32ef41=>{_0x32ef41!=_0x46cc3f([0x56,0x61,0x6c,0x69,0x64])&&_0x158881(_0x32ef41);},_0x251a24);}):_0x455ba7||_0x4c7b8d||_0x46cc3f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c57cf(_0x3fccef,_0x23aa99){return new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25e613=>{if(_0x4a40f6())return _0x25e613(_0x46cc3f([0x56,0x61,0x6c,0x69,0x64]));_0x549a4e(),_0x2064ca[_0x46cc3f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46cc3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d61b7=!0x1;const _0x3fd1cb=_0x55b78a();function _0x4c2496(_0x4d2562){return!!_0x4d2562&&(typeof _0x4d2562===_0x46cc3f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d2562===_0x46cc3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d2562[_0x46cc3f([0x74,0x68,0x65,0x6e])]===_0x46cc3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d2562[_0x46cc3f([0x63,0x61,0x74,0x63,0x68])]===_0x46cc3f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x283109(_0x27239c){_0x39eda6(_0x27239c)[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x43e01a=>{if(!_0x43e01a||_0x43e01a[_0x46cc3f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46cc3f([0x6f,0x6b]))return _0x46cc3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56a9fe(_0x58b25c(_0x3fd1cb+_0x23aa99))!=_0x43e01a[_0x46cc3f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46cc3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc3f([0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x524936=>(_0x304905(),_0x524936),()=>{const _0x3ebac1=_0x1d92e9();return null==_0x3ebac1?(_0x304905(),_0x46cc3f([0x56,0x61,0x6c,0x69,0x64])):_0x46cc3f(_0x35c501-_0x3ebac1>(0x63ae0106^_0x573f70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x25e613)[_0x46cc3f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25e613(_0x46cc3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x560361=0x47946b86^_0x573f70;function _0x304905(){const _0x4bc6f6=_0x46cc3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x56a9fe(_0x58b25c(_0x3fccef)),_0x720a20=_0x45136a(_0x56a9fe(window[_0x46cc3f([0x4d,0x61,0x74,0x68])][_0x46cc3f([0x63,0x65,0x69,0x6c])](_0x35c501/_0x560361)));window[_0x46cc3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc3f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bc6f6,_0x720a20);}function _0x1d92e9(){const _0x52d9bb=_0x46cc3f([0x6c,0x6c,0x63,0x74,0x2d])+_0x56a9fe(_0x58b25c(_0x3fccef)),_0x156ebc=window[_0x46cc3f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc3f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52d9bb);return _0x156ebc?window[_0x46cc3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45136a(_0x156ebc),0x10)*_0x560361:null;}function _0x39eda6(_0x3f2029){return new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430665,_0x1e1278)=>{_0x3f2029[_0x46cc3f([0x74,0x68,0x65,0x6e])](_0x430665,_0x1e1278),window[_0x46cc3f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e1278,0x47a351c6^_0x573f70);});}}_0x2064ca[_0x46cc3f([0x6f,0x6e])](_0x46cc3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a2b29,_0x50a5fc)=>{if(_0x50a5fc[0x0]!=_0x3fccef)return _0x25e613(_0x46cc3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50a5fc[0x1]={..._0x50a5fc[0x1],[_0x46cc3f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fd1cb};},{[_0x46cc3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc3f([0x68,0x69,0x67,0x68])}),_0x2064ca[_0x46cc3f([0x6f,0x6e])](_0x46cc3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56c514=>{_0x4c2496(_0x56c514[_0x46cc3f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d61b7=!0x0,_0x283109(_0x56c514[_0x46cc3f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46cc3f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc3f([0x6c,0x6f,0x77])}),_0x246637[_0x46cc3f([0x74,0x68,0x65,0x6e])](()=>{_0x2d61b7||_0x25e613(_0x46cc3f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a40f6(){return _0x2064ca[_0x46cc3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc3f([0x76,0x69,0x65,0x77])][_0x46cc3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46cc3f([0x61,0x75,0x74,0x6f]);}function _0x549a4e(){_0x2064ca[_0x46cc3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc3f([0x76,0x69,0x65,0x77])][_0x46cc3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46cc3f([0x61,0x75,0x74,0x6f]);}}function _0x210c16(_0x4954a4){const _0x51cfe7=[new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107ef4=>setTimeout(_0x107ef4,0x47abbbca^_0x573f70)),_0x246637[_0x46cc3f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36e37b=>{let _0x566006=0x0;_0x2064ca[_0x46cc3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc3f([0x6f,0x6e])](_0x46cc3f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a767b,_0x5d07c3)=>{_0x5d07c3[0x0][_0x46cc3f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x566006++,_0x566006==(0x47a284fe^_0x573f70)&&(_0x36e37b(),_0x1a767b[_0x46cc3f([0x6f,0x66,0x66])]());});}))];return window[_0x46cc3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46cc3f([0x72,0x61,0x63,0x65])](_0x51cfe7)[_0x46cc3f([0x74,0x68,0x65,0x6e])](()=>_0x4954a4);}async function _0x3e4069(){await _0x246637,_0x2064ca[_0x46cc3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc3f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46841a,_0x2064ca[_0x46cc3f([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc3f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46841a,_0x2064ca[_0x46cc3f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46cc3f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21691c(_0x5b1404){const _0x165fb9=_0x28f51b();_0x2064ca[_0x165fb9]=_0x46cc3f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b1404,_0x5b1404!=_0x46cc3f([0x56,0x61,0x6c,0x69,0x64])&&_0x3e4069();}function _0x28f51b(){const _0x3a367f=window[_0x46cc3f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46cc3f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46cc3f([0x6e,0x6f,0x77])]())[_0x46cc3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46cc3f([0x2e]),'');let _0x2fef5f=_0x46cc3f([0x75]);for(let _0x13e838=0x0;_0x13e838<_0x3a367f[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13e838+=0x2){let _0x51723a=window[_0x46cc3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a367f[_0x46cc3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13e838,_0x13e838+0x2));_0x51723a>=_0x11006d[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51723a-=_0x11006d[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fef5f+=_0x11006d[_0x51723a];}return _0x2fef5f;}function _0x5ea593(){const _0x5a3520=_0xdd8640[_0x46cc3f([0x73,0x70,0x6c,0x69,0x74])](_0x46cc3f([0x2e]));if(0x3!=_0x5a3520[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x74a83(_0x5a3520[0x1]);function _0x74a83(_0x4e0b2d){const _0x246c93=_0x2e2f45(_0x4e0b2d);return _0x246c93&&_0x593154()?_0x246c93:null;function _0x593154(){const _0x2592e9=_0x246c93[_0x46cc3f([0x6a,0x74,0x69])],_0x52d7f6=window[_0x46cc3f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2592e9[_0x46cc3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2592e9[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x346046={..._0x246c93,[_0x46cc3f([0x6a,0x74,0x69])]:_0x2592e9[_0x46cc3f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2592e9[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x346046[_0x46cc3f([0x76,0x63])],_0x58b25c(_0x346046)==_0x52d7f6;}}}async function _0x4e25e9(){let _0x2b2208=!0x0;try{const _0x1a8058=_0xdd8640[_0x46cc3f([0x73,0x70,0x6c,0x69,0x74])](_0x46cc3f([0x2e])),[_0x5cc5fc,_0x33d0fa,_0x5d6a80]=_0x1a8058;return _0x51bf7e(_0x5cc5fc),await _0x5af684(_0x5cc5fc,_0x33d0fa,_0x5d6a80),_0x2b2208;}catch{return!0x1;}function _0x51bf7e(_0x34a572){const _0xbe28bb=_0x2e2f45(_0x34a572);_0xbe28bb&&_0xbe28bb[_0x46cc3f([0x61,0x6c,0x67])]==_0x46cc3f([0x45,0x53,0x32,0x35,0x36])||(_0x2b2208=!0x1);}async function _0x5af684(_0x2a3e4c,_0x1f21ce,_0x2a0ab4){const _0x390635=window[_0x46cc3f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46cc3f([0x66,0x72,0x6f,0x6d])](_0x1bf94f(_0x2a0ab4),_0x2297e3=>_0x2297e3[_0x46cc3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x67ac5f=new window[(_0x46cc3f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46cc3f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a3e4c+_0x46cc3f([0x2e])+_0x1f21ce),_0x470bc7=window[_0x46cc3f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46cc3f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x470bc7)return;const _0x503a1c=await _0x470bc7[_0x46cc3f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46cc3f([0x6a,0x77,0x6b]),_0x23aabe,{[_0x46cc3f([0x6e,0x61,0x6d,0x65])]:_0x46cc3f([0x45,0x43,0x44,0x53,0x41]),[_0x46cc3f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46cc3f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46cc3f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x470bc7[_0x46cc3f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46cc3f([0x6e,0x61,0x6d,0x65])]:_0x46cc3f([0x45,0x43,0x44,0x53,0x41]),[_0x46cc3f([0x68,0x61,0x73,0x68])]:{[_0x46cc3f([0x6e,0x61,0x6d,0x65])]:_0x46cc3f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x503a1c,_0x390635,_0x67ac5f)||(_0x2b2208=!0x1);}}function _0x2e2f45(_0x49d349){return _0x49d349[_0x46cc3f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46cc3f([0x65,0x79]))?JSON[_0x46cc3f([0x70,0x61,0x72,0x73,0x65])](_0x1bf94f(_0x49d349)):null;}function _0x1bf94f(_0xeb6425){return window[_0x46cc3f([0x61,0x74,0x6f,0x62])](_0xeb6425[_0x46cc3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46cc3f([0x2b]))[_0x46cc3f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46cc3f([0x2f])));}function _0x58b25c(_0x32de24){let _0x302a46=0x1505;function _0x551068(_0x1df049){for(let _0x2f4c61=0x0;_0x2f4c61<_0x1df049[_0x46cc3f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f4c61++){const _0xe02971=_0x1df049[_0x46cc3f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f4c61);_0x302a46=(_0x302a46<<0x5)+_0x302a46+_0xe02971,_0x302a46&=_0x302a46;}}function _0x49afe8(_0x41f574){Array[_0x46cc3f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f574)?_0x41f574[_0x46cc3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49afe8):_0x41f574&&typeof _0x41f574==_0x46cc3f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46cc3f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f574)[_0x46cc3f([0x73,0x6f,0x72,0x74])]()[_0x46cc3f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x920af,_0x5504ec])=>{_0x551068(_0x920af),_0x49afe8(_0x5504ec);}):_0x551068(window[_0x46cc3f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f574));}return _0x49afe8(_0x32de24),_0x302a46>>>0x0;}function _0x56a9fe(_0x5307f9){return _0x5307f9[_0x46cc3f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46cc3f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46cc3f([0x30]));}function _0x45136a(_0x58f89d){return _0x58f89d[_0x46cc3f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46cc3f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46cc3f([0x6a,0x6f,0x69,0x6e])]('');}function _0x46841a(){}function _0x46cc3f(_0x5698fe){return _0x5698fe['map'](_0x2c2c87=>String['fromCharCode'](_0x2c2c87))['join']('');}_0x21691c(await _0x52e5ef());}(this);}['_moveSelectionToFootnoteDefinition'](_0xf384b3){const {plugins:_0x15d988,editing:_0x27647b,model:_0x4089e8}=this['editor'],_0x182254=_0x15d988['get'](_0x2d4304)['getFootnote'](_0xf384b3);return!!_0x182254&&(_0x4089e8['change'](_0x1b98c1=>{_0x1b98c1['setSelection'](_0x1b98c1['createPositionAt'](_0x182254['definition'],'end'));}),_0x27647b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x769bc7){const {plugins:_0x3815fa,editing:_0x16427a,model:_0x43fc17}=this['editor'],_0x235004=_0x3815fa['get'](_0x2d4304)['getFootnote'](_0x769bc7);return!!_0x235004&&(_0x43fc17['change'](_0x1b7f49=>{_0x1b7f49['setSelection'](_0x235004['reference'],'on');}),_0x16427a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x32347b}=this['editor']['model'],_0x2e09cc=this['editor']['config']['get']('footnotes.multiBlock');_0x32347b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x32347b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x32347b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2e09cc?_0x32347b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x32347b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x32347b['addChildCheck'](_0x2723ae=>{for(const _0x5d1a88 of _0x2723ae)if('footnoteDefinition'===_0x5d1a88['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5386ab}=this,{conversion:_0x41697d,editing:_0x3f5cd8}=_0x5386ab,{t:t}=_0x5386ab['locale'];_0x41697d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1e49fd,{writer:_0x21a51a,consumable:_0x1d7851})=>{const _0x421966=_0x1e49fd['getChild'](0x0);if(!_0x421966||!_0x421966['is']('element','a'))return null;const _0x23c8aa=_0x421966['getAttribute']('href')||'';if(!_0x23c8aa['startsWith']('#'))return null;const _0x367629=_0x23c8aa['replace'](/^#/,'');if(!_0x367629)return null;_0x1d7851['consume'](_0x421966,{'name':!0x0,'attributes':['href']});for(const {item:_0x490029}of _0x3f5cd8['view']['createRangeIn'](_0x421966))_0x490029['is']('$textProxy')?_0x1d7851['consume'](_0x490029['textNode'],{'name':!0x0}):_0x490029['is']('element')&&_0x1d7851['consume'](_0x490029,{'name':!0x0});return _0x21a51a['createElement']('footnoteRef',{'footnoteId':_0x367629});}}),_0x41697d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa0c237,{writer:_0x4feb92})=>D(_0xa0c237,_0x4feb92)}),_0x41697d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1f5af3,{writer:_0x18a85c})=>{const _0x693911=_0x1f5af3['getAttribute']('footnoteCounter');return _0xdeed9a(D(_0x1f5af3,_0x18a85c),_0x18a85c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x693911)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c79e9}=this,{t:t}=_0x4c79e9['locale'],{conversion:_0x3b0d56}=_0x4c79e9;_0x3b0d56['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3b0d56['for']('upcast')['add'](_0x528d13=>{_0x528d13['on']('element:ol',(_0x39ed72,_0x591766,_0x490cd9)=>{const _0x4135b7=_0x591766['viewItem'];if(!_0x4135b7['hasClass']('footnotes-list')||!_0x591766['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x490cd9['consumable']['consume'](_0x4135b7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf6059e,modelCursor:_0x144e49}=_0x490cd9['convertChildren'](_0x591766['viewItem'],_0x591766['modelCursor']);_0x591766['modelRange']=_0xf6059e,_0x591766['modelCursor']=_0x144e49;}),_0x528d13['on']('element:hr',(_0xcefbe3,_0x561c41,_0x3432b)=>{const _0x4c3e97=_0x561c41['viewItem'];_0x4c3e97['hasClass']('footnotes-divider')&&_0x561c41['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3432b['consumable']['consume'](_0x4c3e97,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3b0d56['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4a941f,{writer:_0x4e792b})=>v(_0x4e792b)}),_0x3b0d56['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x33f1bf,{writer:_0x2292a8})=>{const _0x84fcd3=v(_0x2292a8,{'data-footnotes-list-label':t('Footnotes')}),_0x2fbadb=_0xdeed9a(_0x84fcd3,_0x2292a8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2292a8['setCustomProperty']('footnotesDefinitions',!0x0,_0x2fbadb),_0x2fbadb;}});}['_defineDefinitionConverters'](){const {editor:_0x1dfbbf}=this,{conversion:_0x46a8f5,locale:_0x5a1ca5}=_0x1dfbbf,_0x26588c=_0x1dfbbf['config']['get']('footnotes.multiBlock');_0x46a8f5['for']('upcast')['add'](_0x259700=>{_0x259700['on']('element:li',(_0x142938,_0xb24bbd,_0x2dea4f)=>{const _0x5ccd3c=_0xb24bbd['viewItem'];if(!_0x5ccd3c['hasClass']('footnote-definition')||!_0x5ccd3c['getAttribute']('id'))return;const _0x1fdd7f=_0x5ccd3c['parent'];if(!_0x1fdd7f['is']('element','ol')||!_0x1fdd7f['hasClass']('footnotes-list'))return;if(!_0x2dea4f['consumable']['test'](_0x5ccd3c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x22016f=_0x2dea4f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5ccd3c['getAttribute']('id')});if(!_0x2dea4f['safeInsert'](_0x22016f,_0xb24bbd['modelCursor']))return;_0x2dea4f['consumable']['consume'](_0x5ccd3c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4bef24=Array['from'](_0x5ccd3c['getChildren']())['find'](_0x1e4a4b=>_0x1e4a4b['is']('element')&&_0x1e4a4b['hasClass']('footnote-content'));for(const _0x4d4d0c of _0x5ccd3c['getChildren']())_0x4d4d0c['is']('element')&&(_0x2dea4f['consumable']['consume'](_0x4d4d0c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2dea4f['consumable']['consume'](_0x4d4d0c,{'name':!0x0,'classes':'footnote-content'}));if(_0x4bef24){if(_0x26588c)_0x2dea4f['convertChildren'](_0x4bef24,_0x22016f);else{const _0x45b2a9=_0x2dea4f['writer']['createElement']('footnoteInlineContent');_0x2dea4f['writer']['insert'](_0x45b2a9,_0x22016f),_0x2dea4f['convertChildren'](_0x4bef24,_0x45b2a9);}}_0x2dea4f['updateConversionResult'](_0x22016f,_0xb24bbd);});}),_0x46a8f5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x351b7c,{writer:_0x310d40})=>b(_0x351b7c,_0x310d40,_0x5a1ca5,{'dataPipeline':!0x0})}),_0x46a8f5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x56e070,{writer:_0x58ef94})=>b(_0x56e070,_0x58ef94,_0x5a1ca5)});}['_defineBogusParagraphConverters'](){const {editor:_0x42d4b7}=this,{conversion:_0x195723}=_0x42d4b7;_0x42d4b7['config']['get']('footnotes.multiBlock')?(_0x195723['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x195723['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x42d4b7['model']['document'],'change:data',()=>{!function(_0x4f9fa5,_0x28ec6c){const _0x172d4b=_0x4f9fa5['document']['differ'],_0x1d3156=new Set();for(const _0x190846 of _0x172d4b['getChanges']()){const _0x54d334='attribute'==_0x190846['type']?_0x190846['range']['start']['parent']:_0x190846['position']['parent'];_0x54d334['is']('element','footnoteDefinition')&&_0x1d3156['add'](_0x54d334);}for(const _0x40e7a7 of _0x1d3156['values']()){const _0x3315ba=Array['from'](_0x40e7a7['getChildren']())['filter'](_0x534932=>g(_0x534932,_0x28ec6c['mapper']));for(const _0x591683 of _0x3315ba)_0x28ec6c['reconvertItem'](_0x591683);}}(_0x42d4b7['model'],_0x42d4b7['editing']);})):(_0x195723['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x195723['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2afd0c,{writer:_0xc4e964})=>{const _0x23d482=_0xc4e964['createContainerElement']('span');return _0xc4e964['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23d482),_0x23d482;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3e4bca}=this,{editing:_0x5b2c60,t:t}=_0x3e4bca,_0x29b6b8=_0x3e4bca['model']['document']['selection'];_0x3e4bca['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3e4bca['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5b2c60['view']['document'],'enter',(_0x3d03f5,_0x419f46)=>{const _0x142d5c=function(_0x598d5b){const _0x579ea3=_0x598d5b['getSelectedElement']();if(_0x579ea3?.['is']('element','footnoteRef'))return _0x579ea3;return null;}(_0x29b6b8);if(_0x142d5c){const _0x3aaa31=_0x142d5c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3aaa31),_0x419f46['preventDefault'](),_0x3d03f5['stop']();}},{'context':_0x19d4b9});}['_defineClickHandlers'](){const {editor:_0x79795a}=this,{editing:_0x99f699}=_0x79795a;_0x79795a['editing']['view']['addObserver'](_0x35260b),_0x79795a['editing']['view']['addObserver'](_0x2c6cd9);let _0x5dbbde=!0x1;this['listenTo'](_0x99f699['view']['document'],'pointerdown',(_0x7e59a6,_0x21985e)=>{const {target:_0x48216b}=_0x21985e,_0x1fb78b=_0x99f699['view']['document']['selection'];_0x5dbbde=!!(_0x48216b?.['is']('element','a')&&_0x48216b['parent']?.['is']('element','sup')&&_0x48216b['parent']['hasClass']('footnote'))&&_0x1fb78b['getSelectedElement']()===_0x48216b['parent'];},{'priority':'high'}),this['listenTo'](_0x99f699['view']['document'],'click',(_0x152f96,_0x4416be)=>{const {target:_0x57cb4a}=_0x4416be;if(!_0x57cb4a?.['is']('element','a'))return;if(_0x57cb4a['parent']?.['is']('element','sup')&&_0x57cb4a['parent']['hasClass']('footnote')&&!_0x5dbbde)return void _0x4416be['preventDefault']();let _0x34d410=_0x57cb4a['getAttribute']('href');if(!_0x34d410?.['startsWith']('#'))return;_0x34d410=_0x34d410['slice'](0x1);let _0x37c07a=!0x1;(_0x34d410['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x34d410['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x34d410))&&(_0x37c07a=!0x0),_0x37c07a&&(_0x4416be['preventDefault'](),_0x152f96['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4dd378}={}){return(_0xe92df0,{writer:_0x61d8b1})=>{if(!p(_0xe92df0))return null;if(!_0x4dd378)return _0x61d8b1['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x55151d=_0x61d8b1['createContainerElement']('p');return _0x61d8b1['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55151d),_0x55151d;};}function p(_0x26d0b0){const {parent:_0x22c078}=_0x26d0b0;if(!_0x22c078?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x22c078['childCount'])return!0x1;for(const _0x34f199 of _0x26d0b0['getAttributeKeys']())if(!_0x34f199['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x34f199)return!0x1;return!0x0;}function g(_0x49c072,_0x22933d){if(!_0x49c072['is']('element','paragraph'))return!0x1;const _0x17279d=_0x22933d['toViewElement'](_0x49c072);return!!_0x17279d&&p(_0x49c072)!==_0x17279d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x18adaf){return _0x19d4b9(_0x18adaf)&&_0x18adaf['is']('containerElement')&&!!_0x18adaf['getCustomProperty']('footnotesDefinitions');}function v(_0x3bb588,_0x18465a={}){const _0x3b434a=_0x3bb588['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x206f06=_0x3bb588['createContainerElement']('ol',{'class':'footnotes-list'},_0x3bb588['createSlot']());return _0x3bb588['createContainerElement']('div',{'class':'footnotes',..._0x18465a},[_0x3b434a,_0x206f06]);}function D(_0x4e723d,_0x5f117b){const _0x3d3582=_0x4e723d['getAttribute']('footnoteId'),_0x37857d=_0x4e723d['getAttribute']('footnoteCounter'),_0x5b099d=_0x5f117b['createUIElement']('a',{'href':'#'+_0x3d3582},function(_0x25a2b3){const _0x5859a2=this['toDomElement'](_0x25a2b3);return _0x5859a2['textContent']=_0x37857d,_0x5859a2;}),_0x29e4fa=_0x5f117b['createContainerElement']('sup',{'id':'ref-'+_0x3d3582,'class':'footnote'},[_0x5b099d]);return _0x29e4fa['getFillerOffset']=()=>null,_0x29e4fa;}function b(_0x575d0e,_0x4f3517,_0x3da5e1,{dataPipeline:_0x31766a}={}){const {t:t}=_0x3da5e1,_0x472515=_0x575d0e['getAttribute']('footnoteId'),_0x4e0d7b=_0x4f3517['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x472515},function(_0x4c6971){const _0x52d3a9=this['toDomElement'](_0x4c6971);return _0x52d3a9['innerText']='^',_0x52d3a9;}),_0x4f4f0a=_0x31766a?_0x4f3517['createContainerElement']('div',{'class':'footnote-content'}):_0x481f65(_0x4f3517['createEditableElement']('div',{'class':'footnote-content'}),_0x4f3517,{'label':t('Footnote\x20content.')});return _0x4f3517['insert'](_0x4f3517['createPositionAt'](_0x4f4f0a,0x0),_0x4f3517['createSlot']()),_0x4f3517['createContainerElement']('li',{'class':'footnote-definition','id':_0x472515},[_0x4e0d7b,_0x4f4f0a]);}
|
|
23
|
+
import{Plugin as _0x5adadb}from'ckeditor5/src/core.js';import{isWidget as _0x291337,toWidget as _0x59a580,toWidgetEditable as _0x25f0de}from'ckeditor5/src/widget.js';import{uid as _0x351ebe}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4a499d,ClickObserver as _0x5a2ad2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xbc4219}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5d443c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5adadb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xbc4219];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bf47a}=this;_0x2bf47a['config']['define']('footnotes.multiBlock',!0x0),_0x2bf47a['commands']['add']('insertFootnote',new _0x5d443c(_0x2bf47a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5365c8){const _0x1c6234=_0x5e7d10([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]),_0x2b23ba=0x47a28506,_0xa9119e=0x47a5ff66^_0x2b23ba,_0x4142fc=window[_0x5e7d10([0x44,0x61,0x74,0x65])][_0x5e7d10([0x6e,0x6f,0x77])](),_0x488091=_0x5365c8[_0x5e7d10([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x400037=new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be020=>{_0x488091[_0x5e7d10([0x6f,0x6e,0x63,0x65])](_0x5e7d10([0x72,0x65,0x61,0x64,0x79]),_0x2be020);}),_0xe492fb={[_0x5e7d10([0x6b,0x74,0x79])]:_0x5e7d10([0x45,0x43]),[_0x5e7d10([0x75,0x73,0x65])]:_0x5e7d10([0x73,0x69,0x67]),[_0x5e7d10([0x63,0x72,0x76])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36]),[_0x5e7d10([0x78])]:_0x5e7d10([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]),[_0x5e7d10([0x79])]:_0x5e7d10([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]),[_0x5e7d10([0x61,0x6c,0x67])]:_0x5e7d10([0x45,0x53,0x32,0x35,0x36])},_0x39ac0b=_0x488091[_0x5e7d10([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e7d10([0x67,0x65,0x74])](_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4937d6(){let _0x2c9c93,_0x19fd58=null,_0x554add=null;try{if(_0x39ac0b==_0x5e7d10([0x47,0x50,0x4c]))return _0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9c93=_0x387767(),!_0x2c9c93)return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x554add=_0x2a0d5c(_0x2c9c93[_0x5e7d10([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9c93[_0x5e7d10([0x6a,0x74,0x69])])),await _0x24a355()?_0x566f9c()?_0x3434b3()?_0x5e7d10([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x170e9c()?(_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])&&(_0x19fd58=_0x5989c8(_0x5e7d10([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10489c()):_0x5e7d10([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e7d10([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3434b3(){const _0x50d42e=[_0x5e7d10([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e7d10([0x74,0x72,0x69,0x61,0x6c])][_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4142fc/0x3e8:0xe10*_0xa9119e;return _0x2c9c93[_0x5e7d10([0x65,0x78,0x70])]<_0x50d42e;}function _0x566f9c(){const _0x2a0219=_0x2c9c93[_0x5e7d10([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a0219&&(!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a]))||!!_0x2a0219[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x46,0x4f,0x4f])));}function _0x170e9c(){const _0xb1f2ba=_0x2c9c93[_0x5e7d10([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb1f2ba||0x0==_0xb1f2ba[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x76ef9c}=new URL(window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb1f2ba[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76ef9c))return!0x0;const _0x40d5f1=_0x76ef9c[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));return _0xb1f2ba[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x356edc=>_0x356edc[_0x5e7d10([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e7d10([0x2a])))[_0x5e7d10([0x6d,0x61,0x70])](_0x25e736=>_0x25e736[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])))[_0x5e7d10([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d0288=>_0x5d0288[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x6d,0x61,0x70])](_0x102ff9=>Array(_0x40d5f1[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x102ff9[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e7d10([0x66,0x69,0x6c,0x6c])](_0x102ff9[0x0]===_0x5e7d10([0x2a])?_0x5e7d10([0x2a]):'')[_0x5e7d10([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x102ff9))[_0x5e7d10([0x73,0x6f,0x6d,0x65])](_0x3f0cdc=>_0x40d5f1[_0x5e7d10([0x65,0x76,0x65,0x72,0x79])]((_0x31a9bf,_0x56ceb4)=>_0x3f0cdc[_0x56ceb4]===_0x31a9bf||_0x3f0cdc[_0x56ceb4]===_0x5e7d10([0x2a])));}function _0x10489c(){return _0x19fd58&&_0x554add?new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a3e2e,_0x159f12)=>{_0x19fd58[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x3a3e2e,_0x159f12),_0x554add[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x4a7498=>{_0x4a7498!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x3a3e2e(_0x4a7498);},_0x159f12);}):_0x19fd58||_0x554add||_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a0d5c(_0x50e65c,_0x3626c2){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c6c0=>{if(_0x15128a())return _0x19c6c0(_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]));_0xd959dd(),_0x488091[_0x5e7d10([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8c6f=!0x1;const _0x21e398=_0x351ebe();function _0x1cd0bb(_0x3019d5){return!!_0x3019d5&&(typeof _0x3019d5===_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3019d5===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3019d5[_0x5e7d10([0x74,0x68,0x65,0x6e])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3019d5[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])]===_0x5e7d10([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31a95a(_0x2475f1){_0x262190(_0x2475f1)[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x585647=>{if(!_0x585647||_0x585647[_0x5e7d10([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e7d10([0x6f,0x6b]))return _0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4de0f9(_0x4cff71(_0x21e398+_0x3626c2))!=_0x585647[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e7d10([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x1bc7a4=>(_0xad88e5(),_0x1bc7a4),()=>{const _0x2d69d1=_0x39a26f();return null==_0x2d69d1?(_0xad88e5(),_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])):_0x5e7d10(_0x4142fc-_0x2d69d1>(0x63ae0106^_0x2b23ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x19c6c0)[_0x5e7d10([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21c888=0x47946b86^_0x2b23ba;function _0xad88e5(){const _0x1aa989=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x128c55=_0x260751(_0x4de0f9(window[_0x5e7d10([0x4d,0x61,0x74,0x68])][_0x5e7d10([0x63,0x65,0x69,0x6c])](_0x4142fc/_0x21c888)));window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1aa989,_0x128c55);}function _0x39a26f(){const _0x12a4f3=_0x5e7d10([0x6c,0x6c,0x63,0x74,0x2d])+_0x4de0f9(_0x4cff71(_0x50e65c)),_0x4bbafa=window[_0x5e7d10([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e7d10([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a4f3);return _0x4bbafa?window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260751(_0x4bbafa),0x10)*_0x21c888:null;}function _0x262190(_0xcb1bd6){return new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x120e18,_0x57d314)=>{_0xcb1bd6[_0x5e7d10([0x74,0x68,0x65,0x6e])](_0x120e18,_0x57d314),window[_0x5e7d10([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57d314,0x47a351c6^_0x2b23ba);});}}_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13f181,_0x5e89e5)=>{if(_0x5e89e5[0x0]!=_0x50e65c)return _0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e89e5[0x1]={..._0x5e89e5[0x1],[_0x5e7d10([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21e398};},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x68,0x69,0x67,0x68])}),_0x488091[_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x260987=>{_0x1cd0bb(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8c6f=!0x0,_0x31a95a(_0x260987[_0x5e7d10([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e7d10([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e7d10([0x6c,0x6f,0x77])}),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>{_0x1f8c6f||_0x19c6c0(_0x5e7d10([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15128a(){return _0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e7d10([0x61,0x75,0x74,0x6f]);}function _0xd959dd(){_0x488091[_0x5e7d10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e7d10([0x76,0x69,0x65,0x77])][_0x5e7d10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e7d10([0x61,0x75,0x74,0x6f]);}}function _0x5989c8(_0x3580fd){const _0x4ded35=[new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10ca2c=>setTimeout(_0x10ca2c,0x47abbbca^_0x2b23ba)),_0x400037[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdfafec=>{let _0x4c45de=0x0;_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x6f,0x6e])](_0x5e7d10([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e3462,_0x1b200b)=>{_0x1b200b[0x0][_0x5e7d10([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c45de++,_0x4c45de==(0x47a284fe^_0x2b23ba)&&(_0xdfafec(),_0x3e3462[_0x5e7d10([0x6f,0x66,0x66])]());});}))];return window[_0x5e7d10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e7d10([0x72,0x61,0x63,0x65])](_0x4ded35)[_0x5e7d10([0x74,0x68,0x65,0x6e])](()=>_0x3580fd);}async function _0x4dc37c(){await _0x400037,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e7d10([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c595e,_0x488091[_0x5e7d10([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e7d10([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58028e(_0x5c2a94){const _0x13583b=_0x43615a();_0x488091[_0x13583b]=_0x5e7d10([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c2a94,_0x5c2a94!=_0x5e7d10([0x56,0x61,0x6c,0x69,0x64])&&_0x4dc37c();}function _0x43615a(){const _0x5d1b14=window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e7d10([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e7d10([0x6e,0x6f,0x77])]())[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e7d10([0x2e]),'');let _0x39d31a=_0x5e7d10([0x75]);for(let _0x401e10=0x0;_0x401e10<_0x5d1b14[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x401e10+=0x2){let _0x557342=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1b14[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x401e10,_0x401e10+0x2));_0x557342>=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x557342-=_0x1c6234[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39d31a+=_0x1c6234[_0x557342];}return _0x39d31a;}function _0x387767(){const _0x23a3eb=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e]));if(0x3!=_0x23a3eb[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bc200(_0x23a3eb[0x1]);function _0x2bc200(_0x59c898){const _0x1f29ee=_0x3a0898(_0x59c898);return _0x1f29ee&&_0x3a2929()?_0x1f29ee:null;function _0x3a2929(){const _0x4a528f=_0x1f29ee[_0x5e7d10([0x6a,0x74,0x69])],_0x47f43f=window[_0x5e7d10([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc69233={..._0x1f29ee,[_0x5e7d10([0x6a,0x74,0x69])]:_0x4a528f[_0x5e7d10([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a528f[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc69233[_0x5e7d10([0x76,0x63])],_0x4cff71(_0xc69233)==_0x47f43f;}}}async function _0x24a355(){let _0x52b27c=!0x0;try{const _0x5c5347=_0x39ac0b[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])](_0x5e7d10([0x2e])),[_0x44312c,_0x16913a,_0x2fb08f]=_0x5c5347;return _0x1a1fdc(_0x44312c),await _0x28d0d0(_0x44312c,_0x16913a,_0x2fb08f),_0x52b27c;}catch{return!0x1;}function _0x1a1fdc(_0x207e34){const _0x28aea3=_0x3a0898(_0x207e34);_0x28aea3&&_0x28aea3[_0x5e7d10([0x61,0x6c,0x67])]==_0x5e7d10([0x45,0x53,0x32,0x35,0x36])||(_0x52b27c=!0x1);}async function _0x28d0d0(_0x41039d,_0x30d19c,_0x23a8e7){const _0x4c32c6=window[_0x5e7d10([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e7d10([0x66,0x72,0x6f,0x6d])](_0x135fdf(_0x23a8e7),_0x32ca6f=>_0x32ca6f[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa75721=new window[(_0x5e7d10([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e7d10([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41039d+_0x5e7d10([0x2e])+_0x30d19c),_0x2fec2b=window[_0x5e7d10([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e7d10([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fec2b)return;const _0x2b8eb5=await _0x2fec2b[_0x5e7d10([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e7d10([0x6a,0x77,0x6b]),_0xe492fb,{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e7d10([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fec2b[_0x5e7d10([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x45,0x43,0x44,0x53,0x41]),[_0x5e7d10([0x68,0x61,0x73,0x68])]:{[_0x5e7d10([0x6e,0x61,0x6d,0x65])]:_0x5e7d10([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b8eb5,_0x4c32c6,_0xa75721)||(_0x52b27c=!0x1);}}function _0x3a0898(_0x25546f){return _0x25546f[_0x5e7d10([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e7d10([0x65,0x79]))?JSON[_0x5e7d10([0x70,0x61,0x72,0x73,0x65])](_0x135fdf(_0x25546f)):null;}function _0x135fdf(_0x4f572e){return window[_0x5e7d10([0x61,0x74,0x6f,0x62])](_0x4f572e[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e7d10([0x2b]))[_0x5e7d10([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e7d10([0x2f])));}function _0x4cff71(_0x54a6a3){let _0x417405=0x1505;function _0x2c075f(_0x1bc884){for(let _0x2e80ea=0x0;_0x2e80ea<_0x1bc884[_0x5e7d10([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e80ea++){const _0x1a669f=_0x1bc884[_0x5e7d10([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e80ea);_0x417405=(_0x417405<<0x5)+_0x417405+_0x1a669f,_0x417405&=_0x417405;}}function _0x43d0f6(_0x128632){Array[_0x5e7d10([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x128632)?_0x128632[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43d0f6):_0x128632&&typeof _0x128632==_0x5e7d10([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e7d10([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x128632)[_0x5e7d10([0x73,0x6f,0x72,0x74])]()[_0x5e7d10([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30c755,_0x588f0c])=>{_0x2c075f(_0x30c755),_0x43d0f6(_0x588f0c);}):_0x2c075f(window[_0x5e7d10([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x128632));}return _0x43d0f6(_0x54a6a3),_0x417405>>>0x0;}function _0x4de0f9(_0x2f85a3){return _0x2f85a3[_0x5e7d10([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e7d10([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e7d10([0x30]));}function _0x260751(_0x46938f){return _0x46938f[_0x5e7d10([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e7d10([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e7d10([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c595e(){}function _0x5e7d10(_0xb10f1f){return _0xb10f1f['map'](_0x18d32a=>String['fromCharCode'](_0x18d32a))['join']('');}_0x58028e(await _0x4937d6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3539b9){const {plugins:_0x1bbb34,editing:_0x615788,model:_0x24e9b9}=this['editor'],_0x238ade=_0x1bbb34['get'](_0xbc4219)['getFootnote'](_0x3539b9);return!!_0x238ade&&(_0x24e9b9['change'](_0x143849=>{_0x143849['setSelection'](_0x143849['createPositionAt'](_0x238ade['definition'],'end'));}),_0x615788['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48c404){const {plugins:_0x46ccc1,editing:_0x40271f,model:_0x187dd6}=this['editor'],_0x3ed80c=_0x46ccc1['get'](_0xbc4219)['getFootnote'](_0x48c404);return!!_0x3ed80c&&(_0x187dd6['change'](_0x1259ba=>{_0x1259ba['setSelection'](_0x3ed80c['reference'],'on');}),_0x40271f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xdee1c0}=this['editor']['model'],_0x5d3190=this['editor']['config']['get']('footnotes.multiBlock');_0xdee1c0['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xdee1c0['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xdee1c0['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5d3190?_0xdee1c0['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xdee1c0['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xdee1c0['addChildCheck'](_0x267297=>{for(const _0x300987 of _0x267297)if('footnoteDefinition'===_0x300987['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b9972}=this,{conversion:_0x3ab32c,editing:_0x1f5785}=_0x2b9972,{t:t}=_0x2b9972['locale'];_0x3ab32c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcb5050,{writer:_0x25bb7f,consumable:_0x199d9b})=>{const _0x212c65=_0xcb5050['getChild'](0x0);if(!_0x212c65||!_0x212c65['is']('element','a'))return null;const _0x330833=_0x212c65['getAttribute']('href')||'';if(!_0x330833['startsWith']('#'))return null;const _0x40dd60=_0x330833['replace'](/^#/,'');if(!_0x40dd60)return null;_0x199d9b['consume'](_0x212c65,{'name':!0x0,'attributes':['href']});for(const {item:_0x42e488}of _0x1f5785['view']['createRangeIn'](_0x212c65))_0x42e488['is']('$textProxy')?_0x199d9b['consume'](_0x42e488['textNode'],{'name':!0x0}):_0x42e488['is']('element')&&_0x199d9b['consume'](_0x42e488,{'name':!0x0});return _0x25bb7f['createElement']('footnoteRef',{'footnoteId':_0x40dd60});}}),_0x3ab32c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e742b,{writer:_0x4dc48f})=>D(_0x3e742b,_0x4dc48f)}),_0x3ab32c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x307098,{writer:_0x1c6428})=>{const _0x2536ec=_0x307098['getAttribute']('footnoteCounter');return _0x59a580(D(_0x307098,_0x1c6428),_0x1c6428,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2536ec)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15927a}=this,{t:t}=_0x15927a['locale'],{conversion:_0x390c79}=_0x15927a;_0x390c79['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x390c79['for']('upcast')['add'](_0x484926=>{_0x484926['on']('element:ol',(_0x33cf62,_0x4e4b9b,_0x4459e7)=>{const _0x23979a=_0x4e4b9b['viewItem'];if(!_0x23979a['hasClass']('footnotes-list')||!_0x4e4b9b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4459e7['consumable']['consume'](_0x23979a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x171ed7,modelCursor:_0x43ce4b}=_0x4459e7['convertChildren'](_0x4e4b9b['viewItem'],_0x4e4b9b['modelCursor']);_0x4e4b9b['modelRange']=_0x171ed7,_0x4e4b9b['modelCursor']=_0x43ce4b;}),_0x484926['on']('element:hr',(_0x25092c,_0x31b0bc,_0x43d192)=>{const _0x5444d0=_0x31b0bc['viewItem'];_0x5444d0['hasClass']('footnotes-divider')&&_0x31b0bc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x43d192['consumable']['consume'](_0x5444d0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x390c79['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4379fc,{writer:_0x2d5284})=>v(_0x2d5284)}),_0x390c79['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ba837,{writer:_0x4d656a})=>{const _0x50cd79=v(_0x4d656a,{'data-footnotes-list-label':t('Footnotes')}),_0x1aab5c=_0x59a580(_0x50cd79,_0x4d656a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4d656a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1aab5c),_0x1aab5c;}});}['_defineDefinitionConverters'](){const {editor:_0x98587b}=this,{conversion:_0x3e832e,locale:_0x2cecf9}=_0x98587b,_0x14066b=_0x98587b['config']['get']('footnotes.multiBlock');_0x3e832e['for']('upcast')['add'](_0x17ac18=>{_0x17ac18['on']('element:li',(_0x4f4599,_0x352c57,_0x4d6b24)=>{const _0x40c1f9=_0x352c57['viewItem'];if(!_0x40c1f9['hasClass']('footnote-definition')||!_0x40c1f9['getAttribute']('id'))return;const _0x7b5742=_0x40c1f9['parent'];if(!_0x7b5742['is']('element','ol')||!_0x7b5742['hasClass']('footnotes-list'))return;if(!_0x4d6b24['consumable']['test'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e1643=_0x4d6b24['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x40c1f9['getAttribute']('id')});if(!_0x4d6b24['safeInsert'](_0x4e1643,_0x352c57['modelCursor']))return;_0x4d6b24['consumable']['consume'](_0x40c1f9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47f854=Array['from'](_0x40c1f9['getChildren']())['find'](_0x19101b=>_0x19101b['is']('element')&&_0x19101b['hasClass']('footnote-content'));for(const _0x39f62e of _0x40c1f9['getChildren']())_0x39f62e['is']('element')&&(_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4d6b24['consumable']['consume'](_0x39f62e,{'name':!0x0,'classes':'footnote-content'}));if(_0x47f854){if(_0x14066b)_0x4d6b24['convertChildren'](_0x47f854,_0x4e1643);else{const _0x266652=_0x4d6b24['writer']['createElement']('footnoteInlineContent');_0x4d6b24['writer']['insert'](_0x266652,_0x4e1643),_0x4d6b24['convertChildren'](_0x47f854,_0x266652);}}_0x4d6b24['updateConversionResult'](_0x4e1643,_0x352c57);});}),_0x3e832e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4943d7,{writer:_0x3c529f})=>b(_0x4943d7,_0x3c529f,_0x2cecf9,{'dataPipeline':!0x0})}),_0x3e832e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x539ce0,{writer:_0x1a2d90})=>b(_0x539ce0,_0x1a2d90,_0x2cecf9)});}['_defineBogusParagraphConverters'](){const {editor:_0x122ac7}=this,{conversion:_0x47528a}=_0x122ac7;_0x122ac7['config']['get']('footnotes.multiBlock')?(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x122ac7['model']['document'],'change:data',()=>{!function(_0x2b2b8c,_0x4e3f14){const _0x6c1247=_0x2b2b8c['document']['differ'],_0x14c0e=new Set();for(const _0x1f138a of _0x6c1247['getChanges']()){const _0x4d1305='attribute'==_0x1f138a['type']?_0x1f138a['range']['start']['parent']:_0x1f138a['position']['parent'];_0x4d1305['is']('element','footnoteDefinition')&&_0x14c0e['add'](_0x4d1305);}for(const _0x336517 of _0x14c0e['values']()){const _0x274e2d=Array['from'](_0x336517['getChildren']())['filter'](_0x523ca2=>g(_0x523ca2,_0x4e3f14['mapper']));for(const _0x654ff2 of _0x274e2d)_0x4e3f14['reconvertItem'](_0x654ff2);}}(_0x122ac7['model'],_0x122ac7['editing']);})):(_0x47528a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x47528a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4071fd,{writer:_0xee8ffd})=>{const _0x3c364a=_0xee8ffd['createContainerElement']('span');return _0xee8ffd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c364a),_0x3c364a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x12b605}=this,{editing:_0x173a62,t:t}=_0x12b605,_0x1391ff=_0x12b605['model']['document']['selection'];_0x12b605['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x12b605['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x173a62['view']['document'],'enter',(_0x388854,_0xd26cc4)=>{const _0x5aaf5d=function(_0x233eb8){const _0x5561bc=_0x233eb8['getSelectedElement']();if(_0x5561bc?.['is']('element','footnoteRef'))return _0x5561bc;return null;}(_0x1391ff);if(_0x5aaf5d){const _0x116ca1=_0x5aaf5d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x116ca1),_0xd26cc4['preventDefault'](),_0x388854['stop']();}},{'context':_0x291337});}['_defineClickHandlers'](){const {editor:_0x1cfcf9}=this,{editing:_0x18aee3}=_0x1cfcf9;_0x1cfcf9['editing']['view']['addObserver'](_0x4a499d),_0x1cfcf9['editing']['view']['addObserver'](_0x5a2ad2);let _0x5b4e6f=!0x1;this['listenTo'](_0x18aee3['view']['document'],'pointerdown',(_0xce21bd,_0x1836e9)=>{const {target:_0x2dd665}=_0x1836e9,_0x3d3efa=_0x18aee3['view']['document']['selection'];_0x5b4e6f=!!(_0x2dd665?.['is']('element','a')&&_0x2dd665['parent']?.['is']('element','sup')&&_0x2dd665['parent']['hasClass']('footnote'))&&_0x3d3efa['getSelectedElement']()===_0x2dd665['parent'];},{'priority':'high'}),this['listenTo'](_0x18aee3['view']['document'],'click',(_0x316ed0,_0xd8ed45)=>{const {target:_0x2e5c89}=_0xd8ed45;if(!_0x2e5c89?.['is']('element','a'))return;if(_0x2e5c89['parent']?.['is']('element','sup')&&_0x2e5c89['parent']['hasClass']('footnote')&&!_0x5b4e6f)return void _0xd8ed45['preventDefault']();let _0x21b8c2=_0x2e5c89['getAttribute']('href');if(!_0x21b8c2?.['startsWith']('#'))return;_0x21b8c2=_0x21b8c2['slice'](0x1);let _0x1c6c66=!0x1;(_0x21b8c2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x21b8c2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x21b8c2))&&(_0x1c6c66=!0x0),_0x1c6c66&&(_0xd8ed45['preventDefault'](),_0x316ed0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xbda47f}={}){return(_0x15376d,{writer:_0x315e41})=>{if(!p(_0x15376d))return null;if(!_0xbda47f)return _0x315e41['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x589728=_0x315e41['createContainerElement']('p');return _0x315e41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x589728),_0x589728;};}function p(_0x13bd65){const {parent:_0x4f80ef}=_0x13bd65;if(!_0x4f80ef?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f80ef['childCount'])return!0x1;for(const _0x24d7de of _0x13bd65['getAttributeKeys']())if(!_0x24d7de['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x24d7de)return!0x1;return!0x0;}function g(_0x280789,_0x2765ab){if(!_0x280789['is']('element','paragraph'))return!0x1;const _0x4a39ed=_0x2765ab['toViewElement'](_0x280789);return!!_0x4a39ed&&p(_0x280789)!==_0x4a39ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x177561){return _0x291337(_0x177561)&&_0x177561['is']('containerElement')&&!!_0x177561['getCustomProperty']('footnotesDefinitions');}function v(_0x76cf74,_0x4f0693={}){const _0x3e6b08=_0x76cf74['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x7a74aa=_0x76cf74['createContainerElement']('ol',{'class':'footnotes-list'},_0x76cf74['createSlot']());return _0x76cf74['createContainerElement']('div',{'class':'footnotes',..._0x4f0693},[_0x3e6b08,_0x7a74aa]);}function D(_0x33a89a,_0x1443b3){const _0x1dd3ab=_0x33a89a['getAttribute']('footnoteId'),_0x55d710=_0x33a89a['getAttribute']('footnoteCounter'),_0x421085=_0x1443b3['createUIElement']('a',{'href':'#'+_0x1dd3ab},function(_0x11b155){const _0x45535f=this['toDomElement'](_0x11b155);return _0x45535f['textContent']=_0x55d710,_0x45535f;}),_0x51924e=_0x1443b3['createContainerElement']('sup',{'id':'ref-'+_0x1dd3ab,'class':'footnote'},[_0x421085]);return _0x51924e['getFillerOffset']=()=>null,_0x51924e;}function b(_0x281da4,_0x384600,_0x4af208,{dataPipeline:_0x421f29}={}){const {t:t}=_0x4af208,_0x42af88=_0x281da4['getAttribute']('footnoteId'),_0x582cea=_0x384600['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42af88},function(_0x59cd75){const _0x4ea0c2=this['toDomElement'](_0x59cd75);return _0x4ea0c2['innerText']='^',_0x4ea0c2;}),_0xc87ce3=_0x421f29?_0x384600['createContainerElement']('div',{'class':'footnote-content'}):_0x25f0de(_0x384600['createEditableElement']('div',{'class':'footnote-content'}),_0x384600,{'label':t('Footnote\x20content.')});return _0x384600['insert'](_0x384600['createPositionAt'](_0xc87ce3,0x0),_0x384600['createSlot']()),_0x384600['createContainerElement']('li',{'class':'footnote-definition','id':_0x42af88},[_0x582cea,_0xc87ce3]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19965d=_0x5652;(function(_0x4c40a1,_0x6097cc){const _0x35c657=_0x5652,_0x45d147=_0x4c40a1();while(!![]){try{const _0x2b12f3=-parseInt(_0x35c657(0x1eb))/0x1*(-parseInt(_0x35c657(0x1d9))/0x2)+-parseInt(_0x35c657(0x1e8))/0x3+parseInt(_0x35c657(0x1d6))/0x4*(parseInt(_0x35c657(0x1dd))/0x5)+parseInt(_0x35c657(0x1d5))/0x6*(-parseInt(_0x35c657(0x1dc))/0x7)+parseInt(_0x35c657(0x1e5))/0x8+parseInt(_0x35c657(0x1e4))/0x9+parseInt(_0x35c657(0x1e1))/0xa;if(_0x2b12f3===_0x6097cc)break;else _0x45d147['push'](_0x45d147['shift']());}catch(_0x33bb5f){_0x45d147['push'](_0x45d147['shift']());}}}(_0x42c1,0xcbbe2));function _0x42c1(){const _0x4ab87c=['isEnabled','9133300pQwRbQ','get','refresh','3863061Fnceop','7166736JEtGXs','isInteger','footnotesListStart','4992702JFPQuz','value','change','43jpFzsr','getAttribute','924tUcquo','4BHvxfe','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','40160ZCtdhI','setAttribute','execute','60438sqDwyn','3632795fJxnzv','plugins','model'];_0x42c1=function(){return _0x4ab87c;};return _0x42c1();}import{Command as _0x3a5b7f}from'ckeditor5/src/core.js';function _0x5652(_0x200f9e,_0x1561a2){const _0x42c1d5=_0x42c1();return _0x5652=function(_0x565212,_0x53b87d){_0x565212=_0x565212-0x1d4;let _0x21d3ca=_0x42c1d5[_0x565212];return _0x21d3ca;},_0x5652(_0x200f9e,_0x1561a2);}import{FootnotesTracker as _0x5a5587}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x3a5b7f{[_0x19965d(0x1e3)](){const _0x798b2a=_0x19965d,{editor:_0x44c060}=this,_0x393acc=_0x44c060[_0x798b2a(0x1de)][_0x798b2a(0x1e2)](_0x5a5587)[_0x798b2a(0x1d8)]();this[_0x798b2a(0x1e0)]=!!_0x393acc,this[_0x798b2a(0x1e9)]=_0x393acc?.[_0x798b2a(0x1d4)](_0x798b2a(0x1e7))??null;}[_0x19965d(0x1db)]({value:_0x11f3f9}){const _0x2690de=_0x19965d,{editor:_0x2e441e}=this,_0x54ef4f=_0x2e441e[_0x2690de(0x1de)][_0x2690de(0x1e2)](_0x5a5587),_0x3dc728=_0x54ef4f[_0x2690de(0x1d8)]();_0x3dc728&&Number[_0x2690de(0x1e6)](_0x11f3f9)&&_0x2e441e[_0x2690de(0x1df)][_0x2690de(0x1ea)](_0x3925a1=>{const _0x1335d8=_0x2690de;_0x3925a1[_0x1335d8(0x1da)](_0x1335d8(0x1e7),_0x11f3f9,_0x3dc728),_0x54ef4f[_0x1335d8(0x1d7)](_0x3925a1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a81dc=_0x4143;function _0x4143(_0x309f29,_0x25bec0){const _0xe309c5=_0xe309();return _0x4143=function(_0x414339,_0x278640){_0x414339=_0x414339-0x192;let _0x471bcc=_0xe309c5[_0x414339];return _0x471bcc;},_0x4143(_0x309f29,_0x25bec0);}function _0xe309(){const _0x34fde8=['footnotesListStyle','9664gblbXx','1278712OzVBoZ','isEnabled','2871GHwQXQ','value','plugins','get','499094ZSnvYu','execute','1183056JQUDQZ','3KnrtUc','change','getFootnotesDefinitionsObjectElement','setAttribute','5jQUQRx','4275730uqFbYu','getAttribute','includes','model','22rJiOcH','refresh','_updateFootnotesCounters','1974516ZcznMo','414864emEttQ'];_0xe309=function(){return _0x34fde8;};return _0xe309();}(function(_0x367642,_0x448fdd){const _0x5bd4db=_0x4143,_0x497df1=_0x367642();while(!![]){try{const _0x2e02c6=parseInt(_0x5bd4db(0x195))/0x1+-parseInt(_0x5bd4db(0x19e))/0x2*(-parseInt(_0x5bd4db(0x1a1))/0x3)+parseInt(_0x5bd4db(0x198))/0x4*(parseInt(_0x5bd4db(0x1a5))/0x5)+parseInt(_0x5bd4db(0x194))/0x6+parseInt(_0x5bd4db(0x1a0))/0x7+parseInt(_0x5bd4db(0x197))/0x8*(-parseInt(_0x5bd4db(0x19a))/0x9)+-parseInt(_0x5bd4db(0x1a6))/0xa*(parseInt(_0x5bd4db(0x1aa))/0xb);if(_0x2e02c6===_0x448fdd)break;else _0x497df1['push'](_0x497df1['shift']());}catch(_0x4ce75c){_0x497df1['push'](_0x497df1['shift']());}}}(_0xe309,0x3b015));import{Command as _0x17cb52}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x56d435}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x500cd2}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x17cb52{[_0x1a81dc(0x192)](){const _0x468b0a=_0x1a81dc,{editor:_0x38740c}=this,_0x497329=_0x38740c[_0x468b0a(0x19c)][_0x468b0a(0x19d)](_0x500cd2)[_0x468b0a(0x1a3)]();this[_0x468b0a(0x199)]=!!_0x497329,this[_0x468b0a(0x19b)]=_0x497329?.[_0x468b0a(0x1a7)](_0x468b0a(0x196))??null;}[_0x1a81dc(0x19f)]({value:_0x830af6}){const _0x121d72=_0x1a81dc,{editor:_0x5af142}=this,_0x31e310=_0x5af142[_0x121d72(0x19c)][_0x121d72(0x19d)](_0x500cd2),_0x185ba4=_0x31e310[_0x121d72(0x1a3)]();_0x185ba4&&_0x56d435[_0x121d72(0x1a8)](_0x830af6)&&_0x5af142[_0x121d72(0x1a9)][_0x121d72(0x1a2)](_0x41984e=>{const _0x96cd9e=_0x121d72;_0x41984e[_0x96cd9e(0x1a4)](_0x96cd9e(0x196),_0x830af6,_0x185ba4),_0x31e310[_0x96cd9e(0x193)](_0x41984e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x349a65=_0x1852;(function(_0x410bd1,_0x5f5d2d){const _0x29b2ef=_0x1852,_0x5b07ed=_0x410bd1();while(!![]){try{const _0x101dd8=parseInt(_0x29b2ef(0x101))/0x1*(-parseInt(_0x29b2ef(0xfc))/0x2)+-parseInt(_0x29b2ef(0xfa))/0x3*(-parseInt(_0x29b2ef(0xfe))/0x4)+-parseInt(_0x29b2ef(0xfd))/0x5+-parseInt(_0x29b2ef(0x107))/0x6+parseInt(_0x29b2ef(0x102))/0x7+parseInt(_0x29b2ef(0x104))/0x8*(parseInt(_0x29b2ef(0xff))/0x9)+parseInt(_0x29b2ef(0xfb))/0xa*(parseInt(_0x29b2ef(0x100))/0xb);if(_0x101dd8===_0x5f5d2d)break;else _0x5b07ed['push'](_0x5b07ed['shift']());}catch(_0x4d202f){_0x5b07ed['push'](_0x5b07ed['shift']());}}}(_0x7573,0xb67ab));function _0x1852(_0x4c2123,_0xe10887){const _0x757316=_0x7573();return _0x1852=function(_0x185274,_0x5b4bcd){_0x185274=_0x185274-0xf7;let _0x36e574=_0x757316[_0x185274];return _0x36e574;},_0x1852(_0x4c2123,_0xe10887);}function _0x7573(){const _0x5973ba=['upper-latin','decimal-leading-zero','7836810dvZWbw','lower-latin','upper-alpha','decimal','lower-alpha','lower-roman','1282989ZDVRbE','2770210TxEiug','3066YZZwDx','354410ZnrMWF','4MpAujD','54OKnfGb','11zJdcNb','10zQnJMt','1225308xlouSJ','upper-roman','1680072PhAkiO'];_0x7573=function(){return _0x5973ba;};return _0x7573();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x349a65(0xf7),_0x349a65(0x106),_0x349a65(0x108),_0x349a65(0x105),_0x349a65(0xf8),_0x349a65(0x109),_0x349a65(0xf9),_0x349a65(0x103)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x547bb2=_0x19a0;(function(_0x57139b,_0x5bbb76){const _0x5a2240=_0x19a0,_0xe8d705=_0x57139b();while(!![]){try{const _0x4d5d49=-parseInt(_0x5a2240(0x11c))/0x1*(-parseInt(_0x5a2240(0x12c))/0x2)+-parseInt(_0x5a2240(0x157))/0x3*(parseInt(_0x5a2240(0x123))/0x4)+-parseInt(_0x5a2240(0x136))/0x5+parseInt(_0x5a2240(0x148))/0x6*(parseInt(_0x5a2240(0x13a))/0x7)+parseInt(_0x5a2240(0x145))/0x8+parseInt(_0x5a2240(0x147))/0x9*(parseInt(_0x5a2240(0x132))/0xa)+-parseInt(_0x5a2240(0x125))/0xb;if(_0x4d5d49===_0x5bbb76)break;else _0xe8d705['push'](_0xe8d705['shift']());}catch(_0x57b4cc){_0xe8d705['push'](_0xe8d705['shift']());}}}(_0x4f06,0xd58b7));import{Plugin as _0x3a9cf5}from'ckeditor5/src/core.js';function _0x19a0(_0x516f9d,_0x478aa3){const _0x4f0624=_0x4f06();return _0x19a0=function(_0x19a0b9,_0x9fec16){_0x19a0b9=_0x19a0b9-0xf9;let _0x18e6db=_0x4f0624[_0x19a0b9];return _0x18e6db;},_0x19a0(_0x516f9d,_0x478aa3);}import{FootnotesStyleCommand as _0x355e0a}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x630741}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x27313b}from'../footnotestracker.js';import{FootnotesEditing as _0x1f2305}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x3a9cf5{static get[_0x547bb2(0x13f)](){const _0x3e486a=_0x547bb2;return _0x3e486a(0x10b);}static get[_0x547bb2(0x13e)](){return[_0x1f2305,_0x27313b];}static get[_0x547bb2(0x133)](){return!0x0;}static get[_0x547bb2(0x156)](){return!0x0;}[_0x547bb2(0x15c)](){const _0x51cfa8=_0x547bb2,{editor:_0x519acf}=this;_0x519acf[_0x51cfa8(0x114)][_0x51cfa8(0x126)](_0x51cfa8(0xfd),_0x51cfa8(0x121)),_0x519acf[_0x51cfa8(0x114)][_0x51cfa8(0x126)](_0x51cfa8(0x135),0x1),_0x519acf[_0x51cfa8(0x122)][_0x51cfa8(0x102)](_0x51cfa8(0xfb),new _0x355e0a(_0x519acf)),_0x519acf[_0x51cfa8(0x122)][_0x51cfa8(0x102)](_0x51cfa8(0x128),new _0x630741(_0x519acf)),this[_0x51cfa8(0x11f)](),this[_0x51cfa8(0x11a)](),this[_0x51cfa8(0x149)](),this[_0x51cfa8(0x127)]();}[_0x547bb2(0x11f)](){const _0xc7dd18=_0x547bb2,{editor:_0x4e929c}=this,{schema:_0x34c2c0}=_0x4e929c[_0xc7dd18(0x155)];_0x34c2c0[_0xc7dd18(0x124)](_0xc7dd18(0x118),{'allowAttributes':[_0xc7dd18(0x10e),_0xc7dd18(0x152)]});}[_0x547bb2(0x11a)](){const _0x12413b=_0x547bb2,{editor:_0x5406d2}=this,{conversion:_0x2c1ecf,model:_0x3ffef3}=_0x5406d2,{schema:_0x274b80}=_0x3ffef3;_0x2c1ecf[_0x12413b(0x140)](_0x12413b(0xfe))[_0x12413b(0x102)](_0x44777e=>{const _0x4e6e57=_0x12413b;_0x44777e['on'](_0x4e6e57(0x104),(_0x2ec08a,_0x5f4e27,_0x19b557)=>{const _0x3963b5=_0x4e6e57,_0xdc81a3=_0x5f4e27[_0x3963b5(0x100)],_0x3d19d9=_0x5f4e27[_0x3963b5(0x150)]?.[_0x3963b5(0x15b)];_0xdc81a3[_0x3963b5(0x10d)](_0x3963b5(0xff))&&_0x3d19d9?.['is'](_0x3963b5(0x116),_0x3963b5(0x118))&&(function(_0x171265,_0x171757,_0xc21443,_0x29840e){const _0x5eab63=_0x3963b5;if(!_0x29840e[_0x5eab63(0x15e)](_0x171757,_0x5eab63(0x152)))return;let _0x4317e6=0x1;const _0x30b607=_0xc21443[_0x5eab63(0x12a)][_0x5eab63(0x144)](_0x171265,{'attributes':_0x5eab63(0x109)});if(_0x30b607){const _0xb6dd7=Number[_0x5eab63(0x14f)](_0x171265[_0x5eab63(0xfa)](_0x5eab63(0x109)),0xa);Number[_0x5eab63(0x15a)](_0xb6dd7)||(_0x4317e6=_0xb6dd7);}!_0x30b607&&_0x171757[_0x5eab63(0x13c)](_0x5eab63(0x152))||_0xc21443[_0x5eab63(0x131)][_0x5eab63(0x146)](_0x5eab63(0x152),_0x4317e6,_0x171757);}(_0xdc81a3,_0x3d19d9,_0x19b557,_0x274b80),function(_0x54493e,_0x97aedd,_0xe8d2e8,_0x199419){const _0x51f8d1=_0x3963b5;if(!_0x199419[_0x51f8d1(0x15e)](_0x97aedd,_0x51f8d1(0x10e)))return;let _0x1637dc=_0x51f8d1(0x121),_0x1b35db=!0x1;if(_0xe8d2e8[_0x51f8d1(0x12a)][_0x51f8d1(0x144)](_0x54493e,{'attributes':_0x51f8d1(0x113)})){const _0x451a89={0x1:_0x51f8d1(0x121),'a':_0x51f8d1(0x14b),'A':_0x51f8d1(0x103),'i':_0x51f8d1(0x159),'I':_0x51f8d1(0x130)}[_0x54493e[_0x51f8d1(0xfa)](_0x51f8d1(0x113))];_0x451a89&&(_0x1637dc=_0x451a89),_0x1b35db=!0x0;}_0xe8d2e8[_0x51f8d1(0x12a)][_0x51f8d1(0x144)](_0x54493e,{'styles':_0x51f8d1(0x110)})&&(_0x1637dc=_0x54493e[_0x51f8d1(0x105)](_0x51f8d1(0x110)),_0x1b35db=!0x0),!_0x1b35db&&_0x97aedd[_0x51f8d1(0x13c)](_0x51f8d1(0x10e))||_0xe8d2e8[_0x51f8d1(0x131)][_0x51f8d1(0x146)](_0x51f8d1(0x10e),_0x1637dc,_0x97aedd);}(_0xdc81a3,_0x3d19d9,_0x19b557,_0x274b80));});}),_0x2c1ecf[_0x12413b(0x140)](_0x12413b(0x158))[_0x12413b(0x102)](_0x576288=>{const _0x577620=_0x12413b;_0x576288['on'](_0x577620(0x10c),(_0x11c931,_0x768bc2,_0x43e04c)=>{const _0x3fd508=_0x577620;if(!_0x43e04c[_0x3fd508(0x12a)][_0x3fd508(0x144)](_0x768bc2[_0x3fd508(0x153)],_0x11c931[_0x3fd508(0x106)]))return;const _0x347083=M(_0x768bc2[_0x3fd508(0x153)],_0x43e04c[_0x3fd508(0x11e)]),{attributeNewValue:_0x144cd2}=_0x768bc2;null==_0x144cd2||0x1===_0x144cd2?_0x43e04c[_0x3fd508(0x131)][_0x3fd508(0x112)](_0x3fd508(0x109),_0x347083):_0x43e04c[_0x3fd508(0x131)][_0x3fd508(0x146)](_0x3fd508(0x109),String(_0x144cd2),_0x347083);}),_0x576288['on'](_0x577620(0x117),(_0x46a4c1,_0x5094e8,_0x53ced6)=>{const _0x1ccb6d=_0x577620;if(!_0x53ced6[_0x1ccb6d(0x12a)][_0x1ccb6d(0x144)](_0x5094e8[_0x1ccb6d(0x153)],_0x46a4c1[_0x1ccb6d(0x106)]))return;const _0x39e844=M(_0x5094e8[_0x1ccb6d(0x153)],_0x53ced6[_0x1ccb6d(0x11e)]),{attributeNewValue:_0x2aa64c}=_0x5094e8;_0x2aa64c&&_0x1ccb6d(0x121)!==_0x2aa64c?_0x53ced6[_0x1ccb6d(0x131)][_0x1ccb6d(0x10f)](_0x1ccb6d(0x110),_0x2aa64c,_0x39e844):_0x53ced6[_0x1ccb6d(0x131)][_0x1ccb6d(0x101)](_0x1ccb6d(0x110),_0x39e844);});});}[_0x547bb2(0x127)](){const _0x435a32=_0x547bb2,{editor:_0x51cc0a}=this,{model:_0x3a10ff}=_0x51cc0a,_0x26f257=_0x51cc0a[_0x435a32(0x12f)][_0x435a32(0x14d)](_0x27313b),_0x218138=this[_0x435a32(0x129)](),_0x2c540c=this[_0x435a32(0x14c)]();_0x3a10ff[_0x435a32(0x154)][_0x435a32(0x107)](_0x134aff=>{const _0x8976ab=_0x435a32,_0x1120c3=_0x3a10ff[_0x8976ab(0x154)][_0x8976ab(0x13d)][_0x8976ab(0x14a)]();let _0x4d888d=!0x1;for(const _0x620aae of _0x1120c3){if(_0x8976ab(0xfc)!==_0x620aae[_0x8976ab(0x113)]||_0x8976ab(0x115)===_0x620aae[_0x8976ab(0x106)])continue;const _0x4e74e5=_0x3a10ff[_0x8976ab(0x120)](_0x620aae[_0x8976ab(0x139)][_0x8976ab(0x119)]);for(const _0x54965f of _0x4e74e5[_0x8976ab(0xf9)]())_0x54965f['is'](_0x8976ab(0x116),_0x8976ab(0x118))&&(!_0x54965f[_0x8976ab(0x13c)](_0x8976ab(0x152))&&_0x3a10ff[_0x8976ab(0x12e)][_0x8976ab(0x15e)](_0x54965f,_0x8976ab(0x152))&&(_0x134aff[_0x8976ab(0x146)](_0x8976ab(0x152),_0x2c540c,_0x54965f),_0x4d888d=!0x0),!_0x54965f[_0x8976ab(0x13c)](_0x8976ab(0x10e))&&_0x3a10ff[_0x8976ab(0x12e)][_0x8976ab(0x15e)](_0x54965f,_0x8976ab(0x10e))&&(_0x134aff[_0x8976ab(0x146)](_0x8976ab(0x10e),_0x218138,_0x54965f),_0x4d888d=!0x0));}return _0x4d888d&&_0x26f257[_0x8976ab(0x10a)](_0x134aff),_0x4d888d;});}[_0x547bb2(0x149)](){const _0x46d310=_0x547bb2,{editor:_0x42f492}=this;_0x42f492[_0x46d310(0x12f)][_0x46d310(0x14d)](_0x27313b)[_0x46d310(0x138)](_0x3dd2df=>this[_0x46d310(0x13b)](_0x3dd2df));}[_0x547bb2(0x129)](){const _0x605991=_0x547bb2;return this[_0x605991(0x111)][_0x605991(0x114)][_0x605991(0x14d)](_0x605991(0xfd));}[_0x547bb2(0x14c)](){const _0x3c39c7=_0x547bb2;return this[_0x3c39c7(0x111)][_0x3c39c7(0x114)][_0x3c39c7(0x14d)](_0x3c39c7(0x135));}[_0x547bb2(0x13b)]({container:_0x40c827,value:_0x4054b7,digits:_0x467a57}){const _0x3c6160=_0x547bb2,_0x1b718e=_0x40c827[_0x3c6160(0xfa)](_0x3c6160(0x10e)),_0x1e958e=_0x40c827[_0x3c6160(0xfa)](_0x3c6160(0x152)),_0x14fd3f=Math[_0x3c6160(0x12b)](_0x4054b7)+(_0x1e958e??0x1)-0x1;switch(_0x1b718e){case _0x3c6160(0x141):return function(_0x34c8f6,_0x3bb3c0){const _0x1dab4c=_0x3c6160;return String(_0x34c8f6)[_0x1dab4c(0x11b)](_0x3bb3c0,'0');}(_0x14fd3f,Math[_0x3c6160(0x137)](0x2,_0x467a57));case _0x3c6160(0x14b):case _0x3c6160(0x108):return N(_0x14fd3f,!0x1);case _0x3c6160(0x103):case _0x3c6160(0x134):return N(_0x14fd3f,!0x0);case _0x3c6160(0x159):return X(_0x14fd3f,!0x1);case _0x3c6160(0x130):return X(_0x14fd3f,!0x0);default:return String(_0x14fd3f);}}}function M(_0x56d2fe,_0x528a4d){const _0xa7d5b9=_0x547bb2,_0x21ff23=_0x528a4d[_0xa7d5b9(0x11d)](_0x56d2fe);return Array[_0xa7d5b9(0x142)](_0x21ff23[_0xa7d5b9(0x151)]())[_0xa7d5b9(0x12d)](_0x58ddf1=>_0x58ddf1['is'](_0xa7d5b9(0x116),'ol')&&_0x58ddf1[_0xa7d5b9(0x10d)](_0xa7d5b9(0xff)));}function N(_0x383e01,_0x5020bb){const _0x143611=_0x547bb2;let _0xb8cb0e='',_0x522f3d=_0x383e01;for(;_0x522f3d>0x0;){const _0x4bbd99=(_0x522f3d-0x1)%0x1a;_0xb8cb0e=String[_0x143611(0x15d)](0x61+_0x4bbd99)+_0xb8cb0e,_0x522f3d=Math[_0x143611(0x12b)]((_0x522f3d-0x1)/0x1a);}return _0x5020bb?_0xb8cb0e[_0x143611(0x14e)]():_0xb8cb0e;}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 _0x4f06(){const _0x5a5ee9=['18367vtLYXt','toViewElement','mapper','_defineSchema','createRangeOn','decimal','commands','16ERcBUu','extend','1790723EcnCmY','define','_definePostfixer','footnotesStart','_getDefaultListStyle','consumable','floor','88vZMMEq','find','schema','plugins','upper-roman','writer','687070YZHCJk','isOfficialPlugin','upper-latin','footnotes.footnotesProperties.defaultStartIndex','8603620hsexyU','max','setFootnoteFormatter','position','63fNlWPK','_formatFootnoteListValue','hasAttribute','differ','requires','pluginName','for','decimal-leading-zero','from','toLowerCase','consume','9276824qblmMZ','setAttribute','180xyaAzN','728814qfUPlB','_defineFormatter','getChanges','lower-alpha','_getDefaultStartIndex','get','toUpperCase','parseInt','modelCursor','getChildren','footnotesListStart','item','document','model','isPremiumPlugin','1257687EpGQDE','downcast','lower-roman','isNaN','parent','init','fromCharCode','checkAttribute','getItems','getAttribute','footnotesStyle','insert','footnotes.footnotesProperties.defaultListStyle','upcast','footnotes-list','viewItem','removeStyle','add','upper-alpha','element:ol','getStyle','name','registerPostFixer','lower-latin','start','_updateFootnotesCounters','FootnotesPropertiesEditing','attribute:footnotesListStart:footnotesDefinitions','hasClass','footnotesListStyle','setStyle','list-style-type','editor','removeAttribute','type','config','$text','element','attribute:footnotesListStyle:footnotesDefinitions','footnotesDefinitions','nodeAfter','_defineConverters','padStart'];_0x4f06=function(){return _0x5a5ee9;};return _0x4f06();}function X(_0x33a9a5,_0x2e1626){const _0x202357=_0x547bb2;let _0x109abc='',_0x5c50eb=_0x33a9a5;for(const {value:_0x3d5ac7,numeral:_0x3feb63}of V)for(;_0x5c50eb>=_0x3d5ac7;)_0x109abc+=_0x3feb63,_0x5c50eb-=_0x3d5ac7;return _0x2e1626?_0x109abc:_0x109abc[_0x202357(0x143)]();}
|
|
23
|
+
const _0x4e3eda=_0x50f3;(function(_0xcd80e7,_0x356acf){const _0x26e42c=_0x50f3,_0x530b7c=_0xcd80e7();while(!![]){try{const _0x4c1aed=-parseInt(_0x26e42c(0x13a))/0x1*(-parseInt(_0x26e42c(0x10d))/0x2)+parseInt(_0x26e42c(0x111))/0x3+-parseInt(_0x26e42c(0x103))/0x4*(parseInt(_0x26e42c(0x12a))/0x5)+-parseInt(_0x26e42c(0xfe))/0x6*(-parseInt(_0x26e42c(0xed))/0x7)+-parseInt(_0x26e42c(0x11c))/0x8+-parseInt(_0x26e42c(0xff))/0x9+parseInt(_0x26e42c(0x148))/0xa;if(_0x4c1aed===_0x356acf)break;else _0x530b7c['push'](_0x530b7c['shift']());}catch(_0x1d53f7){_0x530b7c['push'](_0x530b7c['shift']());}}}(_0x31ea,0xb16e2));function _0x50f3(_0x3af74a,_0x52b230){const _0x31ea1e=_0x31ea();return _0x50f3=function(_0x50f3f9,_0x57d6ad){_0x50f3f9=_0x50f3f9-0xec;let _0x2a3abc=_0x31ea1e[_0x50f3f9];return _0x2a3abc;},_0x50f3(_0x3af74a,_0x52b230);}import{Plugin as _0x5d6b1a}from'ckeditor5/src/core.js';function _0x31ea(){const _0x50b833=['start','position','upper-alpha','add','10501340gDduZq','from','_formatFootnoteListValue','list-style-type','footnotes.footnotesProperties.defaultStartIndex','setFootnoteFormatter','for','plugins','getChanges','get','21469INNGcO','createRangeOn','item','getAttribute','modelCursor','FootnotesPropertiesEditing','upper-roman','footnotes-list','footnotesStyle','getStyle','model','parseInt','max','element:ol','find','viewItem','setAttribute','942CFKevc','11286270YRHavU','checkAttribute','footnotes.footnotesProperties.defaultListStyle','name','12FMjRaH','define','upcast','_updateFootnotesCounters','footnotesDefinitions','toLowerCase','fromCharCode','toUpperCase','$text','attribute:footnotesListStart:footnotesDefinitions','2093366YHVeZU','_getDefaultListStyle','removeStyle','decimal','3633333GefUpO','decimal-leading-zero','getItems','consumable','removeAttribute','setStyle','isOfficialPlugin','getChildren','_definePostfixer','schema','pluginName','4700920Yfjlwk','requires','upper-latin','parent','isPremiumPlugin','_getDefaultStartIndex','lower-latin','attribute:footnotesListStyle:footnotesDefinitions','lower-alpha','footnotesListStart','hasClass','lower-roman','type','padStart','2035080oDgVWd','mapper','_defineFormatter','editor','consume','_defineSchema','hasAttribute','footnotesListStyle','element','extend','differ','init','commands','config','downcast','floor','1YiDsJX','registerPostFixer','insert','_defineConverters','isNaN','toViewElement','nodeAfter','writer','footnotesStart','document'];_0x31ea=function(){return _0x50b833;};return _0x31ea();}import{FootnotesStyleCommand as _0xa6b6eb}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x510311}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x117be5}from'../footnotestracker.js';import{FootnotesEditing as _0x4264f0}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x5d6b1a{static get[_0x4e3eda(0x11b)](){const _0xec355b=_0x4e3eda;return _0xec355b(0xf2);}static get[_0x4e3eda(0x11d)](){return[_0x4264f0,_0x117be5];}static get[_0x4e3eda(0x117)](){return!0x0;}static get[_0x4e3eda(0x120)](){return!0x0;}[_0x4e3eda(0x135)](){const _0x2e9504=_0x4e3eda,{editor:_0x584d10}=this;_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x101),_0x2e9504(0x110)),_0x584d10[_0x2e9504(0x137)][_0x2e9504(0x104)](_0x2e9504(0x14c),0x1),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0xf5),new _0xa6b6eb(_0x584d10)),_0x584d10[_0x2e9504(0x136)][_0x2e9504(0x147)](_0x2e9504(0x142),new _0x510311(_0x584d10)),this[_0x2e9504(0x12f)](),this[_0x2e9504(0x13d)](),this[_0x2e9504(0x12c)](),this[_0x2e9504(0x119)]();}[_0x4e3eda(0x12f)](){const _0xfeb3c5=_0x4e3eda,{editor:_0x299400}=this,{schema:_0x5d05a0}=_0x299400[_0xfeb3c5(0xf7)];_0x5d05a0[_0xfeb3c5(0x133)](_0xfeb3c5(0x107),{'allowAttributes':[_0xfeb3c5(0x131),_0xfeb3c5(0x125)]});}[_0x4e3eda(0x13d)](){const _0x4f8915=_0x4e3eda,{editor:_0x58b884}=this,{conversion:_0x3efe61,model:_0x3e4371}=_0x58b884,{schema:_0x1e724c}=_0x3e4371;_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x105))[_0x4f8915(0x147)](_0x4a61ab=>{const _0x173e04=_0x4f8915;_0x4a61ab['on'](_0x173e04(0xfa),(_0x5539c0,_0x5231d5,_0x471861)=>{const _0x30071d=_0x173e04,_0x46f210=_0x5231d5[_0x30071d(0xfc)],_0x335370=_0x5231d5[_0x30071d(0xf1)]?.[_0x30071d(0x11f)];_0x46f210[_0x30071d(0x126)](_0x30071d(0xf4))&&_0x335370?.['is'](_0x30071d(0x132),_0x30071d(0x107))&&(function(_0x69f6fb,_0x444d5f,_0x4c0816,_0x238b20){const _0x488d05=_0x30071d;if(!_0x238b20[_0x488d05(0x100)](_0x444d5f,_0x488d05(0x125)))return;let _0x20593f=0x1;const _0x46a1c0=_0x4c0816[_0x488d05(0x114)][_0x488d05(0x12e)](_0x69f6fb,{'attributes':_0x488d05(0x144)});if(_0x46a1c0){const _0x4849f9=Number[_0x488d05(0xf8)](_0x69f6fb[_0x488d05(0xf0)](_0x488d05(0x144)),0xa);Number[_0x488d05(0x13e)](_0x4849f9)||(_0x20593f=_0x4849f9);}!_0x46a1c0&&_0x444d5f[_0x488d05(0x130)](_0x488d05(0x125))||_0x4c0816[_0x488d05(0x141)][_0x488d05(0xfd)](_0x488d05(0x125),_0x20593f,_0x444d5f);}(_0x46f210,_0x335370,_0x471861,_0x1e724c),function(_0x453ec6,_0x37aabd,_0x336b36,_0x5aed8d){const _0x32fa9f=_0x30071d;if(!_0x5aed8d[_0x32fa9f(0x100)](_0x37aabd,_0x32fa9f(0x131)))return;let _0x5ca5b1=_0x32fa9f(0x110),_0x10bea6=!0x1;if(_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'attributes':_0x32fa9f(0x128)})){const _0x23d785={0x1:_0x32fa9f(0x110),'a':_0x32fa9f(0x124),'A':_0x32fa9f(0x146),'i':_0x32fa9f(0x127),'I':_0x32fa9f(0xf3)}[_0x453ec6[_0x32fa9f(0xf0)](_0x32fa9f(0x128))];_0x23d785&&(_0x5ca5b1=_0x23d785),_0x10bea6=!0x0;}_0x336b36[_0x32fa9f(0x114)][_0x32fa9f(0x12e)](_0x453ec6,{'styles':_0x32fa9f(0x14b)})&&(_0x5ca5b1=_0x453ec6[_0x32fa9f(0xf6)](_0x32fa9f(0x14b)),_0x10bea6=!0x0),!_0x10bea6&&_0x37aabd[_0x32fa9f(0x130)](_0x32fa9f(0x131))||_0x336b36[_0x32fa9f(0x141)][_0x32fa9f(0xfd)](_0x32fa9f(0x131),_0x5ca5b1,_0x37aabd);}(_0x46f210,_0x335370,_0x471861,_0x1e724c));});}),_0x3efe61[_0x4f8915(0x14e)](_0x4f8915(0x138))[_0x4f8915(0x147)](_0x5e7838=>{const _0x3b30c5=_0x4f8915;_0x5e7838['on'](_0x3b30c5(0x10c),(_0x37d340,_0x1caa4c,_0x46b244)=>{const _0x2c0695=_0x3b30c5;if(!_0x46b244[_0x2c0695(0x114)][_0x2c0695(0x12e)](_0x1caa4c[_0x2c0695(0xef)],_0x37d340[_0x2c0695(0x102)]))return;const _0x539d45=M(_0x1caa4c[_0x2c0695(0xef)],_0x46b244[_0x2c0695(0x12b)]),{attributeNewValue:_0x5838cf}=_0x1caa4c;null==_0x5838cf||0x1===_0x5838cf?_0x46b244[_0x2c0695(0x141)][_0x2c0695(0x115)](_0x2c0695(0x144),_0x539d45):_0x46b244[_0x2c0695(0x141)][_0x2c0695(0xfd)](_0x2c0695(0x144),String(_0x5838cf),_0x539d45);}),_0x5e7838['on'](_0x3b30c5(0x123),(_0x49e566,_0x254bdd,_0x1398fa)=>{const _0x581917=_0x3b30c5;if(!_0x1398fa[_0x581917(0x114)][_0x581917(0x12e)](_0x254bdd[_0x581917(0xef)],_0x49e566[_0x581917(0x102)]))return;const _0x2a5ccd=M(_0x254bdd[_0x581917(0xef)],_0x1398fa[_0x581917(0x12b)]),{attributeNewValue:_0x69485b}=_0x254bdd;_0x69485b&&_0x581917(0x110)!==_0x69485b?_0x1398fa[_0x581917(0x141)][_0x581917(0x116)](_0x581917(0x14b),_0x69485b,_0x2a5ccd):_0x1398fa[_0x581917(0x141)][_0x581917(0x10f)](_0x581917(0x14b),_0x2a5ccd);});});}[_0x4e3eda(0x119)](){const _0x31284c=_0x4e3eda,{editor:_0x3e8c72}=this,{model:_0x1240c9}=_0x3e8c72,_0x1e2e28=_0x3e8c72[_0x31284c(0x14f)][_0x31284c(0xec)](_0x117be5),_0x4806aa=this[_0x31284c(0x10e)](),_0x53acb1=this[_0x31284c(0x121)]();_0x1240c9[_0x31284c(0x143)][_0x31284c(0x13b)](_0x2e594c=>{const _0x5a0b58=_0x31284c,_0x19ed47=_0x1240c9[_0x5a0b58(0x143)][_0x5a0b58(0x134)][_0x5a0b58(0x150)]();let _0x3eab3a=!0x1;for(const _0x56fac9 of _0x19ed47){if(_0x5a0b58(0x13c)!==_0x56fac9[_0x5a0b58(0x128)]||_0x5a0b58(0x10b)===_0x56fac9[_0x5a0b58(0x102)])continue;const _0x2cea8f=_0x1240c9[_0x5a0b58(0xee)](_0x56fac9[_0x5a0b58(0x145)][_0x5a0b58(0x140)]);for(const _0x51c995 of _0x2cea8f[_0x5a0b58(0x113)]())_0x51c995['is'](_0x5a0b58(0x132),_0x5a0b58(0x107))&&(!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x125))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x125))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x125),_0x53acb1,_0x51c995),_0x3eab3a=!0x0),!_0x51c995[_0x5a0b58(0x130)](_0x5a0b58(0x131))&&_0x1240c9[_0x5a0b58(0x11a)][_0x5a0b58(0x100)](_0x51c995,_0x5a0b58(0x131))&&(_0x2e594c[_0x5a0b58(0xfd)](_0x5a0b58(0x131),_0x4806aa,_0x51c995),_0x3eab3a=!0x0));}return _0x3eab3a&&_0x1e2e28[_0x5a0b58(0x106)](_0x2e594c),_0x3eab3a;});}[_0x4e3eda(0x12c)](){const _0x3dd6b9=_0x4e3eda,{editor:_0x5541dd}=this;_0x5541dd[_0x3dd6b9(0x14f)][_0x3dd6b9(0xec)](_0x117be5)[_0x3dd6b9(0x14d)](_0x469ba4=>this[_0x3dd6b9(0x14a)](_0x469ba4));}[_0x4e3eda(0x10e)](){const _0x2cc284=_0x4e3eda;return this[_0x2cc284(0x12d)][_0x2cc284(0x137)][_0x2cc284(0xec)](_0x2cc284(0x101));}[_0x4e3eda(0x121)](){const _0x56b855=_0x4e3eda;return this[_0x56b855(0x12d)][_0x56b855(0x137)][_0x56b855(0xec)](_0x56b855(0x14c));}[_0x4e3eda(0x14a)]({container:_0x373f63,value:_0xb3cebf,digits:_0x18d9ab}){const _0x5dae01=_0x4e3eda,_0x4da7b3=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x131)),_0x7a088e=_0x373f63[_0x5dae01(0xf0)](_0x5dae01(0x125)),_0x5c39c7=Math[_0x5dae01(0x139)](_0xb3cebf)+(_0x7a088e??0x1)-0x1;switch(_0x4da7b3){case _0x5dae01(0x112):return function(_0x1eb087,_0x5108c4){const _0x4d9eca=_0x5dae01;return String(_0x1eb087)[_0x4d9eca(0x129)](_0x5108c4,'0');}(_0x5c39c7,Math[_0x5dae01(0xf9)](0x2,_0x18d9ab));case _0x5dae01(0x124):case _0x5dae01(0x122):return N(_0x5c39c7,!0x1);case _0x5dae01(0x146):case _0x5dae01(0x11e):return N(_0x5c39c7,!0x0);case _0x5dae01(0x127):return X(_0x5c39c7,!0x1);case _0x5dae01(0xf3):return X(_0x5c39c7,!0x0);default:return String(_0x5c39c7);}}}function M(_0x290f3e,_0x18447f){const _0x3de6b8=_0x4e3eda,_0x2f5128=_0x18447f[_0x3de6b8(0x13f)](_0x290f3e);return Array[_0x3de6b8(0x149)](_0x2f5128[_0x3de6b8(0x118)]())[_0x3de6b8(0xfb)](_0x4b731b=>_0x4b731b['is'](_0x3de6b8(0x132),'ol')&&_0x4b731b[_0x3de6b8(0x126)](_0x3de6b8(0xf4)));}function N(_0x4a17ae,_0x4c9f33){const _0x2bd7dd=_0x4e3eda;let _0x1f4f6a='',_0x533d65=_0x4a17ae;for(;_0x533d65>0x0;){const _0x532595=(_0x533d65-0x1)%0x1a;_0x1f4f6a=String[_0x2bd7dd(0x109)](0x61+_0x532595)+_0x1f4f6a,_0x533d65=Math[_0x2bd7dd(0x139)]((_0x533d65-0x1)/0x1a);}return _0x4c9f33?_0x1f4f6a[_0x2bd7dd(0x10a)]():_0x1f4f6a;}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(_0xd5078,_0x545e5c){const _0x3913c7=_0x4e3eda;let _0x85f321='',_0x4df37b=_0xd5078;for(const {value:_0x1f1cd3,numeral:_0x413e78}of V)for(;_0x4df37b>=_0x1f1cd3;)_0x85f321+=_0x413e78,_0x4df37b-=_0x1f1cd3;return _0x545e5c?_0x85f321:_0x85f321[_0x3913c7(0x108)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0xc821f4,ButtonView as _0x4165b6,ContextualBalloon as _0x510661,createDropdown as _0x503256}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x33876f}from'ckeditor5/src/widget.js';import{Plugin as _0x2357c3}from'ckeditor5/src/core.js';import{IconFootnote as _0x4648fc,IconListStyleDecimal as _0x1b58a1,IconListStyleDecimalLeadingZero as _0x573d01,IconListStyleLowerLatin as _0x185902,IconListStyleLowerRoman as _0x39a01c,IconListStyleUpperLatin as _0x16e8a5,IconListStyleUpperRoman as _0x2fd30a}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4a1c49}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x33bc5d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2357c3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x510661,_0x33876f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1080f1}=this,{componentFactory:_0x19cf74}=_0x1080f1['ui'];_0x1080f1['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x19cf74['add']('footnotesStyle',function(_0x2c7e5d){return _0x8156f7=>{const {t:t}=_0x8156f7,_0x102e55=_0x2c7e5d['commands']['get']('footnotesStyle'),_0x5cdf3d=_0x503256(_0x8156f7),{buttonView:_0x114012}=_0x5cdf3d;return _0x5cdf3d['class']='ck-footnotes-styles-dropdown',_0x5cdf3d['bind']('isEnabled')['to'](_0x102e55,'isEnabled'),_0x114012['set']({'label':t('Footnotes\x20style'),'icon':_0x4648fc,'tooltip':!0x0}),_0x5cdf3d['once']('change:isOpen',()=>{const _0x436415=function({editor:_0x4f732c,dropdownView:_0x4830b9}){const {t:t}=_0x4f732c['locale'],_0x4ed703=t('Footnotes\x20definitions\x20styles'),_0x49efba=function(_0x5af9f1){const t=_0x5af9f1['locale']['t'],_0x4f2d0e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1b58a1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x573d01},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x39a01c},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2fd30a},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x185902},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x16e8a5}];return _0x4f2d0e['map'](function(_0x454cb7){const _0x1e11c4=_0x454cb7['locale'];return({label:_0x5d5742,icon:_0x5c7cbb,tooltip:_0x4d5754,style:_0x48d3a8})=>{const _0x469c53=_0x454cb7['commands']['get']('footnotesStyle'),_0x9f82=new _0x4165b6(_0x1e11c4);return _0x9f82['set']({'label':_0x5d5742,'icon':_0x5c7cbb,'tooltip':_0x4d5754}),_0x9f82['bind']('isOn')['to'](_0x469c53,'value',_0x3bd5bf=>_0x3bd5bf===_0x48d3a8),_0x9f82['bind']('isEnabled')['to'](_0x469c53,'isEnabled'),_0x9f82['on']('execute',()=>{_0x454cb7['execute']('footnotesStyle',{'value':_0x48d3a8}),_0x454cb7['editing']['view']['focus']();}),_0x9f82;};}(_0x5af9f1));}(_0x4f732c),_0xe413e5=new _0x4a1c49(_0x4f732c['locale'],{'styleGridAriaLabel':_0x4ed703,'styleButtonViews':_0x49efba});return _0xe413e5['delegate']('execute')['to'](_0x4830b9),_0xe413e5['on']('footnotesListStart',(_0x2f6eb0,_0x44cefb)=>{_0x4f732c['execute']('footnotesStart',{'value':_0x44cefb['startIndex']});}),_0xe413e5;}({'editor':_0x2c7e5d,'dropdownView':_0x5cdf3d});_0x5cdf3d['panelView']['children']['add'](_0x436415);}),_0x5cdf3d;};}(_0x1080f1));}['afterInit'](){const {editor:_0x44b8a2}=this,{t:t}=_0x44b8a2['locale'],_0x51b1d0=_0x44b8a2['plugins']['get'](_0x33876f),{defaultPositions:_0x1cfd0d}=_0xc821f4;_0x51b1d0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x44b8a2['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2bbee2=>{let _0xc1de2=_0x2bbee2['getFirstPosition']()?.['parent'];return _0xc1de2?.['is']('$text')&&(_0xc1de2=_0xc1de2['parent']),_0xc1de2?.['is']('element')?_0xc1de2['findAncestor'](_0x33bc5d):null;},'positions':[_0x1cfd0d['southArrowNorth'],_0x1cfd0d['southArrowNorthMiddleWest'],_0x1cfd0d['southArrowNorthMiddleEast'],_0x1cfd0d['southArrowNorthWest'],_0x1cfd0d['southArrowNorthEast'],_0x1cfd0d['northArrowSouth'],_0x1cfd0d['northArrowSouthMiddleWest'],_0x1cfd0d['northArrowSouthMiddleEast'],_0x1cfd0d['northArrowSouthWest'],_0x1cfd0d['northArrowSouthEast'],_0x1cfd0d['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5d7337,View as _0x11dbd7,ViewCollection as _0x43e702,FocusCycler as _0x1ca30e,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x11dbd7{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x43e702();['focusCycler'];constructor(_0x4734db,{styleButtonViews:_0x414bba,styleGridAriaLabel:_0x3f8ebe}){super(_0x4734db),(this['focusCycler']=new _0x1ca30e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x414bba,_0x3f8ebe),[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 _0x381698 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x381698['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0x2f29c8=_0x5298cc=>_0x5298cc['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f29c8),this['keystrokes']['set']('arrowleft',_0x2f29c8),this['keystrokes']['set']('arrowup',_0x2f29c8),this['keystrokes']['set']('arrowdown',_0x2f29c8);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4591b0,_0x32bf37){const _0x25cae4=new _0x11dbd7(this['locale']);return _0x25cae4['children']=_0x25cae4['createCollection'](),_0x25cae4['children']['addMany'](_0x4591b0),_0x25cae4['setTemplate']({'tag':'div','attributes':{'aria-label':_0x32bf37,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x25cae4['children']}),_0x25cae4['children']['delegate']('execute')['to'](this),_0x25cae4['focus']=function(){for(const _0x579026 of this['children'])if(_0x579026 instanceof _0x5d7337&&_0x579026['isOn'])return void _0x579026['focus']();this['children']['first']['focus']();},_0x25cae4['focusTracker']=new ot(),_0x25cae4['keystrokes']=new rt(),_0x25cae4['render'](),_0x25cae4['keystrokes']['listenTo'](_0x25cae4['element']),this['children']['add'](_0x25cae4),_0x25cae4;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x49b373=this['_createStartIndexPropertyView'](),_0x35a349=[_0x49b373],_0x38af77=new st(this['locale'],_0x35a349);return _0x38af77['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x38af77['buttonView']['bind']('isEnabled')['toMany'](_0x35a349,'isEnabled',(..._0x42cd3a)=>_0x42cd3a['some'](_0x1a1ee7=>_0x1a1ee7)),_0x38af77['buttonView']['on']('change:isEnabled',(_0x40b3f3,_0x30950c,_0x4572aa)=>{_0x4572aa||(_0x38af77['isCollapsed']=!0x0);}),this['children']['add'](_0x38af77),[_0x49b373,_0x38af77];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x29ee96=new it(this['locale'],et);return _0x29ee96['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x29ee96['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x29ee96['fieldView']['on']('input',()=>{const _0x35e533=_0x29ee96['fieldView']['element'],_0x528787=_0x35e533['valueAsNumber'];Number['isNaN'](_0x528787)?_0x29ee96['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x35e533['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x528787}):_0x29ee96['errorText']=t(_0x528787<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x29ee96;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1eaa(){var _0x419e82=['793064fVAVEo','2cTgAhY','6byzdTS','2092220jomsqb','3551135DDRkAJ','55oglkIw','FootnotesProperties','1118021vbBynd','1620996uEYPyB','pluginName','requires','isPremiumPlugin','54qLwoom','5mFUBlX','1529400cxjCkW','isOfficialPlugin','328612mcwKNe'];_0x1eaa=function(){return _0x419e82;};return _0x1eaa();}var _0x54ad47=_0x21fa;(function(_0x260510,_0x111b1a){var _0x442af8=_0x21fa,_0x3c7718=_0x260510();while(!![]){try{var _0x325d56=-parseInt(_0x442af8(0x16b))/0x1+-parseInt(_0x442af8(0x176))/0x2*(parseInt(_0x442af8(0x172))/0x3)+-parseInt(_0x442af8(0x174))/0x4*(-parseInt(_0x442af8(0x171))/0x5)+-parseInt(_0x442af8(0x177))/0x6*(-parseInt(_0x442af8(0x168))/0x7)+-parseInt(_0x442af8(0x175))/0x8*(-parseInt(_0x442af8(0x170))/0x9)+-parseInt(_0x442af8(0x167))/0xa*(-parseInt(_0x442af8(0x169))/0xb)+parseInt(_0x442af8(0x16c))/0xc;if(_0x325d56===_0x111b1a)break;else _0x3c7718['push'](_0x3c7718['shift']());}catch(_0x20c554){_0x3c7718['push'](_0x3c7718['shift']());}}}(_0x1eaa,0xb415c));import{Plugin as _0x582038}from'ckeditor5/src/core.js';function _0x21fa(_0x328e4f,_0x2ddec5){var _0x1eaa3c=_0x1eaa();return _0x21fa=function(_0x21fa7a,_0x48117f){_0x21fa7a=_0x21fa7a-0x167;var _0x1f5fed=_0x1eaa3c[_0x21fa7a];return _0x1f5fed;},_0x21fa(_0x328e4f,_0x2ddec5);}import{FootnotesPropertiesEditing as _0x5d9f23}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x5b5e96}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x582038{static get[_0x54ad47(0x16d)](){var _0x21bbcf=_0x54ad47;return _0x21bbcf(0x16a);}static get[_0x54ad47(0x16e)](){return[_0x5d9f23,_0x5b5e96];}static get[_0x54ad47(0x173)](){return!0x0;}static get[_0x54ad47(0x16f)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d3c90=_0x1d46;(function(_0x84bb10,_0x3fed11){const _0x2b49c4=_0x1d46,_0x254c7d=_0x84bb10();while(!![]){try{const _0x2ffb17=parseInt(_0x2b49c4(0x16e))/0x1*(-parseInt(_0x2b49c4(0x18d))/0x2)+-parseInt(_0x2b49c4(0x17c))/0x3*(parseInt(_0x2b49c4(0x19d))/0x4)+-parseInt(_0x2b49c4(0x186))/0x5+parseInt(_0x2b49c4(0x181))/0x6+parseInt(_0x2b49c4(0x1b9))/0x7*(parseInt(_0x2b49c4(0x18f))/0x8)+parseInt(_0x2b49c4(0x1ba))/0x9*(-parseInt(_0x2b49c4(0x196))/0xa)+parseInt(_0x2b49c4(0x1b7))/0xb;if(_0x2ffb17===_0x3fed11)break;else _0x254c7d['push'](_0x254c7d['shift']());}catch(_0x529066){_0x254c7d['push'](_0x254c7d['shift']());}}}(_0x4450,0xe430e));import{Plugin as _0x17ef0c}from'ckeditor5/src/core.js';function _0x4450(){const _0xc565dd=['_handleMovedFootnoteReference','_footnotesDefinitions','20884bvvDpq','_footnoteRefsTracker','_footnoteDefsContainerTracker','createElement','footnoteInlineContent','getFootnotes','length','createPositionBefore','createRangeIn','document','add','_handleRemoveFootnoteReferenceById','remove','insert','compareWith','rootName','move','before','_sortFootnoteDefinitions','pluginName','append','push','createPositionAt','_ensureFootnotesDefinitionsContainerExists','_insertEmptyFootnotesDefinitionsContainer','setAttribute','47023658hOZAxG','listenTo','28opEvlS','6394347ezuLwg','footnotes.multiBlock','end','registerPostFixer','enqueueChange','isOfficialPlugin','setFootnoteFormatter','getFootnote','getFootnotesDefinitionsObjectElement','singleton','$graveyard','_footnoteFormatter','_footnotes','findIndex','model','splice','footnoteId','_handleFootnoteDefinitionsChanges','getFootnotesFormatter','_ensureFootnotesReferencesHaveProperOrder','getChanges','has','getAttribute','definition','config','editor','1pfLirZ','footnoteRef','isEqual','_footnoteDefsTracker','_handleFootnoteReferencesChanges','init','childCount','FootnotesTracker','_handleFootnotesDefinitionsObjectChanges','differ','reference','get','getRootNames','indexOf','1044HZLizR','_updateFootnoteRefCounter','footnotesDefinitions','set','find','9819528JVZTOR','map','createRangeOn','some','footnoteDefinition','5061885JLBbCN','root','getChildren','_handleInsertedFootnoteReference','min','after','_handleFootnotesDefinitionsObjectSync','3400082AVdRCh','_updateFootnotesCounters','1946992nBmkui','footnoteCounter','low','from','reset','change:data','unshift','20kmZVKK','isPremiumPlugin','paragraph','high','parent'];_0x4450=function(){return _0xc565dd;};return _0x4450();}function _0x1d46(_0x15b8dd,_0x524779){const _0x44503c=_0x4450();return _0x1d46=function(_0x1d4614,_0x118254){_0x1d4614=_0x1d4614-0x169;let _0x7997a2=_0x44503c[_0x1d4614];return _0x7997a2;},_0x1d46(_0x15b8dd,_0x524779);}import{ModelElementTracker as _0x270769}from'./modelelementtracker.js';export class FootnotesTracker extends _0x17ef0c{[_0x1d3c90(0x1c6)]=[];[_0x1d3c90(0x19c)]=null;[_0x1d3c90(0x1c5)]=null;[_0x1d3c90(0x19f)];[_0x1d3c90(0x19e)];[_0x1d3c90(0x171)];static get[_0x1d3c90(0x1b0)](){const _0x3a05da=_0x1d3c90;return _0x3a05da(0x175);}static get[_0x1d3c90(0x1bf)](){return!0x0;}static get[_0x1d3c90(0x197)](){return!0x0;}constructor(_0x4c4776){const _0x431606=_0x1d3c90;super(_0x4c4776),this[_0x431606(0x19f)]=new _0x270769(this[_0x431606(0x16d)][_0x431606(0x1c8)],{'elementName':_0x431606(0x17e),'getElementKey':()=>_0x431606(0x1c3)}),this[_0x431606(0x19e)]=new _0x270769(this[_0x431606(0x16d)][_0x431606(0x1c8)],{'elementName':_0x431606(0x16f),'getElementKey':_0x42ccc7=>_0x42ccc7[_0x431606(0x16a)](_0x431606(0x1ca))}),this[_0x431606(0x171)]=new _0x270769(this[_0x431606(0x16d)][_0x431606(0x1c8)],{'elementName':_0x431606(0x185),'getElementKey':_0x349391=>_0x349391[_0x431606(0x16a)](_0x431606(0x1ca))});}[_0x1d3c90(0x173)](){const _0x4ebb1f=_0x1d3c90,{editor:_0xe4239c}=this,{model:_0x501f57,data:_0x597b98}=_0xe4239c;_0x501f57[_0x4ebb1f(0x1a6)][_0x4ebb1f(0x1bd)](_0x50653f=>{const _0x28dce8=_0x4ebb1f,_0x24952e=_0x501f57[_0x28dce8(0x1a6)][_0x28dce8(0x177)][_0x28dce8(0x1ce)]();let _0x68a27e=!0x1;return this[_0x28dce8(0x176)](_0x50653f,_0x24952e)&&(_0x68a27e=!0x0),this[_0x28dce8(0x1cb)](_0x50653f,_0x24952e)&&(_0x68a27e=!0x0),this[_0x28dce8(0x172)](_0x50653f,_0x24952e)&&(_0x68a27e=!0x0),this[_0x28dce8(0x1cd)](_0x50653f)&&(_0x68a27e=!0x0),this[_0x28dce8(0x18c)](_0x50653f)&&(_0x68a27e=!0x0),this[_0x28dce8(0x1af)](_0x50653f)&&(_0x68a27e=!0x0),_0x68a27e;}),this[_0x4ebb1f(0x1b8)](_0x501f57[_0x4ebb1f(0x1a6)],_0x4ebb1f(0x194),()=>{const _0x57e809=_0x4ebb1f;_0x501f57[_0x57e809(0x1be)]({'isUndoable':!0x1},_0x454343=>{const _0x4d4b9f=_0x57e809;this[_0x4d4b9f(0x1b4)](_0x454343);});},{'priority':_0x4ebb1f(0x191)}),this[_0x4ebb1f(0x1b8)](_0x597b98,_0x4ebb1f(0x17f),()=>{const _0x4da37d=_0x4ebb1f;this[_0x4da37d(0x1c6)]=[],this[_0x4da37d(0x19f)][_0x4da37d(0x193)](),this[_0x4da37d(0x19e)][_0x4da37d(0x193)](),this[_0x4da37d(0x171)][_0x4da37d(0x193)]();},{'priority':_0x4ebb1f(0x199)});}[_0x1d3c90(0x1c2)](){const _0x474bd1=_0x1d3c90;return this[_0x474bd1(0x19c)];}[_0x1d3c90(0x1c1)](_0x4cf742){const _0x15a46b=_0x1d3c90;return this[_0x15a46b(0x1c6)][_0x15a46b(0x180)](_0x4b2c27=>_0x4b2c27['id']===_0x4cf742)||null;}[_0x1d3c90(0x1a2)](){const _0x223a43=_0x1d3c90;return Array[_0x223a43(0x192)](this[_0x223a43(0x1c6)]);}[_0x1d3c90(0x1cc)](){const _0x1b5687=_0x1d3c90;return this[_0x1b5687(0x1c5)];}[_0x1d3c90(0x1c0)](_0x28e7f5){const _0x5a4bbd=_0x1d3c90;this[_0x5a4bbd(0x1c5)]=_0x28e7f5;}[_0x1d3c90(0x18e)](_0x1fcfb6,_0x1663b1=0x0){const _0x241d1a=_0x1d3c90;let _0xd2c9c2=!0x1;for(let _0x2a2159=_0x1663b1;_0x2a2159<this[_0x241d1a(0x1c6)][_0x241d1a(0x1a3)];_0x2a2159++)this[_0x241d1a(0x17d)](_0x1fcfb6,_0x2a2159)&&(_0xd2c9c2=!0x0);return _0xd2c9c2;}[_0x1d3c90(0x1b5)](_0x17228e,_0x550cd3){const _0x17bb62=_0x1d3c90,_0x37d15e=_0x17228e[_0x17bb62(0x1a0)](_0x17bb62(0x17e),{});return _0x17228e[_0x17bb62(0x1b1)](_0x37d15e,_0x550cd3),this[_0x17bb62(0x19c)]=_0x37d15e,_0x37d15e;}[_0x1d3c90(0x1b4)](_0x49f350){const _0x35e69b=_0x1d3c90;if(!this[_0x35e69b(0x1c6)][_0x35e69b(0x1a3)]||this[_0x35e69b(0x19c)])return;const _0x3573f9=this[_0x35e69b(0x1c6)][0x0][_0x35e69b(0x178)][_0x35e69b(0x187)],_0x56ee8d=this[_0x35e69b(0x1b5)](_0x49f350,_0x3573f9);for(const _0x480207 of this[_0x35e69b(0x1c6)])_0x480207[_0x35e69b(0x16b)][_0x35e69b(0x19a)]||_0x49f350[_0x35e69b(0x1aa)](_0x480207[_0x35e69b(0x16b)],_0x56ee8d,_0x35e69b(0x1bc));this[_0x35e69b(0x18e)](_0x49f350);}[_0x1d3c90(0x176)](_0x16e28b,_0x2a5fc4){const _0x3863f=_0x1d3c90;let _0x517632=!0x1;const {inserted:_0x545c40,removed:_0x523647,moved:_0xb770d7}=this[_0x3863f(0x19f)][_0x3863f(0x1ce)](_0x2a5fc4);if(_0xb770d7[_0x3863f(0x1a3)]&&(this[_0x3863f(0x19c)]=_0xb770d7[0x0]),_0x545c40[_0x3863f(0x1a3)]){if(_0x545c40[_0x3863f(0x1a3)]>0x1||this[_0x3863f(0x19c)]&&_0x545c40[_0x3863f(0x184)](_0x407581=>_0x407581!==this[_0x3863f(0x19c)])){const _0x46b27a=_0x16e28b[_0x3863f(0x1a0)](_0x3863f(0x17e),{}),_0x4d2819=[];this[_0x3863f(0x19c)]&&_0x4d2819[_0x3863f(0x1b2)](this[_0x3863f(0x19c)]),_0x4d2819[_0x3863f(0x1b2)](..._0x545c40),_0x16e28b[_0x3863f(0x1aa)](_0x46b27a,_0x4d2819[0x0],_0x3863f(0x1ae));for(const _0xa6b761 of _0x4d2819)_0x16e28b[_0x3863f(0x1ad)](_0x16e28b[_0x3863f(0x1a5)](_0xa6b761),_0x16e28b[_0x3863f(0x1b3)](_0x46b27a,_0x3863f(0x1bc))),_0x16e28b[_0x3863f(0x1a9)](_0xa6b761);this[_0x3863f(0x19c)]=_0x46b27a,this[_0x3863f(0x18e)](_0x16e28b),_0x517632=!0x0;}else this[_0x3863f(0x19c)]=_0x545c40[0x0];}if(_0x523647[_0x3863f(0x1a3)]&&_0x3863f(0x1c4)===this[_0x3863f(0x19c)]?.[_0x3863f(0x187)][_0x3863f(0x1ac)]){for(const _0x1ef21f of this[_0x3863f(0x1c6)])_0x16e28b[_0x3863f(0x1a9)](_0x1ef21f[_0x3863f(0x178)]),_0x517632=!0x0;this[_0x3863f(0x1c6)]=[],this[_0x3863f(0x19c)]=null;}return _0x517632;}[_0x1d3c90(0x1cb)](_0x1ca5bc,_0x28fe0f){const _0x43587c=_0x1d3c90;let _0x1c359b=!0x1;const _0x18634d=this[_0x43587c(0x16d)][_0x43587c(0x16c)][_0x43587c(0x179)](_0x43587c(0x1bb)),{inserted:_0x3467e9,moved:_0x2e625c}=this[_0x43587c(0x171)][_0x43587c(0x1ce)](_0x28fe0f);for(const _0x431896 of[..._0x2e625c,..._0x3467e9]){const _0x57dd88=_0x431896[_0x43587c(0x16a)](_0x43587c(0x1ca)),_0x5b6b79=this[_0x43587c(0x1c1)](_0x57dd88);_0x5b6b79&&(_0x5b6b79[_0x43587c(0x16b)]=_0x431896),_(_0x1ca5bc,_0x18634d,_0x431896)&&(_0x1c359b=!0x0);}return _0x1c359b;}[_0x1d3c90(0x172)](_0x45ace0,_0x1af7fc){const _0x2d0031=_0x1d3c90;let _0x5b981d=!0x1;const {removed:_0x40538d,inserted:_0x551f2b,moved:_0x5aff1a}=this[_0x2d0031(0x19e)][_0x2d0031(0x1ce)](_0x1af7fc);for(const _0x3c0939 of _0x40538d)this[_0x2d0031(0x1a8)](_0x45ace0,_0x3c0939)&&(_0x5b981d=!0x0);for(const _0x336b8c of _0x551f2b)this[_0x2d0031(0x189)](_0x45ace0,_0x336b8c)&&(_0x5b981d=!0x0);for(const _0x7927af of _0x5aff1a)this[_0x2d0031(0x19b)](_0x45ace0,_0x7927af)&&(_0x5b981d=!0x0);return _0x5b981d;}[_0x1d3c90(0x18c)](_0x385ecc){const _0x393b41=_0x1d3c90;if(!this[_0x393b41(0x19c)])return!0x1;let _0x144654=!0x1;if(this[_0x393b41(0x19c)][_0x393b41(0x174)]!==this[_0x393b41(0x1c6)][_0x393b41(0x1a3)]){const _0x301e1c=[];for(const _0x158d37 of this[_0x393b41(0x19c)][_0x393b41(0x188)]()){const _0x465c3e=_0x158d37[_0x393b41(0x16a)](_0x393b41(0x1ca));this[_0x393b41(0x1c1)](_0x465c3e)||(_0x301e1c[_0x393b41(0x195)](_0x158d37),_0x144654=!0x0);}for(const _0x18b54e of _0x301e1c)_0x385ecc[_0x393b41(0x1a9)](_0x18b54e);}const _0x4d6fb3=new Set(),_0xf7e598=[];for(const _0x33ac5f of this[_0x393b41(0x19c)][_0x393b41(0x188)]()){const _0x45dc86=_0x33ac5f[_0x393b41(0x16a)](_0x393b41(0x1ca));_0x4d6fb3[_0x393b41(0x169)](_0x45dc86)?(_0xf7e598[_0x393b41(0x195)](_0x33ac5f),_0x144654=!0x0):_0x4d6fb3[_0x393b41(0x1a7)](_0x45dc86);}for(const _0x1d0e3f of _0xf7e598)_0x385ecc[_0x393b41(0x1a9)](_0x1d0e3f);return this[_0x393b41(0x19c)][_0x393b41(0x174)]||(_0x385ecc[_0x393b41(0x1a9)](this[_0x393b41(0x19c)]),this[_0x393b41(0x19c)]=null,_0x144654=!0x0),_0x144654;}[_0x1d3c90(0x189)](_0xdb661b,_0x3c24c6){const _0x254ecb=_0x1d3c90;if(this[_0x254ecb(0x1c6)][_0x254ecb(0x180)](_0x122238=>_0x122238[_0x254ecb(0x178)]===_0x3c24c6))return!0x1;let _0x37efd0=!0x1;const _0x1e04d6=_0x3c24c6[_0x254ecb(0x16a)](_0x254ecb(0x1ca)),_0x5fcc09=this[_0x254ecb(0x1c6)][_0x254ecb(0x1c7)](_0x230302=>_0x230302['id']===_0x1e04d6);-0x1!==_0x5fcc09&&(_0xdb661b[_0x254ecb(0x1a9)](this[_0x254ecb(0x1c6)][_0x5fcc09][_0x254ecb(0x178)]),this[_0x254ecb(0x1c6)][_0x254ecb(0x1c9)](_0x5fcc09,0x1),_0x37efd0=!0x0);let _0x52ce3c=this[_0x254ecb(0x19c)]?function(_0x1f0aa6,_0x2949ca){const _0x214e74=_0x254ecb;for(const _0x323f3c of _0x1f0aa6[_0x214e74(0x188)]())if(_0x323f3c[_0x214e74(0x16a)](_0x214e74(0x1ca))===_0x2949ca)return _0x323f3c;return null;}(this[_0x254ecb(0x19c)],_0x1e04d6):null;_0x52ce3c||(_0x52ce3c=_0xdb661b[_0x254ecb(0x1a0)](_0x254ecb(0x185),{'footnoteId':_0x1e04d6}),this[_0x254ecb(0x19c)]&&(_0xdb661b[_0x254ecb(0x1aa)](_0x52ce3c,this[_0x254ecb(0x19c)],_0x254ecb(0x1bc)),_0x37efd0=!0x0));const _0x4f2dbe={'id':_0x1e04d6,'reference':_0x3c24c6,'definition':_0x52ce3c},_0x1eac6d=I(this[_0x254ecb(0x16d)][_0x254ecb(0x1c8)],this[_0x254ecb(0x1c6)],_0x3c24c6);this[_0x254ecb(0x1c6)][_0x254ecb(0x1c9)](_0x1eac6d,0x0,_0x4f2dbe);let _0x2506bc=_0x1eac6d;return-0x1!==_0x5fcc09&&(_0x2506bc=Math[_0x254ecb(0x18a)](_0x1eac6d,_0x5fcc09)),this[_0x254ecb(0x18e)](_0xdb661b,_0x2506bc)&&(_0x37efd0=!0x0),_0x37efd0;}[_0x1d3c90(0x1a8)](_0x2f5ced,_0x3762b8){const _0xddba98=_0x1d3c90,_0x15d4b3=this[_0xddba98(0x1c6)][_0xddba98(0x1c7)](_0x7cc371=>_0x7cc371['id']===_0x3762b8);if(-0x1===_0x15d4b3)return!0x1;let _0x3a6b5c=!0x1;const _0x563232=this[_0xddba98(0x1c6)][_0x15d4b3];return _0xddba98(0x1c4)!==_0x563232[_0xddba98(0x16b)][_0xddba98(0x187)][_0xddba98(0x1ac)]&&(_0x2f5ced[_0xddba98(0x1a9)](_0x563232[_0xddba98(0x16b)]),_0x3a6b5c=!0x0),this[_0xddba98(0x1c6)][_0xddba98(0x1c9)](_0x15d4b3,0x1),this[_0xddba98(0x18e)](_0x2f5ced,_0x15d4b3)&&(_0x3a6b5c=!0x0),_0x3a6b5c;}[_0x1d3c90(0x19b)](_0x29eab7,_0x23ecdd){const _0x4d4d52=_0x1d3c90,_0x5a4732=_0x23ecdd[_0x4d4d52(0x16a)](_0x4d4d52(0x1ca)),_0x179afa=this[_0x4d4d52(0x1c6)][_0x4d4d52(0x1c7)](_0xffdca7=>_0xffdca7['id']===_0x5a4732),_0x171981=this[_0x4d4d52(0x1c6)][_0x179afa];let _0x4d40e4=!0x1;_0x171981[_0x4d4d52(0x178)]=_0x23ecdd,this[_0x4d4d52(0x1c6)][_0x4d4d52(0x1c9)](_0x179afa,0x1);const _0x551e10=I(this[_0x4d4d52(0x16d)][_0x4d4d52(0x1c8)],this[_0x4d4d52(0x1c6)],_0x23ecdd);return this[_0x4d4d52(0x1c6)][_0x4d4d52(0x1c9)](_0x551e10,0x0,_0x171981),this[_0x4d4d52(0x18e)](_0x29eab7,Math[_0x4d4d52(0x18a)](_0x179afa,_0x551e10))&&(_0x4d40e4=!0x0),_0x4d40e4;}[_0x1d3c90(0x17d)](_0xd23561,_0x52de52){const _0xb14b=_0x1d3c90;if(!this[_0xb14b(0x19c)])return!0x1;const _0x57dbde=this[_0xb14b(0x1c6)][_0x52de52];let _0x5eeda1;return _0x5eeda1=this[_0xb14b(0x1c5)]?this[_0xb14b(0x1c5)]({'footnote':_0x57dbde,'container':this[_0xb14b(0x19c)],'digits':String(this[_0xb14b(0x1c6)][_0xb14b(0x1a3)])[_0xb14b(0x1a3)],'value':_0x52de52+0x1}):String(_0x52de52+0x1),_0x57dbde[_0xb14b(0x178)][_0xb14b(0x16a)](_0xb14b(0x190))!=_0x5eeda1&&(_0xd23561[_0xb14b(0x1b6)](_0xb14b(0x190),_0x5eeda1,_0x57dbde[_0xb14b(0x178)]),!0x0);}[_0x1d3c90(0x1af)](_0x179d42){const _0x35b49d=_0x1d3c90;if(!this[_0x35b49d(0x19c)]||this[_0x35b49d(0x1c6)][_0x35b49d(0x1a3)]<0x2)return!0x1;if(function(_0x1b384a,_0x5d9b63){const _0x527eaf=_0x35b49d;if(_0x1b384a[_0x527eaf(0x1a3)]!==_0x5d9b63[_0x527eaf(0x1a3)])return!0x1;for(let _0x561edf=0x0;_0x561edf<_0x1b384a[_0x527eaf(0x1a3)];_0x561edf++)if(_0x1b384a[_0x561edf]!==_0x5d9b63[_0x561edf])return!0x1;return!0x0;}(this[_0x35b49d(0x1c6)][_0x35b49d(0x182)](_0x31af96=>_0x31af96['id']),Array[_0x35b49d(0x192)](this[_0x35b49d(0x19c)][_0x35b49d(0x188)]())[_0x35b49d(0x182)](_0xce5b1d=>_0xce5b1d[_0x35b49d(0x16a)](_0x35b49d(0x1ca)))))return!0x1;let _0x13eb3f=!0x1;for(let _0x3215f6=0x0;_0x3215f6<this[_0x35b49d(0x1c6)][_0x35b49d(0x1a3)];_0x3215f6++){const _0x20c621=this[_0x35b49d(0x1c6)][_0x3215f6],_0x5191f9=_0x179d42[_0x35b49d(0x1a4)](_0x20c621[_0x35b49d(0x16b)]),_0x1d18f7=_0x179d42[_0x35b49d(0x1b3)](this[_0x35b49d(0x19c)],_0x3215f6);_0x5191f9[_0x35b49d(0x170)](_0x1d18f7)||(_0x179d42[_0x35b49d(0x1ad)](_0x179d42[_0x35b49d(0x183)](_0x20c621[_0x35b49d(0x16b)]),_0x1d18f7),_0x13eb3f=!0x0);}return _0x13eb3f;}[_0x1d3c90(0x1cd)](_0x1ba75a){const _0x6b2523=_0x1d3c90;if(!this[_0x6b2523(0x1c6)][_0x6b2523(0x1a3)])return!0x1;const {model:_0x2d3ac1}=this[_0x6b2523(0x16d)];let _0x5c9c1c=!0x1;for(let _0x2592d5=0x0;_0x2592d5<this[_0x6b2523(0x1c6)][_0x6b2523(0x1a3)]-0x1;_0x2592d5++){const _0x434046=this[_0x6b2523(0x1c6)][_0x2592d5],_0x55926a=this[_0x6b2523(0x1c6)][_0x2592d5+0x1],_0x498ba5=_0x2d3ac1[_0x6b2523(0x1a4)](_0x434046[_0x6b2523(0x178)]),_0x3c37ab=_0x2d3ac1[_0x6b2523(0x1a4)](_0x55926a[_0x6b2523(0x178)]);_0x6b2523(0x18b)===_0x498ba5[_0x6b2523(0x1ab)](_0x3c37ab)&&(this[_0x6b2523(0x19b)](_0x1ba75a,_0x434046[_0x6b2523(0x178)]),_0x2592d5=-0x1,_0x5c9c1c=!0x0);}return _0x5c9c1c;}}function _(_0x2b8d92,_0x3a9040,_0x1c7a17){const _0x4638ee=_0x1d3c90;if(_0x1c7a17[_0x4638ee(0x174)])return!0x1;const _0xc545da=_0x3a9040?_0x4638ee(0x198):_0x4638ee(0x1a1);return _0x2b8d92[_0x4638ee(0x1aa)](_0x2b8d92[_0x4638ee(0x1a0)](_0xc545da),_0x1c7a17),!0x0;}function I(_0x22ded4,_0x1a585f,_0x2b0446){const _0x588525=_0x1d3c90;if(0x0===_0x1a585f[_0x588525(0x1a3)])return 0x0;const _0x59653e=_0x22ded4[_0x588525(0x1a4)](_0x2b0446);for(let _0x33941d=0x0;_0x33941d<_0x1a585f[_0x588525(0x1a3)];_0x33941d++){const _0x32809e=_0x1a585f[_0x33941d],_0x86bfe2=_0x22ded4[_0x588525(0x1a4)](_0x32809e[_0x588525(0x178)]);if(_0x588525(0x1ae)===_0x59653e[_0x588525(0x1ab)](_0x86bfe2))return _0x33941d;}const _0x391a3b=_0x2b0446[_0x588525(0x187)];let _0x99fa2e=-0x1;for(let _0x259c20=_0x1a585f[_0x588525(0x1a3)]-0x1;_0x259c20>=0x0;_0x259c20--)if(_0x1a585f[_0x259c20][_0x588525(0x178)][_0x588525(0x187)]===_0x391a3b){_0x99fa2e=_0x259c20;break;}if(-0x1!==_0x99fa2e)return _0x99fa2e+0x1;const _0x144324=_0x22ded4[_0x588525(0x1a6)][_0x588525(0x17a)](),_0xbb60b0=_0x144324[_0x588525(0x17b)](_0x391a3b[_0x588525(0x1ac)]),_0x1054a2=_0x144324[_0xbb60b0+0x1];if(_0x1054a2){for(let _0x191146=0x0;_0x191146<_0x1a585f[_0x588525(0x1a3)];_0x191146++)if(_0x1a585f[_0x191146][_0x588525(0x178)][_0x588525(0x187)][_0x588525(0x1ac)]===_0x1054a2)return _0x191146;}return _0x1a585f[_0x588525(0x1a3)];}
|
|
23
|
+
function _0x1e9c(){const _0x7a4189=['root','before','footnoteInlineContent','getFootnotes','registerPostFixer','pluginName','childCount','_footnoteRefsTracker','min','change:data','getRootNames','197716cpRmnU','footnoteCounter','createRangeOn','getFootnotesFormatter','footnoteDefinition','map','document','after','_footnoteDefsTracker','658vwvLKd','_insertEmptyFootnotesDefinitionsContainer','61032KYWWcO','rootName','unshift','splice','setFootnoteFormatter','append','getFootnote','_ensureFootnotesReferencesHaveProperOrder','createRangeIn','_handleInsertedFootnoteReference','compareWith','31636099qqsQhC','from','indexOf','parent','insert','length','createElement','_sortFootnoteDefinitions','high','init','has','_handleFootnotesDefinitionsObjectChanges','_footnoteFormatter','_handleFootnoteDefinitionsChanges','9935980WNdxCn','setAttribute','_handleRemoveFootnoteReferenceById','set','createPositionAt','reference','16300ViytcE','getFootnotesDefinitionsObjectElement','low','_updateFootnoteRefCounter','getChanges','editor','model','differ','listenTo','FootnotesTracker','config','end','_handleMovedFootnoteReference','findIndex','isPremiumPlugin','20754dkqyjh','isOfficialPlugin','paragraph','_updateFootnotesCounters','getChildren','438tmxrMc','_footnotes','_ensureFootnotesDefinitionsContainerExists','enqueueChange','_footnoteDefsContainerTracker','find','definition','add','some','_footnotesDefinitions','singleton','footnotesDefinitions','footnoteId','footnotes.multiBlock','_handleFootnoteReferencesChanges','push','2900590kRkwws','reset','81qzpTAb','get','isEqual','_handleFootnotesDefinitionsObjectSync','footnoteRef','createPositionBefore','remove','2uowYzj','move','$graveyard','getAttribute'];_0x1e9c=function(){return _0x7a4189;};return _0x1e9c();}function _0x4bd7(_0x384f87,_0x27bce4){const _0x1e9c2d=_0x1e9c();return _0x4bd7=function(_0x4bd723,_0x3df357){_0x4bd723=_0x4bd723-0x1c9;let _0xafccef=_0x1e9c2d[_0x4bd723];return _0xafccef;},_0x4bd7(_0x384f87,_0x27bce4);}const _0x257431=_0x4bd7;(function(_0x4d6bed,_0x40485f){const _0x1f0fab=_0x4bd7,_0xc1cc7b=_0x4d6bed();while(!![]){try{const _0x17b72f=parseInt(_0x1f0fab(0x1ca))/0x1*(parseInt(_0x1f0fab(0x221))/0x2)+-parseInt(_0x1f0fab(0x208))/0x3*(parseInt(_0x1f0fab(0x1f4))/0x4)+-parseInt(_0x1f0fab(0x218))/0x5+parseInt(_0x1f0fab(0x203))/0x6*(-parseInt(_0x1f0fab(0x1d3))/0x7)+-parseInt(_0x1f0fab(0x1d5))/0x8*(parseInt(_0x1f0fab(0x21a))/0x9)+-parseInt(_0x1f0fab(0x1ee))/0xa+parseInt(_0x1f0fab(0x1e0))/0xb;if(_0x17b72f===_0x40485f)break;else _0xc1cc7b['push'](_0xc1cc7b['shift']());}catch(_0x2d16bb){_0xc1cc7b['push'](_0xc1cc7b['shift']());}}}(_0x1e9c,0x7cd14));import{Plugin as _0x56f668}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x122b99}from'./modelelementtracker.js';export class FootnotesTracker extends _0x56f668{[_0x257431(0x209)]=[];[_0x257431(0x211)]=null;[_0x257431(0x1ec)]=null;[_0x257431(0x20c)];[_0x257431(0x22c)];[_0x257431(0x1d2)];static get[_0x257431(0x22a)](){const _0x4d2a58=_0x257431;return _0x4d2a58(0x1fd);}static get[_0x257431(0x204)](){return!0x0;}static get[_0x257431(0x202)](){return!0x0;}constructor(_0x39f5a8){const _0x4d1b01=_0x257431;super(_0x39f5a8),this[_0x4d1b01(0x20c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x213),'getElementKey':()=>_0x4d1b01(0x212)}),this[_0x4d1b01(0x22c)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x21e),'getElementKey':_0x4dc762=>_0x4dc762[_0x4d1b01(0x224)](_0x4d1b01(0x214))}),this[_0x4d1b01(0x1d2)]=new _0x122b99(this[_0x4d1b01(0x1f9)][_0x4d1b01(0x1fa)],{'elementName':_0x4d1b01(0x1ce),'getElementKey':_0x989849=>_0x989849[_0x4d1b01(0x224)](_0x4d1b01(0x214))});}[_0x257431(0x1e9)](){const _0x13e6fc=_0x257431,{editor:_0x46bb90}=this,{model:_0x4f3c57,data:_0x19cf2e}=_0x46bb90;_0x4f3c57[_0x13e6fc(0x1d0)][_0x13e6fc(0x229)](_0x233e44=>{const _0x143157=_0x13e6fc,_0x3880ea=_0x4f3c57[_0x143157(0x1d0)][_0x143157(0x1fb)][_0x143157(0x1f8)]();let _0x5688d9=!0x1;return this[_0x143157(0x1eb)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1ed)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x216)](_0x233e44,_0x3880ea)&&(_0x5688d9=!0x0),this[_0x143157(0x1dc)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x21d)](_0x233e44)&&(_0x5688d9=!0x0),this[_0x143157(0x1e7)](_0x233e44)&&(_0x5688d9=!0x0),_0x5688d9;}),this[_0x13e6fc(0x1fc)](_0x4f3c57[_0x13e6fc(0x1d0)],_0x13e6fc(0x22e),()=>{const _0x249b78=_0x13e6fc;_0x4f3c57[_0x249b78(0x20b)]({'isUndoable':!0x1},_0x1ca445=>{const _0x3c570d=_0x249b78;this[_0x3c570d(0x20a)](_0x1ca445);});},{'priority':_0x13e6fc(0x1f6)}),this[_0x13e6fc(0x1fc)](_0x19cf2e,_0x13e6fc(0x1f1),()=>{const _0x40b53d=_0x13e6fc;this[_0x40b53d(0x209)]=[],this[_0x40b53d(0x20c)][_0x40b53d(0x219)](),this[_0x40b53d(0x22c)][_0x40b53d(0x219)](),this[_0x40b53d(0x1d2)][_0x40b53d(0x219)]();},{'priority':_0x13e6fc(0x1e8)});}[_0x257431(0x1f5)](){const _0x5e76ca=_0x257431;return this[_0x5e76ca(0x211)];}[_0x257431(0x1db)](_0x17f270){const _0x1fbfad=_0x257431;return this[_0x1fbfad(0x209)][_0x1fbfad(0x20d)](_0x13f614=>_0x13f614['id']===_0x17f270)||null;}[_0x257431(0x228)](){const _0x3855ff=_0x257431;return Array[_0x3855ff(0x1e1)](this[_0x3855ff(0x209)]);}[_0x257431(0x1cd)](){const _0x3f1751=_0x257431;return this[_0x3f1751(0x1ec)];}[_0x257431(0x1d9)](_0x5b115b){const _0x3f9325=_0x257431;this[_0x3f9325(0x1ec)]=_0x5b115b;}[_0x257431(0x206)](_0x3fe9fb,_0x5bec35=0x0){const _0x1497a1=_0x257431;let _0x762b08=!0x1;for(let _0x2e7b3e=_0x5bec35;_0x2e7b3e<this[_0x1497a1(0x209)][_0x1497a1(0x1e5)];_0x2e7b3e++)this[_0x1497a1(0x1f7)](_0x3fe9fb,_0x2e7b3e)&&(_0x762b08=!0x0);return _0x762b08;}[_0x257431(0x1d4)](_0x4def5d,_0x319bb1){const _0x4a3bac=_0x257431,_0x3791fb=_0x4def5d[_0x4a3bac(0x1e6)](_0x4a3bac(0x213),{});return _0x4def5d[_0x4a3bac(0x1da)](_0x3791fb,_0x319bb1),this[_0x4a3bac(0x211)]=_0x3791fb,_0x3791fb;}[_0x257431(0x20a)](_0x4dc8e0){const _0xf66aaa=_0x257431;if(!this[_0xf66aaa(0x209)][_0xf66aaa(0x1e5)]||this[_0xf66aaa(0x211)])return;const _0x5c8d86=this[_0xf66aaa(0x209)][0x0][_0xf66aaa(0x1f3)][_0xf66aaa(0x225)],_0x521e31=this[_0xf66aaa(0x1d4)](_0x4dc8e0,_0x5c8d86);for(const _0x210f72 of this[_0xf66aaa(0x209)])_0x210f72[_0xf66aaa(0x20e)][_0xf66aaa(0x1e3)]||_0x4dc8e0[_0xf66aaa(0x1e4)](_0x210f72[_0xf66aaa(0x20e)],_0x521e31,_0xf66aaa(0x1ff));this[_0xf66aaa(0x206)](_0x4dc8e0);}[_0x257431(0x1eb)](_0x28c745,_0x5e2a79){const _0x58f2a6=_0x257431;let _0x10b135=!0x1;const {inserted:_0x410e57,removed:_0x143961,moved:_0x430d73}=this[_0x58f2a6(0x20c)][_0x58f2a6(0x1f8)](_0x5e2a79);if(_0x430d73[_0x58f2a6(0x1e5)]&&(this[_0x58f2a6(0x211)]=_0x430d73[0x0]),_0x410e57[_0x58f2a6(0x1e5)]){if(_0x410e57[_0x58f2a6(0x1e5)]>0x1||this[_0x58f2a6(0x211)]&&_0x410e57[_0x58f2a6(0x210)](_0x28721b=>_0x28721b!==this[_0x58f2a6(0x211)])){const _0x52c588=_0x28c745[_0x58f2a6(0x1e6)](_0x58f2a6(0x213),{}),_0x248597=[];this[_0x58f2a6(0x211)]&&_0x248597[_0x58f2a6(0x217)](this[_0x58f2a6(0x211)]),_0x248597[_0x58f2a6(0x217)](..._0x410e57),_0x28c745[_0x58f2a6(0x1e4)](_0x52c588,_0x248597[0x0],_0x58f2a6(0x226));for(const _0x2d916e of _0x248597)_0x28c745[_0x58f2a6(0x222)](_0x28c745[_0x58f2a6(0x1dd)](_0x2d916e),_0x28c745[_0x58f2a6(0x1f2)](_0x52c588,_0x58f2a6(0x1ff))),_0x28c745[_0x58f2a6(0x220)](_0x2d916e);this[_0x58f2a6(0x211)]=_0x52c588,this[_0x58f2a6(0x206)](_0x28c745),_0x10b135=!0x0;}else this[_0x58f2a6(0x211)]=_0x410e57[0x0];}if(_0x143961[_0x58f2a6(0x1e5)]&&_0x58f2a6(0x223)===this[_0x58f2a6(0x211)]?.[_0x58f2a6(0x225)][_0x58f2a6(0x1d6)]){for(const _0x17c89e of this[_0x58f2a6(0x209)])_0x28c745[_0x58f2a6(0x220)](_0x17c89e[_0x58f2a6(0x1f3)]),_0x10b135=!0x0;this[_0x58f2a6(0x209)]=[],this[_0x58f2a6(0x211)]=null;}return _0x10b135;}[_0x257431(0x1ed)](_0x28201b,_0x46b738){const _0x26b3aa=_0x257431;let _0x5bb6c7=!0x1;const _0xf15ce7=this[_0x26b3aa(0x1f9)][_0x26b3aa(0x1fe)][_0x26b3aa(0x21b)](_0x26b3aa(0x215)),{inserted:_0x836ba6,moved:_0x5824fa}=this[_0x26b3aa(0x1d2)][_0x26b3aa(0x1f8)](_0x46b738);for(const _0x37b00d of[..._0x5824fa,..._0x836ba6]){const _0x50fbbe=_0x37b00d[_0x26b3aa(0x224)](_0x26b3aa(0x214)),_0x45fea0=this[_0x26b3aa(0x1db)](_0x50fbbe);_0x45fea0&&(_0x45fea0[_0x26b3aa(0x20e)]=_0x37b00d),_(_0x28201b,_0xf15ce7,_0x37b00d)&&(_0x5bb6c7=!0x0);}return _0x5bb6c7;}[_0x257431(0x216)](_0x270b2a,_0x3e4e15){const _0x741cf5=_0x257431;let _0x5f31ec=!0x1;const {removed:_0x583ed8,inserted:_0xe31b6d,moved:_0xde76f0}=this[_0x741cf5(0x22c)][_0x741cf5(0x1f8)](_0x3e4e15);for(const _0x3c9943 of _0x583ed8)this[_0x741cf5(0x1f0)](_0x270b2a,_0x3c9943)&&(_0x5f31ec=!0x0);for(const _0x5c3e32 of _0xe31b6d)this[_0x741cf5(0x1de)](_0x270b2a,_0x5c3e32)&&(_0x5f31ec=!0x0);for(const _0x51d4cc of _0xde76f0)this[_0x741cf5(0x200)](_0x270b2a,_0x51d4cc)&&(_0x5f31ec=!0x0);return _0x5f31ec;}[_0x257431(0x21d)](_0x336a49){const _0x422b84=_0x257431;if(!this[_0x422b84(0x211)])return!0x1;let _0x246c1c=!0x1;if(this[_0x422b84(0x211)][_0x422b84(0x22b)]!==this[_0x422b84(0x209)][_0x422b84(0x1e5)]){const _0x499181=[];for(const _0x38f12f of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x53439a=_0x38f12f[_0x422b84(0x224)](_0x422b84(0x214));this[_0x422b84(0x1db)](_0x53439a)||(_0x499181[_0x422b84(0x1d7)](_0x38f12f),_0x246c1c=!0x0);}for(const _0xe62309 of _0x499181)_0x336a49[_0x422b84(0x220)](_0xe62309);}const _0x4e8bfc=new Set(),_0x346d6a=[];for(const _0x4c656d of this[_0x422b84(0x211)][_0x422b84(0x207)]()){const _0x1520d5=_0x4c656d[_0x422b84(0x224)](_0x422b84(0x214));_0x4e8bfc[_0x422b84(0x1ea)](_0x1520d5)?(_0x346d6a[_0x422b84(0x1d7)](_0x4c656d),_0x246c1c=!0x0):_0x4e8bfc[_0x422b84(0x20f)](_0x1520d5);}for(const _0x20a9af of _0x346d6a)_0x336a49[_0x422b84(0x220)](_0x20a9af);return this[_0x422b84(0x211)][_0x422b84(0x22b)]||(_0x336a49[_0x422b84(0x220)](this[_0x422b84(0x211)]),this[_0x422b84(0x211)]=null,_0x246c1c=!0x0),_0x246c1c;}[_0x257431(0x1de)](_0x518e2a,_0x26cbf6){const _0x4b7d31=_0x257431;if(this[_0x4b7d31(0x209)][_0x4b7d31(0x20d)](_0x3544ee=>_0x3544ee[_0x4b7d31(0x1f3)]===_0x26cbf6))return!0x1;let _0x1cbe24=!0x1;const _0x249d32=_0x26cbf6[_0x4b7d31(0x224)](_0x4b7d31(0x214)),_0x5198fe=this[_0x4b7d31(0x209)][_0x4b7d31(0x201)](_0x15628b=>_0x15628b['id']===_0x249d32);-0x1!==_0x5198fe&&(_0x518e2a[_0x4b7d31(0x220)](this[_0x4b7d31(0x209)][_0x5198fe][_0x4b7d31(0x1f3)]),this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x5198fe,0x1),_0x1cbe24=!0x0);let _0x32920b=this[_0x4b7d31(0x211)]?function(_0x54f788,_0x269f7e){const _0x420fb3=_0x4b7d31;for(const _0x3f42e5 of _0x54f788[_0x420fb3(0x207)]())if(_0x3f42e5[_0x420fb3(0x224)](_0x420fb3(0x214))===_0x269f7e)return _0x3f42e5;return null;}(this[_0x4b7d31(0x211)],_0x249d32):null;_0x32920b||(_0x32920b=_0x518e2a[_0x4b7d31(0x1e6)](_0x4b7d31(0x1ce),{'footnoteId':_0x249d32}),this[_0x4b7d31(0x211)]&&(_0x518e2a[_0x4b7d31(0x1e4)](_0x32920b,this[_0x4b7d31(0x211)],_0x4b7d31(0x1ff)),_0x1cbe24=!0x0));const _0x2c687f={'id':_0x249d32,'reference':_0x26cbf6,'definition':_0x32920b},_0x10ee58=I(this[_0x4b7d31(0x1f9)][_0x4b7d31(0x1fa)],this[_0x4b7d31(0x209)],_0x26cbf6);this[_0x4b7d31(0x209)][_0x4b7d31(0x1d8)](_0x10ee58,0x0,_0x2c687f);let _0x185330=_0x10ee58;return-0x1!==_0x5198fe&&(_0x185330=Math[_0x4b7d31(0x22d)](_0x10ee58,_0x5198fe)),this[_0x4b7d31(0x206)](_0x518e2a,_0x185330)&&(_0x1cbe24=!0x0),_0x1cbe24;}[_0x257431(0x1f0)](_0x5a79c0,_0x2eb297){const _0x406e8c=_0x257431,_0xc7555e=this[_0x406e8c(0x209)][_0x406e8c(0x201)](_0x328263=>_0x328263['id']===_0x2eb297);if(-0x1===_0xc7555e)return!0x1;let _0x11cc50=!0x1;const _0x12bc65=this[_0x406e8c(0x209)][_0xc7555e];return _0x406e8c(0x223)!==_0x12bc65[_0x406e8c(0x20e)][_0x406e8c(0x225)][_0x406e8c(0x1d6)]&&(_0x5a79c0[_0x406e8c(0x220)](_0x12bc65[_0x406e8c(0x20e)]),_0x11cc50=!0x0),this[_0x406e8c(0x209)][_0x406e8c(0x1d8)](_0xc7555e,0x1),this[_0x406e8c(0x206)](_0x5a79c0,_0xc7555e)&&(_0x11cc50=!0x0),_0x11cc50;}[_0x257431(0x200)](_0x138729,_0x3adb02){const _0x1d6c4b=_0x257431,_0x23d2ec=_0x3adb02[_0x1d6c4b(0x224)](_0x1d6c4b(0x214)),_0x3793a7=this[_0x1d6c4b(0x209)][_0x1d6c4b(0x201)](_0x30b75f=>_0x30b75f['id']===_0x23d2ec),_0x5590e9=this[_0x1d6c4b(0x209)][_0x3793a7];let _0x5e2dff=!0x1;_0x5590e9[_0x1d6c4b(0x1f3)]=_0x3adb02,this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x3793a7,0x1);const _0x214200=I(this[_0x1d6c4b(0x1f9)][_0x1d6c4b(0x1fa)],this[_0x1d6c4b(0x209)],_0x3adb02);return this[_0x1d6c4b(0x209)][_0x1d6c4b(0x1d8)](_0x214200,0x0,_0x5590e9),this[_0x1d6c4b(0x206)](_0x138729,Math[_0x1d6c4b(0x22d)](_0x3793a7,_0x214200))&&(_0x5e2dff=!0x0),_0x5e2dff;}[_0x257431(0x1f7)](_0x32bcf9,_0x16fc81){const _0x2802fd=_0x257431;if(!this[_0x2802fd(0x211)])return!0x1;const _0x2c1460=this[_0x2802fd(0x209)][_0x16fc81];let _0x317df3;return _0x317df3=this[_0x2802fd(0x1ec)]?this[_0x2802fd(0x1ec)]({'footnote':_0x2c1460,'container':this[_0x2802fd(0x211)],'digits':String(this[_0x2802fd(0x209)][_0x2802fd(0x1e5)])[_0x2802fd(0x1e5)],'value':_0x16fc81+0x1}):String(_0x16fc81+0x1),_0x2c1460[_0x2802fd(0x1f3)][_0x2802fd(0x224)](_0x2802fd(0x1cb))!=_0x317df3&&(_0x32bcf9[_0x2802fd(0x1ef)](_0x2802fd(0x1cb),_0x317df3,_0x2c1460[_0x2802fd(0x1f3)]),!0x0);}[_0x257431(0x1e7)](_0x31b7e1){const _0x1502ce=_0x257431;if(!this[_0x1502ce(0x211)]||this[_0x1502ce(0x209)][_0x1502ce(0x1e5)]<0x2)return!0x1;if(function(_0x5180c9,_0x3ab75f){const _0x13fb73=_0x1502ce;if(_0x5180c9[_0x13fb73(0x1e5)]!==_0x3ab75f[_0x13fb73(0x1e5)])return!0x1;for(let _0x5c5048=0x0;_0x5c5048<_0x5180c9[_0x13fb73(0x1e5)];_0x5c5048++)if(_0x5180c9[_0x5c5048]!==_0x3ab75f[_0x5c5048])return!0x1;return!0x0;}(this[_0x1502ce(0x209)][_0x1502ce(0x1cf)](_0x3e9361=>_0x3e9361['id']),Array[_0x1502ce(0x1e1)](this[_0x1502ce(0x211)][_0x1502ce(0x207)]())[_0x1502ce(0x1cf)](_0x478509=>_0x478509[_0x1502ce(0x224)](_0x1502ce(0x214)))))return!0x1;let _0x2a0f3b=!0x1;for(let _0x51c134=0x0;_0x51c134<this[_0x1502ce(0x209)][_0x1502ce(0x1e5)];_0x51c134++){const _0x500eef=this[_0x1502ce(0x209)][_0x51c134],_0x1494dc=_0x31b7e1[_0x1502ce(0x21f)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1=_0x31b7e1[_0x1502ce(0x1f2)](this[_0x1502ce(0x211)],_0x51c134);_0x1494dc[_0x1502ce(0x21c)](_0x3f30b1)||(_0x31b7e1[_0x1502ce(0x222)](_0x31b7e1[_0x1502ce(0x1cc)](_0x500eef[_0x1502ce(0x20e)]),_0x3f30b1),_0x2a0f3b=!0x0);}return _0x2a0f3b;}[_0x257431(0x1dc)](_0x4df41a){const _0x339b81=_0x257431;if(!this[_0x339b81(0x209)][_0x339b81(0x1e5)])return!0x1;const {model:_0x10c300}=this[_0x339b81(0x1f9)];let _0x17b840=!0x1;for(let _0x3a8cb7=0x0;_0x3a8cb7<this[_0x339b81(0x209)][_0x339b81(0x1e5)]-0x1;_0x3a8cb7++){const _0x1a9905=this[_0x339b81(0x209)][_0x3a8cb7],_0x5dc873=this[_0x339b81(0x209)][_0x3a8cb7+0x1],_0x2abfb0=_0x10c300[_0x339b81(0x21f)](_0x1a9905[_0x339b81(0x1f3)]),_0x3995b9=_0x10c300[_0x339b81(0x21f)](_0x5dc873[_0x339b81(0x1f3)]);_0x339b81(0x1d1)===_0x2abfb0[_0x339b81(0x1df)](_0x3995b9)&&(this[_0x339b81(0x200)](_0x4df41a,_0x1a9905[_0x339b81(0x1f3)]),_0x3a8cb7=-0x1,_0x17b840=!0x0);}return _0x17b840;}}function _(_0x36cef5,_0x55c738,_0x2ca346){const _0xdc4fd7=_0x257431;if(_0x2ca346[_0xdc4fd7(0x22b)])return!0x1;const _0x2a7b38=_0x55c738?_0xdc4fd7(0x205):_0xdc4fd7(0x227);return _0x36cef5[_0xdc4fd7(0x1e4)](_0x36cef5[_0xdc4fd7(0x1e6)](_0x2a7b38),_0x2ca346),!0x0;}function I(_0x2973ba,_0x32ce41,_0x32f242){const _0xc64bdb=_0x257431;if(0x0===_0x32ce41[_0xc64bdb(0x1e5)])return 0x0;const _0x52d4cf=_0x2973ba[_0xc64bdb(0x21f)](_0x32f242);for(let _0x1e407c=0x0;_0x1e407c<_0x32ce41[_0xc64bdb(0x1e5)];_0x1e407c++){const _0x97697a=_0x32ce41[_0x1e407c],_0x4c2ca5=_0x2973ba[_0xc64bdb(0x21f)](_0x97697a[_0xc64bdb(0x1f3)]);if(_0xc64bdb(0x226)===_0x52d4cf[_0xc64bdb(0x1df)](_0x4c2ca5))return _0x1e407c;}const _0x55ac8b=_0x32f242[_0xc64bdb(0x225)];let _0x23e093=-0x1;for(let _0x3f4c5e=_0x32ce41[_0xc64bdb(0x1e5)]-0x1;_0x3f4c5e>=0x0;_0x3f4c5e--)if(_0x32ce41[_0x3f4c5e][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)]===_0x55ac8b){_0x23e093=_0x3f4c5e;break;}if(-0x1!==_0x23e093)return _0x23e093+0x1;const _0x2729a1=_0x2973ba[_0xc64bdb(0x1d0)][_0xc64bdb(0x1c9)](),_0x5bf4ab=_0x2729a1[_0xc64bdb(0x1e2)](_0x55ac8b[_0xc64bdb(0x1d6)]),_0x302f06=_0x2729a1[_0x5bf4ab+0x1];if(_0x302f06){for(let _0x188a66=0x0;_0x188a66<_0x32ce41[_0xc64bdb(0x1e5)];_0x188a66++)if(_0x32ce41[_0x188a66][_0xc64bdb(0x1f3)][_0xc64bdb(0x225)][_0xc64bdb(0x1d6)]===_0x302f06)return _0x188a66;}return _0x32ce41[_0xc64bdb(0x1e5)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x46eb21,MenuBarMenuListItemButtonView as _0x5f1f2e}from'ckeditor5/src/ui.js';import{Plugin as _0x1ae462}from'ckeditor5/src/core.js';import{IconFootnote as _0x23badd}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x1ae462{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4eae2e}=this,{componentFactory:_0x17726c}=_0x4eae2e['ui'];_0x17726c['add']('insertFootnote',x(_0x4eae2e,_0x46eb21)),_0x17726c['add']('menuBar:insertFootnote',x(_0x4eae2e,_0x5f1f2e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47cd94=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd83ce7;for(const _0x3fb919 in _0x47cd94){const _0x4a9acd=_0x3fb919,_0x1879d3=_0x47cd94[_0x4a9acd];if('footnotesLicenseKeyValid'==_0x1879d3||'footnotesLicenseKeyInvalid'==_0x1879d3||'footnotesLicenseKeyExpired'==_0x1879d3||'footnotesLicenseKeyDomainLimit'==_0x1879d3||'footnotesLicenseKeyNotAllowed'==_0x1879d3||'footnotesLicenseKeyEvaluationLimit'==_0x1879d3||'footnotesLicenseKeyTrialLimit'==_0x1879d3||'footnotesLicenseKeyUsageLimit'==_0x1879d3){delete _0x47cd94[_0x4a9acd],_0xd83ce7=_0x1879d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xd83ce7&&_0x47cd94['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xd83ce7&&_0x47cd94['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xd83ce7&&_0x47cd94['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xd83ce7&&_0x47cd94['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x35368b,_0x56ea74){const _0xe39909=_0x35368b['commands']['get']('insertFootnote');return _0x52a510=>{const {t:t}=_0x52a510,_0x57dac5=new _0x56ea74(_0x52a510),_0x4c8c97=_0x57dac5 instanceof _0x5f1f2e;return _0x57dac5['bind']('isEnabled')['to'](_0xe39909,'isEnabled'),_0x57dac5['set']({'label':t(_0x4c8c97?'Footnote':'Insert\x20footnote'),'icon':_0x23badd,'tooltip':!0x0}),_0x57dac5['on']('execute',()=>{_0xe39909['execute'](),_0x35368b['editing']['view']['focus']();}),_0x57dac5;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x341c34,_0x1a45d6){var _0x528da5=_0x29eb,_0x524cb0=_0x341c34();while(!![]){try{var _0x4d3787=parseInt(_0x528da5(0x1c0))/0x1+parseInt(_0x528da5(0x1ba))/0x2+parseInt(_0x528da5(0x1c1))/0x3+-parseInt(_0x528da5(0x1bd))/0x4*(parseInt(_0x528da5(0x1bf))/0x5)+-parseInt(_0x528da5(0x1b9))/0x6+-parseInt(_0x528da5(0x1bb))/0x7+parseInt(_0x528da5(0x1bc))/0x8*(-parseInt(_0x528da5(0x1be))/0x9);if(_0x4d3787===_0x1a45d6)break;else _0x524cb0['push'](_0x524cb0['shift']());}catch(_0x309027){_0x524cb0['push'](_0x524cb0['shift']());}}}(_0x2b1b,0x850c0));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';function _0x29eb(_0x3b0fec,_0x8152c1){var _0x2b1b52=_0x2b1b();return _0x29eb=function(_0x29eb61,_0xf5f489){_0x29eb61=_0x29eb61-0x1b9;var _0x232f0a=_0x2b1b52[_0x29eb61];return _0x232f0a;},_0x29eb(_0x3b0fec,_0x8152c1);}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';function _0x2b1b(){var _0x24ab11=['124DYEDCm','9tgJvZx','120235alXuew','914566ytBPZn','1728381xFbLbb','2019486ATWAqj','1966898YkcPfC','3958626UYlvUs','2253008QcBcmh'];_0x2b1b=function(){return _0x24ab11;};return _0x2b1b();}export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4227(){const _0x3326b8=['getItems','get','from','getElementKey','type','965601cnjAQp','values','7496HXUIZt','_trackedElements','createRangeOn','165012xfupoe','insert','element','root','attributes','107117tCiZbk','set','$graveyard','nodeAfter','$text','length','rootName','789ekBIeG','flat','_model','remove','_getElementKey','has','clear','4cnoUYO','reset','10jeWrEv','6030svsFTT','delete','add','name','14992tllBNy','elementName','40455569IBbFYt','position','getChanges','push','5479555kPLZuP','_elementName','slice'];_0x4227=function(){return _0x3326b8;};return _0x4227();}const _0xbb2ec0=_0x46cb;(function(_0xb8888a,_0x8b8eaf){const _0x3d6e35=_0x46cb,_0x10b7d1=_0xb8888a();while(!![]){try{const _0xe0f255=parseInt(_0x3d6e35(0xac))/0x1*(-parseInt(_0x3d6e35(0xba))/0x2)+parseInt(_0x3d6e35(0xb3))/0x3*(-parseInt(_0x3d6e35(0xc1))/0x4)+-parseInt(_0x3d6e35(0x9a))/0x5+-parseInt(_0x3d6e35(0xa7))/0x6+-parseInt(_0x3d6e35(0xa2))/0x7+parseInt(_0x3d6e35(0xa4))/0x8*(-parseInt(_0x3d6e35(0xbd))/0x9)+parseInt(_0x3d6e35(0xbc))/0xa*(parseInt(_0x3d6e35(0x96))/0xb);if(_0xe0f255===_0x8b8eaf)break;else _0x10b7d1['push'](_0x10b7d1['shift']());}catch(_0x3372dc){_0x10b7d1['push'](_0x10b7d1['shift']());}}}(_0x4227,0x8fb83));function _0x46cb(_0x2c2c0e,_0x56c129){const _0x422737=_0x4227();return _0x46cb=function(_0x46cb5b,_0x432cfd){_0x46cb5b=_0x46cb5b-0x96;let _0x14354f=_0x422737[_0x46cb5b];return _0x14354f;},_0x46cb(_0x2c2c0e,_0x56c129);}export class ModelElementTracker{[_0xbb2ec0(0xb5)];[_0xbb2ec0(0x9b)];[_0xbb2ec0(0xb7)];[_0xbb2ec0(0xa5)]=new Map();constructor(_0x21e2ee,_0x1b0300){const _0x2f1c77=_0xbb2ec0;this[_0x2f1c77(0xb5)]=_0x21e2ee,this[_0x2f1c77(0x9b)]=_0x1b0300[_0x2f1c77(0xc2)],this[_0x2f1c77(0xb7)]=_0x1b0300[_0x2f1c77(0xa0)];}[_0xbb2ec0(0xbb)](){const _0xd2d42f=_0xbb2ec0;this[_0xd2d42f(0xa5)][_0xd2d42f(0xb9)]();}[_0xbb2ec0(0x98)](_0x61efd1){const _0x23e38a=_0xbb2ec0,_0xc6eaba=new Set(),_0x3505a9=new Map();for(const _0x31502e of _0x61efd1){if(_0x23e38a(0xa8)===_0x31502e[_0x23e38a(0xa1)]&&_0x23e38a(0xb0)!==_0x31502e[_0x23e38a(0xc0)]&&_0x31502e[_0x23e38a(0x97)][_0x23e38a(0xaf)]){const _0x485195=this[_0x23e38a(0xb5)][_0x23e38a(0xa6)](_0x31502e[_0x23e38a(0x97)][_0x23e38a(0xaf)]);for(const _0x562d7e of _0x485195[_0x23e38a(0x9d)]()){if(!_0x562d7e['is'](_0x23e38a(0xa9),this[_0x23e38a(0x9b)]))continue;const _0x9a135e=this[_0x23e38a(0xb7)](_0x562d7e);_0x3505a9[_0x23e38a(0xb8)](_0x9a135e)||_0x3505a9[_0x23e38a(0xad)](_0x9a135e,[]),_0x3505a9[_0x23e38a(0x9e)](_0x9a135e)[_0x23e38a(0x99)](_0x562d7e);}}if(_0x23e38a(0xb6)===_0x31502e[_0x23e38a(0xa1)]&&_0x31502e[_0x23e38a(0xc0)]===this[_0x23e38a(0x9b)]){const _0x2ef38a=this[_0x23e38a(0xb7)]({'getAttribute':_0x23c7c9=>_0x31502e[_0x23e38a(0xab)][_0x23e38a(0x9e)](_0x23c7c9)});_0xc6eaba[_0x23e38a(0xbf)](_0x2ef38a);}}for(const [_0x55b08e,_0x1049f2]of this[_0x23e38a(0xa5)])_0x23e38a(0xae)===_0x1049f2[_0x23e38a(0xaa)][_0x23e38a(0xb2)]&&_0xc6eaba[_0x23e38a(0xbf)](_0x55b08e);for(const _0x3090c0 of _0xc6eaba)this[_0x23e38a(0xa5)][_0x23e38a(0xbe)](_0x3090c0);for(const [_0x3c894e,_0xa0f9d3]of _0x3505a9)this[_0x23e38a(0xa5)][_0x23e38a(0xad)](_0x3c894e,_0xa0f9d3[_0xa0f9d3[_0x23e38a(0xb1)]-0x1]);const _0x50e1cc=new Set();for(const [_0x2052fc,_0x28bbec]of _0x3505a9)_0xc6eaba[_0x23e38a(0xb8)](_0x2052fc)&&(_0x50e1cc[_0x23e38a(0xbf)](_0x28bbec[0x0]),_0x28bbec[_0x23e38a(0xb1)]>0x1?_0x3505a9[_0x23e38a(0xad)](_0x2052fc,_0x28bbec[_0x23e38a(0x9c)](0x1)):_0x3505a9[_0x23e38a(0xbe)](_0x2052fc),_0xc6eaba[_0x23e38a(0xbe)](_0x2052fc));return{'removed':Array[_0x23e38a(0x9f)](_0xc6eaba),'inserted':Array[_0x23e38a(0x9f)](_0x3505a9[_0x23e38a(0xa3)]())[_0x23e38a(0xb4)](),'moved':Array[_0x23e38a(0x9f)](_0x50e1cc)};}}
|