@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251201.0 → 0.0.0-nightly-20251202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- 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 _0x160e2f}from'ckeditor5/src/core.js';import{isWidget as _0x34289c,toWidget as _0x1f1d46,toWidgetEditable as _0x10d691}from'ckeditor5/src/widget.js';import{uid as _0x809e8a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x27bf2f,ClickObserver as _0x250198}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x33a285}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x131fd3}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x160e2f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x33a285];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x205a03}=this;_0x205a03['config']['define']('footnotes.multiBlock',!0x0),_0x205a03['commands']['add']('insertFootnote',new _0x131fd3(_0x205a03)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xf48d4){const _0x15d431=_0x3042d9([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]),_0x4593b8=0x47a28506,_0x597cf4=0x47a5ffae^_0x4593b8,_0x537c83=window[_0x3042d9([0x44,0x61,0x74,0x65])][_0x3042d9([0x6e,0x6f,0x77])](),_0x18e6e3=_0xf48d4[_0x3042d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53fed8=new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14bcf0=>{_0x18e6e3[_0x3042d9([0x6f,0x6e,0x63,0x65])](_0x3042d9([0x72,0x65,0x61,0x64,0x79]),_0x14bcf0);}),_0x52b67e={[_0x3042d9([0x6b,0x74,0x79])]:_0x3042d9([0x45,0x43]),[_0x3042d9([0x75,0x73,0x65])]:_0x3042d9([0x73,0x69,0x67]),[_0x3042d9([0x63,0x72,0x76])]:_0x3042d9([0x50,0x2d,0x32,0x35,0x36]),[_0x3042d9([0x78])]:_0x3042d9([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]),[_0x3042d9([0x79])]:_0x3042d9([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]),[_0x3042d9([0x61,0x6c,0x67])]:_0x3042d9([0x45,0x53,0x32,0x35,0x36])},_0x55a8bb=_0x18e6e3[_0x3042d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3042d9([0x67,0x65,0x74])](_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15218c(){let _0x4daf33,_0x24fe15=null,_0x1a60e5=null;try{if(_0x55a8bb==_0x3042d9([0x47,0x50,0x4c]))return _0x3042d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4daf33=_0x14a559(),!_0x4daf33)return _0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4daf33[_0x3042d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a60e5=_0x1a479e(_0x4daf33[_0x3042d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4daf33[_0x3042d9([0x6a,0x74,0x69])])),await _0x4ca953()?_0x33e035()?_0xb47bf6()?_0x3042d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ea38f()?(_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3042d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24fe15=_0x2984b4(_0x3042d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3042d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x24fe15=_0x2984b4(_0x3042d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x553f0d()):_0x3042d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3042d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb47bf6(){const _0x4e7ee0=[_0x3042d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3042d9([0x74,0x72,0x69,0x61,0x6c])][_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x537c83/0x3e8:0xe10*_0x597cf4;return _0x4daf33[_0x3042d9([0x65,0x78,0x70])]<_0x4e7ee0;}function _0x33e035(){const _0x5ead84=_0x4daf33[_0x3042d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ead84&&(!!_0x5ead84[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x2a]))||!!_0x5ead84[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x46,0x4f,0x4f])));}function _0x5ea38f(){const _0x365c42=_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365c42||0x0==_0x365c42[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38e814}=new URL(window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365c42[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38e814))return!0x0;const _0x47333e=_0x38e814[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e]));return _0x365c42[_0x3042d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x74405e=>_0x74405e[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x2a])))[_0x3042d9([0x6d,0x61,0x70])](_0x3ba425=>_0x3ba425[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e])))[_0x3042d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x446901=>_0x446901[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47333e[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3042d9([0x6d,0x61,0x70])](_0x22f95b=>Array(_0x47333e[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22f95b[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3042d9([0x66,0x69,0x6c,0x6c])](_0x22f95b[0x0]===_0x3042d9([0x2a])?_0x3042d9([0x2a]):'')[_0x3042d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22f95b))[_0x3042d9([0x73,0x6f,0x6d,0x65])](_0x585b6e=>_0x47333e[_0x3042d9([0x65,0x76,0x65,0x72,0x79])]((_0x21d7d2,_0xe743d1)=>_0x585b6e[_0xe743d1]===_0x21d7d2||_0x585b6e[_0xe743d1]===_0x3042d9([0x2a])));}function _0x553f0d(){return _0x24fe15&&_0x1a60e5?new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ec47,_0x2bc170)=>{_0x24fe15[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x53ec47,_0x2bc170),_0x1a60e5[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x383588=>{_0x383588!=_0x3042d9([0x56,0x61,0x6c,0x69,0x64])&&_0x53ec47(_0x383588);},_0x2bc170);}):_0x24fe15||_0x1a60e5||_0x3042d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a479e(_0x1e0fab,_0x31c14b){return new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58e7fd=>{if(_0x412691())return _0x58e7fd(_0x3042d9([0x56,0x61,0x6c,0x69,0x64]));_0x366c08(),_0x18e6e3[_0x3042d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5269fe=!0x1;const _0x4b5fb3=_0x809e8a();function _0x27f694(_0x510f2b){return!!_0x510f2b&&(typeof _0x510f2b===_0x3042d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x510f2b===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x510f2b[_0x3042d9([0x74,0x68,0x65,0x6e])]===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x510f2b[_0x3042d9([0x63,0x61,0x74,0x63,0x68])]===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a7749(_0x2fcabb){_0x2b9511(_0x2fcabb)[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x151325=>{if(!_0x151325||_0x151325[_0x3042d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3042d9([0x6f,0x6b]))return _0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x353b18(_0x4163e7(_0x4b5fb3+_0x31c14b))!=_0x151325[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3042d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x18067f=>(_0x1aef67(),_0x18067f),()=>{const _0x3b7aa5=_0x1159a5();return null==_0x3b7aa5?(_0x1aef67(),_0x3042d9([0x56,0x61,0x6c,0x69,0x64])):_0x3042d9(_0x537c83-_0x3b7aa5>(0x63ae0106^_0x4593b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x58e7fd)[_0x3042d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1543b7=0x47946b86^_0x4593b8;function _0x1aef67(){const _0x2769e7=_0x3042d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b18(_0x4163e7(_0x1e0fab)),_0x46ef58=_0x5c0fca(_0x353b18(window[_0x3042d9([0x4d,0x61,0x74,0x68])][_0x3042d9([0x63,0x65,0x69,0x6c])](_0x537c83/_0x1543b7)));window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3042d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2769e7,_0x46ef58);}function _0x1159a5(){const _0x27987c=_0x3042d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b18(_0x4163e7(_0x1e0fab)),_0x4644f8=window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3042d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27987c);return _0x4644f8?window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0fca(_0x4644f8),0x10)*_0x1543b7:null;}function _0x2b9511(_0x433dfa){return new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e44bb,_0x383304)=>{_0x433dfa[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x4e44bb,_0x383304),window[_0x3042d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x383304,0x47a351c6^_0x4593b8);});}}_0x18e6e3[_0x3042d9([0x6f,0x6e])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506a3f,_0x4ade10)=>{if(_0x4ade10[0x0]!=_0x1e0fab)return _0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ade10[0x1]={..._0x4ade10[0x1],[_0x3042d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b5fb3};},{[_0x3042d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3042d9([0x68,0x69,0x67,0x68])}),_0x18e6e3[_0x3042d9([0x6f,0x6e])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xedcd7=>{_0x27f694(_0xedcd7[_0x3042d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5269fe=!0x0,_0x2a7749(_0xedcd7[_0x3042d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3042d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3042d9([0x6c,0x6f,0x77])}),_0x53fed8[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>{_0x5269fe||_0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x412691(){return _0x18e6e3[_0x3042d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3042d9([0x76,0x69,0x65,0x77])][_0x3042d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3042d9([0x61,0x75,0x74,0x6f]);}function _0x366c08(){_0x18e6e3[_0x3042d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3042d9([0x76,0x69,0x65,0x77])][_0x3042d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3042d9([0x61,0x75,0x74,0x6f]);}}function _0x2984b4(_0x5175f8){const _0x13ed3e=[new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b150=>setTimeout(_0x43b150,0x47abbbca^_0x4593b8)),_0x53fed8[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1015be=>{let _0x48388c=0x0;_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x6f,0x6e])](_0x3042d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2199b6,_0x4a034b)=>{_0x4a034b[0x0][_0x3042d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48388c++,_0x48388c==(0x47a284fe^_0x4593b8)&&(_0x1015be(),_0x2199b6[_0x3042d9([0x6f,0x66,0x66])]());});}))];return window[_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3042d9([0x72,0x61,0x63,0x65])](_0x13ed3e)[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>_0x5175f8);}async function _0xd325fc(){await _0x53fed8,_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x237f9d,_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x237f9d,_0x18e6e3[_0x3042d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d6ff3(_0x563755){const _0x5f1656=_0x2c52f8();_0x18e6e3[_0x5f1656]=_0x3042d9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x563755,_0x563755!=_0x3042d9([0x56,0x61,0x6c,0x69,0x64])&&_0xd325fc();}function _0x2c52f8(){const _0x21b3de=window[_0x3042d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3042d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3042d9([0x6e,0x6f,0x77])]())[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3042d9([0x2e]),'');let _0x3c93b6=_0x3042d9([0x75]);for(let _0x2f1563=0x0;_0x2f1563<_0x21b3de[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1563+=0x2){let _0x558520=window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21b3de[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f1563,_0x2f1563+0x2));_0x558520>=_0x15d431[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x558520-=_0x15d431[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c93b6+=_0x15d431[_0x558520];}return _0x3c93b6;}function _0x14a559(){const _0x1d67a4=_0x55a8bb[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e]));if(0x3!=_0x1d67a4[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dfd97(_0x1d67a4[0x1]);function _0x2dfd97(_0x52d863){const _0x587e90=_0x301149(_0x52d863);return _0x587e90&&_0x1b77ea()?_0x587e90:null;function _0x1b77ea(){const _0x35f123=_0x587e90[_0x3042d9([0x6a,0x74,0x69])],_0x464b0b=window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f123[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f123[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bb7a2={..._0x587e90,[_0x3042d9([0x6a,0x74,0x69])]:_0x35f123[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35f123[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bb7a2[_0x3042d9([0x76,0x63])],_0x4163e7(_0x4bb7a2)==_0x464b0b;}}}async function _0x4ca953(){let _0xf89a1a=!0x0;try{const _0x4fcca3=_0x55a8bb[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e])),[_0x12f011,_0x4f0462,_0x5dfbcc]=_0x4fcca3;return _0x4c83b5(_0x12f011),await _0x24c337(_0x12f011,_0x4f0462,_0x5dfbcc),_0xf89a1a;}catch{return!0x1;}function _0x4c83b5(_0x632e49){const _0x29e1a2=_0x301149(_0x632e49);_0x29e1a2&&_0x29e1a2[_0x3042d9([0x61,0x6c,0x67])]==_0x3042d9([0x45,0x53,0x32,0x35,0x36])||(_0xf89a1a=!0x1);}async function _0x24c337(_0x2302c8,_0xe702c0,_0x4eca56){const _0x1a946c=window[_0x3042d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3042d9([0x66,0x72,0x6f,0x6d])](_0x522f6e(_0x4eca56),_0xb23430=>_0xb23430[_0x3042d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b3ebd=new window[(_0x3042d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3042d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2302c8+_0x3042d9([0x2e])+_0xe702c0),_0x4f8111=window[_0x3042d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3042d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f8111)return;const _0x3e9448=await _0x4f8111[_0x3042d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3042d9([0x6a,0x77,0x6b]),_0x52b67e,{[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x45,0x43,0x44,0x53,0x41]),[_0x3042d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3042d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f8111[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x45,0x43,0x44,0x53,0x41]),[_0x3042d9([0x68,0x61,0x73,0x68])]:{[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e9448,_0x1a946c,_0x1b3ebd)||(_0xf89a1a=!0x1);}}function _0x301149(_0x1d609e){return _0x1d609e[_0x3042d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3042d9([0x65,0x79]))?JSON[_0x3042d9([0x70,0x61,0x72,0x73,0x65])](_0x522f6e(_0x1d609e)):null;}function _0x522f6e(_0xfcfe31){return window[_0x3042d9([0x61,0x74,0x6f,0x62])](_0xfcfe31[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3042d9([0x2b]))[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3042d9([0x2f])));}function _0x4163e7(_0x1093c4){let _0xe0e94f=0x1505;function _0x587fab(_0x502c01){for(let _0x1b0118=0x0;_0x1b0118<_0x502c01[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b0118++){const _0x54a1d5=_0x502c01[_0x3042d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b0118);_0xe0e94f=(_0xe0e94f<<0x5)+_0xe0e94f+_0x54a1d5,_0xe0e94f&=_0xe0e94f;}}function _0x46f387(_0x96d754){Array[_0x3042d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x96d754)?_0x96d754[_0x3042d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46f387):_0x96d754&&typeof _0x96d754==_0x3042d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3042d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x96d754)[_0x3042d9([0x73,0x6f,0x72,0x74])]()[_0x3042d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d8249,_0x5934c8])=>{_0x587fab(_0x1d8249),_0x46f387(_0x5934c8);}):_0x587fab(window[_0x3042d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x96d754));}return _0x46f387(_0x1093c4),_0xe0e94f>>>0x0;}function _0x353b18(_0x2267bc){return _0x2267bc[_0x3042d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3042d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3042d9([0x30]));}function _0x5c0fca(_0x8c04f){return _0x8c04f[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3042d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3042d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x237f9d(){}function _0x3042d9(_0xed197d){return _0xed197d['map'](_0x5b9f71=>String['fromCharCode'](_0x5b9f71))['join']('');}_0x3d6ff3(await _0x15218c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2caff5){const {plugins:_0x3c7eea,editing:_0x42dd57,model:_0x4222c5}=this['editor'],_0x246ec4=_0x3c7eea['get'](_0x33a285)['getFootnote'](_0x2caff5);return!!_0x246ec4&&(_0x4222c5['change'](_0x19c9a3=>{_0x19c9a3['setSelection'](_0x19c9a3['createPositionAt'](_0x246ec4['definition'],'end'));}),_0x42dd57['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5d2f6e){const {plugins:_0x4d602e,editing:_0x27d510,model:_0x2ce37b}=this['editor'],_0x5845fb=_0x4d602e['get'](_0x33a285)['getFootnote'](_0x5d2f6e);return!!_0x5845fb&&(_0x2ce37b['change'](_0x5ced24=>{_0x5ced24['setSelection'](_0x5845fb['reference'],'on');}),_0x27d510['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4b9e0d}=this['editor']['model'],_0x3786fd=this['editor']['config']['get']('footnotes.multiBlock');_0x4b9e0d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4b9e0d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4b9e0d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3786fd?_0x4b9e0d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4b9e0d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4b9e0d['addChildCheck'](_0x22fa41=>{for(const _0x1f98de of _0x22fa41)if('footnoteDefinition'===_0x1f98de['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x48d6d5}=this,{conversion:_0x1aa54b,editing:_0x474fd0}=_0x48d6d5,{t:t}=_0x48d6d5['locale'];_0x1aa54b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x878677,{writer:_0x22bbf3,consumable:_0x3ea0f8})=>{const _0xb7a565=_0x878677['getChild'](0x0);if(!_0xb7a565||!_0xb7a565['is']('element','a'))return null;const _0x4d097a=_0xb7a565['getAttribute']('href')||'';if(!_0x4d097a['startsWith']('#'))return null;const _0x3b83c3=_0x4d097a['replace'](/^#/,'');if(!_0x3b83c3)return null;_0x3ea0f8['consume'](_0xb7a565,{'name':!0x0,'attributes':['href']});for(const {item:_0xb8f2bd}of _0x474fd0['view']['createRangeIn'](_0xb7a565))_0xb8f2bd['is']('$textProxy')?_0x3ea0f8['consume'](_0xb8f2bd['textNode'],{'name':!0x0}):_0xb8f2bd['is']('element')&&_0x3ea0f8['consume'](_0xb8f2bd,{'name':!0x0});return _0x22bbf3['createElement']('footnoteRef',{'footnoteId':_0x3b83c3});}}),_0x1aa54b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x171ff,{writer:_0x39e5c5})=>D(_0x171ff,_0x39e5c5)}),_0x1aa54b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4fb89f,{writer:_0x4ceb9e})=>{const _0x42c0ed=_0x4fb89f['getAttribute']('footnoteCounter');return _0x1f1d46(D(_0x4fb89f,_0x4ceb9e),_0x4ceb9e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x42c0ed)});}});}['_defineDefinitionsConverters'](){const {editor:_0x461263}=this,{t:t}=_0x461263['locale'],{conversion:_0x599b6d}=_0x461263;_0x599b6d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x599b6d['for']('upcast')['add'](_0x359f50=>{_0x359f50['on']('element:ol',(_0x243e58,_0x38d0f7,_0x3cfdc4)=>{const _0x1e556c=_0x38d0f7['viewItem'];if(!_0x1e556c['hasClass']('footnotes-list')||!_0x38d0f7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3cfdc4['consumable']['consume'](_0x1e556c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1b4b57,modelCursor:_0x184465}=_0x3cfdc4['convertChildren'](_0x38d0f7['viewItem'],_0x38d0f7['modelCursor']);_0x38d0f7['modelRange']=_0x1b4b57,_0x38d0f7['modelCursor']=_0x184465;}),_0x359f50['on']('element:hr',(_0x54d075,_0xdcebfa,_0x22d12f)=>{const _0x421224=_0xdcebfa['viewItem'];_0x421224['hasClass']('footnotes-divider')&&_0xdcebfa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x22d12f['consumable']['consume'](_0x421224,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x599b6d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1204fd,{writer:_0x56ac27})=>v(_0x56ac27)}),_0x599b6d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x15fec8,{writer:_0x11b2dc})=>{const _0x14cc77=v(_0x11b2dc,{'data-footnotes-list-label':t('Footnotes')}),_0x5d6a31=_0x1f1d46(_0x14cc77,_0x11b2dc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x11b2dc['setCustomProperty']('footnotesDefinitions',!0x0,_0x5d6a31),_0x5d6a31;}});}['_defineDefinitionConverters'](){const {editor:_0x27a60b}=this,{conversion:_0x48b239,locale:_0xe96b1e}=_0x27a60b,_0x1b7a54=_0x27a60b['config']['get']('footnotes.multiBlock');_0x48b239['for']('upcast')['add'](_0x5b5174=>{_0x5b5174['on']('element:li',(_0x8e9bb3,_0x39c194,_0x1e6bf0)=>{const _0x1f7b23=_0x39c194['viewItem'];if(!_0x1f7b23['hasClass']('footnote-definition')||!_0x1f7b23['getAttribute']('id'))return;const _0x16ed57=_0x1f7b23['parent'];if(!_0x16ed57['is']('element','ol')||!_0x16ed57['hasClass']('footnotes-list'))return;if(!_0x1e6bf0['consumable']['test'](_0x1f7b23,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x30e8ad=_0x1e6bf0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1f7b23['getAttribute']('id')});if(!_0x1e6bf0['safeInsert'](_0x30e8ad,_0x39c194['modelCursor']))return;_0x1e6bf0['consumable']['consume'](_0x1f7b23,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xc90ca3=Array['from'](_0x1f7b23['getChildren']())['find'](_0x4931e3=>_0x4931e3['is']('element')&&_0x4931e3['hasClass']('footnote-content'));for(const _0xfe601a of _0x1f7b23['getChildren']())_0xfe601a['is']('element')&&(_0x1e6bf0['consumable']['consume'](_0xfe601a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1e6bf0['consumable']['consume'](_0xfe601a,{'name':!0x0,'classes':'footnote-content'}));if(_0xc90ca3){if(_0x1b7a54)_0x1e6bf0['convertChildren'](_0xc90ca3,_0x30e8ad);else{const _0x1abce5=_0x1e6bf0['writer']['createElement']('footnoteInlineContent');_0x1e6bf0['writer']['insert'](_0x1abce5,_0x30e8ad),_0x1e6bf0['convertChildren'](_0xc90ca3,_0x1abce5);}}_0x1e6bf0['updateConversionResult'](_0x30e8ad,_0x39c194);});}),_0x48b239['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5370c8,{writer:_0x11506a})=>b(_0x5370c8,_0x11506a,_0xe96b1e,{'dataPipeline':!0x0})}),_0x48b239['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x460d42,{writer:_0x37a79e})=>b(_0x460d42,_0x37a79e,_0xe96b1e)});}['_defineBogusParagraphConverters'](){const {editor:_0x42b6e4}=this,{conversion:_0x85fe5e}=_0x42b6e4;_0x42b6e4['config']['get']('footnotes.multiBlock')?(_0x85fe5e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x85fe5e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x42b6e4['model']['document'],'change:data',()=>{!function(_0xdda8bd,_0x1e0de1){const _0x5a6bc4=_0xdda8bd['document']['differ'],_0x4078db=new Set();for(const _0x1f1ae3 of _0x5a6bc4['getChanges']()){const _0x1e7021='attribute'==_0x1f1ae3['type']?_0x1f1ae3['range']['start']['parent']:_0x1f1ae3['position']['parent'];_0x1e7021['is']('element','footnoteDefinition')&&_0x4078db['add'](_0x1e7021);}for(const _0x524cc2 of _0x4078db['values']()){const _0xa74e58=Array['from'](_0x524cc2['getChildren']())['filter'](_0x48e3a6=>g(_0x48e3a6,_0x1e0de1['mapper']));for(const _0x543606 of _0xa74e58)_0x1e0de1['reconvertItem'](_0x543606);}}(_0x42b6e4['model'],_0x42b6e4['editing']);})):(_0x85fe5e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x85fe5e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4ca951,{writer:_0x29ed5f})=>{const _0x1499a5=_0x29ed5f['createContainerElement']('span');return _0x29ed5f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1499a5),_0x1499a5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x562b6f}=this,{editing:_0x418379,t:t}=_0x562b6f,_0x5a51d1=_0x562b6f['model']['document']['selection'];_0x562b6f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x562b6f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x418379['view']['document'],'enter',(_0x24102a,_0x585aba)=>{const _0x53ce9c=function(_0x1b4e4d){const _0x4cbfbd=_0x1b4e4d['getSelectedElement']();if(_0x4cbfbd?.['is']('element','footnoteRef'))return _0x4cbfbd;return null;}(_0x5a51d1);if(_0x53ce9c){const _0x2027db=_0x53ce9c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2027db),_0x585aba['preventDefault'](),_0x24102a['stop']();}},{'context':_0x34289c});}['_defineClickHandlers'](){const {editor:_0x11e666}=this,{editing:_0x24c2fb}=_0x11e666;_0x11e666['editing']['view']['addObserver'](_0x27bf2f),_0x11e666['editing']['view']['addObserver'](_0x250198);let _0x4a0550=!0x1;this['listenTo'](_0x24c2fb['view']['document'],'pointerdown',(_0x571116,_0x434ba8)=>{const {target:_0x56acf6}=_0x434ba8,_0x308014=_0x24c2fb['view']['document']['selection'];_0x4a0550=!!(_0x56acf6?.['is']('element','a')&&_0x56acf6['parent']?.['is']('element','sup')&&_0x56acf6['parent']['hasClass']('footnote'))&&_0x308014['getSelectedElement']()===_0x56acf6['parent'];},{'priority':'high'}),this['listenTo'](_0x24c2fb['view']['document'],'click',(_0x3ef87c,_0x110371)=>{const {target:_0x878980}=_0x110371;if(!_0x878980?.['is']('element','a'))return;if(_0x878980['parent']?.['is']('element','sup')&&_0x878980['parent']['hasClass']('footnote')&&!_0x4a0550)return void _0x110371['preventDefault']();let _0xad8d20=_0x878980['getAttribute']('href');if(!_0xad8d20?.['startsWith']('#'))return;_0xad8d20=_0xad8d20['slice'](0x1);let _0x300949=!0x1;(_0xad8d20['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xad8d20['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xad8d20))&&(_0x300949=!0x0),_0x300949&&(_0x110371['preventDefault'](),_0x3ef87c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x20ccc6}={}){return(_0x117ff9,{writer:_0xc828b3})=>{if(!p(_0x117ff9))return null;if(!_0x20ccc6)return _0xc828b3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4591e3=_0xc828b3['createContainerElement']('p');return _0xc828b3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4591e3),_0x4591e3;};}function p(_0x59d5e9){const {parent:_0x1102df}=_0x59d5e9;if(!_0x1102df?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1102df['childCount'])return!0x1;for(const _0x5d8844 of _0x59d5e9['getAttributeKeys']())if(!_0x5d8844['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5d8844)return!0x1;return!0x0;}function g(_0x315796,_0x134929){if(!_0x315796['is']('element','paragraph'))return!0x1;const _0x37f427=_0x134929['toViewElement'](_0x315796);return!!_0x37f427&&p(_0x315796)!==_0x37f427['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2bd605){return _0x34289c(_0x2bd605)&&_0x2bd605['is']('containerElement')&&!!_0x2bd605['getCustomProperty']('footnotesDefinitions');}function v(_0x5b597d,_0x52d383={}){const _0x46dcd6=_0x5b597d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x264d4b=_0x5b597d['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b597d['createSlot']());return _0x5b597d['createContainerElement']('div',{'class':'footnotes',..._0x52d383},[_0x46dcd6,_0x264d4b]);}function D(_0x32499b,_0x3645fa){const _0x57ac29=_0x32499b['getAttribute']('footnoteId'),_0x1a97c1=_0x32499b['getAttribute']('footnoteCounter'),_0x197204=_0x3645fa['createUIElement']('a',{'href':'#'+_0x57ac29},function(_0x25a2b0){const _0x366c03=this['toDomElement'](_0x25a2b0);return _0x366c03['textContent']=_0x1a97c1,_0x366c03;}),_0x4383ef=_0x3645fa['createContainerElement']('sup',{'id':'ref-'+_0x57ac29,'class':'footnote'},[_0x197204]);return _0x4383ef['getFillerOffset']=()=>null,_0x4383ef;}function b(_0x1dfd43,_0x4f2455,_0x298a0d,{dataPipeline:_0x1ebee1}={}){const {t:t}=_0x298a0d,_0x1422b5=_0x1dfd43['getAttribute']('footnoteId'),_0x3eb492=_0x4f2455['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1422b5},function(_0x45adfa){const _0x3e228c=this['toDomElement'](_0x45adfa);return _0x3e228c['innerText']='^',_0x3e228c;}),_0x3e0990=_0x1ebee1?_0x4f2455['createContainerElement']('div',{'class':'footnote-content'}):_0x10d691(_0x4f2455['createEditableElement']('div',{'class':'footnote-content'}),_0x4f2455,{'label':t('Footnote\x20content.')});return _0x4f2455['insert'](_0x4f2455['createPositionAt'](_0x3e0990,0x0),_0x4f2455['createSlot']()),_0x4f2455['createContainerElement']('li',{'class':'footnote-definition','id':_0x1422b5},[_0x3eb492,_0x3e0990]);}
|
|
23
|
+
import{Plugin as _0x409077}from'ckeditor5/src/core.js';import{isWidget as _0x2f2ec5,toWidget as _0x23a66c,toWidgetEditable as _0x5059fc}from'ckeditor5/src/widget.js';import{uid as _0x42c879}from'ckeditor5/src/utils.js';import{PointerObserver as _0x14c5ed,ClickObserver as _0x3896ac}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1a4b4b}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x26f1c5}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x409077{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1a4b4b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2fbf62}=this;_0x2fbf62['config']['define']('footnotes.multiBlock',!0x0),_0x2fbf62['commands']['add']('insertFootnote',new _0x26f1c5(_0x2fbf62)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1406fb){const _0x49f3f6=_0x9a29f7([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]),_0x2dba42=0x47a28506,_0x368115=0x47a5ffc6^_0x2dba42,_0x470118=window[_0x9a29f7([0x44,0x61,0x74,0x65])][_0x9a29f7([0x6e,0x6f,0x77])](),_0x100ff5=_0x1406fb[_0x9a29f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42bfa7=new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4a2f=>{_0x100ff5[_0x9a29f7([0x6f,0x6e,0x63,0x65])](_0x9a29f7([0x72,0x65,0x61,0x64,0x79]),_0x4f4a2f);}),_0x2bb2d6={[_0x9a29f7([0x6b,0x74,0x79])]:_0x9a29f7([0x45,0x43]),[_0x9a29f7([0x75,0x73,0x65])]:_0x9a29f7([0x73,0x69,0x67]),[_0x9a29f7([0x63,0x72,0x76])]:_0x9a29f7([0x50,0x2d,0x32,0x35,0x36]),[_0x9a29f7([0x78])]:_0x9a29f7([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]),[_0x9a29f7([0x79])]:_0x9a29f7([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]),[_0x9a29f7([0x61,0x6c,0x67])]:_0x9a29f7([0x45,0x53,0x32,0x35,0x36])},_0x5ab7d0=_0x100ff5[_0x9a29f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9a29f7([0x67,0x65,0x74])](_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53bfbf(){let _0x434134,_0x5d918f=null,_0x33b883=null;try{if(_0x5ab7d0==_0x9a29f7([0x47,0x50,0x4c]))return _0x9a29f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x434134=_0x5036ef(),!_0x434134)return _0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x434134[_0x9a29f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33b883=_0x5ba09d(_0x434134[_0x9a29f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x434134[_0x9a29f7([0x6a,0x74,0x69])])),await _0x246bbf()?_0x32a715()?_0x1f1e26()?_0x9a29f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd23f07()?(_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a29f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d918f=_0x33772b(_0x9a29f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9a29f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d918f=_0x33772b(_0x9a29f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5fe3b1()):_0x9a29f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9a29f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9a29f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f1e26(){const _0x34c9fc=[_0x9a29f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9a29f7([0x74,0x72,0x69,0x61,0x6c])][_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x470118/0x3e8:0xe10*_0x368115;return _0x434134[_0x9a29f7([0x65,0x78,0x70])]<_0x34c9fc;}function _0x32a715(){const _0x171bc0=_0x434134[_0x9a29f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x171bc0&&(!!_0x171bc0[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x2a]))||!!_0x171bc0[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x46,0x4f,0x4f])));}function _0xd23f07(){const _0x257780=_0x434134[_0x9a29f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257780||0x0==_0x257780[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6865b9}=new URL(window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x257780[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6865b9))return!0x0;const _0x5b44ca=_0x6865b9[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e]));return _0x257780[_0x9a29f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x412e69=>_0x412e69[_0x9a29f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a29f7([0x2a])))[_0x9a29f7([0x6d,0x61,0x70])](_0x1b7b15=>_0x1b7b15[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e])))[_0x9a29f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f2c5e=>_0x2f2c5e[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b44ca[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a29f7([0x6d,0x61,0x70])](_0xe63ffd=>Array(_0x5b44ca[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe63ffd[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9a29f7([0x66,0x69,0x6c,0x6c])](_0xe63ffd[0x0]===_0x9a29f7([0x2a])?_0x9a29f7([0x2a]):'')[_0x9a29f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe63ffd))[_0x9a29f7([0x73,0x6f,0x6d,0x65])](_0x23ce2a=>_0x5b44ca[_0x9a29f7([0x65,0x76,0x65,0x72,0x79])]((_0x1666cb,_0x185ad7)=>_0x23ce2a[_0x185ad7]===_0x1666cb||_0x23ce2a[_0x185ad7]===_0x9a29f7([0x2a])));}function _0x5fe3b1(){return _0x5d918f&&_0x33b883?new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54a7c2,_0x520ac9)=>{_0x5d918f[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x54a7c2,_0x520ac9),_0x33b883[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x24db8e=>{_0x24db8e!=_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])&&_0x54a7c2(_0x24db8e);},_0x520ac9);}):_0x5d918f||_0x33b883||_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ba09d(_0x41f887,_0x2b4056){return new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38277a=>{if(_0x23bbb4())return _0x38277a(_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]));_0x50d0c5(),_0x100ff5[_0x9a29f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e654d=!0x1;const _0x280164=_0x42c879();function _0x52f274(_0x5aaccd){return!!_0x5aaccd&&(typeof _0x5aaccd===_0x9a29f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5aaccd===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5aaccd[_0x9a29f7([0x74,0x68,0x65,0x6e])]===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5aaccd[_0x9a29f7([0x63,0x61,0x74,0x63,0x68])]===_0x9a29f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x219dc9(_0x2fcebb){_0x5db46f(_0x2fcebb)[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0xe54a60=>{if(!_0xe54a60||_0xe54a60[_0x9a29f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9a29f7([0x6f,0x6b]))return _0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1eb52f(_0x588052(_0x280164+_0x2b4056))!=_0xe54a60[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9a29f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x38f25b=>(_0xbb9478(),_0x38f25b),()=>{const _0x52cfad=_0x4280ea();return null==_0x52cfad?(_0xbb9478(),_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])):_0x9a29f7(_0x470118-_0x52cfad>(0x63ae0106^_0x2dba42)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x38277a)[_0x9a29f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6e2861=0x47946b86^_0x2dba42;function _0xbb9478(){const _0x1868f7=_0x9a29f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1eb52f(_0x588052(_0x41f887)),_0x3e6804=_0x20a9df(_0x1eb52f(window[_0x9a29f7([0x4d,0x61,0x74,0x68])][_0x9a29f7([0x63,0x65,0x69,0x6c])](_0x470118/_0x6e2861)));window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a29f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1868f7,_0x3e6804);}function _0x4280ea(){const _0x562d93=_0x9a29f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1eb52f(_0x588052(_0x41f887)),_0x4a1f19=window[_0x9a29f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9a29f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x562d93);return _0x4a1f19?window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20a9df(_0x4a1f19),0x10)*_0x6e2861:null;}function _0x5db46f(_0x1b7144){return new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x495561,_0x95dea4)=>{_0x1b7144[_0x9a29f7([0x74,0x68,0x65,0x6e])](_0x495561,_0x95dea4),window[_0x9a29f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x95dea4,0x47a351c6^_0x2dba42);});}}_0x100ff5[_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53cc9b,_0x18cd51)=>{if(_0x18cd51[0x0]!=_0x41f887)return _0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18cd51[0x1]={..._0x18cd51[0x1],[_0x9a29f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x280164};},{[_0x9a29f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a29f7([0x68,0x69,0x67,0x68])}),_0x100ff5[_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21d56c=>{_0x52f274(_0x21d56c[_0x9a29f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e654d=!0x0,_0x219dc9(_0x21d56c[_0x9a29f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9a29f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9a29f7([0x6c,0x6f,0x77])}),_0x42bfa7[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>{_0x4e654d||_0x38277a(_0x9a29f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23bbb4(){return _0x100ff5[_0x9a29f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a29f7([0x76,0x69,0x65,0x77])][_0x9a29f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9a29f7([0x61,0x75,0x74,0x6f]);}function _0x50d0c5(){_0x100ff5[_0x9a29f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9a29f7([0x76,0x69,0x65,0x77])][_0x9a29f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9a29f7([0x61,0x75,0x74,0x6f]);}}function _0x33772b(_0x4085b2){const _0x4d2c61=[new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2110=>setTimeout(_0x5c2110,0x47abbbca^_0x2dba42)),_0x42bfa7[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aaede=>{let _0x4c941b=0x0;_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x6f,0x6e])](_0x9a29f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x298478,_0x45d534)=>{_0x45d534[0x0][_0x9a29f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c941b++,_0x4c941b==(0x47a284fe^_0x2dba42)&&(_0x2aaede(),_0x298478[_0x9a29f7([0x6f,0x66,0x66])]());});}))];return window[_0x9a29f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9a29f7([0x72,0x61,0x63,0x65])](_0x4d2c61)[_0x9a29f7([0x74,0x68,0x65,0x6e])](()=>_0x4085b2);}async function _0x24198e(){await _0x42bfa7,_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5946c8,_0x100ff5[_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x9a29f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5946c8,_0x100ff5[_0x9a29f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9a29f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3245c0(_0x224258){const _0x343da9=_0x4c16f3();_0x100ff5[_0x343da9]=_0x9a29f7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x224258,_0x224258!=_0x9a29f7([0x56,0x61,0x6c,0x69,0x64])&&_0x24198e();}function _0x4c16f3(){const _0x3f0eb2=window[_0x9a29f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9a29f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9a29f7([0x6e,0x6f,0x77])]())[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9a29f7([0x2e]),'');let _0x44a0f7=_0x9a29f7([0x75]);for(let _0x4e1b7b=0x0;_0x4e1b7b<_0x3f0eb2[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1b7b+=0x2){let _0x4fbc57=window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0eb2[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e1b7b,_0x4e1b7b+0x2));_0x4fbc57>=_0x49f3f6[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4fbc57-=_0x49f3f6[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44a0f7+=_0x49f3f6[_0x4fbc57];}return _0x44a0f7;}function _0x5036ef(){const _0x4cf6a8=_0x5ab7d0[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e]));if(0x3!=_0x4cf6a8[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39c35d(_0x4cf6a8[0x1]);function _0x39c35d(_0x479a21){const _0x2309d5=_0x1719ff(_0x479a21);return _0x2309d5&&_0x213e13()?_0x2309d5:null;function _0x213e13(){const _0x14d651=_0x2309d5[_0x9a29f7([0x6a,0x74,0x69])],_0x37616f=window[_0x9a29f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14d651[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14d651[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40bfaa={..._0x2309d5,[_0x9a29f7([0x6a,0x74,0x69])]:_0x14d651[_0x9a29f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14d651[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40bfaa[_0x9a29f7([0x76,0x63])],_0x588052(_0x40bfaa)==_0x37616f;}}}async function _0x246bbf(){let _0x199c01=!0x0;try{const _0x472708=_0x5ab7d0[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])](_0x9a29f7([0x2e])),[_0x40d6b5,_0x256c11,_0x7cf590]=_0x472708;return _0x421f9f(_0x40d6b5),await _0x1803d1(_0x40d6b5,_0x256c11,_0x7cf590),_0x199c01;}catch{return!0x1;}function _0x421f9f(_0x4f6926){const _0xa2a062=_0x1719ff(_0x4f6926);_0xa2a062&&_0xa2a062[_0x9a29f7([0x61,0x6c,0x67])]==_0x9a29f7([0x45,0x53,0x32,0x35,0x36])||(_0x199c01=!0x1);}async function _0x1803d1(_0x49d6a2,_0x1aba96,_0x3ce9e0){const _0x88cc82=window[_0x9a29f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9a29f7([0x66,0x72,0x6f,0x6d])](_0x3be240(_0x3ce9e0),_0x4f1999=>_0x4f1999[_0x9a29f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1834a6=new window[(_0x9a29f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9a29f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49d6a2+_0x9a29f7([0x2e])+_0x1aba96),_0x174eab=window[_0x9a29f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9a29f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x174eab)return;const _0x246ace=await _0x174eab[_0x9a29f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9a29f7([0x6a,0x77,0x6b]),_0x2bb2d6,{[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x45,0x43,0x44,0x53,0x41]),[_0x9a29f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9a29f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x174eab[_0x9a29f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x45,0x43,0x44,0x53,0x41]),[_0x9a29f7([0x68,0x61,0x73,0x68])]:{[_0x9a29f7([0x6e,0x61,0x6d,0x65])]:_0x9a29f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x246ace,_0x88cc82,_0x1834a6)||(_0x199c01=!0x1);}}function _0x1719ff(_0x13fcac){return _0x13fcac[_0x9a29f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9a29f7([0x65,0x79]))?JSON[_0x9a29f7([0x70,0x61,0x72,0x73,0x65])](_0x3be240(_0x13fcac)):null;}function _0x3be240(_0x513ea2){return window[_0x9a29f7([0x61,0x74,0x6f,0x62])](_0x513ea2[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9a29f7([0x2b]))[_0x9a29f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9a29f7([0x2f])));}function _0x588052(_0x4d050c){let _0x1ad1e0=0x1505;function _0x357810(_0x593573){for(let _0x261b5b=0x0;_0x261b5b<_0x593573[_0x9a29f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x261b5b++){const _0x14fe00=_0x593573[_0x9a29f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x261b5b);_0x1ad1e0=(_0x1ad1e0<<0x5)+_0x1ad1e0+_0x14fe00,_0x1ad1e0&=_0x1ad1e0;}}function _0x59dcfa(_0x416f5e){Array[_0x9a29f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x416f5e)?_0x416f5e[_0x9a29f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59dcfa):_0x416f5e&&typeof _0x416f5e==_0x9a29f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9a29f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x416f5e)[_0x9a29f7([0x73,0x6f,0x72,0x74])]()[_0x9a29f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27a6c3,_0x9557c2])=>{_0x357810(_0x27a6c3),_0x59dcfa(_0x9557c2);}):_0x357810(window[_0x9a29f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x416f5e));}return _0x59dcfa(_0x4d050c),_0x1ad1e0>>>0x0;}function _0x1eb52f(_0x262d93){return _0x262d93[_0x9a29f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9a29f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9a29f7([0x30]));}function _0x20a9df(_0x2d7f9a){return _0x2d7f9a[_0x9a29f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9a29f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9a29f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5946c8(){}function _0x9a29f7(_0x4f9f32){return _0x4f9f32['map'](_0x8f3697=>String['fromCharCode'](_0x8f3697))['join']('');}_0x3245c0(await _0x53bfbf());}(this);}['_moveSelectionToFootnoteDefinition'](_0x182611){const {plugins:_0x350e25,editing:_0x53ef85,model:_0x11b186}=this['editor'],_0x26fbc5=_0x350e25['get'](_0x1a4b4b)['getFootnote'](_0x182611);return!!_0x26fbc5&&(_0x11b186['change'](_0x55f5ae=>{_0x55f5ae['setSelection'](_0x55f5ae['createPositionAt'](_0x26fbc5['definition'],'end'));}),_0x53ef85['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4b78dc){const {plugins:_0x462d19,editing:_0x568d59,model:_0x550ecf}=this['editor'],_0x5be673=_0x462d19['get'](_0x1a4b4b)['getFootnote'](_0x4b78dc);return!!_0x5be673&&(_0x550ecf['change'](_0x5fa884=>{_0x5fa884['setSelection'](_0x5be673['reference'],'on');}),_0x568d59['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4f843c}=this['editor']['model'],_0x4862ec=this['editor']['config']['get']('footnotes.multiBlock');_0x4f843c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4f843c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4f843c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4862ec?_0x4f843c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4f843c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4f843c['addChildCheck'](_0x1c4371=>{for(const _0x3ef1e7 of _0x1c4371)if('footnoteDefinition'===_0x3ef1e7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4989ca}=this,{conversion:_0x45d71c,editing:_0x4fa220}=_0x4989ca,{t:t}=_0x4989ca['locale'];_0x45d71c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d387c,{writer:_0x36626e,consumable:_0x2e7acc})=>{const _0x17f4c5=_0x5d387c['getChild'](0x0);if(!_0x17f4c5||!_0x17f4c5['is']('element','a'))return null;const _0x41e5f6=_0x17f4c5['getAttribute']('href')||'';if(!_0x41e5f6['startsWith']('#'))return null;const _0x39d420=_0x41e5f6['replace'](/^#/,'');if(!_0x39d420)return null;_0x2e7acc['consume'](_0x17f4c5,{'name':!0x0,'attributes':['href']});for(const {item:_0x11ed2c}of _0x4fa220['view']['createRangeIn'](_0x17f4c5))_0x11ed2c['is']('$textProxy')?_0x2e7acc['consume'](_0x11ed2c['textNode'],{'name':!0x0}):_0x11ed2c['is']('element')&&_0x2e7acc['consume'](_0x11ed2c,{'name':!0x0});return _0x36626e['createElement']('footnoteRef',{'footnoteId':_0x39d420});}}),_0x45d71c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1a7111,{writer:_0x591ce4})=>D(_0x1a7111,_0x591ce4)}),_0x45d71c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xcfd1a6,{writer:_0x26ad05})=>{const _0x221426=_0xcfd1a6['getAttribute']('footnoteCounter');return _0x23a66c(D(_0xcfd1a6,_0x26ad05),_0x26ad05,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x221426)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2d9298}=this,{t:t}=_0x2d9298['locale'],{conversion:_0x216115}=_0x2d9298;_0x216115['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x216115['for']('upcast')['add'](_0x1bb3b4=>{_0x1bb3b4['on']('element:ol',(_0x4cd544,_0x23e1cb,_0x289fce)=>{const _0x2aa72b=_0x23e1cb['viewItem'];if(!_0x2aa72b['hasClass']('footnotes-list')||!_0x23e1cb['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x289fce['consumable']['consume'](_0x2aa72b,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x42429c,modelCursor:_0x68e038}=_0x289fce['convertChildren'](_0x23e1cb['viewItem'],_0x23e1cb['modelCursor']);_0x23e1cb['modelRange']=_0x42429c,_0x23e1cb['modelCursor']=_0x68e038;}),_0x1bb3b4['on']('element:hr',(_0x26c5c4,_0x42813b,_0x59b5e4)=>{const _0xc10e82=_0x42813b['viewItem'];_0xc10e82['hasClass']('footnotes-divider')&&_0x42813b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x59b5e4['consumable']['consume'](_0xc10e82,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x216115['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x299bda,{writer:_0x7104a2})=>v(_0x7104a2)}),_0x216115['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3861d6,{writer:_0x1bc407})=>{const _0x509910=v(_0x1bc407,{'data-footnotes-list-label':t('Footnotes')}),_0x1447e7=_0x23a66c(_0x509910,_0x1bc407,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1bc407['setCustomProperty']('footnotesDefinitions',!0x0,_0x1447e7),_0x1447e7;}});}['_defineDefinitionConverters'](){const {editor:_0x358893}=this,{conversion:_0x327107,locale:_0x251e01}=_0x358893,_0xc3e2b3=_0x358893['config']['get']('footnotes.multiBlock');_0x327107['for']('upcast')['add'](_0x2859f3=>{_0x2859f3['on']('element:li',(_0x167102,_0x194933,_0x24f13b)=>{const _0x50b310=_0x194933['viewItem'];if(!_0x50b310['hasClass']('footnote-definition')||!_0x50b310['getAttribute']('id'))return;const _0xa209e2=_0x50b310['parent'];if(!_0xa209e2['is']('element','ol')||!_0xa209e2['hasClass']('footnotes-list'))return;if(!_0x24f13b['consumable']['test'](_0x50b310,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x34c81b=_0x24f13b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x50b310['getAttribute']('id')});if(!_0x24f13b['safeInsert'](_0x34c81b,_0x194933['modelCursor']))return;_0x24f13b['consumable']['consume'](_0x50b310,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xfb9c7b=Array['from'](_0x50b310['getChildren']())['find'](_0x286f48=>_0x286f48['is']('element')&&_0x286f48['hasClass']('footnote-content'));for(const _0xb12af8 of _0x50b310['getChildren']())_0xb12af8['is']('element')&&(_0x24f13b['consumable']['consume'](_0xb12af8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x24f13b['consumable']['consume'](_0xb12af8,{'name':!0x0,'classes':'footnote-content'}));if(_0xfb9c7b){if(_0xc3e2b3)_0x24f13b['convertChildren'](_0xfb9c7b,_0x34c81b);else{const _0x5dd066=_0x24f13b['writer']['createElement']('footnoteInlineContent');_0x24f13b['writer']['insert'](_0x5dd066,_0x34c81b),_0x24f13b['convertChildren'](_0xfb9c7b,_0x5dd066);}}_0x24f13b['updateConversionResult'](_0x34c81b,_0x194933);});}),_0x327107['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x387405,{writer:_0x1b4b15})=>b(_0x387405,_0x1b4b15,_0x251e01,{'dataPipeline':!0x0})}),_0x327107['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4faded,{writer:_0x51b664})=>b(_0x4faded,_0x51b664,_0x251e01)});}['_defineBogusParagraphConverters'](){const {editor:_0x35ab1f}=this,{conversion:_0x51445e}=_0x35ab1f;_0x35ab1f['config']['get']('footnotes.multiBlock')?(_0x51445e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x51445e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35ab1f['model']['document'],'change:data',()=>{!function(_0x1c1be8,_0x23dc6d){const _0x2a2360=_0x1c1be8['document']['differ'],_0x4894a5=new Set();for(const _0x272a06 of _0x2a2360['getChanges']()){const _0x283349='attribute'==_0x272a06['type']?_0x272a06['range']['start']['parent']:_0x272a06['position']['parent'];_0x283349['is']('element','footnoteDefinition')&&_0x4894a5['add'](_0x283349);}for(const _0x10c2e9 of _0x4894a5['values']()){const _0x31c761=Array['from'](_0x10c2e9['getChildren']())['filter'](_0xd110cf=>g(_0xd110cf,_0x23dc6d['mapper']));for(const _0x2c0613 of _0x31c761)_0x23dc6d['reconvertItem'](_0x2c0613);}}(_0x35ab1f['model'],_0x35ab1f['editing']);})):(_0x51445e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x51445e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xd01c01,{writer:_0x4232e8})=>{const _0x5dd97f=_0x4232e8['createContainerElement']('span');return _0x4232e8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5dd97f),_0x5dd97f;}}));}['_defineKeyboardHandlers'](){const {editor:_0xde8932}=this,{editing:_0x49e316,t:t}=_0xde8932,_0x371292=_0xde8932['model']['document']['selection'];_0xde8932['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xde8932['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x49e316['view']['document'],'enter',(_0x430b5e,_0x244865)=>{const _0x27adf2=function(_0x5ca466){const _0x27f386=_0x5ca466['getSelectedElement']();if(_0x27f386?.['is']('element','footnoteRef'))return _0x27f386;return null;}(_0x371292);if(_0x27adf2){const _0x5e04ba=_0x27adf2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5e04ba),_0x244865['preventDefault'](),_0x430b5e['stop']();}},{'context':_0x2f2ec5});}['_defineClickHandlers'](){const {editor:_0x4d5f57}=this,{editing:_0x28cf23}=_0x4d5f57;_0x4d5f57['editing']['view']['addObserver'](_0x14c5ed),_0x4d5f57['editing']['view']['addObserver'](_0x3896ac);let _0x576fd7=!0x1;this['listenTo'](_0x28cf23['view']['document'],'pointerdown',(_0x35e31b,_0x202841)=>{const {target:_0x3215b5}=_0x202841,_0x4a266d=_0x28cf23['view']['document']['selection'];_0x576fd7=!!(_0x3215b5?.['is']('element','a')&&_0x3215b5['parent']?.['is']('element','sup')&&_0x3215b5['parent']['hasClass']('footnote'))&&_0x4a266d['getSelectedElement']()===_0x3215b5['parent'];},{'priority':'high'}),this['listenTo'](_0x28cf23['view']['document'],'click',(_0xd390af,_0x5f4e3b)=>{const {target:_0x32c164}=_0x5f4e3b;if(!_0x32c164?.['is']('element','a'))return;if(_0x32c164['parent']?.['is']('element','sup')&&_0x32c164['parent']['hasClass']('footnote')&&!_0x576fd7)return void _0x5f4e3b['preventDefault']();let _0x242b79=_0x32c164['getAttribute']('href');if(!_0x242b79?.['startsWith']('#'))return;_0x242b79=_0x242b79['slice'](0x1);let _0x35ee4c=!0x1;(_0x242b79['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x242b79['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x242b79))&&(_0x35ee4c=!0x0),_0x35ee4c&&(_0x5f4e3b['preventDefault'](),_0xd390af['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xf5d65b}={}){return(_0x449019,{writer:_0x46aaef})=>{if(!p(_0x449019))return null;if(!_0xf5d65b)return _0x46aaef['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5adcfb=_0x46aaef['createContainerElement']('p');return _0x46aaef['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5adcfb),_0x5adcfb;};}function p(_0x53d74e){const {parent:_0x34aa07}=_0x53d74e;if(!_0x34aa07?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x34aa07['childCount'])return!0x1;for(const _0x42555a of _0x53d74e['getAttributeKeys']())if(!_0x42555a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x42555a)return!0x1;return!0x0;}function g(_0xfdf542,_0x3a1c7f){if(!_0xfdf542['is']('element','paragraph'))return!0x1;const _0x5d904b=_0x3a1c7f['toViewElement'](_0xfdf542);return!!_0x5d904b&&p(_0xfdf542)!==_0x5d904b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4f40a7){return _0x2f2ec5(_0x4f40a7)&&_0x4f40a7['is']('containerElement')&&!!_0x4f40a7['getCustomProperty']('footnotesDefinitions');}function v(_0x4dbe1f,_0x4393f7={}){const _0x43aee4=_0x4dbe1f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x29db1d=_0x4dbe1f['createContainerElement']('ol',{'class':'footnotes-list'},_0x4dbe1f['createSlot']());return _0x4dbe1f['createContainerElement']('div',{'class':'footnotes',..._0x4393f7},[_0x43aee4,_0x29db1d]);}function D(_0x5d6be9,_0x3ca35a){const _0x498abf=_0x5d6be9['getAttribute']('footnoteId'),_0x2e1c74=_0x5d6be9['getAttribute']('footnoteCounter'),_0x2e5b26=_0x3ca35a['createUIElement']('a',{'href':'#'+_0x498abf},function(_0x43b361){const _0x303747=this['toDomElement'](_0x43b361);return _0x303747['textContent']=_0x2e1c74,_0x303747;}),_0x136950=_0x3ca35a['createContainerElement']('sup',{'id':'ref-'+_0x498abf,'class':'footnote'},[_0x2e5b26]);return _0x136950['getFillerOffset']=()=>null,_0x136950;}function b(_0x391d2b,_0x421873,_0x23fcf5,{dataPipeline:_0x499f2e}={}){const {t:t}=_0x23fcf5,_0x157721=_0x391d2b['getAttribute']('footnoteId'),_0x24dd07=_0x421873['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x157721},function(_0x3ef1e8){const _0x247e73=this['toDomElement'](_0x3ef1e8);return _0x247e73['innerText']='^',_0x247e73;}),_0x322b48=_0x499f2e?_0x421873['createContainerElement']('div',{'class':'footnote-content'}):_0x5059fc(_0x421873['createEditableElement']('div',{'class':'footnote-content'}),_0x421873,{'label':t('Footnote\x20content.')});return _0x421873['insert'](_0x421873['createPositionAt'](_0x322b48,0x0),_0x421873['createSlot']()),_0x421873['createContainerElement']('li',{'class':'footnote-definition','id':_0x157721},[_0x24dd07,_0x322b48]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x186ecb=_0x3280;function _0x3280(_0x8e6bf1,_0x3d7faf){const _0x58c415=_0x58c4();return _0x3280=function(_0x3280ad,_0x56bd27){_0x3280ad=_0x3280ad-0xda;let _0x4880e6=_0x58c415[_0x3280ad];return _0x4880e6;},_0x3280(_0x8e6bf1,_0x3d7faf);}(function(_0x47b14e,_0x2af1df){const _0x45d200=_0x3280,_0x5e9ecf=_0x47b14e();while(!![]){try{const _0x3a9198=parseInt(_0x45d200(0xec))/0x1+-parseInt(_0x45d200(0xe4))/0x2*(-parseInt(_0x45d200(0xed))/0x3)+parseInt(_0x45d200(0xdb))/0x4*(parseInt(_0x45d200(0xe8))/0x5)+-parseInt(_0x45d200(0xdd))/0x6*(parseInt(_0x45d200(0xe5))/0x7)+parseInt(_0x45d200(0xea))/0x8*(parseInt(_0x45d200(0xda))/0x9)+-parseInt(_0x45d200(0xe0))/0xa+parseInt(_0x45d200(0xf0))/0xb;if(_0x3a9198===_0x2af1df)break;else _0x5e9ecf['push'](_0x5e9ecf['shift']());}catch(_0x3faf06){_0x5e9ecf['push'](_0x5e9ecf['shift']());}}}(_0x58c4,0xa7b7a));import{Command as _0x227773}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x44d9ef}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x227773{[_0x186ecb(0xef)](){const _0x285ef5=_0x186ecb,{editor:_0x429dba}=this,_0x17f27b=_0x429dba[_0x285ef5(0xe1)][_0x285ef5(0xdc)](_0x44d9ef)[_0x285ef5(0xee)]();this[_0x285ef5(0xe9)]=!!_0x17f27b,this[_0x285ef5(0xe3)]=_0x17f27b?.[_0x285ef5(0xdf)](_0x285ef5(0xe2))??null;}[_0x186ecb(0xf1)]({value:_0x36e43d}){const _0x598195=_0x186ecb,{editor:_0x537b67}=this,_0x6def12=_0x537b67[_0x598195(0xe1)][_0x598195(0xdc)](_0x44d9ef),_0x34837a=_0x6def12[_0x598195(0xee)]();_0x34837a&&Number[_0x598195(0xeb)](_0x36e43d)&&_0x537b67[_0x598195(0xf2)][_0x598195(0xde)](_0x37bf0d=>{const _0x49df94=_0x598195;_0x37bf0d[_0x49df94(0xe7)](_0x49df94(0xe2),_0x36e43d,_0x34837a),_0x6def12[_0x49df94(0xe6)](_0x37bf0d);});}}function _0x58c4(){const _0x2d4438=['109213nOEtPN','525wlvlCO','getFootnotesDefinitionsObjectElement','refresh','11840994nqvvYQ','execute','model','62433fbtGiU','4mBKQdn','get','6361878cMwcWX','change','getAttribute','9361570WDLQpO','plugins','footnotesListStart','value','9328FckpUx','7TLuqPC','_updateFootnotesCounters','setAttribute','2332630HCFbvY','isEnabled','248qJtdtd','isInteger'];_0x58c4=function(){return _0x2d4438;};return _0x58c4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5105(_0x251450,_0x1a5cf0){const _0x2737b1=_0x2737();return _0x5105=function(_0x5105cf,_0x2d7b67){_0x5105cf=_0x5105cf-0x70;let _0x3f9dad=_0x2737b1[_0x5105cf];return _0x3f9dad;},_0x5105(_0x251450,_0x1a5cf0);}const _0x39feb0=_0x5105;function _0x2737(){const _0x3344e3=['7285500HpIkkt','execute','refresh','5465tHAcDj','change','13haBsml','footnotesListStyle','8183LdJpMq','12391038EduDuu','7368uAFqoe','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','model','isEnabled','1335frPmQK','8750016GtZycR','get','includes','getAttribute','10QFizdJ','3156oHesDP','75018MOlWsS','1096CAHZdq','value','plugins','setAttribute'];_0x2737=function(){return _0x3344e3;};return _0x2737();}(function(_0x121033,_0x294e04){const _0x487aa6=_0x5105,_0x702dea=_0x121033();while(!![]){try{const _0x5ad181=-parseInt(_0x487aa6(0x7b))/0x1*(-parseInt(_0x487aa6(0x71))/0x2)+parseInt(_0x487aa6(0x84))/0x3*(-parseInt(_0x487aa6(0x70))/0x4)+-parseInt(_0x487aa6(0x79))/0x5*(-parseInt(_0x487aa6(0x7f))/0x6)+-parseInt(_0x487aa6(0x7d))/0x7*(parseInt(_0x487aa6(0x72))/0x8)+-parseInt(_0x487aa6(0x76))/0x9+parseInt(_0x487aa6(0x89))/0xa*(parseInt(_0x487aa6(0x7e))/0xb)+-parseInt(_0x487aa6(0x85))/0xc;if(_0x5ad181===_0x294e04)break;else _0x702dea['push'](_0x702dea['shift']());}catch(_0x452a90){_0x702dea['push'](_0x702dea['shift']());}}}(_0x2737,0xdd471));import{Command as _0x5640f9}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x9fb603}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x45be2e}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x5640f9{[_0x39feb0(0x78)](){const _0x35e02f=_0x39feb0,{editor:_0x3b0cee}=this,_0x52254c=_0x3b0cee[_0x35e02f(0x74)][_0x35e02f(0x86)](_0x45be2e)[_0x35e02f(0x80)]();this[_0x35e02f(0x83)]=!!_0x52254c,this[_0x35e02f(0x73)]=_0x52254c?.[_0x35e02f(0x88)](_0x35e02f(0x7c))??null;}[_0x39feb0(0x77)]({value:_0x44efc1}){const _0x24501a=_0x39feb0,{editor:_0x461214}=this,_0x4d4234=_0x461214[_0x24501a(0x74)][_0x24501a(0x86)](_0x45be2e),_0x43dfe6=_0x4d4234[_0x24501a(0x80)]();_0x43dfe6&&_0x9fb603[_0x24501a(0x87)](_0x44efc1)&&_0x461214[_0x24501a(0x82)][_0x24501a(0x7a)](_0x15907f=>{const _0x32f62b=_0x24501a;_0x15907f[_0x32f62b(0x75)](_0x32f62b(0x7c),_0x44efc1,_0x43dfe6),_0x4d4234[_0x32f62b(0x81)](_0x15907f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51c9c9=_0x1f7c;function _0x1f7c(_0x5f3b9d,_0x3580a8){const _0x51d521=_0x51d5();return _0x1f7c=function(_0x1f7cf0,_0x2a2f54){_0x1f7cf0=_0x1f7cf0-0x7d;let _0x21c9a4=_0x51d521[_0x1f7cf0];return _0x21c9a4;},_0x1f7c(_0x5f3b9d,_0x3580a8);}(function(_0x48af30,_0x480f96){const _0x244498=_0x1f7c,_0x128021=_0x48af30();while(!![]){try{const _0x838cf4=parseInt(_0x244498(0x7d))/0x1+-parseInt(_0x244498(0x8b))/0x2+-parseInt(_0x244498(0x7f))/0x3+-parseInt(_0x244498(0x82))/0x4*(-parseInt(_0x244498(0x86))/0x5)+-parseInt(_0x244498(0x8d))/0x6+parseInt(_0x244498(0x83))/0x7*(-parseInt(_0x244498(0x7e))/0x8)+-parseInt(_0x244498(0x88))/0x9*(-parseInt(_0x244498(0x8c))/0xa);if(_0x838cf4===_0x480f96)break;else _0x128021['push'](_0x128021['shift']());}catch(_0x15235a){_0x128021['push'](_0x128021['shift']());}}}(_0x51d5,0xb5ea0));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x51c9c9(0x81),_0x51c9c9(0x8a),_0x51c9c9(0x87),_0x51c9c9(0x84),_0x51c9c9(0x89),_0x51c9c9(0x8e),_0x51c9c9(0x85),_0x51c9c9(0x80)];function _0x51d5(){const _0x3ba6b2=['322208jHzISN','16WfBjov','835356hpCfYI','upper-roman','decimal','8WLTuvA','4635547jyOyEh','upper-latin','lower-roman','1439015SRenUu','lower-latin','1509786TmkZYG','lower-alpha','decimal-leading-zero','140860SbBQqL','100xvTxnz','941460QeOghW','upper-alpha'];_0x51d5=function(){return _0x3ba6b2;};return _0x51d5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2953f8=_0x1a38;function _0x1a38(_0x146bc1,_0x5d9cd7){const _0x56942a=_0x5694();return _0x1a38=function(_0x1a3869,_0x37bb19){_0x1a3869=_0x1a3869-0x13c;let _0x29aa72=_0x56942a[_0x1a3869];return _0x29aa72;},_0x1a38(_0x146bc1,_0x5d9cd7);}(function(_0x1649fd,_0x5d695e){const _0x3d7b0c=_0x1a38,_0x57aa3e=_0x1649fd();while(!![]){try{const _0x1c1ff8=parseInt(_0x3d7b0c(0x19b))/0x1*(-parseInt(_0x3d7b0c(0x160))/0x2)+-parseInt(_0x3d7b0c(0x16e))/0x3+-parseInt(_0x3d7b0c(0x1a0))/0x4+-parseInt(_0x3d7b0c(0x16b))/0x5*(parseInt(_0x3d7b0c(0x1a2))/0x6)+parseInt(_0x3d7b0c(0x197))/0x7*(parseInt(_0x3d7b0c(0x141))/0x8)+-parseInt(_0x3d7b0c(0x181))/0x9*(parseInt(_0x3d7b0c(0x15f))/0xa)+-parseInt(_0x3d7b0c(0x143))/0xb*(-parseInt(_0x3d7b0c(0x17e))/0xc);if(_0x1c1ff8===_0x5d695e)break;else _0x57aa3e['push'](_0x57aa3e['shift']());}catch(_0x1dbee2){_0x57aa3e['push'](_0x57aa3e['shift']());}}}(_0x5694,0x5c2e4));import{Plugin as _0x5ce8a0}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x3e6d6}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x1c5535}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x18483b}from'../footnotestracker.js';import{FootnotesEditing as _0x455b42}from'../footnotesediting.js';function _0x5694(){const _0x50ccca=['define','62652axNCON','_getDefaultStartIndex','toViewElement','1035702OuRyyy','padStart','setStyle','getChildren','max','writer','isPremiumPlugin','type','upper-roman','start','setAttribute','consume','add','model','element','footnotesListStyle','FootnotesPropertiesEditing','_defineConverters','differ','insert','commands','checkAttribute','322HesPdK','_defineSchema','plugins','downcast','19982yEKuUf','nodeAfter','pluginName','fromCharCode','getItems','1556628WPCMOL','modelCursor','434922rRCWit','consumable','editor','decimal-leading-zero','requires','lower-roman','52424LBECfC','createRangeOn','2519ehJBFY','viewItem','footnotesStyle','toLowerCase','footnotesDefinitions','schema','_updateFootnotesCounters','footnotes-list','getStyle','document','setFootnoteFormatter','parseInt','_getDefaultListStyle','for','footnotesListStart','name','item','upper-alpha','extend','toUpperCase','attribute:footnotesListStyle:footnotesDefinitions','isNaN','removeAttribute','footnotes.footnotesProperties.defaultStartIndex','find','registerPostFixer','lower-latin','lower-alpha','10aZIwxx','2uQeXfw','_defineFormatter','from','config','hasClass','footnotesStart','$text','removeStyle','upper-latin','element:ol','get','5PJyNFe','floor','getAttribute','1568313CKjAoG','upcast','list-style-type','_definePostfixer','init','isOfficialPlugin','getChanges','attribute:footnotesListStart:footnotesDefinitions','parent','mapper','position','footnotes.footnotesProperties.defaultListStyle','_formatFootnoteListValue','decimal','hasAttribute'];_0x5694=function(){return _0x50ccca;};return _0x5694();}export class FootnotesPropertiesEditing extends _0x5ce8a0{static get[_0x2953f8(0x19d)](){const _0x4d86a2=_0x2953f8;return _0x4d86a2(0x191);}static get[_0x2953f8(0x13f)](){return[_0x455b42,_0x18483b];}static get[_0x2953f8(0x173)](){return!0x0;}static get[_0x2953f8(0x187)](){return!0x0;}[_0x2953f8(0x172)](){const _0x3a16c7=_0x2953f8,{editor:_0x327540}=this;_0x327540[_0x3a16c7(0x163)][_0x3a16c7(0x17d)](_0x3a16c7(0x179),_0x3a16c7(0x17b)),_0x327540[_0x3a16c7(0x163)][_0x3a16c7(0x17d)](_0x3a16c7(0x15a),0x1),_0x327540[_0x3a16c7(0x195)][_0x3a16c7(0x18d)](_0x3a16c7(0x145),new _0x3e6d6(_0x327540)),_0x327540[_0x3a16c7(0x195)][_0x3a16c7(0x18d)](_0x3a16c7(0x165),new _0x1c5535(_0x327540)),this[_0x3a16c7(0x198)](),this[_0x3a16c7(0x192)](),this[_0x3a16c7(0x161)](),this[_0x3a16c7(0x171)]();}[_0x2953f8(0x198)](){const _0x82d6ab=_0x2953f8,{editor:_0x30d62e}=this,{schema:_0x26bda3}=_0x30d62e[_0x82d6ab(0x18e)];_0x26bda3[_0x82d6ab(0x155)](_0x82d6ab(0x147),{'allowAttributes':[_0x82d6ab(0x190),_0x82d6ab(0x151)]});}[_0x2953f8(0x192)](){const _0x311549=_0x2953f8,{editor:_0x4e3925}=this,{conversion:_0x5830d3,model:_0x3c4db9}=_0x4e3925,{schema:_0x2ce932}=_0x3c4db9;_0x5830d3[_0x311549(0x150)](_0x311549(0x16f))[_0x311549(0x18d)](_0x3c2969=>{const _0x472606=_0x311549;_0x3c2969['on'](_0x472606(0x169),(_0x36c433,_0x21ac1e,_0x3c348c)=>{const _0x43e7e3=_0x472606,_0x52b591=_0x21ac1e[_0x43e7e3(0x144)],_0x28dda1=_0x21ac1e[_0x43e7e3(0x1a1)]?.[_0x43e7e3(0x176)];_0x52b591[_0x43e7e3(0x164)](_0x43e7e3(0x14a))&&_0x28dda1?.['is'](_0x43e7e3(0x18f),_0x43e7e3(0x147))&&(function(_0x7cf415,_0x4661d5,_0x707fce,_0x227b80){const _0xdbce5e=_0x43e7e3;if(!_0x227b80[_0xdbce5e(0x196)](_0x4661d5,_0xdbce5e(0x151)))return;let _0x89273=0x1;const _0x2056b6=_0x707fce[_0xdbce5e(0x13c)][_0xdbce5e(0x18c)](_0x7cf415,{'attributes':_0xdbce5e(0x18a)});if(_0x2056b6){const _0x14cc2a=Number[_0xdbce5e(0x14e)](_0x7cf415[_0xdbce5e(0x16d)](_0xdbce5e(0x18a)),0xa);Number[_0xdbce5e(0x158)](_0x14cc2a)||(_0x89273=_0x14cc2a);}!_0x2056b6&&_0x4661d5[_0xdbce5e(0x17c)](_0xdbce5e(0x151))||_0x707fce[_0xdbce5e(0x186)][_0xdbce5e(0x18b)](_0xdbce5e(0x151),_0x89273,_0x4661d5);}(_0x52b591,_0x28dda1,_0x3c348c,_0x2ce932),function(_0x1155f0,_0x53714b,_0x181f9b,_0x598e52){const _0x25a7e1=_0x43e7e3;if(!_0x598e52[_0x25a7e1(0x196)](_0x53714b,_0x25a7e1(0x190)))return;let _0x5785ad=_0x25a7e1(0x17b),_0x3381af=!0x1;if(_0x181f9b[_0x25a7e1(0x13c)][_0x25a7e1(0x18c)](_0x1155f0,{'attributes':_0x25a7e1(0x188)})){const _0x57a48e={0x1:_0x25a7e1(0x17b),'a':_0x25a7e1(0x15e),'A':_0x25a7e1(0x154),'i':_0x25a7e1(0x140),'I':_0x25a7e1(0x189)}[_0x1155f0[_0x25a7e1(0x16d)](_0x25a7e1(0x188))];_0x57a48e&&(_0x5785ad=_0x57a48e),_0x3381af=!0x0;}_0x181f9b[_0x25a7e1(0x13c)][_0x25a7e1(0x18c)](_0x1155f0,{'styles':_0x25a7e1(0x170)})&&(_0x5785ad=_0x1155f0[_0x25a7e1(0x14b)](_0x25a7e1(0x170)),_0x3381af=!0x0),!_0x3381af&&_0x53714b[_0x25a7e1(0x17c)](_0x25a7e1(0x190))||_0x181f9b[_0x25a7e1(0x186)][_0x25a7e1(0x18b)](_0x25a7e1(0x190),_0x5785ad,_0x53714b);}(_0x52b591,_0x28dda1,_0x3c348c,_0x2ce932));});}),_0x5830d3[_0x311549(0x150)](_0x311549(0x19a))[_0x311549(0x18d)](_0x51ff28=>{const _0x588317=_0x311549;_0x51ff28['on'](_0x588317(0x175),(_0x5e2d4e,_0x45069a,_0x4f0ac1)=>{const _0x58b877=_0x588317;if(!_0x4f0ac1[_0x58b877(0x13c)][_0x58b877(0x18c)](_0x45069a[_0x58b877(0x153)],_0x5e2d4e[_0x58b877(0x152)]))return;const _0x1c3485=M(_0x45069a[_0x58b877(0x153)],_0x4f0ac1[_0x58b877(0x177)]),{attributeNewValue:_0x20b22d}=_0x45069a;null==_0x20b22d||0x1===_0x20b22d?_0x4f0ac1[_0x58b877(0x186)][_0x58b877(0x159)](_0x58b877(0x18a),_0x1c3485):_0x4f0ac1[_0x58b877(0x186)][_0x58b877(0x18b)](_0x58b877(0x18a),String(_0x20b22d),_0x1c3485);}),_0x51ff28['on'](_0x588317(0x157),(_0xb622c6,_0x37eb4a,_0xa7bae0)=>{const _0x214de1=_0x588317;if(!_0xa7bae0[_0x214de1(0x13c)][_0x214de1(0x18c)](_0x37eb4a[_0x214de1(0x153)],_0xb622c6[_0x214de1(0x152)]))return;const _0x117a6c=M(_0x37eb4a[_0x214de1(0x153)],_0xa7bae0[_0x214de1(0x177)]),{attributeNewValue:_0x2ab82e}=_0x37eb4a;_0x2ab82e&&_0x214de1(0x17b)!==_0x2ab82e?_0xa7bae0[_0x214de1(0x186)][_0x214de1(0x183)](_0x214de1(0x170),_0x2ab82e,_0x117a6c):_0xa7bae0[_0x214de1(0x186)][_0x214de1(0x167)](_0x214de1(0x170),_0x117a6c);});});}[_0x2953f8(0x171)](){const _0x40799b=_0x2953f8,{editor:_0x5f1d1e}=this,{model:_0x424643}=_0x5f1d1e,_0x277512=_0x5f1d1e[_0x40799b(0x199)][_0x40799b(0x16a)](_0x18483b),_0x36996d=this[_0x40799b(0x14f)](),_0x2a8ad1=this[_0x40799b(0x17f)]();_0x424643[_0x40799b(0x14c)][_0x40799b(0x15c)](_0x11ccce=>{const _0x51d9df=_0x40799b,_0x3eb1c5=_0x424643[_0x51d9df(0x14c)][_0x51d9df(0x193)][_0x51d9df(0x174)]();let _0x2b4143=!0x1;for(const _0x1070b7 of _0x3eb1c5){if(_0x51d9df(0x194)!==_0x1070b7[_0x51d9df(0x188)]||_0x51d9df(0x166)===_0x1070b7[_0x51d9df(0x152)])continue;const _0x23cd24=_0x424643[_0x51d9df(0x142)](_0x1070b7[_0x51d9df(0x178)][_0x51d9df(0x19c)]);for(const _0x119b43 of _0x23cd24[_0x51d9df(0x19f)]())_0x119b43['is'](_0x51d9df(0x18f),_0x51d9df(0x147))&&(!_0x119b43[_0x51d9df(0x17c)](_0x51d9df(0x151))&&_0x424643[_0x51d9df(0x148)][_0x51d9df(0x196)](_0x119b43,_0x51d9df(0x151))&&(_0x11ccce[_0x51d9df(0x18b)](_0x51d9df(0x151),_0x2a8ad1,_0x119b43),_0x2b4143=!0x0),!_0x119b43[_0x51d9df(0x17c)](_0x51d9df(0x190))&&_0x424643[_0x51d9df(0x148)][_0x51d9df(0x196)](_0x119b43,_0x51d9df(0x190))&&(_0x11ccce[_0x51d9df(0x18b)](_0x51d9df(0x190),_0x36996d,_0x119b43),_0x2b4143=!0x0));}return _0x2b4143&&_0x277512[_0x51d9df(0x149)](_0x11ccce),_0x2b4143;});}[_0x2953f8(0x161)](){const _0x428328=_0x2953f8,{editor:_0x4a449a}=this;_0x4a449a[_0x428328(0x199)][_0x428328(0x16a)](_0x18483b)[_0x428328(0x14d)](_0x1b39c3=>this[_0x428328(0x17a)](_0x1b39c3));}[_0x2953f8(0x14f)](){const _0x2dea55=_0x2953f8;return this[_0x2dea55(0x13d)][_0x2dea55(0x163)][_0x2dea55(0x16a)](_0x2dea55(0x179));}[_0x2953f8(0x17f)](){const _0x12f0c5=_0x2953f8;return this[_0x12f0c5(0x13d)][_0x12f0c5(0x163)][_0x12f0c5(0x16a)](_0x12f0c5(0x15a));}[_0x2953f8(0x17a)]({container:_0x514115,value:_0x28ff79,digits:_0x281d3e}){const _0x599ad4=_0x2953f8,_0x23f05c=_0x514115[_0x599ad4(0x16d)](_0x599ad4(0x190)),_0x5eba2d=_0x514115[_0x599ad4(0x16d)](_0x599ad4(0x151)),_0x2459a0=Math[_0x599ad4(0x16c)](_0x28ff79)+(_0x5eba2d??0x1)-0x1;switch(_0x23f05c){case _0x599ad4(0x13e):return function(_0x46d799,_0x72e95f){const _0xfe8ec6=_0x599ad4;return String(_0x46d799)[_0xfe8ec6(0x182)](_0x72e95f,'0');}(_0x2459a0,Math[_0x599ad4(0x185)](0x2,_0x281d3e));case _0x599ad4(0x15e):case _0x599ad4(0x15d):return N(_0x2459a0,!0x1);case _0x599ad4(0x154):case _0x599ad4(0x168):return N(_0x2459a0,!0x0);case _0x599ad4(0x140):return X(_0x2459a0,!0x1);case _0x599ad4(0x189):return X(_0x2459a0,!0x0);default:return String(_0x2459a0);}}}function M(_0x2e4dba,_0x4f747c){const _0x553260=_0x2953f8,_0xa3c2eb=_0x4f747c[_0x553260(0x180)](_0x2e4dba);return Array[_0x553260(0x162)](_0xa3c2eb[_0x553260(0x184)]())[_0x553260(0x15b)](_0x24e1ee=>_0x24e1ee['is'](_0x553260(0x18f),'ol')&&_0x24e1ee[_0x553260(0x164)](_0x553260(0x14a)));}function N(_0x40440b,_0x22eef4){const _0x496954=_0x2953f8;let _0x21c6d1='',_0x3126b2=_0x40440b;for(;_0x3126b2>0x0;){const _0x4c9113=(_0x3126b2-0x1)%0x1a;_0x21c6d1=String[_0x496954(0x19e)](0x61+_0x4c9113)+_0x21c6d1,_0x3126b2=Math[_0x496954(0x16c)]((_0x3126b2-0x1)/0x1a);}return _0x22eef4?_0x21c6d1[_0x496954(0x156)]():_0x21c6d1;}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(_0x7378f4,_0x4797bc){const _0x3870f0=_0x2953f8;let _0x41d134='',_0x44e505=_0x7378f4;for(const {value:_0xd58e25,numeral:_0xb41ef3}of V)for(;_0x44e505>=_0xd58e25;)_0x41d134+=_0xb41ef3,_0x44e505-=_0xd58e25;return _0x4797bc?_0x41d134:_0x41d134[_0x3870f0(0x146)]();}
|
|
23
|
+
const _0x1e1a41=_0x2095;(function(_0x9c668d,_0x1cb7ee){const _0x42545b=_0x2095,_0x10be91=_0x9c668d();while(!![]){try{const _0x1b223d=-parseInt(_0x42545b(0x202))/0x1*(parseInt(_0x42545b(0x21f))/0x2)+-parseInt(_0x42545b(0x1fd))/0x3*(parseInt(_0x42545b(0x215))/0x4)+parseInt(_0x42545b(0x217))/0x5+-parseInt(_0x42545b(0x238))/0x6*(parseInt(_0x42545b(0x213))/0x7)+parseInt(_0x42545b(0x1e3))/0x8*(-parseInt(_0x42545b(0x224))/0x9)+-parseInt(_0x42545b(0x225))/0xa+parseInt(_0x42545b(0x219))/0xb*(parseInt(_0x42545b(0x23b))/0xc);if(_0x1b223d===_0x1cb7ee)break;else _0x10be91['push'](_0x10be91['shift']());}catch(_0x165e81){_0x10be91['push'](_0x10be91['shift']());}}}(_0x23be,0xcda08));import{Plugin as _0x2a2615}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x44f3f1}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0xea854f}from'./commands/footnotesstartcommand.js';function _0x23be(){const _0x65e5fc=['define','mapper','47578488XqaANp','footnotesDefinitions','nodeAfter','plugins','getStyle','isPremiumPlugin','start','insert','attribute:footnotesListStyle:footnotesDefinitions','init','FootnotesPropertiesEditing','toUpperCase','downcast','removeAttribute','element:ol','16ubUXdE','commands','element','padStart','schema','from','$text','for','footnotes.footnotesProperties.defaultListStyle','footnotes.footnotesProperties.defaultStartIndex','isNaN','consume','removeStyle','getChanges','type','getItems','decimal-leading-zero','editor','_formatFootnoteListValue','createRangeOn','footnotesStyle','viewItem','attribute:footnotesListStart:footnotesDefinitions','footnotesListStyle','registerPostFixer','_getDefaultListStyle','189SJkjrk','find','parseInt','item','upcast','1642482oBBUFt','fromCharCode','pluginName','decimal','lower-alpha','footnotesListStart','hasClass','getAttribute','upper-latin','modelCursor','setFootnoteFormatter','_definePostfixer','footnotes-list','consumable','requires','_getDefaultStartIndex','_defineSchema','2305625poIPoe','toViewElement','60852fOknMz','toLowerCase','7252505QSFpRR','_defineConverters','11GqLOWW','_defineFormatter','max','hasAttribute','parent','position','2ShoEet','lower-roman','setStyle','isOfficialPlugin','upper-roman','2241018vSQyfm','11448470PqbdBd','differ','lower-latin','list-style-type','get','model','add','writer','checkAttribute','name','floor','_updateFootnotesCounters','document','footnotesStart','extend','config','getChildren','setAttribute','upper-alpha','6iZfjBl'];_0x23be=function(){return _0x65e5fc;};return _0x23be();}import{FootnotesTracker as _0x4975db}from'../footnotestracker.js';import{FootnotesEditing as _0xcca2f4}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x2a2615{static get[_0x1e1a41(0x204)](){const _0xf1cea7=_0x1e1a41;return _0xf1cea7(0x1de);}static get[_0x1e1a41(0x210)](){return[_0xcca2f4,_0x4975db];}static get[_0x1e1a41(0x222)](){return!0x0;}static get[_0x1e1a41(0x240)](){return!0x0;}[_0x1e1a41(0x1dd)](){const _0x390fd7=_0x1e1a41,{editor:_0x50cba3}=this;_0x50cba3[_0x390fd7(0x234)][_0x390fd7(0x239)](_0x390fd7(0x1eb),_0x390fd7(0x205)),_0x50cba3[_0x390fd7(0x234)][_0x390fd7(0x239)](_0x390fd7(0x1ec),0x1),_0x50cba3[_0x390fd7(0x1e4)][_0x390fd7(0x22b)](_0x390fd7(0x1f7),new _0x44f3f1(_0x50cba3)),_0x50cba3[_0x390fd7(0x1e4)][_0x390fd7(0x22b)](_0x390fd7(0x232),new _0xea854f(_0x50cba3)),this[_0x390fd7(0x212)](),this[_0x390fd7(0x218)](),this[_0x390fd7(0x21a)](),this[_0x390fd7(0x20d)]();}[_0x1e1a41(0x212)](){const _0x2eb0aa=_0x1e1a41,{editor:_0x5a462e}=this,{schema:_0x4f1b10}=_0x5a462e[_0x2eb0aa(0x22a)];_0x4f1b10[_0x2eb0aa(0x233)](_0x2eb0aa(0x23c),{'allowAttributes':[_0x2eb0aa(0x1fa),_0x2eb0aa(0x207)]});}[_0x1e1a41(0x218)](){const _0x4b5eef=_0x1e1a41,{editor:_0x19e227}=this,{conversion:_0x2bab1e,model:_0x300d81}=_0x19e227,{schema:_0x149600}=_0x300d81;_0x2bab1e[_0x4b5eef(0x1ea)](_0x4b5eef(0x201))[_0x4b5eef(0x22b)](_0x361694=>{const _0x3c5641=_0x4b5eef;_0x361694['on'](_0x3c5641(0x1e2),(_0x5a7d69,_0x1630f1,_0x5a4b4f)=>{const _0x557c55=_0x3c5641,_0x344708=_0x1630f1[_0x557c55(0x1f8)],_0x3a3f0d=_0x1630f1[_0x557c55(0x20b)]?.[_0x557c55(0x21d)];_0x344708[_0x557c55(0x208)](_0x557c55(0x20e))&&_0x3a3f0d?.['is'](_0x557c55(0x1e5),_0x557c55(0x23c))&&(function(_0x1cf689,_0x17cee7,_0xa334de,_0x50bf2a){const _0x3b1ae8=_0x557c55;if(!_0x50bf2a[_0x3b1ae8(0x22d)](_0x17cee7,_0x3b1ae8(0x207)))return;let _0x29de77=0x1;const _0x547508=_0xa334de[_0x3b1ae8(0x20f)][_0x3b1ae8(0x1ee)](_0x1cf689,{'attributes':_0x3b1ae8(0x241)});if(_0x547508){const _0x73fc84=Number[_0x3b1ae8(0x1ff)](_0x1cf689[_0x3b1ae8(0x209)](_0x3b1ae8(0x241)),0xa);Number[_0x3b1ae8(0x1ed)](_0x73fc84)||(_0x29de77=_0x73fc84);}!_0x547508&&_0x17cee7[_0x3b1ae8(0x21c)](_0x3b1ae8(0x207))||_0xa334de[_0x3b1ae8(0x22c)][_0x3b1ae8(0x236)](_0x3b1ae8(0x207),_0x29de77,_0x17cee7);}(_0x344708,_0x3a3f0d,_0x5a4b4f,_0x149600),function(_0x3d7b4b,_0x2a62cb,_0x4204ba,_0x274ff4){const _0x226e4f=_0x557c55;if(!_0x274ff4[_0x226e4f(0x22d)](_0x2a62cb,_0x226e4f(0x1fa)))return;let _0x44cc05=_0x226e4f(0x205),_0x13427f=!0x1;if(_0x4204ba[_0x226e4f(0x20f)][_0x226e4f(0x1ee)](_0x3d7b4b,{'attributes':_0x226e4f(0x1f1)})){const _0x2b03e7={0x1:_0x226e4f(0x205),'a':_0x226e4f(0x206),'A':_0x226e4f(0x237),'i':_0x226e4f(0x220),'I':_0x226e4f(0x223)}[_0x3d7b4b[_0x226e4f(0x209)](_0x226e4f(0x1f1))];_0x2b03e7&&(_0x44cc05=_0x2b03e7),_0x13427f=!0x0;}_0x4204ba[_0x226e4f(0x20f)][_0x226e4f(0x1ee)](_0x3d7b4b,{'styles':_0x226e4f(0x228)})&&(_0x44cc05=_0x3d7b4b[_0x226e4f(0x23f)](_0x226e4f(0x228)),_0x13427f=!0x0),!_0x13427f&&_0x2a62cb[_0x226e4f(0x21c)](_0x226e4f(0x1fa))||_0x4204ba[_0x226e4f(0x22c)][_0x226e4f(0x236)](_0x226e4f(0x1fa),_0x44cc05,_0x2a62cb);}(_0x344708,_0x3a3f0d,_0x5a4b4f,_0x149600));});}),_0x2bab1e[_0x4b5eef(0x1ea)](_0x4b5eef(0x1e0))[_0x4b5eef(0x22b)](_0x1c0d87=>{const _0x372de2=_0x4b5eef;_0x1c0d87['on'](_0x372de2(0x1f9),(_0x10ef53,_0x49591b,_0x218e89)=>{const _0x2b218f=_0x372de2;if(!_0x218e89[_0x2b218f(0x20f)][_0x2b218f(0x1ee)](_0x49591b[_0x2b218f(0x200)],_0x10ef53[_0x2b218f(0x22e)]))return;const _0x5c532b=M(_0x49591b[_0x2b218f(0x200)],_0x218e89[_0x2b218f(0x23a)]),{attributeNewValue:_0x2f705d}=_0x49591b;null==_0x2f705d||0x1===_0x2f705d?_0x218e89[_0x2b218f(0x22c)][_0x2b218f(0x1e1)](_0x2b218f(0x241),_0x5c532b):_0x218e89[_0x2b218f(0x22c)][_0x2b218f(0x236)](_0x2b218f(0x241),String(_0x2f705d),_0x5c532b);}),_0x1c0d87['on'](_0x372de2(0x1dc),(_0x1f869a,_0x55a586,_0x3aad2f)=>{const _0x37fca8=_0x372de2;if(!_0x3aad2f[_0x37fca8(0x20f)][_0x37fca8(0x1ee)](_0x55a586[_0x37fca8(0x200)],_0x1f869a[_0x37fca8(0x22e)]))return;const _0x223a0b=M(_0x55a586[_0x37fca8(0x200)],_0x3aad2f[_0x37fca8(0x23a)]),{attributeNewValue:_0x3e662a}=_0x55a586;_0x3e662a&&_0x37fca8(0x205)!==_0x3e662a?_0x3aad2f[_0x37fca8(0x22c)][_0x37fca8(0x221)](_0x37fca8(0x228),_0x3e662a,_0x223a0b):_0x3aad2f[_0x37fca8(0x22c)][_0x37fca8(0x1ef)](_0x37fca8(0x228),_0x223a0b);});});}[_0x1e1a41(0x20d)](){const _0xf66b22=_0x1e1a41,{editor:_0x4fccb8}=this,{model:_0x501020}=_0x4fccb8,_0x43102e=_0x4fccb8[_0xf66b22(0x23e)][_0xf66b22(0x229)](_0x4975db),_0x3f13c5=this[_0xf66b22(0x1fc)](),_0x4e7b6a=this[_0xf66b22(0x211)]();_0x501020[_0xf66b22(0x231)][_0xf66b22(0x1fb)](_0xba259b=>{const _0x313214=_0xf66b22,_0x360a27=_0x501020[_0x313214(0x231)][_0x313214(0x226)][_0x313214(0x1f0)]();let _0x4d9c65=!0x1;for(const _0x2a6b5e of _0x360a27){if(_0x313214(0x1db)!==_0x2a6b5e[_0x313214(0x1f1)]||_0x313214(0x1e9)===_0x2a6b5e[_0x313214(0x22e)])continue;const _0x6625ea=_0x501020[_0x313214(0x1f6)](_0x2a6b5e[_0x313214(0x21e)][_0x313214(0x23d)]);for(const _0xa3ed1e of _0x6625ea[_0x313214(0x1f2)]())_0xa3ed1e['is'](_0x313214(0x1e5),_0x313214(0x23c))&&(!_0xa3ed1e[_0x313214(0x21c)](_0x313214(0x207))&&_0x501020[_0x313214(0x1e7)][_0x313214(0x22d)](_0xa3ed1e,_0x313214(0x207))&&(_0xba259b[_0x313214(0x236)](_0x313214(0x207),_0x4e7b6a,_0xa3ed1e),_0x4d9c65=!0x0),!_0xa3ed1e[_0x313214(0x21c)](_0x313214(0x1fa))&&_0x501020[_0x313214(0x1e7)][_0x313214(0x22d)](_0xa3ed1e,_0x313214(0x1fa))&&(_0xba259b[_0x313214(0x236)](_0x313214(0x1fa),_0x3f13c5,_0xa3ed1e),_0x4d9c65=!0x0));}return _0x4d9c65&&_0x43102e[_0x313214(0x230)](_0xba259b),_0x4d9c65;});}[_0x1e1a41(0x21a)](){const _0x1cfa6b=_0x1e1a41,{editor:_0x47f676}=this;_0x47f676[_0x1cfa6b(0x23e)][_0x1cfa6b(0x229)](_0x4975db)[_0x1cfa6b(0x20c)](_0x378c08=>this[_0x1cfa6b(0x1f5)](_0x378c08));}[_0x1e1a41(0x1fc)](){const _0x2eb45e=_0x1e1a41;return this[_0x2eb45e(0x1f4)][_0x2eb45e(0x234)][_0x2eb45e(0x229)](_0x2eb45e(0x1eb));}[_0x1e1a41(0x211)](){const _0x12a2d0=_0x1e1a41;return this[_0x12a2d0(0x1f4)][_0x12a2d0(0x234)][_0x12a2d0(0x229)](_0x12a2d0(0x1ec));}[_0x1e1a41(0x1f5)]({container:_0x1e2a91,value:_0x206f41,digits:_0x4ca966}){const _0x4895c8=_0x1e1a41,_0x4df352=_0x1e2a91[_0x4895c8(0x209)](_0x4895c8(0x1fa)),_0x398d5b=_0x1e2a91[_0x4895c8(0x209)](_0x4895c8(0x207)),_0x5ac235=Math[_0x4895c8(0x22f)](_0x206f41)+(_0x398d5b??0x1)-0x1;switch(_0x4df352){case _0x4895c8(0x1f3):return function(_0x1835d9,_0x3654f5){const _0x43633b=_0x4895c8;return String(_0x1835d9)[_0x43633b(0x1e6)](_0x3654f5,'0');}(_0x5ac235,Math[_0x4895c8(0x21b)](0x2,_0x4ca966));case _0x4895c8(0x206):case _0x4895c8(0x227):return N(_0x5ac235,!0x1);case _0x4895c8(0x237):case _0x4895c8(0x20a):return N(_0x5ac235,!0x0);case _0x4895c8(0x220):return X(_0x5ac235,!0x1);case _0x4895c8(0x223):return X(_0x5ac235,!0x0);default:return String(_0x5ac235);}}}function _0x2095(_0x3c0947,_0x2bff4c){const _0x23be8e=_0x23be();return _0x2095=function(_0x2095b6,_0x20794d){_0x2095b6=_0x2095b6-0x1db;let _0x36c09d=_0x23be8e[_0x2095b6];return _0x36c09d;},_0x2095(_0x3c0947,_0x2bff4c);}function M(_0x3fb043,_0x19255d){const _0x187a16=_0x1e1a41,_0x518320=_0x19255d[_0x187a16(0x214)](_0x3fb043);return Array[_0x187a16(0x1e8)](_0x518320[_0x187a16(0x235)]())[_0x187a16(0x1fe)](_0x54f465=>_0x54f465['is'](_0x187a16(0x1e5),'ol')&&_0x54f465[_0x187a16(0x208)](_0x187a16(0x20e)));}function N(_0x41a49b,_0x574384){const _0x22e6dd=_0x1e1a41;let _0xf887ae='',_0x52e508=_0x41a49b;for(;_0x52e508>0x0;){const _0xd7e446=(_0x52e508-0x1)%0x1a;_0xf887ae=String[_0x22e6dd(0x203)](0x61+_0xd7e446)+_0xf887ae,_0x52e508=Math[_0x22e6dd(0x22f)]((_0x52e508-0x1)/0x1a);}return _0x574384?_0xf887ae[_0x22e6dd(0x1df)]():_0xf887ae;}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(_0x2d8801,_0x36e712){const _0x545c83=_0x1e1a41;let _0xc5087c='',_0x2183e3=_0x2d8801;for(const {value:_0x38399c,numeral:_0x51aa0e}of V)for(;_0x2183e3>=_0x38399c;)_0xc5087c+=_0x51aa0e,_0x2183e3-=_0x38399c;return _0x36e712?_0xc5087c:_0xc5087c[_0x545c83(0x216)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x1b9f2b,ButtonView as _0x257058,ContextualBalloon as _0x3fb0d1,createDropdown as _0x5c0021}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x278212}from'ckeditor5/src/widget.js';import{Plugin as _0x4f7b6e}from'ckeditor5/src/core.js';import{IconFootnote as _0x398915,IconListStyleDecimal as _0x3c652b,IconListStyleDecimalLeadingZero as _0x322230,IconListStyleLowerLatin as _0x1349c0,IconListStyleLowerRoman as _0x4ca886,IconListStyleUpperLatin as _0x57c1e7,IconListStyleUpperRoman as _0x356d34}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x160dbf}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2c220d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4f7b6e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3fb0d1,_0x278212];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9cc795}=this,{componentFactory:_0x5044d8}=_0x9cc795['ui'];_0x9cc795['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5044d8['add']('footnotesStyle',function(_0x28f274){return _0x3c9145=>{const {t:t}=_0x3c9145,_0x424207=_0x28f274['commands']['get']('footnotesStyle'),_0x4f8b97=_0x5c0021(_0x3c9145),{buttonView:_0x158d7e}=_0x4f8b97;return _0x4f8b97['class']='ck-footnotes-styles-dropdown',_0x4f8b97['bind']('isEnabled')['to'](_0x424207,'isEnabled'),_0x158d7e['set']({'label':t('Footnotes\x20style'),'icon':_0x398915,'tooltip':!0x0}),_0x4f8b97['once']('change:isOpen',()=>{const _0x48b2e9=function({editor:_0x47f73d,dropdownView:_0x4fdecf}){const {t:t}=_0x47f73d['locale'],_0x43b6fb=t('Footnotes\x20definitions\x20styles'),_0x308e87=function(_0x2b49e2){const t=_0x2b49e2['locale']['t'],_0x1fd042=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3c652b},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x322230},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4ca886},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x356d34},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1349c0},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57c1e7}];return _0x1fd042['map'](function(_0x5ecbc6){const _0x3c4c18=_0x5ecbc6['locale'];return({label:_0x57189f,icon:_0x234d39,tooltip:_0x2f0908,style:_0x369165})=>{const _0x4df543=_0x5ecbc6['commands']['get']('footnotesStyle'),_0x5d3ad1=new _0x257058(_0x3c4c18);return _0x5d3ad1['set']({'label':_0x57189f,'icon':_0x234d39,'tooltip':_0x2f0908}),_0x5d3ad1['bind']('isOn')['to'](_0x4df543,'value',_0x41dfcb=>_0x41dfcb===_0x369165),_0x5d3ad1['bind']('isEnabled')['to'](_0x4df543,'isEnabled'),_0x5d3ad1['on']('execute',()=>{_0x5ecbc6['execute']('footnotesStyle',{'value':_0x369165}),_0x5ecbc6['editing']['view']['focus']();}),_0x5d3ad1;};}(_0x2b49e2));}(_0x47f73d),_0x49760b=new _0x160dbf(_0x47f73d['locale'],{'styleGridAriaLabel':_0x43b6fb,'styleButtonViews':_0x308e87});return _0x49760b['delegate']('execute')['to'](_0x4fdecf),_0x49760b['on']('footnotesListStart',(_0x4a9fcc,_0x40fa76)=>{_0x47f73d['execute']('footnotesStart',{'value':_0x40fa76['startIndex']});}),_0x49760b;}({'editor':_0x28f274,'dropdownView':_0x4f8b97});_0x4f8b97['panelView']['children']['add'](_0x48b2e9);}),_0x4f8b97;};}(_0x9cc795));}['afterInit'](){const {editor:_0x297577}=this,{t:t}=_0x297577['locale'],_0xff8e1f=_0x297577['plugins']['get'](_0x278212),{defaultPositions:_0x21a81c}=_0x1b9f2b;_0xff8e1f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x297577['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x21a675=>{let _0x7e18c7=_0x21a675['getFirstPosition']()?.['parent'];return _0x7e18c7?.['is']('$text')&&(_0x7e18c7=_0x7e18c7['parent']),_0x7e18c7?.['is']('element')?_0x7e18c7['findAncestor'](_0x2c220d):null;},'positions':[_0x21a81c['southArrowNorth'],_0x21a81c['southArrowNorthMiddleWest'],_0x21a81c['southArrowNorthMiddleEast'],_0x21a81c['southArrowNorthWest'],_0x21a81c['southArrowNorthEast'],_0x21a81c['northArrowSouth'],_0x21a81c['northArrowSouthMiddleWest'],_0x21a81c['northArrowSouthMiddleEast'],_0x21a81c['northArrowSouthWest'],_0x21a81c['northArrowSouthEast'],_0x21a81c['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1c2c8a,View as _0x5cb5af,ViewCollection as _0x206f42,FocusCycler as _0x427b95,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 _0x5cb5af{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x206f42();['focusCycler'];constructor(_0x123c90,{styleButtonViews:_0x464114,styleGridAriaLabel:_0x482981}){super(_0x123c90),(this['focusCycler']=new _0x427b95({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x464114,_0x482981),[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 _0x5bb6ef of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5bb6ef['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 _0x1cccf9=_0x5af1d9=>_0x5af1d9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1cccf9),this['keystrokes']['set']('arrowleft',_0x1cccf9),this['keystrokes']['set']('arrowup',_0x1cccf9),this['keystrokes']['set']('arrowdown',_0x1cccf9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5e0800,_0x450960){const _0x204b39=new _0x5cb5af(this['locale']);return _0x204b39['children']=_0x204b39['createCollection'](),_0x204b39['children']['addMany'](_0x5e0800),_0x204b39['setTemplate']({'tag':'div','attributes':{'aria-label':_0x450960,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x204b39['children']}),_0x204b39['children']['delegate']('execute')['to'](this),_0x204b39['focus']=function(){for(const _0x1c655a of this['children'])if(_0x1c655a instanceof _0x1c2c8a&&_0x1c655a['isOn'])return void _0x1c655a['focus']();this['children']['first']['focus']();},_0x204b39['focusTracker']=new ot(),_0x204b39['keystrokes']=new rt(),_0x204b39['render'](),_0x204b39['keystrokes']['listenTo'](_0x204b39['element']),this['children']['add'](_0x204b39),_0x204b39;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1758c1=this['_createStartIndexPropertyView'](),_0x41175a=[_0x1758c1],_0x3d33e5=new st(this['locale'],_0x41175a);return _0x3d33e5['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3d33e5['buttonView']['bind']('isEnabled')['toMany'](_0x41175a,'isEnabled',(..._0x490532)=>_0x490532['some'](_0x1ae1c6=>_0x1ae1c6)),_0x3d33e5['buttonView']['on']('change:isEnabled',(_0x3ac942,_0x323a00,_0x374d3a)=>{_0x374d3a||(_0x3d33e5['isCollapsed']=!0x0);}),this['children']['add'](_0x3d33e5),[_0x1758c1,_0x3d33e5];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5f47c0=new it(this['locale'],et);return _0x5f47c0['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5f47c0['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5f47c0['fieldView']['on']('input',()=>{const _0xc37a71=_0x5f47c0['fieldView']['element'],_0x14c1ed=_0xc37a71['valueAsNumber'];Number['isNaN'](_0x14c1ed)?_0x5f47c0['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0xc37a71['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x14c1ed}):_0x5f47c0['errorText']=t(_0x14c1ed<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5f47c0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2363f0=_0xf47d;function _0x2300(){var _0xfbaf2e=['862432FUzGfP','1194996RURwMf','requires','104481ZkBoqE','2797480PzgWMy','671451yPpQUo','isOfficialPlugin','FootnotesProperties','pluginName','isPremiumPlugin','151492QnggIX','578915qzJmWJ'];_0x2300=function(){return _0xfbaf2e;};return _0x2300();}(function(_0x63a44e,_0x34a6fa){var _0x5cc2b8=_0xf47d,_0x558cdf=_0x63a44e();while(!![]){try{var _0x488bc4=-parseInt(_0x5cc2b8(0x10e))/0x1+-parseInt(_0x5cc2b8(0x115))/0x2+-parseInt(_0x5cc2b8(0x110))/0x3+parseInt(_0x5cc2b8(0x10b))/0x4+parseInt(_0x5cc2b8(0x116))/0x5+-parseInt(_0x5cc2b8(0x10c))/0x6+parseInt(_0x5cc2b8(0x10f))/0x7;if(_0x488bc4===_0x34a6fa)break;else _0x558cdf['push'](_0x558cdf['shift']());}catch(_0xd466be){_0x558cdf['push'](_0x558cdf['shift']());}}}(_0x2300,0x1f34d));import{Plugin as _0x2d560d}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x210197}from'./footnotesproperties/footnotespropertiesediting.js';function _0xf47d(_0x173b54,_0x2c6cab){var _0x23009a=_0x2300();return _0xf47d=function(_0xf47d91,_0x1d0a51){_0xf47d91=_0xf47d91-0x10b;var _0x121c59=_0x23009a[_0xf47d91];return _0x121c59;},_0xf47d(_0x173b54,_0x2c6cab);}import{FootnotesPropertiesUI as _0x48da03}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x2d560d{static get[_0x2363f0(0x113)](){var _0x53cd6e=_0x2363f0;return _0x53cd6e(0x112);}static get[_0x2363f0(0x10d)](){return[_0x210197,_0x48da03];}static get[_0x2363f0(0x111)](){return!0x0;}static get[_0x2363f0(0x114)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x54bf7f=_0x1f1f;(function(_0x3a9a4e,_0x408dca){const _0x429107=_0x1f1f,_0x1afdc9=_0x3a9a4e();while(!![]){try{const _0x2a8a00=parseInt(_0x429107(0x129))/0x1*(-parseInt(_0x429107(0x106))/0x2)+parseInt(_0x429107(0x11e))/0x3+parseInt(_0x429107(0x148))/0x4*(parseInt(_0x429107(0xfb))/0x5)+parseInt(_0x429107(0x130))/0x6*(parseInt(_0x429107(0x138))/0x7)+parseInt(_0x429107(0x137))/0x8*(-parseInt(_0x429107(0x102))/0x9)+-parseInt(_0x429107(0x12b))/0xa*(-parseInt(_0x429107(0x105))/0xb)+parseInt(_0x429107(0x14b))/0xc*(-parseInt(_0x429107(0xfe))/0xd);if(_0x2a8a00===_0x408dca)break;else _0x1afdc9['push'](_0x1afdc9['shift']());}catch(_0x335afb){_0x1afdc9['push'](_0x1afdc9['shift']());}}}(_0xc316,0x84a48));import{Plugin as _0x454273}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x3dd8d1}from'./modelelementtracker.js';function _0x1f1f(_0x2d6d42,_0x560747){const _0xc316dd=_0xc316();return _0x1f1f=function(_0x1f1f62,_0x47e616){_0x1f1f62=_0x1f1f62-0xe7;let _0xddc456=_0xc316dd[_0x1f1f62];return _0xddc456;},_0x1f1f(_0x2d6d42,_0x560747);}export class FootnotesTracker extends _0x454273{[_0x54bf7f(0x119)]=[];[_0x54bf7f(0xf9)]=null;[_0x54bf7f(0x11b)]=null;[_0x54bf7f(0x104)];[_0x54bf7f(0x13b)];[_0x54bf7f(0xf4)];static get[_0x54bf7f(0xf6)](){const _0x46608c=_0x54bf7f;return _0x46608c(0x103);}static get[_0x54bf7f(0x134)](){return!0x0;}static get[_0x54bf7f(0x113)](){return!0x0;}constructor(_0x48369c){const _0x241448=_0x54bf7f;super(_0x48369c),this[_0x241448(0x104)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0x139),'getElementKey':()=>_0x241448(0x13a)}),this[_0x241448(0x13b)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0x10b),'getElementKey':_0x4e763e=>_0x4e763e[_0x241448(0x14d)](_0x241448(0x14c))}),this[_0x241448(0xf4)]=new _0x3dd8d1(this[_0x241448(0xff)][_0x241448(0x120)],{'elementName':_0x241448(0xf8),'getElementKey':_0x1d4219=>_0x1d4219[_0x241448(0x14d)](_0x241448(0x14c))});}[_0x54bf7f(0x128)](){const _0x19bb5b=_0x54bf7f,{editor:_0x1763a5}=this,{model:_0x104b5d,data:_0x261c42}=_0x1763a5;_0x104b5d[_0x19bb5b(0x10f)][_0x19bb5b(0xee)](_0x3b6e53=>{const _0x423055=_0x19bb5b,_0x2d2d66=_0x104b5d[_0x423055(0x10f)][_0x423055(0x108)][_0x423055(0x109)]();let _0x3df4c3=!0x1;return this[_0x423055(0x13c)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0x112)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0xea)](_0x3b6e53,_0x2d2d66)&&(_0x3df4c3=!0x0),this[_0x423055(0x146)](_0x3b6e53)&&(_0x3df4c3=!0x0),this[_0x423055(0xeb)](_0x3b6e53)&&(_0x3df4c3=!0x0),this[_0x423055(0xec)](_0x3b6e53)&&(_0x3df4c3=!0x0),_0x3df4c3;}),this[_0x19bb5b(0x13f)](_0x104b5d[_0x19bb5b(0x10f)],_0x19bb5b(0xe7),()=>{const _0x150a9a=_0x19bb5b;_0x104b5d[_0x150a9a(0x142)]({'isUndoable':!0x1},_0x1802ae=>{const _0x56d650=_0x150a9a;this[_0x56d650(0x122)](_0x1802ae);});},{'priority':_0x19bb5b(0xe8)}),this[_0x19bb5b(0x13f)](_0x261c42,_0x19bb5b(0x135),()=>{const _0xbcceed=_0x19bb5b;this[_0xbcceed(0x119)]=[],this[_0xbcceed(0x104)][_0xbcceed(0x111)](),this[_0xbcceed(0x13b)][_0xbcceed(0x111)](),this[_0xbcceed(0xf4)][_0xbcceed(0x111)]();},{'priority':_0x19bb5b(0xf3)});}[_0x54bf7f(0x10a)](){const _0x3ee266=_0x54bf7f;return this[_0x3ee266(0xf9)];}[_0x54bf7f(0x147)](_0x82e220){const _0x3efb24=_0x54bf7f;return this[_0x3efb24(0x119)][_0x3efb24(0x141)](_0x2b95a5=>_0x2b95a5['id']===_0x82e220)||null;}[_0x54bf7f(0x100)](){const _0x255bab=_0x54bf7f;return Array[_0x255bab(0xe9)](this[_0x255bab(0x119)]);}[_0x54bf7f(0x12c)](){const _0x2c74eb=_0x54bf7f;return this[_0x2c74eb(0x11b)];}[_0x54bf7f(0x11d)](_0x57e365){const _0x13560c=_0x54bf7f;this[_0x13560c(0x11b)]=_0x57e365;}[_0x54bf7f(0x133)](_0x3f8a98,_0x42b46a=0x0){const _0x41d879=_0x54bf7f;let _0x2da9cd=!0x1;for(let _0x36f751=_0x42b46a;_0x36f751<this[_0x41d879(0x119)][_0x41d879(0x14e)];_0x36f751++)this[_0x41d879(0xf1)](_0x3f8a98,_0x36f751)&&(_0x2da9cd=!0x0);return _0x2da9cd;}[_0x54bf7f(0x14a)](_0x110b96,_0x522a4e){const _0x1b8514=_0x54bf7f,_0x557c88=_0x110b96[_0x1b8514(0x126)](_0x1b8514(0x139),{});return _0x110b96[_0x1b8514(0xfd)](_0x557c88,_0x522a4e),this[_0x1b8514(0xf9)]=_0x557c88,_0x557c88;}[_0x54bf7f(0x122)](_0x1b906d){const _0x4ebbb6=_0x54bf7f;if(!this[_0x4ebbb6(0x119)][_0x4ebbb6(0x14e)]||this[_0x4ebbb6(0xf9)])return;const _0x3e56e6=this[_0x4ebbb6(0x119)][0x0][_0x4ebbb6(0x115)][_0x4ebbb6(0x12d)],_0x4ff990=this[_0x4ebbb6(0x14a)](_0x1b906d,_0x3e56e6);for(const _0x340502 of this[_0x4ebbb6(0x119)])_0x340502[_0x4ebbb6(0x10d)][_0x4ebbb6(0xf2)]||_0x1b906d[_0x4ebbb6(0x118)](_0x340502[_0x4ebbb6(0x10d)],_0x4ff990,_0x4ebbb6(0x10e));this[_0x4ebbb6(0x133)](_0x1b906d);}[_0x54bf7f(0x13c)](_0x3eec7f,_0x5e57a8){const _0x17a777=_0x54bf7f;let _0x417136=!0x1;const {inserted:_0x2621ec,removed:_0x408a38,moved:_0x33ba3b}=this[_0x17a777(0x104)][_0x17a777(0x109)](_0x5e57a8);if(_0x33ba3b[_0x17a777(0x14e)]&&(this[_0x17a777(0xf9)]=_0x33ba3b[0x0]),_0x2621ec[_0x17a777(0x14e)]){if(_0x2621ec[_0x17a777(0x14e)]>0x1||this[_0x17a777(0xf9)]&&_0x2621ec[_0x17a777(0x11c)](_0x3ab1ee=>_0x3ab1ee!==this[_0x17a777(0xf9)])){const _0x47f904=_0x3eec7f[_0x17a777(0x126)](_0x17a777(0x139),{}),_0x5173d6=[];this[_0x17a777(0xf9)]&&_0x5173d6[_0x17a777(0x11f)](this[_0x17a777(0xf9)]),_0x5173d6[_0x17a777(0x11f)](..._0x2621ec),_0x3eec7f[_0x17a777(0x118)](_0x47f904,_0x5173d6[0x0],_0x17a777(0x132));for(const _0x63771a of _0x5173d6)_0x3eec7f[_0x17a777(0x10c)](_0x3eec7f[_0x17a777(0x114)](_0x63771a),_0x3eec7f[_0x17a777(0x140)](_0x47f904,_0x17a777(0x10e))),_0x3eec7f[_0x17a777(0xf7)](_0x63771a);this[_0x17a777(0xf9)]=_0x47f904,this[_0x17a777(0x133)](_0x3eec7f),_0x417136=!0x0;}else this[_0x17a777(0xf9)]=_0x2621ec[0x0];}if(_0x408a38[_0x17a777(0x14e)]&&_0x17a777(0x12a)===this[_0x17a777(0xf9)]?.[_0x17a777(0x12d)][_0x17a777(0x12e)]){for(const _0x3338cc of this[_0x17a777(0x119)])_0x3eec7f[_0x17a777(0xf7)](_0x3338cc[_0x17a777(0x115)]),_0x417136=!0x0;this[_0x17a777(0x119)]=[],this[_0x17a777(0xf9)]=null;}return _0x417136;}[_0x54bf7f(0x112)](_0x50c79a,_0x56054f){const _0x3e5f58=_0x54bf7f;let _0x38bc5=!0x1;const _0x37113b=this[_0x3e5f58(0xff)][_0x3e5f58(0x136)][_0x3e5f58(0x124)](_0x3e5f58(0x13e)),{inserted:_0x22cf8f,moved:_0x17f86f}=this[_0x3e5f58(0xf4)][_0x3e5f58(0x109)](_0x56054f);for(const _0x403dbc of[..._0x17f86f,..._0x22cf8f]){const _0x477222=_0x403dbc[_0x3e5f58(0x14d)](_0x3e5f58(0x14c)),_0x545d10=this[_0x3e5f58(0x147)](_0x477222);_0x545d10&&(_0x545d10[_0x3e5f58(0x10d)]=_0x403dbc),_(_0x50c79a,_0x37113b,_0x403dbc)&&(_0x38bc5=!0x0);}return _0x38bc5;}[_0x54bf7f(0xea)](_0x52a6a7,_0x4af8a9){const _0x22d832=_0x54bf7f;let _0x3e59ed=!0x1;const {removed:_0x344e70,inserted:_0x21b226,moved:_0xda5b62}=this[_0x22d832(0x13b)][_0x22d832(0x109)](_0x4af8a9);for(const _0x48258d of _0x344e70)this[_0x22d832(0x101)](_0x52a6a7,_0x48258d)&&(_0x3e59ed=!0x0);for(const _0x518695 of _0x21b226)this[_0x22d832(0xf0)](_0x52a6a7,_0x518695)&&(_0x3e59ed=!0x0);for(const _0xe8d23b of _0xda5b62)this[_0x22d832(0x13d)](_0x52a6a7,_0xe8d23b)&&(_0x3e59ed=!0x0);return _0x3e59ed;}[_0x54bf7f(0xeb)](_0x32995f){const _0x3779f1=_0x54bf7f;if(!this[_0x3779f1(0xf9)])return!0x1;let _0x43b94e=!0x1;if(this[_0x3779f1(0xf9)][_0x3779f1(0x117)]!==this[_0x3779f1(0x119)][_0x3779f1(0x14e)]){const _0x13c3bf=[];for(const _0x5518eb of this[_0x3779f1(0xf9)][_0x3779f1(0xfc)]()){const _0x1ac692=_0x5518eb[_0x3779f1(0x14d)](_0x3779f1(0x14c));this[_0x3779f1(0x147)](_0x1ac692)||(_0x13c3bf[_0x3779f1(0x11a)](_0x5518eb),_0x43b94e=!0x0);}for(const _0x59cce1 of _0x13c3bf)_0x32995f[_0x3779f1(0xf7)](_0x59cce1);}const _0x325b1b=new Set(),_0x55e340=[];for(const _0xb25716 of this[_0x3779f1(0xf9)][_0x3779f1(0xfc)]()){const _0x560b62=_0xb25716[_0x3779f1(0x14d)](_0x3779f1(0x14c));_0x325b1b[_0x3779f1(0xef)](_0x560b62)?(_0x55e340[_0x3779f1(0x11a)](_0xb25716),_0x43b94e=!0x0):_0x325b1b[_0x3779f1(0xf5)](_0x560b62);}for(const _0x52fc16 of _0x55e340)_0x32995f[_0x3779f1(0xf7)](_0x52fc16);return this[_0x3779f1(0xf9)][_0x3779f1(0x117)]||(_0x32995f[_0x3779f1(0xf7)](this[_0x3779f1(0xf9)]),this[_0x3779f1(0xf9)]=null,_0x43b94e=!0x0),_0x43b94e;}[_0x54bf7f(0xf0)](_0xf1e51e,_0x517a29){const _0xdde1d2=_0x54bf7f;if(this[_0xdde1d2(0x119)][_0xdde1d2(0x141)](_0x55e4db=>_0x55e4db[_0xdde1d2(0x115)]===_0x517a29))return!0x1;let _0x43c849=!0x1;const _0x39e199=_0x517a29[_0xdde1d2(0x14d)](_0xdde1d2(0x14c)),_0x192c60=this[_0xdde1d2(0x119)][_0xdde1d2(0x144)](_0x3a5087=>_0x3a5087['id']===_0x39e199);-0x1!==_0x192c60&&(_0xf1e51e[_0xdde1d2(0xf7)](this[_0xdde1d2(0x119)][_0x192c60][_0xdde1d2(0x115)]),this[_0xdde1d2(0x119)][_0xdde1d2(0x12f)](_0x192c60,0x1),_0x43c849=!0x0);let _0x6e582e=this[_0xdde1d2(0xf9)]?function(_0x407cd2,_0x2a0240){const _0x3eb145=_0xdde1d2;for(const _0x390732 of _0x407cd2[_0x3eb145(0xfc)]())if(_0x390732[_0x3eb145(0x14d)](_0x3eb145(0x14c))===_0x2a0240)return _0x390732;return null;}(this[_0xdde1d2(0xf9)],_0x39e199):null;_0x6e582e||(_0x6e582e=_0xf1e51e[_0xdde1d2(0x126)](_0xdde1d2(0xf8),{'footnoteId':_0x39e199}),this[_0xdde1d2(0xf9)]&&(_0xf1e51e[_0xdde1d2(0x118)](_0x6e582e,this[_0xdde1d2(0xf9)],_0xdde1d2(0x10e)),_0x43c849=!0x0));const _0x392d06={'id':_0x39e199,'reference':_0x517a29,'definition':_0x6e582e},_0x5e290b=I(this[_0xdde1d2(0xff)][_0xdde1d2(0x120)],this[_0xdde1d2(0x119)],_0x517a29);this[_0xdde1d2(0x119)][_0xdde1d2(0x12f)](_0x5e290b,0x0,_0x392d06);let _0x12d54d=_0x5e290b;return-0x1!==_0x192c60&&(_0x12d54d=Math[_0xdde1d2(0x125)](_0x5e290b,_0x192c60)),this[_0xdde1d2(0x133)](_0xf1e51e,_0x12d54d)&&(_0x43c849=!0x0),_0x43c849;}[_0x54bf7f(0x101)](_0x557a4a,_0x29dd1e){const _0x42d375=_0x54bf7f,_0x5a3e52=this[_0x42d375(0x119)][_0x42d375(0x144)](_0x4fe84a=>_0x4fe84a['id']===_0x29dd1e);if(-0x1===_0x5a3e52)return!0x1;let _0x2fc639=!0x1;const _0x4bdc09=this[_0x42d375(0x119)][_0x5a3e52];return _0x42d375(0x12a)!==_0x4bdc09[_0x42d375(0x10d)][_0x42d375(0x12d)][_0x42d375(0x12e)]&&(_0x557a4a[_0x42d375(0xf7)](_0x4bdc09[_0x42d375(0x10d)]),_0x2fc639=!0x0),this[_0x42d375(0x119)][_0x42d375(0x12f)](_0x5a3e52,0x1),this[_0x42d375(0x133)](_0x557a4a,_0x5a3e52)&&(_0x2fc639=!0x0),_0x2fc639;}[_0x54bf7f(0x13d)](_0x3abd53,_0x3377a2){const _0x548042=_0x54bf7f,_0x450ae7=_0x3377a2[_0x548042(0x14d)](_0x548042(0x14c)),_0x58ac5a=this[_0x548042(0x119)][_0x548042(0x144)](_0x3be32=>_0x3be32['id']===_0x450ae7),_0x2f6a39=this[_0x548042(0x119)][_0x58ac5a];let _0x18e6e8=!0x1;_0x2f6a39[_0x548042(0x115)]=_0x3377a2,this[_0x548042(0x119)][_0x548042(0x12f)](_0x58ac5a,0x1);const _0xc89644=I(this[_0x548042(0xff)][_0x548042(0x120)],this[_0x548042(0x119)],_0x3377a2);return this[_0x548042(0x119)][_0x548042(0x12f)](_0xc89644,0x0,_0x2f6a39),this[_0x548042(0x133)](_0x3abd53,Math[_0x548042(0x125)](_0x58ac5a,_0xc89644))&&(_0x18e6e8=!0x0),_0x18e6e8;}[_0x54bf7f(0xf1)](_0x35a75b,_0x12f2ef){const _0x65e788=_0x54bf7f;if(!this[_0x65e788(0xf9)])return!0x1;const _0x328f52=this[_0x65e788(0x119)][_0x12f2ef];let _0x3d8550;return _0x3d8550=this[_0x65e788(0x11b)]?this[_0x65e788(0x11b)]({'footnote':_0x328f52,'container':this[_0x65e788(0xf9)],'digits':String(this[_0x65e788(0x119)][_0x65e788(0x14e)])[_0x65e788(0x14e)],'value':_0x12f2ef+0x1}):String(_0x12f2ef+0x1),_0x328f52[_0x65e788(0x115)][_0x65e788(0x14d)](_0x65e788(0x123))!=_0x3d8550&&(_0x35a75b[_0x65e788(0x149)](_0x65e788(0x123),_0x3d8550,_0x328f52[_0x65e788(0x115)]),!0x0);}[_0x54bf7f(0xec)](_0x54c33e){const _0x4fbd4e=_0x54bf7f;if(!this[_0x4fbd4e(0xf9)]||this[_0x4fbd4e(0x119)][_0x4fbd4e(0x14e)]<0x2)return!0x1;if(function(_0x61c8ca,_0x34de89){const _0x1036e3=_0x4fbd4e;if(_0x61c8ca[_0x1036e3(0x14e)]!==_0x34de89[_0x1036e3(0x14e)])return!0x1;for(let _0x339f24=0x0;_0x339f24<_0x61c8ca[_0x1036e3(0x14e)];_0x339f24++)if(_0x61c8ca[_0x339f24]!==_0x34de89[_0x339f24])return!0x1;return!0x0;}(this[_0x4fbd4e(0x119)][_0x4fbd4e(0x131)](_0x56ca7c=>_0x56ca7c['id']),Array[_0x4fbd4e(0xe9)](this[_0x4fbd4e(0xf9)][_0x4fbd4e(0xfc)]())[_0x4fbd4e(0x131)](_0x4d1e2c=>_0x4d1e2c[_0x4fbd4e(0x14d)](_0x4fbd4e(0x14c)))))return!0x1;let _0x4a3dab=!0x1;for(let _0x282604=0x0;_0x282604<this[_0x4fbd4e(0x119)][_0x4fbd4e(0x14e)];_0x282604++){const _0x351882=this[_0x4fbd4e(0x119)][_0x282604],_0x466cbb=_0x54c33e[_0x4fbd4e(0x127)](_0x351882[_0x4fbd4e(0x10d)]),_0x46a1ff=_0x54c33e[_0x4fbd4e(0x140)](this[_0x4fbd4e(0xf9)],_0x282604);_0x466cbb[_0x4fbd4e(0x143)](_0x46a1ff)||(_0x54c33e[_0x4fbd4e(0x10c)](_0x54c33e[_0x4fbd4e(0xfa)](_0x351882[_0x4fbd4e(0x10d)]),_0x46a1ff),_0x4a3dab=!0x0);}return _0x4a3dab;}[_0x54bf7f(0x146)](_0x313143){const _0x2a791e=_0x54bf7f;if(!this[_0x2a791e(0x119)][_0x2a791e(0x14e)])return!0x1;const {model:_0x1fac25}=this[_0x2a791e(0xff)];let _0x284048=!0x1;for(let _0x18182e=0x0;_0x18182e<this[_0x2a791e(0x119)][_0x2a791e(0x14e)]-0x1;_0x18182e++){const _0x425fe6=this[_0x2a791e(0x119)][_0x18182e],_0x1f1b1e=this[_0x2a791e(0x119)][_0x18182e+0x1],_0x14ca86=_0x1fac25[_0x2a791e(0x127)](_0x425fe6[_0x2a791e(0x115)]),_0x3612b6=_0x1fac25[_0x2a791e(0x127)](_0x1f1b1e[_0x2a791e(0x115)]);_0x2a791e(0x121)===_0x14ca86[_0x2a791e(0x116)](_0x3612b6)&&(this[_0x2a791e(0x13d)](_0x313143,_0x425fe6[_0x2a791e(0x115)]),_0x18182e=-0x1,_0x284048=!0x0);}return _0x284048;}}function _0xc316(){const _0x43473c=['min','createElement','createPositionBefore','init','1052957AYJDSt','$graveyard','10fFNQcl','getFootnotesFormatter','root','rootName','splice','6PRGRfz','map','before','_updateFootnotesCounters','isOfficialPlugin','set','config','8GSJcgi','3556182wtIShC','footnotesDefinitions','singleton','_footnoteRefsTracker','_handleFootnotesDefinitionsObjectChanges','_handleMovedFootnoteReference','footnotes.multiBlock','listenTo','createPositionAt','find','enqueueChange','isEqual','findIndex','paragraph','_ensureFootnotesReferencesHaveProperOrder','getFootnote','4162124JOSady','setAttribute','_insertEmptyFootnotesDefinitionsContainer','12KgtFKZ','footnoteId','getAttribute','length','change:data','low','from','_handleFootnoteReferencesChanges','_handleFootnotesDefinitionsObjectSync','_sortFootnoteDefinitions','footnoteInlineContent','registerPostFixer','has','_handleInsertedFootnoteReference','_updateFootnoteRefCounter','parent','high','_footnoteDefsTracker','add','pluginName','remove','footnoteDefinition','_footnotesDefinitions','createRangeOn','5sDtoYx','getChildren','append','21041501BkDhSI','editor','getFootnotes','_handleRemoveFootnoteReferenceById','962514ARKSIy','FootnotesTracker','_footnoteDefsContainerTracker','8451773nDCxsl','2HFHPgM','getRootNames','differ','getChanges','getFootnotesDefinitionsObjectElement','footnoteRef','move','definition','end','document','indexOf','reset','_handleFootnoteDefinitionsChanges','isPremiumPlugin','createRangeIn','reference','compareWith','childCount','insert','_footnotes','unshift','_footnoteFormatter','some','setFootnoteFormatter','3014652GOXCPQ','push','model','after','_ensureFootnotesDefinitionsContainerExists','footnoteCounter','get'];_0xc316=function(){return _0x43473c;};return _0xc316();}function _(_0x1143c3,_0x2bd240,_0x205ccc){const _0x3e96f3=_0x54bf7f;if(_0x205ccc[_0x3e96f3(0x117)])return!0x1;const _0x3a8e43=_0x2bd240?_0x3e96f3(0x145):_0x3e96f3(0xed);return _0x1143c3[_0x3e96f3(0x118)](_0x1143c3[_0x3e96f3(0x126)](_0x3a8e43),_0x205ccc),!0x0;}function I(_0x272a09,_0x4149ca,_0x3c6470){const _0x57331a=_0x54bf7f;if(0x0===_0x4149ca[_0x57331a(0x14e)])return 0x0;const _0x257903=_0x272a09[_0x57331a(0x127)](_0x3c6470);for(let _0x2259a9=0x0;_0x2259a9<_0x4149ca[_0x57331a(0x14e)];_0x2259a9++){const _0x2d2dc1=_0x4149ca[_0x2259a9],_0x2d4dbe=_0x272a09[_0x57331a(0x127)](_0x2d2dc1[_0x57331a(0x115)]);if(_0x57331a(0x132)===_0x257903[_0x57331a(0x116)](_0x2d4dbe))return _0x2259a9;}const _0x2e564f=_0x3c6470[_0x57331a(0x12d)];let _0x2aef9e=-0x1;for(let _0x916b25=_0x4149ca[_0x57331a(0x14e)]-0x1;_0x916b25>=0x0;_0x916b25--)if(_0x4149ca[_0x916b25][_0x57331a(0x115)][_0x57331a(0x12d)]===_0x2e564f){_0x2aef9e=_0x916b25;break;}if(-0x1!==_0x2aef9e)return _0x2aef9e+0x1;const _0x22cbc5=_0x272a09[_0x57331a(0x10f)][_0x57331a(0x107)](),_0x456931=_0x22cbc5[_0x57331a(0x110)](_0x2e564f[_0x57331a(0x12e)]),_0x637687=_0x22cbc5[_0x456931+0x1];if(_0x637687){for(let _0x381fce=0x0;_0x381fce<_0x4149ca[_0x57331a(0x14e)];_0x381fce++)if(_0x4149ca[_0x381fce][_0x57331a(0x115)][_0x57331a(0x12d)][_0x57331a(0x12e)]===_0x637687)return _0x381fce;}return _0x4149ca[_0x57331a(0x14e)];}
|
|
23
|
+
const _0x4efcc0=_0x1278;(function(_0x5b4f16,_0x3e7261){const _0x46bd35=_0x1278,_0x2ef5f3=_0x5b4f16();while(!![]){try{const _0x1397de=-parseInt(_0x46bd35(0x1fe))/0x1+-parseInt(_0x46bd35(0x205))/0x2*(parseInt(_0x46bd35(0x218))/0x3)+parseInt(_0x46bd35(0x222))/0x4+-parseInt(_0x46bd35(0x21b))/0x5*(-parseInt(_0x46bd35(0x219))/0x6)+parseInt(_0x46bd35(0x238))/0x7+-parseInt(_0x46bd35(0x206))/0x8*(-parseInt(_0x46bd35(0x21d))/0x9)+-parseInt(_0x46bd35(0x221))/0xa;if(_0x1397de===_0x3e7261)break;else _0x2ef5f3['push'](_0x2ef5f3['shift']());}catch(_0x426d1e){_0x2ef5f3['push'](_0x2ef5f3['shift']());}}}(_0xbe07,0xe73fc));import{Plugin as _0x4e206f}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x83987c}from'./modelelementtracker.js';export class FootnotesTracker extends _0x4e206f{[_0x4efcc0(0x207)]=[];[_0x4efcc0(0x22a)]=null;[_0x4efcc0(0x23a)]=null;[_0x4efcc0(0x234)];[_0x4efcc0(0x212)];[_0x4efcc0(0x215)];static get[_0x4efcc0(0x1e0)](){const _0x42b46a=_0x4efcc0;return _0x42b46a(0x232);}static get[_0x4efcc0(0x1de)](){return!0x0;}static get[_0x4efcc0(0x23e)](){return!0x0;}constructor(_0x2d272d){const _0x2974e0=_0x4efcc0;super(_0x2d272d),this[_0x2974e0(0x234)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x228),'getElementKey':()=>_0x2974e0(0x1e3)}),this[_0x2974e0(0x212)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x223),'getElementKey':_0x100f93=>_0x100f93[_0x2974e0(0x208)](_0x2974e0(0x20f))}),this[_0x2974e0(0x215)]=new _0x83987c(this[_0x2974e0(0x211)][_0x2974e0(0x227)],{'elementName':_0x2974e0(0x1f9),'getElementKey':_0x48d81c=>_0x48d81c[_0x2974e0(0x208)](_0x2974e0(0x20f))});}[_0x4efcc0(0x1ec)](){const _0x3c62e2=_0x4efcc0,{editor:_0x38df71}=this,{model:_0x4aa8ff,data:_0x20e419}=_0x38df71;_0x4aa8ff[_0x3c62e2(0x214)][_0x3c62e2(0x20d)](_0x30f6cd=>{const _0x878ff4=_0x3c62e2,_0x39520c=_0x4aa8ff[_0x878ff4(0x214)][_0x878ff4(0x23d)][_0x878ff4(0x224)]();let _0x5e1cf4=!0x1;return this[_0x878ff4(0x20a)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1e8)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x21c)](_0x30f6cd,_0x39520c)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1e1)](_0x30f6cd)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x22c)](_0x30f6cd)&&(_0x5e1cf4=!0x0),this[_0x878ff4(0x1f1)](_0x30f6cd)&&(_0x5e1cf4=!0x0),_0x5e1cf4;}),this[_0x3c62e2(0x1db)](_0x4aa8ff[_0x3c62e2(0x214)],_0x3c62e2(0x1f3),()=>{const _0x6b3566=_0x3c62e2;_0x4aa8ff[_0x6b3566(0x217)]({'isUndoable':!0x1},_0x131579=>{const _0x1c0e42=_0x6b3566;this[_0x1c0e42(0x220)](_0x131579);});},{'priority':_0x3c62e2(0x1ef)}),this[_0x3c62e2(0x1db)](_0x20e419,_0x3c62e2(0x1e5),()=>{const _0x408b0f=_0x3c62e2;this[_0x408b0f(0x207)]=[],this[_0x408b0f(0x234)][_0x408b0f(0x1e4)](),this[_0x408b0f(0x212)][_0x408b0f(0x1e4)](),this[_0x408b0f(0x215)][_0x408b0f(0x1e4)]();},{'priority':_0x3c62e2(0x239)});}[_0x4efcc0(0x202)](){const _0x123356=_0x4efcc0;return this[_0x123356(0x22a)];}[_0x4efcc0(0x1fa)](_0x3069ab){const _0x209dab=_0x4efcc0;return this[_0x209dab(0x207)][_0x209dab(0x1ed)](_0x7c7a86=>_0x7c7a86['id']===_0x3069ab)||null;}[_0x4efcc0(0x1dc)](){const _0x28679c=_0x4efcc0;return Array[_0x28679c(0x1f4)](this[_0x28679c(0x207)]);}[_0x4efcc0(0x1f7)](){const _0x23beb5=_0x4efcc0;return this[_0x23beb5(0x23a)];}[_0x4efcc0(0x22f)](_0x5d2f36){const _0xb3be88=_0x4efcc0;this[_0xb3be88(0x23a)]=_0x5d2f36;}[_0x4efcc0(0x226)](_0x344711,_0x1b2730=0x0){const _0x46e1ee=_0x4efcc0;let _0x3271e2=!0x1;for(let _0x49f4d6=_0x1b2730;_0x49f4d6<this[_0x46e1ee(0x207)][_0x46e1ee(0x230)];_0x49f4d6++)this[_0x46e1ee(0x1e6)](_0x344711,_0x49f4d6)&&(_0x3271e2=!0x0);return _0x3271e2;}[_0x4efcc0(0x21f)](_0x3a976a,_0x2c9937){const _0x5432c5=_0x4efcc0,_0x32f78a=_0x3a976a[_0x5432c5(0x231)](_0x5432c5(0x228),{});return _0x3a976a[_0x5432c5(0x1f2)](_0x32f78a,_0x2c9937),this[_0x5432c5(0x22a)]=_0x32f78a,_0x32f78a;}[_0x4efcc0(0x220)](_0x143c0){const _0x1f6730=_0x4efcc0;if(!this[_0x1f6730(0x207)][_0x1f6730(0x230)]||this[_0x1f6730(0x22a)])return;const _0x1d4f45=this[_0x1f6730(0x207)][0x0][_0x1f6730(0x1fd)][_0x1f6730(0x1fc)],_0x5e9bad=this[_0x1f6730(0x21f)](_0x143c0,_0x1d4f45);for(const _0x393de9 of this[_0x1f6730(0x207)])_0x393de9[_0x1f6730(0x20e)][_0x1f6730(0x229)]||_0x143c0[_0x1f6730(0x1ea)](_0x393de9[_0x1f6730(0x20e)],_0x5e9bad,_0x1f6730(0x23c));this[_0x1f6730(0x226)](_0x143c0);}[_0x4efcc0(0x20a)](_0x3d7814,_0x503262){const _0xd358d2=_0x4efcc0;let _0x10b64a=!0x1;const {inserted:_0x272318,removed:_0x32d686,moved:_0x9ddf2a}=this[_0xd358d2(0x234)][_0xd358d2(0x224)](_0x503262);if(_0x9ddf2a[_0xd358d2(0x230)]&&(this[_0xd358d2(0x22a)]=_0x9ddf2a[0x0]),_0x272318[_0xd358d2(0x230)]){if(_0x272318[_0xd358d2(0x230)]>0x1||this[_0xd358d2(0x22a)]&&_0x272318[_0xd358d2(0x1df)](_0x110918=>_0x110918!==this[_0xd358d2(0x22a)])){const _0x42cee0=_0x3d7814[_0xd358d2(0x231)](_0xd358d2(0x228),{}),_0x3e77ca=[];this[_0xd358d2(0x22a)]&&_0x3e77ca[_0xd358d2(0x1f0)](this[_0xd358d2(0x22a)]),_0x3e77ca[_0xd358d2(0x1f0)](..._0x272318),_0x3d7814[_0xd358d2(0x1ea)](_0x42cee0,_0x3e77ca[0x0],_0xd358d2(0x204));for(const _0x54411f of _0x3e77ca)_0x3d7814[_0xd358d2(0x22d)](_0x3d7814[_0xd358d2(0x201)](_0x54411f),_0x3d7814[_0xd358d2(0x1f8)](_0x42cee0,_0xd358d2(0x23c))),_0x3d7814[_0xd358d2(0x1ee)](_0x54411f);this[_0xd358d2(0x22a)]=_0x42cee0,this[_0xd358d2(0x226)](_0x3d7814),_0x10b64a=!0x0;}else this[_0xd358d2(0x22a)]=_0x272318[0x0];}if(_0x32d686[_0xd358d2(0x230)]&&_0xd358d2(0x1e9)===this[_0xd358d2(0x22a)]?.[_0xd358d2(0x1fc)][_0xd358d2(0x1da)]){for(const _0x92bfa6 of this[_0xd358d2(0x207)])_0x3d7814[_0xd358d2(0x1ee)](_0x92bfa6[_0xd358d2(0x1fd)]),_0x10b64a=!0x0;this[_0xd358d2(0x207)]=[],this[_0xd358d2(0x22a)]=null;}return _0x10b64a;}[_0x4efcc0(0x1e8)](_0x4d2ca0,_0x54184e){const _0x428e3a=_0x4efcc0;let _0xb11b63=!0x1;const _0x5ab1fd=this[_0x428e3a(0x211)][_0x428e3a(0x1e2)][_0x428e3a(0x23b)](_0x428e3a(0x210)),{inserted:_0xf733e0,moved:_0x6f008b}=this[_0x428e3a(0x215)][_0x428e3a(0x224)](_0x54184e);for(const _0x43fe86 of[..._0x6f008b,..._0xf733e0]){const _0x13d04d=_0x43fe86[_0x428e3a(0x208)](_0x428e3a(0x20f)),_0x3fc768=this[_0x428e3a(0x1fa)](_0x13d04d);_0x3fc768&&(_0x3fc768[_0x428e3a(0x20e)]=_0x43fe86),_(_0x4d2ca0,_0x5ab1fd,_0x43fe86)&&(_0xb11b63=!0x0);}return _0xb11b63;}[_0x4efcc0(0x21c)](_0x1f54b7,_0x2c11df){const _0x412bf1=_0x4efcc0;let _0x153a8d=!0x1;const {removed:_0x1ff874,inserted:_0x285bd2,moved:_0x175c58}=this[_0x412bf1(0x212)][_0x412bf1(0x224)](_0x2c11df);for(const _0x13902b of _0x1ff874)this[_0x412bf1(0x209)](_0x1f54b7,_0x13902b)&&(_0x153a8d=!0x0);for(const _0x4f3f6f of _0x285bd2)this[_0x412bf1(0x21a)](_0x1f54b7,_0x4f3f6f)&&(_0x153a8d=!0x0);for(const _0x14de46 of _0x175c58)this[_0x412bf1(0x22b)](_0x1f54b7,_0x14de46)&&(_0x153a8d=!0x0);return _0x153a8d;}[_0x4efcc0(0x22c)](_0x53e3c2){const _0x1d66d5=_0x4efcc0;if(!this[_0x1d66d5(0x22a)])return!0x1;let _0x130ad1=!0x1;if(this[_0x1d66d5(0x22a)][_0x1d66d5(0x21e)]!==this[_0x1d66d5(0x207)][_0x1d66d5(0x230)]){const _0x5356c=[];for(const _0x474978 of this[_0x1d66d5(0x22a)][_0x1d66d5(0x203)]()){const _0x47e8de=_0x474978[_0x1d66d5(0x208)](_0x1d66d5(0x20f));this[_0x1d66d5(0x1fa)](_0x47e8de)||(_0x5356c[_0x1d66d5(0x225)](_0x474978),_0x130ad1=!0x0);}for(const _0x233c00 of _0x5356c)_0x53e3c2[_0x1d66d5(0x1ee)](_0x233c00);}const _0x477c5e=new Set(),_0x1fb1de=[];for(const _0xfbc80b of this[_0x1d66d5(0x22a)][_0x1d66d5(0x203)]()){const _0x641de0=_0xfbc80b[_0x1d66d5(0x208)](_0x1d66d5(0x20f));_0x477c5e[_0x1d66d5(0x1eb)](_0x641de0)?(_0x1fb1de[_0x1d66d5(0x225)](_0xfbc80b),_0x130ad1=!0x0):_0x477c5e[_0x1d66d5(0x20c)](_0x641de0);}for(const _0x4c7743 of _0x1fb1de)_0x53e3c2[_0x1d66d5(0x1ee)](_0x4c7743);return this[_0x1d66d5(0x22a)][_0x1d66d5(0x21e)]||(_0x53e3c2[_0x1d66d5(0x1ee)](this[_0x1d66d5(0x22a)]),this[_0x1d66d5(0x22a)]=null,_0x130ad1=!0x0),_0x130ad1;}[_0x4efcc0(0x21a)](_0x46e94f,_0x2eca4f){const _0x400d35=_0x4efcc0;if(this[_0x400d35(0x207)][_0x400d35(0x1ed)](_0x3b14cc=>_0x3b14cc[_0x400d35(0x1fd)]===_0x2eca4f))return!0x1;let _0x4970a5=!0x1;const _0x4c1beb=_0x2eca4f[_0x400d35(0x208)](_0x400d35(0x20f)),_0x303994=this[_0x400d35(0x207)][_0x400d35(0x213)](_0x5f01a2=>_0x5f01a2['id']===_0x4c1beb);-0x1!==_0x303994&&(_0x46e94f[_0x400d35(0x1ee)](this[_0x400d35(0x207)][_0x303994][_0x400d35(0x1fd)]),this[_0x400d35(0x207)][_0x400d35(0x20b)](_0x303994,0x1),_0x4970a5=!0x0);let _0x14e0d3=this[_0x400d35(0x22a)]?function(_0x338253,_0x1883e7){const _0x29abe7=_0x400d35;for(const _0x3d5f4e of _0x338253[_0x29abe7(0x203)]())if(_0x3d5f4e[_0x29abe7(0x208)](_0x29abe7(0x20f))===_0x1883e7)return _0x3d5f4e;return null;}(this[_0x400d35(0x22a)],_0x4c1beb):null;_0x14e0d3||(_0x14e0d3=_0x46e94f[_0x400d35(0x231)](_0x400d35(0x1f9),{'footnoteId':_0x4c1beb}),this[_0x400d35(0x22a)]&&(_0x46e94f[_0x400d35(0x1ea)](_0x14e0d3,this[_0x400d35(0x22a)],_0x400d35(0x23c)),_0x4970a5=!0x0));const _0x43039e={'id':_0x4c1beb,'reference':_0x2eca4f,'definition':_0x14e0d3},_0xed15a3=I(this[_0x400d35(0x211)][_0x400d35(0x227)],this[_0x400d35(0x207)],_0x2eca4f);this[_0x400d35(0x207)][_0x400d35(0x20b)](_0xed15a3,0x0,_0x43039e);let _0x228dc9=_0xed15a3;return-0x1!==_0x303994&&(_0x228dc9=Math[_0x400d35(0x237)](_0xed15a3,_0x303994)),this[_0x400d35(0x226)](_0x46e94f,_0x228dc9)&&(_0x4970a5=!0x0),_0x4970a5;}[_0x4efcc0(0x209)](_0x4b63fe,_0x85356b){const _0x185ca5=_0x4efcc0,_0x3c01d0=this[_0x185ca5(0x207)][_0x185ca5(0x213)](_0x3b6af6=>_0x3b6af6['id']===_0x85356b);if(-0x1===_0x3c01d0)return!0x1;let _0x5018e2=!0x1;const _0x28d72e=this[_0x185ca5(0x207)][_0x3c01d0];return _0x185ca5(0x1e9)!==_0x28d72e[_0x185ca5(0x20e)][_0x185ca5(0x1fc)][_0x185ca5(0x1da)]&&(_0x4b63fe[_0x185ca5(0x1ee)](_0x28d72e[_0x185ca5(0x20e)]),_0x5018e2=!0x0),this[_0x185ca5(0x207)][_0x185ca5(0x20b)](_0x3c01d0,0x1),this[_0x185ca5(0x226)](_0x4b63fe,_0x3c01d0)&&(_0x5018e2=!0x0),_0x5018e2;}[_0x4efcc0(0x22b)](_0x549ce8,_0x5cb5a5){const _0x526a25=_0x4efcc0,_0x1d0322=_0x5cb5a5[_0x526a25(0x208)](_0x526a25(0x20f)),_0x536802=this[_0x526a25(0x207)][_0x526a25(0x213)](_0x35d31d=>_0x35d31d['id']===_0x1d0322),_0x5314e4=this[_0x526a25(0x207)][_0x536802];let _0x388ea4=!0x1;_0x5314e4[_0x526a25(0x1fd)]=_0x5cb5a5,this[_0x526a25(0x207)][_0x526a25(0x20b)](_0x536802,0x1);const _0x3f4023=I(this[_0x526a25(0x211)][_0x526a25(0x227)],this[_0x526a25(0x207)],_0x5cb5a5);return this[_0x526a25(0x207)][_0x526a25(0x20b)](_0x3f4023,0x0,_0x5314e4),this[_0x526a25(0x226)](_0x549ce8,Math[_0x526a25(0x237)](_0x536802,_0x3f4023))&&(_0x388ea4=!0x0),_0x388ea4;}[_0x4efcc0(0x1e6)](_0x13880c,_0xcd689c){const _0x512d02=_0x4efcc0;if(!this[_0x512d02(0x22a)])return!0x1;const _0x28b124=this[_0x512d02(0x207)][_0xcd689c];let _0xa87d8f;return _0xa87d8f=this[_0x512d02(0x23a)]?this[_0x512d02(0x23a)]({'footnote':_0x28b124,'container':this[_0x512d02(0x22a)],'digits':String(this[_0x512d02(0x207)][_0x512d02(0x230)])[_0x512d02(0x230)],'value':_0xcd689c+0x1}):String(_0xcd689c+0x1),_0x28b124[_0x512d02(0x1fd)][_0x512d02(0x208)](_0x512d02(0x235))!=_0xa87d8f&&(_0x13880c[_0x512d02(0x1f5)](_0x512d02(0x235),_0xa87d8f,_0x28b124[_0x512d02(0x1fd)]),!0x0);}[_0x4efcc0(0x1f1)](_0x555777){const _0x120502=_0x4efcc0;if(!this[_0x120502(0x22a)]||this[_0x120502(0x207)][_0x120502(0x230)]<0x2)return!0x1;if(function(_0x315a7b,_0x3c06c4){const _0x331640=_0x120502;if(_0x315a7b[_0x331640(0x230)]!==_0x3c06c4[_0x331640(0x230)])return!0x1;for(let _0x1f145c=0x0;_0x1f145c<_0x315a7b[_0x331640(0x230)];_0x1f145c++)if(_0x315a7b[_0x1f145c]!==_0x3c06c4[_0x1f145c])return!0x1;return!0x0;}(this[_0x120502(0x207)][_0x120502(0x1e7)](_0x579034=>_0x579034['id']),Array[_0x120502(0x1f4)](this[_0x120502(0x22a)][_0x120502(0x203)]())[_0x120502(0x1e7)](_0x5a23e3=>_0x5a23e3[_0x120502(0x208)](_0x120502(0x20f)))))return!0x1;let _0x2b0377=!0x1;for(let _0x29c76f=0x0;_0x29c76f<this[_0x120502(0x207)][_0x120502(0x230)];_0x29c76f++){const _0x379b66=this[_0x120502(0x207)][_0x29c76f],_0x38e3d7=_0x555777[_0x120502(0x1fb)](_0x379b66[_0x120502(0x20e)]),_0x12b7f4=_0x555777[_0x120502(0x1f8)](this[_0x120502(0x22a)],_0x29c76f);_0x38e3d7[_0x120502(0x1dd)](_0x12b7f4)||(_0x555777[_0x120502(0x22d)](_0x555777[_0x120502(0x22e)](_0x379b66[_0x120502(0x20e)]),_0x12b7f4),_0x2b0377=!0x0);}return _0x2b0377;}[_0x4efcc0(0x1e1)](_0x380441){const _0x5af7b6=_0x4efcc0;if(!this[_0x5af7b6(0x207)][_0x5af7b6(0x230)])return!0x1;const {model:_0x23593b}=this[_0x5af7b6(0x211)];let _0x535a6b=!0x1;for(let _0x41a735=0x0;_0x41a735<this[_0x5af7b6(0x207)][_0x5af7b6(0x230)]-0x1;_0x41a735++){const _0x41ea75=this[_0x5af7b6(0x207)][_0x41a735],_0x351222=this[_0x5af7b6(0x207)][_0x41a735+0x1],_0x2ecea9=_0x23593b[_0x5af7b6(0x1fb)](_0x41ea75[_0x5af7b6(0x1fd)]),_0x40d8ae=_0x23593b[_0x5af7b6(0x1fb)](_0x351222[_0x5af7b6(0x1fd)]);_0x5af7b6(0x236)===_0x2ecea9[_0x5af7b6(0x200)](_0x40d8ae)&&(this[_0x5af7b6(0x22b)](_0x380441,_0x41ea75[_0x5af7b6(0x1fd)]),_0x41a735=-0x1,_0x535a6b=!0x0);}return _0x535a6b;}}function _(_0x1c04f0,_0x79ec4c,_0x1e4912){const _0x480362=_0x4efcc0;if(_0x1e4912[_0x480362(0x21e)])return!0x1;const _0x406c5e=_0x79ec4c?_0x480362(0x1f6):_0x480362(0x1ff);return _0x1c04f0[_0x480362(0x1ea)](_0x1c04f0[_0x480362(0x231)](_0x406c5e),_0x1e4912),!0x0;}function I(_0x442c71,_0x8fd3e3,_0x535f51){const _0x3f4258=_0x4efcc0;if(0x0===_0x8fd3e3[_0x3f4258(0x230)])return 0x0;const _0x16d3bc=_0x442c71[_0x3f4258(0x1fb)](_0x535f51);for(let _0x3bbc39=0x0;_0x3bbc39<_0x8fd3e3[_0x3f4258(0x230)];_0x3bbc39++){const _0x486d2c=_0x8fd3e3[_0x3bbc39],_0x3c65ca=_0x442c71[_0x3f4258(0x1fb)](_0x486d2c[_0x3f4258(0x1fd)]);if(_0x3f4258(0x204)===_0x16d3bc[_0x3f4258(0x200)](_0x3c65ca))return _0x3bbc39;}const _0x15fbae=_0x535f51[_0x3f4258(0x1fc)];let _0x472276=-0x1;for(let _0x4e5a73=_0x8fd3e3[_0x3f4258(0x230)]-0x1;_0x4e5a73>=0x0;_0x4e5a73--)if(_0x8fd3e3[_0x4e5a73][_0x3f4258(0x1fd)][_0x3f4258(0x1fc)]===_0x15fbae){_0x472276=_0x4e5a73;break;}if(-0x1!==_0x472276)return _0x472276+0x1;const _0x2b3ccb=_0x442c71[_0x3f4258(0x214)][_0x3f4258(0x216)](),_0x33eb73=_0x2b3ccb[_0x3f4258(0x233)](_0x15fbae[_0x3f4258(0x1da)]),_0x341d95=_0x2b3ccb[_0x33eb73+0x1];if(_0x341d95){for(let _0x278d31=0x0;_0x278d31<_0x8fd3e3[_0x3f4258(0x230)];_0x278d31++)if(_0x8fd3e3[_0x278d31][_0x3f4258(0x1fd)][_0x3f4258(0x1fc)][_0x3f4258(0x1da)]===_0x341d95)return _0x278d31;}return _0x8fd3e3[_0x3f4258(0x230)];}function _0x1278(_0x4b8159,_0x1f17b6){const _0xbe07e7=_0xbe07();return _0x1278=function(_0x127817,_0x3b1a70){_0x127817=_0x127817-0x1da;let _0x1dc8e4=_0xbe07e7[_0x127817];return _0x1dc8e4;},_0x1278(_0x4b8159,_0x1f17b6);}function _0xbe07(){const _0x151700=['footnoteInlineContent','compareWith','createRangeIn','getFootnotesDefinitionsObjectElement','getChildren','before','149766tOxHYZ','4520rEsimG','_footnotes','getAttribute','_handleRemoveFootnoteReferenceById','_handleFootnotesDefinitionsObjectChanges','splice','add','registerPostFixer','definition','footnoteId','footnotes.multiBlock','editor','_footnoteRefsTracker','findIndex','document','_footnoteDefsTracker','getRootNames','enqueueChange','6iJzZRa','6JXHxgR','_handleInsertedFootnoteReference','5339185xwVthZ','_handleFootnoteReferencesChanges','837mTRqob','childCount','_insertEmptyFootnotesDefinitionsContainer','_ensureFootnotesDefinitionsContainerExists','8543360zLrSgr','4636492bxkCak','footnoteRef','getChanges','unshift','_updateFootnotesCounters','model','footnotesDefinitions','parent','_footnotesDefinitions','_handleMovedFootnoteReference','_handleFootnotesDefinitionsObjectSync','move','createRangeOn','setFootnoteFormatter','length','createElement','FootnotesTracker','indexOf','_footnoteDefsContainerTracker','footnoteCounter','after','min','4947817dzqYul','high','_footnoteFormatter','get','end','differ','isPremiumPlugin','rootName','listenTo','getFootnotes','isEqual','isOfficialPlugin','some','pluginName','_ensureFootnotesReferencesHaveProperOrder','config','singleton','reset','set','_updateFootnoteRefCounter','map','_handleFootnoteDefinitionsChanges','$graveyard','insert','has','init','find','remove','low','push','_sortFootnoteDefinitions','append','change:data','from','setAttribute','paragraph','getFootnotesFormatter','createPositionAt','footnoteDefinition','getFootnote','createPositionBefore','root','reference','1035038OxryFK'];_0xbe07=function(){return _0x151700;};return _0xbe07();}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5338fb,MenuBarMenuListItemButtonView as _0x5b6a0b}from'ckeditor5/src/ui.js';import{Plugin as _0x179b4d}from'ckeditor5/src/core.js';import{IconFootnote as _0x51d2c7}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x179b4d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x59f95d}=this,{componentFactory:_0x4f26a4}=_0x59f95d['ui'];_0x4f26a4['add']('insertFootnote',x(_0x59f95d,_0x5338fb)),_0x4f26a4['add']('menuBar:insertFootnote',x(_0x59f95d,_0x5b6a0b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18f162=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44eaa8;for(const _0x4b6bf7 in _0x18f162){const _0x323cad=_0x4b6bf7,_0x22569f=_0x18f162[_0x323cad];if('footnotesLicenseKeyValid'==_0x22569f||'footnotesLicenseKeyInvalid'==_0x22569f||'footnotesLicenseKeyExpired'==_0x22569f||'footnotesLicenseKeyDomainLimit'==_0x22569f||'footnotesLicenseKeyNotAllowed'==_0x22569f||'footnotesLicenseKeyEvaluationLimit'==_0x22569f||'footnotesLicenseKeyTrialLimit'==_0x22569f||'footnotesLicenseKeyUsageLimit'==_0x22569f){delete _0x18f162[_0x323cad],_0x44eaa8=_0x22569f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x44eaa8&&_0x18f162['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x44eaa8&&_0x18f162['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x44eaa8&&_0x18f162['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x44eaa8&&_0x18f162['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x44eaa8&&_0x18f162['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x44eaa8&&_0x18f162['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x44eaa8&&_0x18f162['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4ca660,_0x394654){const _0x202cd6=_0x4ca660['commands']['get']('insertFootnote');return _0x28063f=>{const {t:t}=_0x28063f,_0x4951b7=new _0x394654(_0x28063f),_0xadfdb8=_0x4951b7 instanceof _0x5b6a0b;return _0x4951b7['bind']('isEnabled')['to'](_0x202cd6,'isEnabled'),_0x4951b7['set']({'label':t(_0xadfdb8?'Footnote':'Insert\x20footnote'),'icon':_0x51d2c7,'tooltip':!0x0}),_0x4951b7['on']('execute',()=>{_0x202cd6['execute'](),_0x4ca660['editing']['view']['focus']();}),_0x4951b7;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x6d524e,_0xbd5dae){var _0x20bbca=_0x3fd8,_0x474921=_0x6d524e();while(!![]){try{var _0x169f3c=parseInt(_0x20bbca(0x11f))/0x1+-parseInt(_0x20bbca(0x11d))/0x2*(parseInt(_0x20bbca(0x121))/0x3)+parseInt(_0x20bbca(0x120))/0x4*(parseInt(_0x20bbca(0x11b))/0x5)+parseInt(_0x20bbca(0x123))/0x6*(parseInt(_0x20bbca(0x11a))/0x7)+-parseInt(_0x20bbca(0x122))/0x8*(-parseInt(_0x20bbca(0x11c))/0x9)+-parseInt(_0x20bbca(0x11e))/0xa+-parseInt(_0x20bbca(0x124))/0xb;if(_0x169f3c===_0xbd5dae)break;else _0x474921['push'](_0x474921['shift']());}catch(_0x2dbdcc){_0x474921['push'](_0x474921['shift']());}}}(_0x36c3,0x99139));import'./augmentation.js';function _0x36c3(){var _0x4112b7=['4IXxeKg','51309jcyhKh','67960BllnEG','288kbdDXt','8375653YKUBDr','55517axgCKd','1889555QOJUnl','126uZlVNK','6zvTPJW','3133120DBqoIK','875516HrvPun'];_0x36c3=function(){return _0x4112b7;};return _0x36c3();}export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';function _0x3fd8(_0x9c28a8,_0x532519){var _0x36c31b=_0x36c3();return _0x3fd8=function(_0x3fd8ca,_0x2b3962){_0x3fd8ca=_0x3fd8ca-0x11a;var _0x4d503b=_0x36c31b[_0x3fd8ca];return _0x4d503b;},_0x3fd8(_0x9c28a8,_0x532519);}export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5ad5(_0x1e4ff8,_0x337d2a){const _0x71ebe8=_0x71eb();return _0x5ad5=function(_0x5ad587,_0x2b0302){_0x5ad587=_0x5ad587-0x7e;let _0x9c83e6=_0x71ebe8[_0x5ad587];return _0x9c83e6;},_0x5ad5(_0x1e4ff8,_0x337d2a);}const _0x3c1f6b=_0x5ad5;(function(_0x5bb251,_0x2669e6){const _0x2acab3=_0x5ad5,_0x2568e4=_0x5bb251();while(!![]){try{const _0x3a78fb=-parseInt(_0x2acab3(0x84))/0x1*(parseInt(_0x2acab3(0x9f))/0x2)+-parseInt(_0x2acab3(0x88))/0x3+-parseInt(_0x2acab3(0x99))/0x4+parseInt(_0x2acab3(0x91))/0x5+-parseInt(_0x2acab3(0x97))/0x6*(parseInt(_0x2acab3(0xa6))/0x7)+parseInt(_0x2acab3(0xa2))/0x8*(-parseInt(_0x2acab3(0x96))/0x9)+parseInt(_0x2acab3(0x86))/0xa;if(_0x3a78fb===_0x2669e6)break;else _0x2568e4['push'](_0x2568e4['shift']());}catch(_0x298cab){_0x2568e4['push'](_0x2568e4['shift']());}}}(_0x71eb,0xdd025));export class ModelElementTracker{[_0x3c1f6b(0xa1)];[_0x3c1f6b(0x81)];[_0x3c1f6b(0x8b)];[_0x3c1f6b(0x9e)]=new Map();constructor(_0x57b0cb,_0x4d503e){const _0x19a8ea=_0x3c1f6b;this[_0x19a8ea(0xa1)]=_0x57b0cb,this[_0x19a8ea(0x81)]=_0x4d503e[_0x19a8ea(0x9b)],this[_0x19a8ea(0x8b)]=_0x4d503e[_0x19a8ea(0x85)];}[_0x3c1f6b(0xa8)](){const _0xbf8c26=_0x3c1f6b;this[_0xbf8c26(0x9e)][_0xbf8c26(0x87)]();}[_0x3c1f6b(0x83)](_0x187baf){const _0x326b74=_0x3c1f6b,_0x15474c=new Set(),_0x4fa3f1=new Map();for(const _0x55dcf8 of _0x187baf){if(_0x326b74(0x8a)===_0x55dcf8[_0x326b74(0x89)]&&_0x326b74(0x9c)!==_0x55dcf8[_0x326b74(0x92)]&&_0x55dcf8[_0x326b74(0x8f)][_0x326b74(0xa9)]){const _0xccb4ff=this[_0x326b74(0xa1)][_0x326b74(0x80)](_0x55dcf8[_0x326b74(0x8f)][_0x326b74(0xa9)]);for(const _0x196ce5 of _0xccb4ff[_0x326b74(0x82)]()){if(!_0x196ce5['is'](_0x326b74(0x93),this[_0x326b74(0x81)]))continue;const _0x21831f=this[_0x326b74(0x8b)](_0x196ce5);_0x4fa3f1[_0x326b74(0x9d)](_0x21831f)||_0x4fa3f1[_0x326b74(0x8e)](_0x21831f,[]),_0x4fa3f1[_0x326b74(0x7e)](_0x21831f)[_0x326b74(0xa4)](_0x196ce5);}}if(_0x326b74(0x98)===_0x55dcf8[_0x326b74(0x89)]&&_0x55dcf8[_0x326b74(0x92)]===this[_0x326b74(0x81)]){const _0x155288=this[_0x326b74(0x8b)]({'getAttribute':_0x437416=>_0x55dcf8[_0x326b74(0xa0)][_0x326b74(0x7e)](_0x437416)});_0x15474c[_0x326b74(0x8c)](_0x155288);}}for(const [_0x2565ff,_0x1b39c6]of this[_0x326b74(0x9e)])_0x326b74(0xa7)===_0x1b39c6[_0x326b74(0x9a)][_0x326b74(0xa5)]&&_0x15474c[_0x326b74(0x8c)](_0x2565ff);for(const _0x21878c of _0x15474c)this[_0x326b74(0x9e)][_0x326b74(0x90)](_0x21878c);for(const [_0x90f561,_0x28d824]of _0x4fa3f1)this[_0x326b74(0x9e)][_0x326b74(0x8e)](_0x90f561,_0x28d824[_0x28d824[_0x326b74(0x95)]-0x1]);const _0x15b728=new Set();for(const [_0x1d1c9e,_0x5b6f73]of _0x4fa3f1)_0x15474c[_0x326b74(0x9d)](_0x1d1c9e)&&(_0x15b728[_0x326b74(0x8c)](_0x5b6f73[0x0]),_0x5b6f73[_0x326b74(0x95)]>0x1?_0x4fa3f1[_0x326b74(0x8e)](_0x1d1c9e,_0x5b6f73[_0x326b74(0x8d)](0x1)):_0x4fa3f1[_0x326b74(0x90)](_0x1d1c9e),_0x15474c[_0x326b74(0x90)](_0x1d1c9e));return{'removed':Array[_0x326b74(0x94)](_0x15474c),'inserted':Array[_0x326b74(0x94)](_0x4fa3f1[_0x326b74(0xa3)]())[_0x326b74(0x7f)](),'moved':Array[_0x326b74(0x94)](_0x15b728)};}}function _0x71eb(){const _0x466343=['5338935RldMni','type','insert','_getElementKey','add','slice','set','position','delete','6078625VPRlVZ','name','element','from','length','376866hybjKL','6iJHyRt','remove','3578624kOkOsX','root','elementName','$text','has','_trackedElements','38130xLCIzd','attributes','_model','96RaqXCX','values','push','rootName','1795199myWGLo','$graveyard','reset','nodeAfter','get','flat','createRangeOn','_elementName','getItems','getChanges','13GKXdxb','getElementKey','33706190LppraM','clear'];_0x71eb=function(){return _0x466343;};return _0x71eb();}
|