@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251220.0 → 0.0.0-nightly-20251221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1a2ee1}from'ckeditor5/src/core.js';import{isWidget as _0x1c7a9b,toWidget as _0x3c822a,toWidgetEditable as _0x1b3beb}from'ckeditor5/src/widget.js';import{uid as _0x4d9209}from'ckeditor5/src/utils.js';import{PointerObserver as _0x44113d,ClickObserver as _0x35e348}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2519be}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2a0906}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1a2ee1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2519be];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1127d0}=this;_0x1127d0['config']['define']('footnotes.multiBlock',!0x0),_0x1127d0['commands']['add']('insertFootnote',new _0x2a0906(_0x1127d0)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d31ab){const _0x49dae4=_0x8881ee([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]),_0x4c4fb5=0x47a28506,_0x50d69e=0x47a5f976^_0x4c4fb5,_0x3ac06f=window[_0x8881ee([0x44,0x61,0x74,0x65])][_0x8881ee([0x6e,0x6f,0x77])](),_0xeb6d0=_0x4d31ab[_0x8881ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23fe0c=new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8a08c6=>{_0xeb6d0[_0x8881ee([0x6f,0x6e,0x63,0x65])](_0x8881ee([0x72,0x65,0x61,0x64,0x79]),_0x8a08c6);}),_0x1c068e={[_0x8881ee([0x6b,0x74,0x79])]:_0x8881ee([0x45,0x43]),[_0x8881ee([0x75,0x73,0x65])]:_0x8881ee([0x73,0x69,0x67]),[_0x8881ee([0x63,0x72,0x76])]:_0x8881ee([0x50,0x2d,0x32,0x35,0x36]),[_0x8881ee([0x78])]:_0x8881ee([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]),[_0x8881ee([0x79])]:_0x8881ee([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]),[_0x8881ee([0x61,0x6c,0x67])]:_0x8881ee([0x45,0x53,0x32,0x35,0x36])},_0x3e9d5c=_0xeb6d0[_0x8881ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8881ee([0x67,0x65,0x74])](_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24c153(){let _0x307090,_0x44f7ad=null,_0xb4fc9e=null;try{if(_0x3e9d5c==_0x8881ee([0x47,0x50,0x4c]))return _0x8881ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x307090=_0x58ec1c(),!_0x307090)return _0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x307090[_0x8881ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb4fc9e=_0x47dc86(_0x307090[_0x8881ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x307090[_0x8881ee([0x6a,0x74,0x69])])),await _0x226b23()?_0x245ebe()?_0x191622()?_0x8881ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49a97a()?(_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8881ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44f7ad=_0x7f764f(_0x8881ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8881ee([0x74,0x72,0x69,0x61,0x6c])&&(_0x44f7ad=_0x7f764f(_0x8881ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x163ee8()):_0x8881ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8881ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x191622(){const _0x556be5=[_0x8881ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8881ee([0x74,0x72,0x69,0x61,0x6c])][_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ac06f/0x3e8:0xe10*_0x50d69e;return _0x307090[_0x8881ee([0x65,0x78,0x70])]<_0x556be5;}function _0x245ebe(){const _0x23ac59=_0x307090[_0x8881ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23ac59&&(!!_0x23ac59[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x2a]))||!!_0x23ac59[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x46,0x4f,0x4f])));}function _0x49a97a(){const _0x2d546b=_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d546b||0x0==_0x2d546b[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ff9d3}=new URL(window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d546b[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff9d3))return!0x0;const _0x872033=_0x4ff9d3[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e]));return _0x2d546b[_0x8881ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3435bf=>_0x3435bf[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x2a])))[_0x8881ee([0x6d,0x61,0x70])](_0x57109f=>_0x57109f[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e])))[_0x8881ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5875b1=>_0x5875b1[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x872033[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8881ee([0x6d,0x61,0x70])](_0x5845a7=>Array(_0x872033[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5845a7[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8881ee([0x66,0x69,0x6c,0x6c])](_0x5845a7[0x0]===_0x8881ee([0x2a])?_0x8881ee([0x2a]):'')[_0x8881ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5845a7))[_0x8881ee([0x73,0x6f,0x6d,0x65])](_0x483810=>_0x872033[_0x8881ee([0x65,0x76,0x65,0x72,0x79])]((_0x250a7a,_0x2680f6)=>_0x483810[_0x2680f6]===_0x250a7a||_0x483810[_0x2680f6]===_0x8881ee([0x2a])));}function _0x163ee8(){return _0x44f7ad&&_0xb4fc9e?new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3093a8,_0xe6a86b)=>{_0x44f7ad[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x3093a8,_0xe6a86b),_0xb4fc9e[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x12ef42=>{_0x12ef42!=_0x8881ee([0x56,0x61,0x6c,0x69,0x64])&&_0x3093a8(_0x12ef42);},_0xe6a86b);}):_0x44f7ad||_0xb4fc9e||_0x8881ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47dc86(_0x2e3ba3,_0x4b7ff9){return new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d46e2=>{if(_0xfea182())return _0x3d46e2(_0x8881ee([0x56,0x61,0x6c,0x69,0x64]));_0x1b0d3f(),_0xeb6d0[_0x8881ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b470b=!0x1;const _0x5ce511=_0x4d9209();function _0x3186e9(_0x391df4){return!!_0x391df4&&(typeof _0x391df4===_0x8881ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x391df4===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x391df4[_0x8881ee([0x74,0x68,0x65,0x6e])]===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x391df4[_0x8881ee([0x63,0x61,0x74,0x63,0x68])]===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49f6f4(_0x313e36){_0x418589(_0x313e36)[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x41f63e=>{if(!_0x41f63e||_0x41f63e[_0x8881ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8881ee([0x6f,0x6b]))return _0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3726fc(_0x8d16fb(_0x5ce511+_0x4b7ff9))!=_0x41f63e[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8881ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x4903cb=>(_0x38c915(),_0x4903cb),()=>{const _0x678198=_0x2be845();return null==_0x678198?(_0x38c915(),_0x8881ee([0x56,0x61,0x6c,0x69,0x64])):_0x8881ee(_0x3ac06f-_0x678198>(0x63ae0106^_0x4c4fb5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x3d46e2)[_0x8881ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f1357=0x47946b86^_0x4c4fb5;function _0x38c915(){const _0x55e91e=_0x8881ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x3726fc(_0x8d16fb(_0x2e3ba3)),_0x38db1c=_0x17decc(_0x3726fc(window[_0x8881ee([0x4d,0x61,0x74,0x68])][_0x8881ee([0x63,0x65,0x69,0x6c])](_0x3ac06f/_0x2f1357)));window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8881ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55e91e,_0x38db1c);}function _0x2be845(){const _0x149c6e=_0x8881ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x3726fc(_0x8d16fb(_0x2e3ba3)),_0x584ed3=window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8881ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x149c6e);return _0x584ed3?window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17decc(_0x584ed3),0x10)*_0x2f1357:null;}function _0x418589(_0x22b942){return new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b3d9,_0x2ef5b0)=>{_0x22b942[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x18b3d9,_0x2ef5b0),window[_0x8881ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ef5b0,0x47a351c6^_0x4c4fb5);});}}_0xeb6d0[_0x8881ee([0x6f,0x6e])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51eb12,_0x1746df)=>{if(_0x1746df[0x0]!=_0x2e3ba3)return _0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1746df[0x1]={..._0x1746df[0x1],[_0x8881ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ce511};},{[_0x8881ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8881ee([0x68,0x69,0x67,0x68])}),_0xeb6d0[_0x8881ee([0x6f,0x6e])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31a233=>{_0x3186e9(_0x31a233[_0x8881ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b470b=!0x0,_0x49f6f4(_0x31a233[_0x8881ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8881ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8881ee([0x6c,0x6f,0x77])}),_0x23fe0c[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>{_0x3b470b||_0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfea182(){return _0xeb6d0[_0x8881ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8881ee([0x76,0x69,0x65,0x77])][_0x8881ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8881ee([0x61,0x75,0x74,0x6f]);}function _0x1b0d3f(){_0xeb6d0[_0x8881ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8881ee([0x76,0x69,0x65,0x77])][_0x8881ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8881ee([0x61,0x75,0x74,0x6f]);}}function _0x7f764f(_0x6a4b8){const _0x15aeb5=[new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57de51=>setTimeout(_0x57de51,0x47abbbca^_0x4c4fb5)),_0x23fe0c[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5ef4=>{let _0xa1813c=0x0;_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x6f,0x6e])](_0x8881ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c9a8f,_0x220734)=>{_0x220734[0x0][_0x8881ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa1813c++,_0xa1813c==(0x47a280ee^_0x4c4fb5)&&(_0x2f5ef4(),_0x3c9a8f[_0x8881ee([0x6f,0x66,0x66])]());});}))];return window[_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8881ee([0x72,0x61,0x63,0x65])](_0x15aeb5)[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>_0x6a4b8);}async function _0x507023(){await _0x23fe0c,_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x402f0c,_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x402f0c,_0xeb6d0[_0x8881ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15542b(_0x5f4e83){const _0x47a3ae=_0x2bc654();_0xeb6d0[_0x47a3ae]=_0x8881ee([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f4e83,_0x5f4e83!=_0x8881ee([0x56,0x61,0x6c,0x69,0x64])&&_0x507023();}function _0x2bc654(){const _0x48862d=window[_0x8881ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8881ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8881ee([0x6e,0x6f,0x77])]())[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8881ee([0x2e]),'');let _0x5222b9=_0x8881ee([0x75]);for(let _0x22037c=0x0;_0x22037c<_0x48862d[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22037c+=0x2){let _0x2d272d=window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48862d[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22037c,_0x22037c+0x2));_0x2d272d>=_0x49dae4[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d272d-=_0x49dae4[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5222b9+=_0x49dae4[_0x2d272d];}return _0x5222b9;}function _0x58ec1c(){const _0x3f2d42=_0x3e9d5c[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e]));if(0x3!=_0x3f2d42[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf82aea(_0x3f2d42[0x1]);function _0xf82aea(_0x3cb26f){const _0x264c68=_0x1450f5(_0x3cb26f);return _0x264c68&&_0x363dfc()?_0x264c68:null;function _0x363dfc(){const _0x512a4a=_0x264c68[_0x8881ee([0x6a,0x74,0x69])],_0x12f52c=window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512a4a[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x512a4a[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e626e={..._0x264c68,[_0x8881ee([0x6a,0x74,0x69])]:_0x512a4a[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x512a4a[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e626e[_0x8881ee([0x76,0x63])],_0x8d16fb(_0x1e626e)==_0x12f52c;}}}async function _0x226b23(){let _0x162c7b=!0x0;try{const _0x3315a8=_0x3e9d5c[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e])),[_0x4d12e3,_0x25997d,_0x5d70e4]=_0x3315a8;return _0x4b697f(_0x4d12e3),await _0x13b868(_0x4d12e3,_0x25997d,_0x5d70e4),_0x162c7b;}catch{return!0x1;}function _0x4b697f(_0x51f3a6){const _0x4e8812=_0x1450f5(_0x51f3a6);_0x4e8812&&_0x4e8812[_0x8881ee([0x61,0x6c,0x67])]==_0x8881ee([0x45,0x53,0x32,0x35,0x36])||(_0x162c7b=!0x1);}async function _0x13b868(_0x180725,_0x521fe2,_0x1f4b01){const _0x10d1c3=window[_0x8881ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8881ee([0x66,0x72,0x6f,0x6d])](_0x5c957a(_0x1f4b01),_0x42c769=>_0x42c769[_0x8881ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d3114=new window[(_0x8881ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8881ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x180725+_0x8881ee([0x2e])+_0x521fe2),_0x48a64f=window[_0x8881ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8881ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48a64f)return;const _0x2e305d=await _0x48a64f[_0x8881ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8881ee([0x6a,0x77,0x6b]),_0x1c068e,{[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x45,0x43,0x44,0x53,0x41]),[_0x8881ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8881ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48a64f[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x45,0x43,0x44,0x53,0x41]),[_0x8881ee([0x68,0x61,0x73,0x68])]:{[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e305d,_0x10d1c3,_0x5d3114)||(_0x162c7b=!0x1);}}function _0x1450f5(_0x158e42){return _0x158e42[_0x8881ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8881ee([0x65,0x79]))?JSON[_0x8881ee([0x70,0x61,0x72,0x73,0x65])](_0x5c957a(_0x158e42)):null;}function _0x5c957a(_0x3a89c4){return window[_0x8881ee([0x61,0x74,0x6f,0x62])](_0x3a89c4[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8881ee([0x2b]))[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8881ee([0x2f])));}function _0x8d16fb(_0x561d63){let _0x3e14ee=0x1505;function _0x4b5fe4(_0x3dfd05){for(let _0x32c89c=0x0;_0x32c89c<_0x3dfd05[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32c89c++){const _0x1348a2=_0x3dfd05[_0x8881ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32c89c);_0x3e14ee=(_0x3e14ee<<0x5)+_0x3e14ee+_0x1348a2,_0x3e14ee&=_0x3e14ee;}}function _0x31b5a5(_0xff21b0){Array[_0x8881ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xff21b0)?_0xff21b0[_0x8881ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31b5a5):_0xff21b0&&typeof _0xff21b0==_0x8881ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8881ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xff21b0)[_0x8881ee([0x73,0x6f,0x72,0x74])]()[_0x8881ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x376e1a,_0x15e0a9])=>{_0x4b5fe4(_0x376e1a),_0x31b5a5(_0x15e0a9);}):_0x4b5fe4(window[_0x8881ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xff21b0));}return _0x31b5a5(_0x561d63),_0x3e14ee>>>0x0;}function _0x3726fc(_0x4f7822){return _0x4f7822[_0x8881ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8881ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8881ee([0x30]));}function _0x17decc(_0x3108c8){return _0x3108c8[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8881ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8881ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x402f0c(){}function _0x8881ee(_0x4a4317){return _0x4a4317['map'](_0x1d5ff4=>String['fromCharCode'](_0x1d5ff4))['join']('');}_0x15542b(await _0x24c153());}(this);}['_moveSelectionToFootnoteDefinition'](_0x364094){const {plugins:_0x2216df,editing:_0x3d165d,model:_0xdf46c1}=this['editor'],_0x12ffba=_0x2216df['get'](_0x2519be)['getFootnote'](_0x364094);return!!_0x12ffba&&(_0xdf46c1['change'](_0x2117b5=>{_0x2117b5['setSelection'](_0x2117b5['createPositionAt'](_0x12ffba['definition'],'end'));}),_0x3d165d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3fbb6f){const {plugins:_0x52701e,editing:_0x33b0c6,model:_0xf55834}=this['editor'],_0x5ba5da=_0x52701e['get'](_0x2519be)['getFootnote'](_0x3fbb6f);return!!_0x5ba5da&&(_0xf55834['change'](_0x46ca52=>{_0x46ca52['setSelection'](_0x5ba5da['reference'],'on');}),_0x33b0c6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x423938}=this['editor']['model'],_0x557dee=this['editor']['config']['get']('footnotes.multiBlock');_0x423938['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x423938['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x423938['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x557dee?_0x423938['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x423938['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x423938['addChildCheck'](_0x247c45=>{for(const _0x1ea3c7 of _0x247c45)if('footnoteDefinition'===_0x1ea3c7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x326970}=this,{conversion:_0x3ba3a4,editing:_0x5ce607}=_0x326970,{t:t}=_0x326970['locale'];_0x3ba3a4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x308a97,{writer:_0x5db028,consumable:_0x5a8125})=>{const _0x12920c=_0x308a97['getChild'](0x0);if(!_0x12920c||!_0x12920c['is']('element','a'))return null;const _0x570a50=_0x12920c['getAttribute']('href')||'';if(!_0x570a50['startsWith']('#'))return null;const _0x2c13ad=_0x570a50['replace'](/^#/,'');if(!_0x2c13ad)return null;_0x5a8125['consume'](_0x12920c,{'name':!0x0,'attributes':['href']});for(const {item:_0x55b61e}of _0x5ce607['view']['createRangeIn'](_0x12920c))_0x55b61e['is']('$textProxy')?_0x5a8125['consume'](_0x55b61e['textNode'],{'name':!0x0}):_0x55b61e['is']('element')&&_0x5a8125['consume'](_0x55b61e,{'name':!0x0});return _0x5db028['createElement']('footnoteRef',{'footnoteId':_0x2c13ad});}}),_0x3ba3a4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5d3034,{writer:_0x2d8cca})=>b(_0x5d3034,_0x2d8cca)}),_0x3ba3a4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a9ad2,{writer:_0x5c8976})=>{const _0x2faf55=_0x3a9ad2['getAttribute']('footnoteCounter');return _0x3c822a(b(_0x3a9ad2,_0x5c8976),_0x5c8976,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2faf55)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3dc35f}=this,{t:t}=_0x3dc35f['locale'],{conversion:_0x5cde19}=_0x3dc35f;_0x5cde19['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5cde19['for']('upcast')['add'](_0x382cd8=>{_0x382cd8['on']('element:ol',(_0x2da19b,_0x4ca22b,_0x2c73bc)=>{const _0x540d69=_0x4ca22b['viewItem'];if(!_0x540d69['hasClass']('footnotes-list')||!_0x4ca22b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2c73bc['consumable']['consume'](_0x540d69,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf48dce,modelCursor:_0x37148b}=_0x2c73bc['convertChildren'](_0x4ca22b['viewItem'],_0x4ca22b['modelCursor']);_0x4ca22b['modelRange']=_0xf48dce,_0x4ca22b['modelCursor']=_0x37148b;}),_0x382cd8['on']('element:hr',(_0x4239ca,_0x1503a8,_0x3da7ea)=>{const _0x450351=_0x1503a8['viewItem'];_0x450351['hasClass']('footnotes-divider')&&_0x1503a8['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3da7ea['consumable']['consume'](_0x450351,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5cde19['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x56092d,{writer:_0x13d3a5})=>D(_0x13d3a5)}),_0x5cde19['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x528ee7,{writer:_0x47672c})=>{const _0xaa75e0=D(_0x47672c,{'data-footnotes-list-label':t('Footnotes')}),_0x57f59a=_0x3c822a(_0xaa75e0,_0x47672c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x47672c['setCustomProperty']('footnotesDefinitions',!0x0,_0x57f59a),_0x57f59a;}});}['_defineDefinitionConverters'](){const {editor:_0x4f0874}=this,{conversion:_0x44c43a,locale:_0x3502d9}=_0x4f0874,_0x302162=_0x4f0874['config']['get']('footnotes.multiBlock');_0x44c43a['for']('upcast')['add'](_0x1666d1=>{_0x1666d1['on']('element:li',(_0x2e70e2,_0x3ea6e8,_0x4442f6)=>{const _0x3b2d8c=_0x3ea6e8['viewItem'];if(!_0x3b2d8c['hasClass']('footnote-definition')||!_0x3b2d8c['getAttribute']('id'))return;const _0x3ca96e=_0x3b2d8c['parent'];if(!_0x3ca96e['is']('element','ol')||!_0x3ca96e['hasClass']('footnotes-list'))return;if(!_0x4442f6['consumable']['test'](_0x3b2d8c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4c2239=_0x4442f6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3b2d8c['getAttribute']('id')});if(!_0x4442f6['safeInsert'](_0x4c2239,_0x3ea6e8['modelCursor']))return;_0x4442f6['consumable']['consume'](_0x3b2d8c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x15aa20=Array['from'](_0x3b2d8c['getChildren']())['find'](_0x4e4c2f=>_0x4e4c2f['is']('element')&&_0x4e4c2f['hasClass']('footnote-content'));for(const _0x4cf108 of _0x3b2d8c['getChildren']())_0x4cf108['is']('element')&&(_0x4442f6['consumable']['consume'](_0x4cf108,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4442f6['consumable']['consume'](_0x4cf108,{'name':!0x0,'classes':'footnote-content'}));if(_0x15aa20){if(_0x302162)_0x4442f6['convertChildren'](_0x15aa20,_0x4c2239);else{const _0x732939=_0x4442f6['writer']['createElement']('footnoteInlineContent');_0x4442f6['writer']['insert'](_0x732939,_0x4c2239),_0x4442f6['convertChildren'](_0x15aa20,_0x732939);}}_0x4442f6['updateConversionResult'](_0x4c2239,_0x3ea6e8);});}),_0x44c43a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3f9e98,{writer:_0x5f1efa})=>y(_0x3f9e98,_0x5f1efa,_0x3502d9,{'dataPipeline':!0x0})}),_0x44c43a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2bde1c,{writer:_0x4c85e7})=>y(_0x2bde1c,_0x4c85e7,_0x3502d9)});}['_defineBogusParagraphConverters'](){const {editor:_0x13d84e}=this,{conversion:_0xbbf080}=_0x13d84e;_0x13d84e['config']['get']('footnotes.multiBlock')?(_0xbbf080['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xbbf080['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x13d84e['model']['document'],'change:data',()=>{!function(_0x23bbe3,_0x25dd7a){const _0x114c3a=_0x23bbe3['document']['differ'],_0x3f4be5=new Set();for(const _0x4c9b12 of _0x114c3a['getChanges']()){const _0x1bfeef='attribute'==_0x4c9b12['type']?_0x4c9b12['range']['start']['parent']:_0x4c9b12['position']['parent'];_0x1bfeef['is']('element','footnoteDefinition')&&_0x3f4be5['add'](_0x1bfeef);}for(const _0x4ab134 of _0x3f4be5['values']()){const _0x5b47e1=Array['from'](_0x4ab134['getChildren']())['filter'](_0x10bdf7=>v(_0x10bdf7,_0x25dd7a['mapper']));for(const _0x1685db of _0x5b47e1)_0x25dd7a['reconvertItem'](_0x1685db);}}(_0x13d84e['model'],_0x13d84e['editing']);})):(_0xbbf080['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xbbf080['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5fad24,{writer:_0x5633b1})=>{const _0x2535b4=_0x5633b1['createContainerElement']('span');return _0x5633b1['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2535b4),_0x2535b4;}}));}['_defineKeyboardHandlers'](){const {editor:_0x822991}=this,{editing:_0x256af9,t:t}=_0x822991,_0x52eb72=_0x822991['model']['document']['selection'];_0x822991['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x822991['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x256af9['view']['document'],'enter',(_0x12dfca,_0x4c62fd)=>{const _0x6a2e96=function(_0x17f3f2){const _0x11e362=_0x17f3f2['getSelectedElement']();if(_0x11e362?.['is']('element','footnoteRef'))return _0x11e362;return null;}(_0x52eb72);if(_0x6a2e96){const _0x3ccfd6=_0x6a2e96['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3ccfd6),_0x4c62fd['preventDefault'](),_0x12dfca['stop']();}},{'context':_0x1c7a9b});}['_defineClickHandlers'](){const {editor:_0x1b1c2b}=this,{editing:_0x1a3693}=_0x1b1c2b;_0x1b1c2b['editing']['view']['addObserver'](_0x44113d),_0x1b1c2b['editing']['view']['addObserver'](_0x35e348);let _0x42d003=!0x1;this['listenTo'](_0x1a3693['view']['document'],'pointerdown',(_0x43eacc,_0x137e06)=>{const {target:_0x5797f0}=_0x137e06,_0x58a4b1=_0x1a3693['view']['document']['selection'];_0x42d003=!!(_0x5797f0?.['is']('element','a')&&_0x5797f0['parent']?.['is']('element','sup')&&_0x5797f0['parent']['hasClass']('footnote'))&&_0x58a4b1['getSelectedElement']()===_0x5797f0['parent'];},{'priority':'high'}),this['listenTo'](_0x1a3693['view']['document'],'click',(_0x423d52,_0x198b27)=>{const {target:_0x4978d4}=_0x198b27;if(!_0x4978d4?.['is']('element','a'))return;if(_0x4978d4['parent']?.['is']('element','sup')&&_0x4978d4['parent']['hasClass']('footnote')&&!_0x42d003)return void _0x198b27['preventDefault']();let _0x311a82=_0x4978d4['getAttribute']('href');if(!_0x311a82?.['startsWith']('#'))return;_0x311a82=_0x311a82['slice'](0x1);let _0x216b8a=!0x1;(_0x311a82['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x311a82['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x311a82))&&(_0x216b8a=!0x0),_0x216b8a&&(_0x198b27['preventDefault'](),_0x423d52['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x48beda}={}){return(_0x1653f2,{writer:_0x478840})=>{if(!g(_0x1653f2))return null;if(!_0x48beda)return _0x478840['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x24b5f8=_0x478840['createContainerElement']('p');return _0x478840['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x24b5f8),_0x24b5f8;};}function g(_0x140b51){const {parent:_0x1caf49}=_0x140b51;if(!_0x1caf49?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1caf49['childCount'])return!0x1;for(const _0x4a501c of _0x140b51['getAttributeKeys']())if(!_0x4a501c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a501c)return!0x1;return!0x0;}function v(_0x4984e7,_0x51ff8d){if(!_0x4984e7['is']('element','paragraph'))return!0x1;const _0x10227d=_0x51ff8d['toViewElement'](_0x4984e7);return!!_0x10227d&&g(_0x4984e7)!==_0x10227d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x23f9fc){return _0x1c7a9b(_0x23f9fc)&&_0x23f9fc['is']('containerElement')&&!!_0x23f9fc['getCustomProperty']('footnotesDefinitions');}function D(_0x3c1183,_0x626f48={}){const _0x2bf5c1=_0x3c1183['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4553d7=_0x3c1183['createContainerElement']('ol',{'class':'footnotes-list'},_0x3c1183['createSlot']());return _0x3c1183['createContainerElement']('div',{'class':'footnotes',..._0x626f48},[_0x2bf5c1,_0x4553d7]);}function b(_0x1900fb,_0x5d481b){const _0x25ed9a=_0x1900fb['getAttribute']('footnoteId'),_0xe91b85=_0x1900fb['getAttribute']('footnoteCounter'),_0x5051bf=_0x5d481b['createUIElement']('a',{'href':'#'+_0x25ed9a},function(_0x5ed393){const _0x62e524=this['toDomElement'](_0x5ed393);return _0x62e524['textContent']=_0xe91b85,_0x62e524;}),_0x215453=_0x5d481b['createContainerElement']('sup',{'id':'ref-'+_0x25ed9a,'class':'footnote'},[_0x5051bf]);return _0x215453['getFillerOffset']=()=>null,_0x215453;}function y(_0x1eabb0,_0xc2320b,_0xb61db5,{dataPipeline:_0x5e9787}={}){const {t:t}=_0xb61db5,_0x4ffcf9=_0x1eabb0['getAttribute']('footnoteId'),_0x21a56a=_0xc2320b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4ffcf9},function(_0x3bac63){const _0x10734f=this['toDomElement'](_0x3bac63);return _0x10734f['innerText']='^',_0x10734f;}),_0x5aacc4=_0x5e9787?_0xc2320b['createContainerElement']('div',{'class':'footnote-content'}):_0x1b3beb(_0xc2320b['createEditableElement']('div',{'class':'footnote-content'}),_0xc2320b,{'label':t('Footnote\x20content.')});return _0xc2320b['insert'](_0xc2320b['createPositionAt'](_0x5aacc4,0x0),_0xc2320b['createSlot']()),_0xc2320b['createContainerElement']('li',{'class':'footnote-definition','id':_0x4ffcf9},[_0x21a56a,_0x5aacc4]);}
|
|
23
|
+
import{Plugin as _0x4e8dc7}from'ckeditor5/src/core.js';import{isWidget as _0x5eeb14,toWidget as _0x343848,toWidgetEditable as _0xe96de1}from'ckeditor5/src/widget.js';import{uid as _0x10e963}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1bdd58,ClickObserver as _0x4d644d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x21f5d8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x84e82c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e8dc7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x21f5d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x288a46}=this;_0x288a46['config']['define']('footnotes.multiBlock',!0x0),_0x288a46['commands']['add']('insertFootnote',new _0x84e82c(_0x288a46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x586641){const _0x4ff5f5=_0x585b71([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]),_0x2f4633=0x47a28506,_0x4619f8=0x47a5f98e^_0x2f4633,_0x18ef9e=window[_0x585b71([0x44,0x61,0x74,0x65])][_0x585b71([0x6e,0x6f,0x77])](),_0x4c91d6=_0x586641[_0x585b71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23c930=new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e77e=>{_0x4c91d6[_0x585b71([0x6f,0x6e,0x63,0x65])](_0x585b71([0x72,0x65,0x61,0x64,0x79]),_0x43e77e);}),_0x36a171={[_0x585b71([0x6b,0x74,0x79])]:_0x585b71([0x45,0x43]),[_0x585b71([0x75,0x73,0x65])]:_0x585b71([0x73,0x69,0x67]),[_0x585b71([0x63,0x72,0x76])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36]),[_0x585b71([0x78])]:_0x585b71([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]),[_0x585b71([0x79])]:_0x585b71([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]),[_0x585b71([0x61,0x6c,0x67])]:_0x585b71([0x45,0x53,0x32,0x35,0x36])},_0xd3ea52=_0x4c91d6[_0x585b71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x585b71([0x67,0x65,0x74])](_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e036b(){let _0x2642f9,_0x479a4f=null,_0x3d787a=null;try{if(_0xd3ea52==_0x585b71([0x47,0x50,0x4c]))return _0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2642f9=_0x131b74(),!_0x2642f9)return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d787a=_0x425e16(_0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2642f9[_0x585b71([0x6a,0x74,0x69])])),await _0x407c54()?_0x3fedfb()?_0x47a2b6()?_0x585b71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1253fb()?(_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x479a4f=_0x13bebb(_0x585b71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x74,0x72,0x69,0x61,0x6c])&&(_0x479a4f=_0x13bebb(_0x585b71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b6e47()):_0x585b71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a2b6(){const _0x52b179=[_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x585b71([0x74,0x72,0x69,0x61,0x6c])][_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18ef9e/0x3e8:0xe10*_0x4619f8;return _0x2642f9[_0x585b71([0x65,0x78,0x70])]<_0x52b179;}function _0x3fedfb(){const _0x351438=_0x2642f9[_0x585b71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x351438&&(!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a]))||!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x46,0x4f,0x4f])));}function _0x1253fb(){const _0x10b803=_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10b803||0x0==_0x10b803[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29d36c}=new URL(window[_0x585b71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10b803[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d36c))return!0x0;const _0x1ee901=_0x29d36c[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));return _0x10b803[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e9504=>_0x3e9504[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a])))[_0x585b71([0x6d,0x61,0x70])](_0x1e0bc4=>_0x1e0bc4[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])))[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107312=>_0x107312[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x6d,0x61,0x70])](_0x29bf49=>Array(_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29bf49[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x66,0x69,0x6c,0x6c])](_0x29bf49[0x0]===_0x585b71([0x2a])?_0x585b71([0x2a]):'')[_0x585b71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29bf49))[_0x585b71([0x73,0x6f,0x6d,0x65])](_0xec846e=>_0x1ee901[_0x585b71([0x65,0x76,0x65,0x72,0x79])]((_0x1700ac,_0x5b791a)=>_0xec846e[_0x5b791a]===_0x1700ac||_0xec846e[_0x5b791a]===_0x585b71([0x2a])));}function _0x3b6e47(){return _0x479a4f&&_0x3d787a?new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x237932,_0xe9cfd3)=>{_0x479a4f[_0x585b71([0x74,0x68,0x65,0x6e])](_0x237932,_0xe9cfd3),_0x3d787a[_0x585b71([0x74,0x68,0x65,0x6e])](_0x3265e2=>{_0x3265e2!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x237932(_0x3265e2);},_0xe9cfd3);}):_0x479a4f||_0x3d787a||_0x585b71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425e16(_0x409c25,_0x4b0f1d){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee67b=>{if(_0x55df12())return _0x4ee67b(_0x585b71([0x56,0x61,0x6c,0x69,0x64]));_0x512608(),_0x4c91d6[_0x585b71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x559612=!0x1;const _0x2e6090=_0x10e963();function _0x4fd25a(_0x285849){return!!_0x285849&&(typeof _0x285849===_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x285849===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x285849[_0x585b71([0x74,0x68,0x65,0x6e])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x285849[_0x585b71([0x63,0x61,0x74,0x63,0x68])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46e3ba(_0x3c0638){_0x2155da(_0x3c0638)[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32fa1f=>{if(!_0x32fa1f||_0x32fa1f[_0x585b71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x585b71([0x6f,0x6b]))return _0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2124eb(_0x2e00af(_0x2e6090+_0x4b0f1d))!=_0x32fa1f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4a90f0=>(_0x322c36(),_0x4a90f0),()=>{const _0x15371f=_0x33dc8e();return null==_0x15371f?(_0x322c36(),_0x585b71([0x56,0x61,0x6c,0x69,0x64])):_0x585b71(_0x18ef9e-_0x15371f>(0x63ae0106^_0x2f4633)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4ee67b)[_0x585b71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32f742=0x47946b86^_0x2f4633;function _0x322c36(){const _0x6e125e=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x3aed5d=_0x2d9750(_0x2124eb(window[_0x585b71([0x4d,0x61,0x74,0x68])][_0x585b71([0x63,0x65,0x69,0x6c])](_0x18ef9e/_0x32f742)));window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e125e,_0x3aed5d);}function _0x33dc8e(){const _0x2386fc=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x1e27d2=window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2386fc);return _0x1e27d2?window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9750(_0x1e27d2),0x10)*_0x32f742:null;}function _0x2155da(_0x4682bd){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32bb31,_0x29e4db)=>{_0x4682bd[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32bb31,_0x29e4db),window[_0x585b71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e4db,0x47a351c6^_0x2f4633);});}}_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x310044,_0x204bc4)=>{if(_0x204bc4[0x0]!=_0x409c25)return _0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x204bc4[0x1]={..._0x204bc4[0x1],[_0x585b71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e6090};},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x68,0x69,0x67,0x68])}),_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x501e55=>{_0x4fd25a(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x559612=!0x0,_0x46e3ba(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x6c,0x6f,0x77])}),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>{_0x559612||_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55df12(){return _0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x585b71([0x61,0x75,0x74,0x6f]);}function _0x512608(){_0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x585b71([0x61,0x75,0x74,0x6f]);}}function _0x13bebb(_0x175165){const _0x18536b=[new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381412=>setTimeout(_0x381412,0x47abbbca^_0x2f4633)),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfddc=>{let _0x5453c3=0x0;_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x6f,0x6e])](_0x585b71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bec6c,_0x237546)=>{_0x237546[0x0][_0x585b71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5453c3++,_0x5453c3==(0x47a280ee^_0x2f4633)&&(_0x3bfddc(),_0x2bec6c[_0x585b71([0x6f,0x66,0x66])]());});}))];return window[_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x585b71([0x72,0x61,0x63,0x65])](_0x18536b)[_0x585b71([0x74,0x68,0x65,0x6e])](()=>_0x175165);}async function _0x5b6947(){await _0x23c930,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x585b71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2205c9(_0x51261b){const _0x273d74=_0xc44363();_0x4c91d6[_0x273d74]=_0x585b71([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51261b,_0x51261b!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x5b6947();}function _0xc44363(){const _0x362195=window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x585b71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x585b71([0x6e,0x6f,0x77])]())[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x585b71([0x2e]),'');let _0xa0c7d8=_0x585b71([0x75]);for(let _0xdc3f92=0x0;_0xdc3f92<_0x362195[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdc3f92+=0x2){let _0x2ba3a8=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362195[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdc3f92,_0xdc3f92+0x2));_0x2ba3a8>=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ba3a8-=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa0c7d8+=_0x4ff5f5[_0x2ba3a8];}return _0xa0c7d8;}function _0x131b74(){const _0xe2ff12=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));if(0x3!=_0xe2ff12[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12cf61(_0xe2ff12[0x1]);function _0x12cf61(_0x575d6b){const _0x261a16=_0x272bf2(_0x575d6b);return _0x261a16&&_0x1733da()?_0x261a16:null;function _0x1733da(){const _0x2353e6=_0x261a16[_0x585b71([0x6a,0x74,0x69])],_0x412d7a=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fe396={..._0x261a16,[_0x585b71([0x6a,0x74,0x69])]:_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fe396[_0x585b71([0x76,0x63])],_0x2e00af(_0x1fe396)==_0x412d7a;}}}async function _0x407c54(){let _0x2f20d2=!0x0;try{const _0x3f86ac=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])),[_0x3b08dc,_0x1859d0,_0xdae30b]=_0x3f86ac;return _0x4a2671(_0x3b08dc),await _0x4fb437(_0x3b08dc,_0x1859d0,_0xdae30b),_0x2f20d2;}catch{return!0x1;}function _0x4a2671(_0x34c633){const _0x170d01=_0x272bf2(_0x34c633);_0x170d01&&_0x170d01[_0x585b71([0x61,0x6c,0x67])]==_0x585b71([0x45,0x53,0x32,0x35,0x36])||(_0x2f20d2=!0x1);}async function _0x4fb437(_0x4d8c51,_0x205633,_0x52a8b2){const _0x41ec3a=window[_0x585b71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x585b71([0x66,0x72,0x6f,0x6d])](_0x12ff25(_0x52a8b2),_0x1869be=>_0x1869be[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x412086=new window[(_0x585b71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x585b71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d8c51+_0x585b71([0x2e])+_0x205633),_0x44023f=window[_0x585b71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x585b71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44023f)return;const _0x274a4f=await _0x44023f[_0x585b71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x585b71([0x6a,0x77,0x6b]),_0x36a171,{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44023f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x68,0x61,0x73,0x68])]:{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x274a4f,_0x41ec3a,_0x412086)||(_0x2f20d2=!0x1);}}function _0x272bf2(_0x32f23d){return _0x32f23d[_0x585b71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x585b71([0x65,0x79]))?JSON[_0x585b71([0x70,0x61,0x72,0x73,0x65])](_0x12ff25(_0x32f23d)):null;}function _0x12ff25(_0x1efc55){return window[_0x585b71([0x61,0x74,0x6f,0x62])](_0x1efc55[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x585b71([0x2b]))[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x585b71([0x2f])));}function _0x2e00af(_0x29cc6f){let _0x34cac7=0x1505;function _0x471070(_0x4be47b){for(let _0x3d29b2=0x0;_0x3d29b2<_0x4be47b[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d29b2++){const _0x32a03d=_0x4be47b[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d29b2);_0x34cac7=(_0x34cac7<<0x5)+_0x34cac7+_0x32a03d,_0x34cac7&=_0x34cac7;}}function _0x152388(_0x4a768b){Array[_0x585b71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a768b)?_0x4a768b[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x152388):_0x4a768b&&typeof _0x4a768b==_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x585b71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a768b)[_0x585b71([0x73,0x6f,0x72,0x74])]()[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c83,_0x478895])=>{_0x471070(_0x275c83),_0x152388(_0x478895);}):_0x471070(window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a768b));}return _0x152388(_0x29cc6f),_0x34cac7>>>0x0;}function _0x2124eb(_0x1137f6){return _0x1137f6[_0x585b71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x585b71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x585b71([0x30]));}function _0x2d9750(_0x2406d1){return _0x2406d1[_0x585b71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x585b71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x585b71([0x6a,0x6f,0x69,0x6e])]('');}function _0x308875(){}function _0x585b71(_0x11c726){return _0x11c726['map'](_0x149a0e=>String['fromCharCode'](_0x149a0e))['join']('');}_0x2205c9(await _0x4e036b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x364499){const {plugins:_0x21e7bd,editing:_0x54e766,model:_0x112490}=this['editor'],_0xcab313=_0x21e7bd['get'](_0x21f5d8)['getFootnote'](_0x364499);return!!_0xcab313&&(_0x112490['change'](_0xcbd982=>{_0xcbd982['setSelection'](_0xcbd982['createPositionAt'](_0xcab313['definition'],'end'));}),_0x54e766['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db3d7){const {plugins:_0x51f8af,editing:_0x40b527,model:_0xef780a}=this['editor'],_0x40b543=_0x51f8af['get'](_0x21f5d8)['getFootnote'](_0x2db3d7);return!!_0x40b543&&(_0xef780a['change'](_0x18ade5=>{_0x18ade5['setSelection'](_0x40b543['reference'],'on');}),_0x40b527['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2ec543}=this['editor']['model'],_0x58fc96=this['editor']['config']['get']('footnotes.multiBlock');_0x2ec543['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2ec543['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2ec543['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x58fc96?_0x2ec543['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2ec543['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2ec543['addChildCheck'](_0x10d15f=>{for(const _0x4c9229 of _0x10d15f)if('footnoteDefinition'===_0x4c9229['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ccae7}=this,{conversion:_0x3a785e,editing:_0x26a39a}=_0x1ccae7,{t:t}=_0x1ccae7['locale'];_0x3a785e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x31795d,{writer:_0x7bc22a,consumable:_0x56eb59})=>{const _0x5aaf2b=_0x31795d['getChild'](0x0);if(!_0x5aaf2b||!_0x5aaf2b['is']('element','a'))return null;const _0x2b4be0=_0x5aaf2b['getAttribute']('href')||'';if(!_0x2b4be0['startsWith']('#'))return null;const _0x18df8d=_0x2b4be0['replace'](/^#/,'');if(!_0x18df8d)return null;_0x56eb59['consume'](_0x5aaf2b,{'name':!0x0,'attributes':['href']});for(const {item:_0x3b004e}of _0x26a39a['view']['createRangeIn'](_0x5aaf2b))_0x3b004e['is']('$textProxy')?_0x56eb59['consume'](_0x3b004e['textNode'],{'name':!0x0}):_0x3b004e['is']('element')&&_0x56eb59['consume'](_0x3b004e,{'name':!0x0});return _0x7bc22a['createElement']('footnoteRef',{'footnoteId':_0x18df8d});}}),_0x3a785e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x35d12f,{writer:_0x4c6c7d})=>b(_0x35d12f,_0x4c6c7d)}),_0x3a785e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48676e,{writer:_0x374d77})=>{const _0x34c951=_0x48676e['getAttribute']('footnoteCounter');return _0x343848(b(_0x48676e,_0x374d77),_0x374d77,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x34c951)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3c0793}=this,{t:t}=_0x3c0793['locale'],{conversion:_0x5e3d96}=_0x3c0793;_0x5e3d96['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e3d96['for']('upcast')['add'](_0x31ad0c=>{_0x31ad0c['on']('element:ol',(_0x413459,_0x5bec27,_0x2be1b0)=>{const _0x5c1628=_0x5bec27['viewItem'];if(!_0x5c1628['hasClass']('footnotes-list')||!_0x5bec27['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2be1b0['consumable']['consume'](_0x5c1628,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x21efac,modelCursor:_0x62a69}=_0x2be1b0['convertChildren'](_0x5bec27['viewItem'],_0x5bec27['modelCursor']);_0x5bec27['modelRange']=_0x21efac,_0x5bec27['modelCursor']=_0x62a69;}),_0x31ad0c['on']('element:hr',(_0x31361c,_0x4ddae2,_0x5c8122)=>{const _0x424298=_0x4ddae2['viewItem'];_0x424298['hasClass']('footnotes-divider')&&_0x4ddae2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5c8122['consumable']['consume'](_0x424298,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e3d96['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16850a,{writer:_0x20c68c})=>D(_0x20c68c)}),_0x5e3d96['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44d876,{writer:_0x41a212})=>{const _0x26c9f6=D(_0x41a212,{'data-footnotes-list-label':t('Footnotes')}),_0x23ca91=_0x343848(_0x26c9f6,_0x41a212,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x41a212['setCustomProperty']('footnotesDefinitions',!0x0,_0x23ca91),_0x23ca91;}});}['_defineDefinitionConverters'](){const {editor:_0x33ce26}=this,{conversion:_0x10be58,locale:_0x5c5d0f}=_0x33ce26,_0xc4df5b=_0x33ce26['config']['get']('footnotes.multiBlock');_0x10be58['for']('upcast')['add'](_0x23f05d=>{_0x23f05d['on']('element:li',(_0x45c2d2,_0x31fd36,_0x2ce42f)=>{const _0x382bd9=_0x31fd36['viewItem'];if(!_0x382bd9['hasClass']('footnote-definition')||!_0x382bd9['getAttribute']('id'))return;const _0x508989=_0x382bd9['parent'];if(!_0x508989['is']('element','ol')||!_0x508989['hasClass']('footnotes-list'))return;if(!_0x2ce42f['consumable']['test'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4f44d7=_0x2ce42f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x382bd9['getAttribute']('id')});if(!_0x2ce42f['safeInsert'](_0x4f44d7,_0x31fd36['modelCursor']))return;_0x2ce42f['consumable']['consume'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4b3b4c=Array['from'](_0x382bd9['getChildren']())['find'](_0x118e15=>_0x118e15['is']('element')&&_0x118e15['hasClass']('footnote-content'));for(const _0x43c225 of _0x382bd9['getChildren']())_0x43c225['is']('element')&&(_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-content'}));if(_0x4b3b4c){if(_0xc4df5b)_0x2ce42f['convertChildren'](_0x4b3b4c,_0x4f44d7);else{const _0x50528a=_0x2ce42f['writer']['createElement']('footnoteInlineContent');_0x2ce42f['writer']['insert'](_0x50528a,_0x4f44d7),_0x2ce42f['convertChildren'](_0x4b3b4c,_0x50528a);}}_0x2ce42f['updateConversionResult'](_0x4f44d7,_0x31fd36);});}),_0x10be58['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x594b40,{writer:_0x2268b1})=>y(_0x594b40,_0x2268b1,_0x5c5d0f,{'dataPipeline':!0x0})}),_0x10be58['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1eed07,{writer:_0x2aec87})=>y(_0x1eed07,_0x2aec87,_0x5c5d0f)});}['_defineBogusParagraphConverters'](){const {editor:_0x808f5c}=this,{conversion:_0xf3731e}=_0x808f5c;_0x808f5c['config']['get']('footnotes.multiBlock')?(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x808f5c['model']['document'],'change:data',()=>{!function(_0x9a9d58,_0x3f9203){const _0x358309=_0x9a9d58['document']['differ'],_0x309979=new Set();for(const _0x8d65e8 of _0x358309['getChanges']()){const _0x56cc06='attribute'==_0x8d65e8['type']?_0x8d65e8['range']['start']['parent']:_0x8d65e8['position']['parent'];_0x56cc06['is']('element','footnoteDefinition')&&_0x309979['add'](_0x56cc06);}for(const _0x32e77e of _0x309979['values']()){const _0x993fd4=Array['from'](_0x32e77e['getChildren']())['filter'](_0x567ebf=>v(_0x567ebf,_0x3f9203['mapper']));for(const _0x19017f of _0x993fd4)_0x3f9203['reconvertItem'](_0x19017f);}}(_0x808f5c['model'],_0x808f5c['editing']);})):(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x304542,{writer:_0x34bbb6})=>{const _0xb56d38=_0x34bbb6['createContainerElement']('span');return _0x34bbb6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb56d38),_0xb56d38;}}));}['_defineKeyboardHandlers'](){const {editor:_0x22cf3a}=this,{editing:_0x7cbc12,t:t}=_0x22cf3a,_0x5d8cfd=_0x22cf3a['model']['document']['selection'];_0x22cf3a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x22cf3a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x7cbc12['view']['document'],'enter',(_0x36da44,_0x7cd548)=>{const _0xcdd2b2=function(_0x25b911){const _0x1c9bdf=_0x25b911['getSelectedElement']();if(_0x1c9bdf?.['is']('element','footnoteRef'))return _0x1c9bdf;return null;}(_0x5d8cfd);if(_0xcdd2b2){const _0x27f4f9=_0xcdd2b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x27f4f9),_0x7cd548['preventDefault'](),_0x36da44['stop']();}},{'context':_0x5eeb14});}['_defineClickHandlers'](){const {editor:_0x17d245}=this,{editing:_0x1875b2}=_0x17d245;_0x17d245['editing']['view']['addObserver'](_0x1bdd58),_0x17d245['editing']['view']['addObserver'](_0x4d644d);let _0x4436c8=!0x1;this['listenTo'](_0x1875b2['view']['document'],'pointerdown',(_0x56ab9c,_0x96f6ec)=>{const {target:_0x2c8ae2}=_0x96f6ec,_0x25c4e3=_0x1875b2['view']['document']['selection'];_0x4436c8=!!(_0x2c8ae2?.['is']('element','a')&&_0x2c8ae2['parent']?.['is']('element','sup')&&_0x2c8ae2['parent']['hasClass']('footnote'))&&_0x25c4e3['getSelectedElement']()===_0x2c8ae2['parent'];},{'priority':'high'}),this['listenTo'](_0x1875b2['view']['document'],'click',(_0x59fa0c,_0x52fb59)=>{const {target:_0x3ac1e3}=_0x52fb59;if(!_0x3ac1e3?.['is']('element','a'))return;if(_0x3ac1e3['parent']?.['is']('element','sup')&&_0x3ac1e3['parent']['hasClass']('footnote')&&!_0x4436c8)return void _0x52fb59['preventDefault']();let _0x349bbc=_0x3ac1e3['getAttribute']('href');if(!_0x349bbc?.['startsWith']('#'))return;_0x349bbc=_0x349bbc['slice'](0x1);let _0x478595=!0x1;(_0x349bbc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x349bbc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x349bbc))&&(_0x478595=!0x0),_0x478595&&(_0x52fb59['preventDefault'](),_0x59fa0c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1e239c}={}){return(_0x11894d,{writer:_0x2e5efb})=>{if(!g(_0x11894d))return null;if(!_0x1e239c)return _0x2e5efb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x10a32b=_0x2e5efb['createContainerElement']('p');return _0x2e5efb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10a32b),_0x10a32b;};}function g(_0x5787a5){const {parent:_0x209119}=_0x5787a5;if(!_0x209119?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x209119['childCount'])return!0x1;for(const _0x379498 of _0x5787a5['getAttributeKeys']())if(!_0x379498['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x379498)return!0x1;return!0x0;}function v(_0x2b508e,_0xb27b88){if(!_0x2b508e['is']('element','paragraph'))return!0x1;const _0x476bc8=_0xb27b88['toViewElement'](_0x2b508e);return!!_0x476bc8&&g(_0x2b508e)!==_0x476bc8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x14be75){return _0x5eeb14(_0x14be75)&&_0x14be75['is']('containerElement')&&!!_0x14be75['getCustomProperty']('footnotesDefinitions');}function D(_0x2ea841,_0x49138e={}){const _0x4a75d1=_0x2ea841['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3cc183=_0x2ea841['createContainerElement']('ol',{'class':'footnotes-list'},_0x2ea841['createSlot']());return _0x2ea841['createContainerElement']('div',{'class':'footnotes',..._0x49138e},[_0x4a75d1,_0x3cc183]);}function b(_0x556346,_0x561653){const _0x173748=_0x556346['getAttribute']('footnoteId'),_0x15166b=_0x556346['getAttribute']('footnoteCounter'),_0x506ba4=_0x561653['createUIElement']('a',{'href':'#'+_0x173748},function(_0x100907){const _0x3cdb76=this['toDomElement'](_0x100907);return _0x3cdb76['textContent']=_0x15166b,_0x3cdb76;}),_0x304075=_0x561653['createContainerElement']('sup',{'id':'ref-'+_0x173748,'class':'footnote'},[_0x506ba4]);return _0x304075['getFillerOffset']=()=>null,_0x304075;}function y(_0x4625e4,_0x137e28,_0x52d570,{dataPipeline:_0x442362}={}){const {t:t}=_0x52d570,_0x1f653d=_0x4625e4['getAttribute']('footnoteId'),_0x4f0c1a=_0x137e28['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1f653d},function(_0x28dbb2){const _0x48bfe9=this['toDomElement'](_0x28dbb2);return _0x48bfe9['innerText']='^',_0x48bfe9;}),_0x5e9352=_0x442362?_0x137e28['createContainerElement']('div',{'class':'footnote-content'}):_0xe96de1(_0x137e28['createEditableElement']('div',{'class':'footnote-content'}),_0x137e28,{'label':t('Footnote\x20content.')});return _0x137e28['insert'](_0x137e28['createPositionAt'](_0x5e9352,0x0),_0x137e28['createSlot']()),_0x137e28['createContainerElement']('li',{'class':'footnote-definition','id':_0x1f653d},[_0x4f0c1a,_0x5e9352]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337bc7=_0x4a70;(function(_0x23702d,_0x4e4909){const _0x52eec2=_0x4a70,_0x179327=_0x23702d();while(!![]){try{const _0x146439=parseInt(_0x52eec2(0x6f))/0x1+parseInt(_0x52eec2(0x70))/0x2*(parseInt(_0x52eec2(0x74))/0x3)+parseInt(_0x52eec2(0x73))/0x4*(parseInt(_0x52eec2(0x7e))/0x5)+parseInt(_0x52eec2(0x7d))/0x6+-parseInt(_0x52eec2(0x78))/0x7*(-parseInt(_0x52eec2(0x6d))/0x8)+-parseInt(_0x52eec2(0x79))/0x9+parseInt(_0x52eec2(0x71))/0xa*(-parseInt(_0x52eec2(0x7b))/0xb);if(_0x146439===_0x4e4909)break;else _0x179327['push'](_0x179327['shift']());}catch(_0x16aa83){_0x179327['push'](_0x179327['shift']());}}}(_0x24e5,0xae079));function _0x24e5(){const _0x451319=['isInteger','model','isEnabled','2576798dAVExn','10748547MAnkSL','plugins','27313396RXGGKL','change','7538418qwNpZA','3234555HhkGOl','getAttribute','setAttribute','getFootnotesDefinitionsObjectElement','get','value','execute','footnotesListStart','24djhSqq','_updateFootnotesCounters','859171wZTRFS','348878PZUDSG','10vvkxBZ','refresh','4OYklGp','9mFqqZp'];_0x24e5=function(){return _0x451319;};return _0x24e5();}import{Command as _0x5d9d1c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2c98fb}from'../../footnotestracker.js';function _0x4a70(_0x209924,_0x4c850a){const _0x24e538=_0x24e5();return _0x4a70=function(_0x4a70e4,_0x2dcd36){_0x4a70e4=_0x4a70e4-0x6a;let _0x4d4057=_0x24e538[_0x4a70e4];return _0x4d4057;},_0x4a70(_0x209924,_0x4c850a);}export class FootnotesStartCommand extends _0x5d9d1c{[_0x337bc7(0x72)](){const _0x1f524f=_0x337bc7,{editor:_0x346d2e}=this,_0x5436cc=_0x346d2e[_0x1f524f(0x7a)][_0x1f524f(0x82)](_0x2c98fb)[_0x1f524f(0x81)]();this[_0x1f524f(0x77)]=!!_0x5436cc,this[_0x1f524f(0x6a)]=_0x5436cc?.[_0x1f524f(0x7f)](_0x1f524f(0x6c))??null;}[_0x337bc7(0x6b)]({value:_0x1e569f}){const _0x2f018c=_0x337bc7,{editor:_0x3a4aaa}=this,_0x3163e0=_0x3a4aaa[_0x2f018c(0x7a)][_0x2f018c(0x82)](_0x2c98fb),_0x3e736b=_0x3163e0[_0x2f018c(0x81)]();_0x3e736b&&Number[_0x2f018c(0x75)](_0x1e569f)&&_0x3a4aaa[_0x2f018c(0x76)][_0x2f018c(0x7c)](_0x3c29b3=>{const _0x5a08d7=_0x2f018c;_0x3c29b3[_0x5a08d7(0x80)](_0x5a08d7(0x6c),_0x1e569f,_0x3e736b),_0x3163e0[_0x5a08d7(0x6e)](_0x3c29b3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33ef21=_0x3bcf;(function(_0x3faa69,_0x205cc8){const _0x3f8e5f=_0x3bcf,_0x2c0d1f=_0x3faa69();while(!![]){try{const _0x598ab6=-parseInt(_0x3f8e5f(0x1f7))/0x1*(parseInt(_0x3f8e5f(0x1ff))/0x2)+-parseInt(_0x3f8e5f(0x1f9))/0x3+-parseInt(_0x3f8e5f(0x200))/0x4*(parseInt(_0x3f8e5f(0x1f5))/0x5)+-parseInt(_0x3f8e5f(0x206))/0x6*(-parseInt(_0x3f8e5f(0x208))/0x7)+-parseInt(_0x3f8e5f(0x205))/0x8*(-parseInt(_0x3f8e5f(0x1fd))/0x9)+-parseInt(_0x3f8e5f(0x20a))/0xa+-parseInt(_0x3f8e5f(0x1fc))/0xb*(-parseInt(_0x3f8e5f(0x207))/0xc);if(_0x598ab6===_0x205cc8)break;else _0x2c0d1f['push'](_0x2c0d1f['shift']());}catch(_0x187aa7){_0x2c0d1f['push'](_0x2c0d1f['shift']());}}}(_0x5b35,0xddf1b));function _0x3bcf(_0x2f2900,_0x4f3c65){const _0x5b3549=_0x5b35();return _0x3bcf=function(_0x3bcf5e,_0x433175){_0x3bcf5e=_0x3bcf5e-0x1f3;let _0xc5ca2=_0x5b3549[_0x3bcf5e];return _0xc5ca2;},_0x3bcf(_0x2f2900,_0x4f3c65);}import{Command as _0x193dff}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x1379c7}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1c13b6}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x193dff{[_0x33ef21(0x20b)](){const _0x4689ee=_0x33ef21,{editor:_0x19bccc}=this,_0x3e3edd=_0x19bccc[_0x4689ee(0x1fb)][_0x4689ee(0x1fe)](_0x1c13b6)[_0x4689ee(0x1f6)]();this[_0x4689ee(0x203)]=!!_0x3e3edd,this[_0x4689ee(0x1f8)]=_0x3e3edd?.[_0x4689ee(0x209)](_0x4689ee(0x1f4))??null;}[_0x33ef21(0x201)]({value:_0x203135}){const _0x395c26=_0x33ef21,{editor:_0x176e67}=this,_0xeccb87=_0x176e67[_0x395c26(0x1fb)][_0x395c26(0x1fe)](_0x1c13b6),_0x5c6981=_0xeccb87[_0x395c26(0x1f6)]();_0x5c6981&&_0x1379c7[_0x395c26(0x1fa)](_0x203135)&&_0x176e67[_0x395c26(0x1f3)][_0x395c26(0x202)](_0x3b0978=>{const _0x282830=_0x395c26;_0x3b0978[_0x282830(0x204)](_0x282830(0x1f4),_0x203135,_0x5c6981),_0xeccb87[_0x282830(0x20c)](_0x3b0978);});}}function _0x5b35(){const _0x2d77a6=['20xTLQkA','execute','change','isEnabled','setAttribute','8vHFbjJ','5953530lPyxaf','12PIDwXF','7CGROFC','getAttribute','14951740DHfrgi','refresh','_updateFootnotesCounters','model','footnotesListStyle','1032235wJelkq','getFootnotesDefinitionsObjectElement','11ursSlI','value','1554942mNLDcL','includes','plugins','37032985jvSTrm','10657161ySphEF','get','288766hNXJQL'];_0x5b35=function(){return _0x2d77a6;};return _0x5b35();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2d06a5=_0x4fc3;function _0x4fc3(_0x54efcd,_0x4d8830){const _0x4910d9=_0x4910();return _0x4fc3=function(_0x4fc3fb,_0x32a800){_0x4fc3fb=_0x4fc3fb-0x163;let _0x2b3341=_0x4910d9[_0x4fc3fb];return _0x2b3341;},_0x4fc3(_0x54efcd,_0x4d8830);}function _0x4910(){const _0x5598b0=['lower-alpha','upper-roman','9121VowbAS','1395392iWOISb','decimal-leading-zero','lower-latin','2898ngPbSZ','decimal','326294sCONfs','40615FaRYdj','47786DkIrSM','upper-alpha','2612592zCKCzz','100ZUObXG','upper-latin','1614CVZMaA','lower-roman'];_0x4910=function(){return _0x5598b0;};return _0x4910();}(function(_0x5d1256,_0x2ae830){const _0x29be24=_0x4fc3,_0x49bef4=_0x5d1256();while(!![]){try{const _0x78076b=parseInt(_0x29be24(0x16b))/0x1+parseInt(_0x29be24(0x169))/0x2+-parseInt(_0x29be24(0x167))/0x3+parseInt(_0x29be24(0x16e))/0x4*(parseInt(_0x29be24(0x16a))/0x5)+parseInt(_0x29be24(0x170))/0x6*(parseInt(_0x29be24(0x163))/0x7)+-parseInt(_0x29be24(0x164))/0x8+-parseInt(_0x29be24(0x16d))/0x9;if(_0x78076b===_0x2ae830)break;else _0x49bef4['push'](_0x49bef4['shift']());}catch(_0x4e499a){_0x49bef4['push'](_0x49bef4['shift']());}}}(_0x4910,0x48f55));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x2d06a5(0x168),_0x2d06a5(0x165),_0x2d06a5(0x166),_0x2d06a5(0x16f),_0x2d06a5(0x172),_0x2d06a5(0x16c),_0x2d06a5(0x171),_0x2d06a5(0x173)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x212913=_0x5150;(function(_0x1da78c,_0x305835){const _0x1cb717=_0x5150,_0xb61b8e=_0x1da78c();while(!![]){try{const _0x372c32=-parseInt(_0x1cb717(0x1e1))/0x1*(parseInt(_0x1cb717(0x1d9))/0x2)+-parseInt(_0x1cb717(0x21d))/0x3*(parseInt(_0x1cb717(0x200))/0x4)+parseInt(_0x1cb717(0x233))/0x5*(-parseInt(_0x1cb717(0x218))/0x6)+parseInt(_0x1cb717(0x211))/0x7+parseInt(_0x1cb717(0x207))/0x8*(parseInt(_0x1cb717(0x20f))/0x9)+-parseInt(_0x1cb717(0x212))/0xa+-parseInt(_0x1cb717(0x1f9))/0xb*(-parseInt(_0x1cb717(0x1d3))/0xc);if(_0x372c32===_0x305835)break;else _0xb61b8e['push'](_0xb61b8e['shift']());}catch(_0x2a0812){_0xb61b8e['push'](_0xb61b8e['shift']());}}}(_0x5735,0x5ac65));function _0x5150(_0x520688,_0x58ecac){const _0x573524=_0x5735();return _0x5150=function(_0x515040,_0x1530f8){_0x515040=_0x515040-0x1ce;let _0x244afa=_0x573524[_0x515040];return _0x244afa;},_0x5150(_0x520688,_0x58ecac);}import{Plugin as _0x11971}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x610ad1}from'./commands/footnotesstylecommand.js';function _0x5735(){const _0xb7fa47=['footnotes.footnotesProperties.defaultStartIndex','getChanges','upper-alpha','element:ol','12fSPjuD','hasAttribute','getChildren','createRangeOn','setStyle','isNaN','38qAQytx','parent','extend','plugins','find','getItems','downcast','getStyle','26479WqXukL','insert','init','hasClass','_formatFootnoteListValue','removeStyle','footnotes-list','mapper','registerPostFixer','_defineSchema','setFootnoteFormatter','isPremiumPlugin','item','lower-alpha','document','attribute:footnotesListStyle:footnotesDefinitions','footnotesListStart','for','writer','upper-latin','attribute:footnotesListStart:footnotesDefinitions','toViewElement','type','define','18216330ifoWSf','_getDefaultListStyle','footnotesStart','_updateFootnotesCounters','modelCursor','toLowerCase','decimal','16bZlRgh','consumable','removeAttribute','upcast','upper-roman','_defineFormatter','footnotes.footnotesProperties.defaultListStyle','161080zYOGtf','add','FootnotesPropertiesEditing','setAttribute','element','getAttribute','list-style-type','viewItem','63rUAnog','commands','652596jmtDGw','1840560cuRmwl','lower-roman','from','_getDefaultStartIndex','model','parseInt','2082mDHlSA','start','position','isOfficialPlugin','lower-latin','432141eUfzlu','padStart','requires','decimal-leading-zero','fromCharCode','floor','footnotesStyle','consume','editor','pluginName','config','schema','toUpperCase','get','footnotesListStyle','_defineConverters','differ','_definePostfixer','max','$text','checkAttribute','nodeAfter','3675dPMNEN','name','footnotesDefinitions'];_0x5735=function(){return _0xb7fa47;};return _0x5735();}import{FootnotesStartCommand as _0x8f188d}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x553c35}from'../footnotestracker.js';import{FootnotesEditing as _0x2bac41}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x11971{static get[_0x212913(0x226)](){const _0x2cb85d=_0x212913;return _0x2cb85d(0x209);}static get[_0x212913(0x21f)](){return[_0x2bac41,_0x553c35];}static get[_0x212913(0x21b)](){return!0x0;}static get[_0x212913(0x1ec)](){return!0x0;}[_0x212913(0x1e3)](){const _0x4cbee2=_0x212913,{editor:_0x4a83ed}=this;_0x4a83ed[_0x4cbee2(0x227)][_0x4cbee2(0x1f8)](_0x4cbee2(0x206),_0x4cbee2(0x1ff)),_0x4a83ed[_0x4cbee2(0x227)][_0x4cbee2(0x1f8)](_0x4cbee2(0x1cf),0x1),_0x4a83ed[_0x4cbee2(0x210)][_0x4cbee2(0x208)](_0x4cbee2(0x223),new _0x610ad1(_0x4a83ed)),_0x4a83ed[_0x4cbee2(0x210)][_0x4cbee2(0x208)](_0x4cbee2(0x1fb),new _0x8f188d(_0x4a83ed)),this[_0x4cbee2(0x1ea)](),this[_0x4cbee2(0x22c)](),this[_0x4cbee2(0x205)](),this[_0x4cbee2(0x22e)]();}[_0x212913(0x1ea)](){const _0x4eae3=_0x212913,{editor:_0x1a200a}=this,{schema:_0x10af0a}=_0x1a200a[_0x4eae3(0x216)];_0x10af0a[_0x4eae3(0x1db)](_0x4eae3(0x1ce),{'allowAttributes':[_0x4eae3(0x22b),_0x4eae3(0x1f1)]});}[_0x212913(0x22c)](){const _0x43463d=_0x212913,{editor:_0x215d0f}=this,{conversion:_0x47fd3e,model:_0x2d8320}=_0x215d0f,{schema:_0x512a2b}=_0x2d8320;_0x47fd3e[_0x43463d(0x1f2)](_0x43463d(0x203))[_0x43463d(0x208)](_0x226cb4=>{const _0x3918c6=_0x43463d;_0x226cb4['on'](_0x3918c6(0x1d2),(_0x455c1c,_0x31afc1,_0x4b76e2)=>{const _0x56d415=_0x3918c6,_0x170b8b=_0x31afc1[_0x56d415(0x20e)],_0xeee58d=_0x31afc1[_0x56d415(0x1fd)]?.[_0x56d415(0x1da)];_0x170b8b[_0x56d415(0x1e4)](_0x56d415(0x1e7))&&_0xeee58d?.['is'](_0x56d415(0x20b),_0x56d415(0x1ce))&&(function(_0x56b3ed,_0x4fd333,_0x2439a6,_0x3315db){const _0x1df80f=_0x56d415;if(!_0x3315db[_0x1df80f(0x231)](_0x4fd333,_0x1df80f(0x1f1)))return;let _0x4d8198=0x1;const _0x4827e9=_0x2439a6[_0x1df80f(0x201)][_0x1df80f(0x224)](_0x56b3ed,{'attributes':_0x1df80f(0x219)});if(_0x4827e9){const _0x17d6ca=Number[_0x1df80f(0x217)](_0x56b3ed[_0x1df80f(0x20c)](_0x1df80f(0x219)),0xa);Number[_0x1df80f(0x1d8)](_0x17d6ca)||(_0x4d8198=_0x17d6ca);}!_0x4827e9&&_0x4fd333[_0x1df80f(0x1d4)](_0x1df80f(0x1f1))||_0x2439a6[_0x1df80f(0x1f3)][_0x1df80f(0x20a)](_0x1df80f(0x1f1),_0x4d8198,_0x4fd333);}(_0x170b8b,_0xeee58d,_0x4b76e2,_0x512a2b),function(_0x407cd5,_0x194180,_0xe1dd14,_0x56a46d){const _0x1305e4=_0x56d415;if(!_0x56a46d[_0x1305e4(0x231)](_0x194180,_0x1305e4(0x22b)))return;let _0x42b36c=_0x1305e4(0x1ff),_0x5c4330=!0x1;if(_0xe1dd14[_0x1305e4(0x201)][_0x1305e4(0x224)](_0x407cd5,{'attributes':_0x1305e4(0x1f7)})){const _0x3bd89b={0x1:_0x1305e4(0x1ff),'a':_0x1305e4(0x1ee),'A':_0x1305e4(0x1d1),'i':_0x1305e4(0x213),'I':_0x1305e4(0x204)}[_0x407cd5[_0x1305e4(0x20c)](_0x1305e4(0x1f7))];_0x3bd89b&&(_0x42b36c=_0x3bd89b),_0x5c4330=!0x0;}_0xe1dd14[_0x1305e4(0x201)][_0x1305e4(0x224)](_0x407cd5,{'styles':_0x1305e4(0x20d)})&&(_0x42b36c=function(_0x550cfa){const _0x257d98=_0x1305e4;switch(_0x550cfa){case _0x257d98(0x1ee):return _0x257d98(0x21c);case _0x257d98(0x1d1):return _0x257d98(0x1f4);default:return _0x550cfa;}}(_0x407cd5[_0x1305e4(0x1e0)](_0x1305e4(0x20d))),_0x5c4330=!0x0),!_0x5c4330&&_0x194180[_0x1305e4(0x1d4)](_0x1305e4(0x22b))||_0xe1dd14[_0x1305e4(0x1f3)][_0x1305e4(0x20a)](_0x1305e4(0x22b),_0x42b36c,_0x194180);}(_0x170b8b,_0xeee58d,_0x4b76e2,_0x512a2b));});}),_0x47fd3e[_0x43463d(0x1f2)](_0x43463d(0x1df))[_0x43463d(0x208)](_0x394e15=>{const _0x356527=_0x43463d;_0x394e15['on'](_0x356527(0x1f5),(_0x61634f,_0x49f96e,_0x3d1c5c)=>{const _0x211b13=_0x356527;if(!_0x3d1c5c[_0x211b13(0x201)][_0x211b13(0x224)](_0x49f96e[_0x211b13(0x1ed)],_0x61634f[_0x211b13(0x234)]))return;const _0x47c5cb=M(_0x49f96e[_0x211b13(0x1ed)],_0x3d1c5c[_0x211b13(0x1e8)]),{attributeNewValue:_0x14f4a1}=_0x49f96e;null==_0x14f4a1||0x1===_0x14f4a1?_0x3d1c5c[_0x211b13(0x1f3)][_0x211b13(0x202)](_0x211b13(0x219),_0x47c5cb):_0x3d1c5c[_0x211b13(0x1f3)][_0x211b13(0x20a)](_0x211b13(0x219),String(_0x14f4a1),_0x47c5cb);}),_0x394e15['on'](_0x356527(0x1f0),(_0x5717fe,_0x53ab29,_0x1fe854)=>{const _0x373a34=_0x356527;if(!_0x1fe854[_0x373a34(0x201)][_0x373a34(0x224)](_0x53ab29[_0x373a34(0x1ed)],_0x5717fe[_0x373a34(0x234)]))return;const _0x25cbc5=M(_0x53ab29[_0x373a34(0x1ed)],_0x1fe854[_0x373a34(0x1e8)]),{attributeNewValue:_0x3f1d31}=_0x53ab29;_0x3f1d31&&_0x373a34(0x1ff)!==_0x3f1d31?_0x1fe854[_0x373a34(0x1f3)][_0x373a34(0x1d7)](_0x373a34(0x20d),_0x3f1d31,_0x25cbc5):_0x1fe854[_0x373a34(0x1f3)][_0x373a34(0x1e6)](_0x373a34(0x20d),_0x25cbc5);});});}[_0x212913(0x22e)](){const _0x15382c=_0x212913,{editor:_0x395cbf}=this,{model:_0x2bbbf8}=_0x395cbf,_0x21b3c6=_0x395cbf[_0x15382c(0x1dc)][_0x15382c(0x22a)](_0x553c35),_0x37e620=this[_0x15382c(0x1fa)](),_0x50ccc2=this[_0x15382c(0x215)]();_0x2bbbf8[_0x15382c(0x1ef)][_0x15382c(0x1e9)](_0x511a96=>{const _0x15d17f=_0x15382c,_0x1e7430=_0x2bbbf8[_0x15d17f(0x1ef)][_0x15d17f(0x22d)][_0x15d17f(0x1d0)]();let _0x2b52f1=!0x1;for(const _0xbba526 of _0x1e7430){if(_0x15d17f(0x1e2)!==_0xbba526[_0x15d17f(0x1f7)]||_0x15d17f(0x230)===_0xbba526[_0x15d17f(0x234)])continue;const _0x12dee0=_0x2bbbf8[_0x15d17f(0x1d6)](_0xbba526[_0x15d17f(0x21a)][_0x15d17f(0x232)]);for(const _0x83634d of _0x12dee0[_0x15d17f(0x1de)]())_0x83634d['is'](_0x15d17f(0x20b),_0x15d17f(0x1ce))&&(!_0x83634d[_0x15d17f(0x1d4)](_0x15d17f(0x1f1))&&_0x2bbbf8[_0x15d17f(0x228)][_0x15d17f(0x231)](_0x83634d,_0x15d17f(0x1f1))&&(_0x511a96[_0x15d17f(0x20a)](_0x15d17f(0x1f1),_0x50ccc2,_0x83634d),_0x2b52f1=!0x0),!_0x83634d[_0x15d17f(0x1d4)](_0x15d17f(0x22b))&&_0x2bbbf8[_0x15d17f(0x228)][_0x15d17f(0x231)](_0x83634d,_0x15d17f(0x22b))&&(_0x511a96[_0x15d17f(0x20a)](_0x15d17f(0x22b),_0x37e620,_0x83634d),_0x2b52f1=!0x0));}return _0x2b52f1&&_0x21b3c6[_0x15d17f(0x1fc)](_0x511a96),_0x2b52f1;});}[_0x212913(0x205)](){const _0x1fc9f2=_0x212913,{editor:_0x1bd48f}=this;_0x1bd48f[_0x1fc9f2(0x1dc)][_0x1fc9f2(0x22a)](_0x553c35)[_0x1fc9f2(0x1eb)](_0x587c95=>this[_0x1fc9f2(0x1e5)](_0x587c95));}[_0x212913(0x1fa)](){const _0x5344cb=_0x212913;return this[_0x5344cb(0x225)][_0x5344cb(0x227)][_0x5344cb(0x22a)](_0x5344cb(0x206));}[_0x212913(0x215)](){const _0x58bf05=_0x212913;return this[_0x58bf05(0x225)][_0x58bf05(0x227)][_0x58bf05(0x22a)](_0x58bf05(0x1cf));}[_0x212913(0x1e5)]({container:_0x150f99,value:_0x4cb33d,digits:_0x4d1427}){const _0x30df48=_0x212913,_0x528cd2=_0x150f99[_0x30df48(0x20c)](_0x30df48(0x22b)),_0x19946c=_0x150f99[_0x30df48(0x20c)](_0x30df48(0x1f1)),_0x4d470c=Math[_0x30df48(0x222)](_0x4cb33d)+(_0x19946c??0x1)-0x1;switch(_0x528cd2){case _0x30df48(0x220):return function(_0x186c47,_0x4649d2){const _0x562a02=_0x30df48;return String(_0x186c47)[_0x562a02(0x21e)](_0x4649d2,'0');}(_0x4d470c,Math[_0x30df48(0x22f)](0x2,_0x4d1427));case _0x30df48(0x1ee):case _0x30df48(0x21c):return N(_0x4d470c,!0x1);case _0x30df48(0x1d1):case _0x30df48(0x1f4):return N(_0x4d470c,!0x0);case _0x30df48(0x213):return X(_0x4d470c,!0x1);case _0x30df48(0x204):return X(_0x4d470c,!0x0);default:return String(_0x4d470c);}}}function M(_0x3bb688,_0x23e4a5){const _0x3e67c6=_0x212913,_0x4d175f=_0x23e4a5[_0x3e67c6(0x1f6)](_0x3bb688);return Array[_0x3e67c6(0x214)](_0x4d175f[_0x3e67c6(0x1d5)]())[_0x3e67c6(0x1dd)](_0x455822=>_0x455822['is'](_0x3e67c6(0x20b),'ol')&&_0x455822[_0x3e67c6(0x1e4)](_0x3e67c6(0x1e7)));}function N(_0x13b7f8,_0x40dba6){const _0x3416ab=_0x212913;let _0x5d8210='',_0x5cca3a=_0x13b7f8;for(;_0x5cca3a>0x0;){const _0x2df29a=(_0x5cca3a-0x1)%0x1a;_0x5d8210=String[_0x3416ab(0x221)](0x61+_0x2df29a)+_0x5d8210,_0x5cca3a=Math[_0x3416ab(0x222)]((_0x5cca3a-0x1)/0x1a);}return _0x40dba6?_0x5d8210[_0x3416ab(0x229)]():_0x5d8210;}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(_0x148f8a,_0x354f6e){const _0x1fb793=_0x212913;let _0xf1c80e='',_0x34c0e7=_0x148f8a;for(const {value:_0x2bba72,numeral:_0x2ccc73}of V)for(;_0x34c0e7>=_0x2bba72;)_0xf1c80e+=_0x2ccc73,_0x34c0e7-=_0x2bba72;return _0x354f6e?_0xf1c80e:_0xf1c80e[_0x1fb793(0x1fe)]();}
|
|
23
|
+
const _0x5d3878=_0x1f55;(function(_0xecc742,_0x4a2b26){const _0x4aa6be=_0x1f55,_0x5a645b=_0xecc742();while(!![]){try{const _0x34bb3f=parseInt(_0x4aa6be(0xe1))/0x1*(-parseInt(_0x4aa6be(0xad))/0x2)+-parseInt(_0x4aa6be(0xb1))/0x3*(-parseInt(_0x4aa6be(0xab))/0x4)+-parseInt(_0x4aa6be(0xdf))/0x5*(parseInt(_0x4aa6be(0x100))/0x6)+-parseInt(_0x4aa6be(0xb7))/0x7+parseInt(_0x4aa6be(0xd5))/0x8+-parseInt(_0x4aa6be(0xf0))/0x9+parseInt(_0x4aa6be(0xe6))/0xa;if(_0x34bb3f===_0x4a2b26)break;else _0x5a645b['push'](_0x5a645b['shift']());}catch(_0x4d622a){_0x5a645b['push'](_0x5a645b['shift']());}}}(_0x2d53,0x64521));import{Plugin as _0x60fd58}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x5134ec}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x3bfcd8}from'./commands/footnotesstartcommand.js';function _0x1f55(_0x1c170c,_0x245552){const _0x2d53e0=_0x2d53();return _0x1f55=function(_0x1f5575,_0x307024){_0x1f5575=_0x1f5575-0xa2;let _0x5237fe=_0x2d53e0[_0x1f5575];return _0x5237fe;},_0x1f55(_0x1c170c,_0x245552);}import{FootnotesTracker as _0x3a0611}from'../footnotestracker.js';import{FootnotesEditing as _0x596d02}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x60fd58{static get[_0x5d3878(0xbb)](){const _0x10937e=_0x5d3878;return _0x10937e(0xed);}static get[_0x5d3878(0xb6)](){return[_0x596d02,_0x3a0611];}static get[_0x5d3878(0xf8)](){return!0x0;}static get[_0x5d3878(0xd9)](){return!0x0;}[_0x5d3878(0xac)](){const _0x36ebb1=_0x5d3878,{editor:_0x40a08e}=this;_0x40a08e[_0x36ebb1(0xdd)][_0x36ebb1(0xf6)](_0x36ebb1(0x106),_0x36ebb1(0xcb)),_0x40a08e[_0x36ebb1(0xdd)][_0x36ebb1(0xf6)](_0x36ebb1(0xba),0x1),_0x40a08e[_0x36ebb1(0xb0)][_0x36ebb1(0xcd)](_0x36ebb1(0xb4),new _0x5134ec(_0x40a08e)),_0x40a08e[_0x36ebb1(0xb0)][_0x36ebb1(0xcd)](_0x36ebb1(0xb3),new _0x3bfcd8(_0x40a08e)),this[_0x36ebb1(0xe7)](),this[_0x36ebb1(0xcf)](),this[_0x36ebb1(0xf5)](),this[_0x36ebb1(0xea)]();}[_0x5d3878(0xe7)](){const _0xf1a7af=_0x5d3878,{editor:_0x5b6d48}=this,{schema:_0x15f8c1}=_0x5b6d48[_0xf1a7af(0xc5)];_0x15f8c1[_0xf1a7af(0x101)](_0xf1a7af(0xbd),{'allowAttributes':[_0xf1a7af(0xb2),_0xf1a7af(0xfd)]});}[_0x5d3878(0xcf)](){const _0x5edf4f=_0x5d3878,{editor:_0x2ea28c}=this,{conversion:_0x5e7b3d,model:_0x3c1bb9}=_0x2ea28c,{schema:_0x50cc90}=_0x3c1bb9;_0x5e7b3d[_0x5edf4f(0xda)](_0x5edf4f(0xc0))[_0x5edf4f(0xcd)](_0x40636b=>{const _0x2ce85b=_0x5edf4f;_0x40636b['on'](_0x2ce85b(0xca),(_0x8f0c86,_0x45e725,_0x334b3)=>{const _0x353b3f=_0x2ce85b,_0x1370de=_0x45e725[_0x353b3f(0xb5)],_0x345f13=_0x45e725[_0x353b3f(0xd6)]?.[_0x353b3f(0xfb)];_0x1370de[_0x353b3f(0xf2)](_0x353b3f(0xe5))&&_0x345f13?.['is'](_0x353b3f(0xa2),_0x353b3f(0xbd))&&(function(_0x22d6c8,_0x3304af,_0x358977,_0x48cbad){const _0xcade20=_0x353b3f;if(!_0x48cbad[_0xcade20(0xa7)](_0x3304af,_0xcade20(0xfd)))return;let _0x3ae4f2=0x1;const _0x3a0b43=_0x358977[_0xcade20(0xd7)][_0xcade20(0xec)](_0x22d6c8,{'attributes':_0xcade20(0x104)});if(_0x3a0b43){const _0x131460=Number[_0xcade20(0xcc)](_0x22d6c8[_0xcade20(0xd1)](_0xcade20(0x104)),0xa);Number[_0xcade20(0xc9)](_0x131460)||(_0x3ae4f2=_0x131460);}!_0x3a0b43&&_0x3304af[_0xcade20(0xc6)](_0xcade20(0xfd))||_0x358977[_0xcade20(0x103)][_0xcade20(0xd8)](_0xcade20(0xfd),_0x3ae4f2,_0x3304af);}(_0x1370de,_0x345f13,_0x334b3,_0x50cc90),function(_0x493365,_0x34c7c1,_0x9e2493,_0x45d054){const _0x212904=_0x353b3f;if(!_0x45d054[_0x212904(0xa7)](_0x34c7c1,_0x212904(0xb2)))return;let _0x347251=_0x212904(0xcb),_0x42bd9a=!0x1;if(_0x9e2493[_0x212904(0xd7)][_0x212904(0xec)](_0x493365,{'attributes':_0x212904(0xde)})){const _0x586c9f={0x1:_0x212904(0xcb),'a':_0x212904(0xbf),'A':_0x212904(0x105),'i':_0x212904(0xe0),'I':_0x212904(0xc8)}[_0x493365[_0x212904(0xd1)](_0x212904(0xde))];_0x586c9f&&(_0x347251=_0x586c9f),_0x42bd9a=!0x0;}_0x9e2493[_0x212904(0xd7)][_0x212904(0xec)](_0x493365,{'styles':_0x212904(0xc7)})&&(_0x347251=function(_0xf92ed2){const _0x12480b=_0x212904;switch(_0xf92ed2){case _0x12480b(0xbf):return _0x12480b(0xbc);case _0x12480b(0x105):return _0x12480b(0xa4);default:return _0xf92ed2;}}(_0x493365[_0x212904(0xbe)](_0x212904(0xc7))),_0x42bd9a=!0x0),!_0x42bd9a&&_0x34c7c1[_0x212904(0xc6)](_0x212904(0xb2))||_0x9e2493[_0x212904(0x103)][_0x212904(0xd8)](_0x212904(0xb2),_0x347251,_0x34c7c1);}(_0x1370de,_0x345f13,_0x334b3,_0x50cc90));});}),_0x5e7b3d[_0x5edf4f(0xda)](_0x5edf4f(0xf9))[_0x5edf4f(0xcd)](_0x32966a=>{const _0xcb1394=_0x5edf4f;_0x32966a['on'](_0xcb1394(0xb8),(_0x51e608,_0x16f9ab,_0x598357)=>{const _0x547ea9=_0xcb1394;if(!_0x598357[_0x547ea9(0xd7)][_0x547ea9(0xec)](_0x16f9ab[_0x547ea9(0xe4)],_0x51e608[_0x547ea9(0xe2)]))return;const _0x329eef=M(_0x16f9ab[_0x547ea9(0xe4)],_0x598357[_0x547ea9(0xaf)]),{attributeNewValue:_0x490f1c}=_0x16f9ab;null==_0x490f1c||0x1===_0x490f1c?_0x598357[_0x547ea9(0x103)][_0x547ea9(0xa9)](_0x547ea9(0x104),_0x329eef):_0x598357[_0x547ea9(0x103)][_0x547ea9(0xd8)](_0x547ea9(0x104),String(_0x490f1c),_0x329eef);}),_0x32966a['on'](_0xcb1394(0xd0),(_0x5ec48e,_0x175729,_0x5ca8ba)=>{const _0x3cdeb4=_0xcb1394;if(!_0x5ca8ba[_0x3cdeb4(0xd7)][_0x3cdeb4(0xec)](_0x175729[_0x3cdeb4(0xe4)],_0x5ec48e[_0x3cdeb4(0xe2)]))return;const _0x48da9c=M(_0x175729[_0x3cdeb4(0xe4)],_0x5ca8ba[_0x3cdeb4(0xaf)]),{attributeNewValue:_0x2e32ea}=_0x175729;_0x2e32ea&&_0x3cdeb4(0xcb)!==_0x2e32ea?_0x5ca8ba[_0x3cdeb4(0x103)][_0x3cdeb4(0xfe)](_0x3cdeb4(0xc7),_0x2e32ea,_0x48da9c):_0x5ca8ba[_0x3cdeb4(0x103)][_0x3cdeb4(0xe8)](_0x3cdeb4(0xc7),_0x48da9c);});});}[_0x5d3878(0xea)](){const _0x5830c0=_0x5d3878,{editor:_0x2b28ee}=this,{model:_0x29b642}=_0x2b28ee,_0x561b8b=_0x2b28ee[_0x5830c0(0xc4)][_0x5830c0(0xa3)](_0x3a0611),_0xa19efb=this[_0x5830c0(0xef)](),_0x3cefb4=this[_0x5830c0(0xc1)]();_0x29b642[_0x5830c0(0xb9)][_0x5830c0(0xae)](_0xed83dc=>{const _0x428adf=_0x5830c0,_0x37bc7d=_0x29b642[_0x428adf(0xb9)][_0x428adf(0xf4)][_0x428adf(0xf1)]();let _0x356ce6=!0x1;for(const _0x2fc7fc of _0x37bc7d){if(_0x428adf(0xf3)!==_0x2fc7fc[_0x428adf(0xde)]||_0x428adf(0x102)===_0x2fc7fc[_0x428adf(0xe2)])continue;const _0x2905db=_0x29b642[_0x428adf(0xfa)](_0x2fc7fc[_0x428adf(0xe3)][_0x428adf(0xdb)]);for(const _0x273b0d of _0x2905db[_0x428adf(0xaa)]())_0x273b0d['is'](_0x428adf(0xa2),_0x428adf(0xbd))&&(!_0x273b0d[_0x428adf(0xc6)](_0x428adf(0xfd))&&_0x29b642[_0x428adf(0xce)][_0x428adf(0xa7)](_0x273b0d,_0x428adf(0xfd))&&(_0xed83dc[_0x428adf(0xd8)](_0x428adf(0xfd),_0x3cefb4,_0x273b0d),_0x356ce6=!0x0),!_0x273b0d[_0x428adf(0xc6)](_0x428adf(0xb2))&&_0x29b642[_0x428adf(0xce)][_0x428adf(0xa7)](_0x273b0d,_0x428adf(0xb2))&&(_0xed83dc[_0x428adf(0xd8)](_0x428adf(0xb2),_0xa19efb,_0x273b0d),_0x356ce6=!0x0));}return _0x356ce6&&_0x561b8b[_0x428adf(0xeb)](_0xed83dc),_0x356ce6;});}[_0x5d3878(0xf5)](){const _0xeed3cb=_0x5d3878,{editor:_0x3a2761}=this;_0x3a2761[_0xeed3cb(0xc4)][_0xeed3cb(0xa3)](_0x3a0611)[_0xeed3cb(0xa5)](_0x49228f=>this[_0xeed3cb(0xc3)](_0x49228f));}[_0x5d3878(0xef)](){const _0x518884=_0x5d3878;return this[_0x518884(0xff)][_0x518884(0xdd)][_0x518884(0xa3)](_0x518884(0x106));}[_0x5d3878(0xc1)](){const _0x48c213=_0x5d3878;return this[_0x48c213(0xff)][_0x48c213(0xdd)][_0x48c213(0xa3)](_0x48c213(0xba));}[_0x5d3878(0xc3)]({container:_0x6156f3,value:_0x3fb293,digits:_0xf583fe}){const _0x2bad7f=_0x5d3878,_0x475581=_0x6156f3[_0x2bad7f(0xd1)](_0x2bad7f(0xb2)),_0x2f4e67=_0x6156f3[_0x2bad7f(0xd1)](_0x2bad7f(0xfd)),_0x23402c=Math[_0x2bad7f(0xa8)](_0x3fb293)+(_0x2f4e67??0x1)-0x1;switch(_0x475581){case _0x2bad7f(0xe9):return function(_0x3a62b5,_0x50ef62){const _0x312292=_0x2bad7f;return String(_0x3a62b5)[_0x312292(0xd4)](_0x50ef62,'0');}(_0x23402c,Math[_0x2bad7f(0xc2)](0x2,_0xf583fe));case _0x2bad7f(0xbf):case _0x2bad7f(0xbc):return N(_0x23402c,!0x1);case _0x2bad7f(0x105):case _0x2bad7f(0xa4):return N(_0x23402c,!0x0);case _0x2bad7f(0xe0):return X(_0x23402c,!0x1);case _0x2bad7f(0xc8):return X(_0x23402c,!0x0);default:return String(_0x23402c);}}}function M(_0x1317bc,_0x105f3c){const _0x13d0fd=_0x5d3878,_0x10bcef=_0x105f3c[_0x13d0fd(0xd3)](_0x1317bc);return Array[_0x13d0fd(0xfc)](_0x10bcef[_0x13d0fd(0xd2)]())[_0x13d0fd(0xa6)](_0x2bd4f6=>_0x2bd4f6['is'](_0x13d0fd(0xa2),'ol')&&_0x2bd4f6[_0x13d0fd(0xf2)](_0x13d0fd(0xe5)));}function N(_0xa4e6e1,_0x222281){const _0x4546a9=_0x5d3878;let _0x18092b='',_0x573b58=_0xa4e6e1;for(;_0x573b58>0x0;){const _0x10ed75=(_0x573b58-0x1)%0x1a;_0x18092b=String[_0x4546a9(0xf7)](0x61+_0x10ed75)+_0x18092b,_0x573b58=Math[_0x4546a9(0xa8)]((_0x573b58-0x1)/0x1a);}return _0x222281?_0x18092b[_0x4546a9(0xdc)]():_0x18092b;}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 _0x2d53(){const _0x63efcd=['getChildren','toViewElement','padStart','6345040kMvlTk','modelCursor','consumable','setAttribute','isPremiumPlugin','for','nodeAfter','toUpperCase','config','type','25XKxJpn','lower-roman','1fGATxK','name','position','item','footnotes-list','12534680BWcERA','_defineSchema','removeStyle','decimal-leading-zero','_definePostfixer','_updateFootnotesCounters','consume','FootnotesPropertiesEditing','toLowerCase','_getDefaultListStyle','5324355eChYIt','getChanges','hasClass','insert','differ','_defineFormatter','define','fromCharCode','isOfficialPlugin','downcast','createRangeOn','parent','from','footnotesListStart','setStyle','editor','715806FDETvs','extend','$text','writer','start','upper-alpha','footnotes.footnotesProperties.defaultListStyle','element','get','upper-latin','setFootnoteFormatter','find','checkAttribute','floor','removeAttribute','getItems','848228kDfmkC','init','1138226LGxxWb','registerPostFixer','mapper','commands','3VdeYoD','footnotesListStyle','footnotesStart','footnotesStyle','viewItem','requires','633703XUssmv','attribute:footnotesListStart:footnotesDefinitions','document','footnotes.footnotesProperties.defaultStartIndex','pluginName','lower-latin','footnotesDefinitions','getStyle','lower-alpha','upcast','_getDefaultStartIndex','max','_formatFootnoteListValue','plugins','model','hasAttribute','list-style-type','upper-roman','isNaN','element:ol','decimal','parseInt','add','schema','_defineConverters','attribute:footnotesListStyle:footnotesDefinitions','getAttribute'];_0x2d53=function(){return _0x63efcd;};return _0x2d53();}function X(_0x56884d,_0x4569ad){const _0x12d294=_0x5d3878;let _0x33f930='',_0x580e11=_0x56884d;for(const {value:_0xcff9f2,numeral:_0xf842f2}of V)for(;_0x580e11>=_0xcff9f2;)_0x33f930+=_0xf842f2,_0x580e11-=_0xcff9f2;return _0x4569ad?_0x33f930:_0x33f930[_0x12d294(0xee)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x5b5d80,ButtonView as _0x566fe8,ContextualBalloon as _0x2a599d,createDropdown as _0x41dce5}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x5e86ac}from'ckeditor5/src/widget.js';import{Plugin as _0x57210e}from'ckeditor5/src/core.js';import{IconFootnote as _0x2873d5,IconListStyleDecimal as _0xf50831,IconListStyleDecimalLeadingZero as _0x407b28,IconListStyleLowerLatin as _0x1f1988,IconListStyleLowerRoman as _0xec2e38,IconListStyleUpperLatin as _0x52cea2,IconListStyleUpperRoman as _0x2fec30}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x5f3932}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x1f532d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x57210e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2a599d,_0x5e86ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x83cdc3}=this,{componentFactory:_0x19d464}=_0x83cdc3['ui'];_0x83cdc3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x19d464['add']('footnotesStyle',function(_0x26b1cc){return _0x714819=>{const {t:t}=_0x714819,_0x5260a0=_0x26b1cc['commands']['get']('footnotesStyle'),_0x3f8748=_0x41dce5(_0x714819),{buttonView:_0xb16bdd}=_0x3f8748;return _0x3f8748['class']='ck-footnotes-styles-dropdown',_0x3f8748['bind']('isEnabled')['to'](_0x5260a0,'isEnabled'),_0xb16bdd['set']({'label':t('Footnotes\x20style'),'icon':_0x2873d5,'tooltip':!0x0}),_0x3f8748['once']('change:isOpen',()=>{const _0x3cf565=function({editor:_0x2bf3c0,dropdownView:_0x21f1ce}){const {t:t}=_0x2bf3c0['locale'],_0x367205=t('Footnotes\x20definitions\x20styles'),_0x5b8bfd=function(_0x5d2ee9){const t=_0x5d2ee9['locale']['t'],_0x27ea91=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xf50831},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x407b28},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xec2e38},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2fec30},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1f1988},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x52cea2}];return _0x27ea91['map'](function(_0x33c98f){const _0x2e29e1=_0x33c98f['locale'];return({label:_0x45b77a,icon:_0x3a292c,tooltip:_0x12c156,style:_0x574e95})=>{const _0x55f4c5=_0x33c98f['commands']['get']('footnotesStyle'),_0x3f3437=new _0x566fe8(_0x2e29e1);return _0x3f3437['set']({'label':_0x45b77a,'icon':_0x3a292c,'tooltip':_0x12c156}),_0x3f3437['bind']('isOn')['to'](_0x55f4c5,'value',_0x285a87=>_0x285a87===_0x574e95),_0x3f3437['bind']('isEnabled')['to'](_0x55f4c5,'isEnabled'),_0x3f3437['on']('execute',()=>{_0x33c98f['execute']('footnotesStyle',{'value':_0x574e95}),_0x33c98f['editing']['view']['focus']();}),_0x3f3437;};}(_0x5d2ee9));}(_0x2bf3c0),_0x40bbbe=new _0x5f3932(_0x2bf3c0['locale'],{'styleGridAriaLabel':_0x367205,'styleButtonViews':_0x5b8bfd}),_0x9bf2f0=_0x2bf3c0['commands']['get']('footnotesStart');return _0x40bbbe['startIndexFieldView']['bind']('isEnabled')['to'](_0x9bf2f0),_0x40bbbe['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x9bf2f0),_0x40bbbe['on']('footnotesListStart',(_0x2b4f52,_0x13026c)=>{_0x2bf3c0['execute']('footnotesStart',{'value':_0x13026c['startIndex']});}),_0x40bbbe['delegate']('execute')['to'](_0x21f1ce),_0x40bbbe;}({'editor':_0x26b1cc,'dropdownView':_0x3f8748});_0x3f8748['panelView']['children']['add'](_0x3cf565);}),_0x3f8748;};}(_0x83cdc3));}['afterInit'](){const {editor:_0x5252c7}=this,{t:t}=_0x5252c7['locale'],_0x9df1a1=_0x5252c7['plugins']['get'](_0x5e86ac),{defaultPositions:_0x463885}=_0x5b5d80;_0x9df1a1['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5252c7['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4e3211=>{let _0x19f290=_0x4e3211['getFirstPosition']()?.['parent'];return _0x19f290?.['is']('$text')&&(_0x19f290=_0x19f290['parent']),_0x19f290?.['is']('element')?_0x19f290['findAncestor'](_0x1f532d):null;},'positions':[_0x463885['southArrowNorth'],_0x463885['southArrowNorthMiddleWest'],_0x463885['southArrowNorthMiddleEast'],_0x463885['southArrowNorthWest'],_0x463885['southArrowNorthEast'],_0x463885['northArrowSouth'],_0x463885['northArrowSouthMiddleWest'],_0x463885['northArrowSouthMiddleEast'],_0x463885['northArrowSouthWest'],_0x463885['northArrowSouthEast'],_0x463885['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x54b4b9,View as _0x1d26e7,ViewCollection as _0x46b415,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x1d26e7{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x46b415();['focusCycler'];constructor(_0x2618d3,{styleButtonViews:_0x478192,styleGridAriaLabel:_0x22303a}){super(_0x2618d3),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x478192,_0x22303a),[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 _0x3b082d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3b082d['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3ee63c=_0x47d9f3=>_0x47d9f3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ee63c),this['keystrokes']['set']('arrowleft',_0x3ee63c),this['keystrokes']['set']('arrowup',_0x3ee63c),this['keystrokes']['set']('arrowdown',_0x3ee63c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x54a05d,_0x3165b3){const _0x1ba152=new _0x1d26e7(this['locale']);return _0x1ba152['children']=_0x1ba152['createCollection'](),_0x1ba152['children']['addMany'](_0x54a05d),_0x1ba152['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3165b3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1ba152['children']}),_0x1ba152['children']['delegate']('execute')['to'](this),_0x1ba152['focus']=function(){for(const _0xe62525 of this['children'])if(_0xe62525 instanceof _0x54b4b9&&_0xe62525['isOn'])return void _0xe62525['focus']();this['children']['first']['focus']();},_0x1ba152['focusTracker']=new rt(),_0x1ba152['keystrokes']=new nt(),_0x1ba152['render'](),_0x1ba152['keystrokes']['listenTo'](_0x1ba152['element']),this['children']['add'](_0x1ba152),_0x1ba152;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x11671b=this['_createStartIndexPropertyView'](),_0x2955b4=[_0x11671b],_0x3722d1=new it(this['locale'],_0x2955b4);return _0x3722d1['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3722d1['buttonView']['bind']('isEnabled')['toMany'](_0x2955b4,'isEnabled',(..._0xfdb61)=>_0xfdb61['some'](_0x1a5506=>_0x1a5506)),_0x3722d1['buttonView']['on']('change:isEnabled',(_0x3af737,_0x23973c,_0x24f400)=>{_0x24f400||(_0x3722d1['isCollapsed']=!0x0);}),this['children']['add'](_0x3722d1),[_0x11671b,_0x3722d1];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x29426d=new et(this['locale'],ot);return _0x29426d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x29426d['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x29426d['fieldView']['on']('input',()=>{const _0x549d6a=_0x29426d['fieldView']['element'],_0x4bf66a=_0x549d6a['valueAsNumber'];Number['isNaN'](_0x4bf66a)?_0x29426d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x549d6a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4bf66a}):_0x29426d['errorText']=t(_0x4bf66a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x29426d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3c11(_0x773d04,_0x8ff3df){var _0x2ebdb6=_0x2ebd();return _0x3c11=function(_0x3c1154,_0x5e460a){_0x3c1154=_0x3c1154-0xf5;var _0x451143=_0x2ebdb6[_0x3c1154];return _0x451143;},_0x3c11(_0x773d04,_0x8ff3df);}var _0x5bedc9=_0x3c11;function _0x2ebd(){var _0x8716=['3322360qhbRQY','2675940eSyvkc','FootnotesProperties','requires','isPremiumPlugin','pluginName','133dzGFHO','4030782GCvMlU','2977265uWBpho','12747320eygUYV','7979461gNGENL','isOfficialPlugin','21784BoYPLB'];_0x2ebd=function(){return _0x8716;};return _0x2ebd();}(function(_0x370a76,_0x115db0){var _0x31ca09=_0x3c11,_0x43c5b0=_0x370a76();while(!![]){try{var _0x245f79=parseInt(_0x31ca09(0xfe))/0x1*(parseInt(_0x31ca09(0xf7))/0x2)+-parseInt(_0x31ca09(0xff))/0x3+-parseInt(_0x31ca09(0xf8))/0x4+parseInt(_0x31ca09(0x100))/0x5+parseInt(_0x31ca09(0xf9))/0x6+-parseInt(_0x31ca09(0xf5))/0x7+parseInt(_0x31ca09(0x101))/0x8;if(_0x245f79===_0x115db0)break;else _0x43c5b0['push'](_0x43c5b0['shift']());}catch(_0x51cb85){_0x43c5b0['push'](_0x43c5b0['shift']());}}}(_0x2ebd,0xbbd6b));import{Plugin as _0x300df2}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x15d4ec}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x53faf2}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x300df2{static get[_0x5bedc9(0xfd)](){var _0x512093=_0x5bedc9;return _0x512093(0xfa);}static get[_0x5bedc9(0xfb)](){return[_0x15d4ec,_0x53faf2];}static get[_0x5bedc9(0xf6)](){return!0x0;}static get[_0x5bedc9(0xfc)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3ac8(_0x19956d,_0x8a4ca5){const _0x133ec9=_0x133e();return _0x3ac8=function(_0x3ac823,_0x8815b0){_0x3ac823=_0x3ac823-0xca;let _0x2b3f9c=_0x133ec9[_0x3ac823];return _0x2b3f9c;},_0x3ac8(_0x19956d,_0x8a4ca5);}const _0x56c36c=_0x3ac8;(function(_0x5d7f0c,_0x1910a5){const _0x3e2396=_0x3ac8,_0x7a34ce=_0x5d7f0c();while(!![]){try{const _0x4def25=parseInt(_0x3e2396(0xf7))/0x1*(parseInt(_0x3e2396(0xd5))/0x2)+parseInt(_0x3e2396(0xde))/0x3*(-parseInt(_0x3e2396(0x12f))/0x4)+-parseInt(_0x3e2396(0x126))/0x5+parseInt(_0x3e2396(0x111))/0x6*(-parseInt(_0x3e2396(0xd8))/0x7)+-parseInt(_0x3e2396(0x105))/0x8*(-parseInt(_0x3e2396(0xf2))/0x9)+parseInt(_0x3e2396(0xfc))/0xa*(parseInt(_0x3e2396(0x11b))/0xb)+parseInt(_0x3e2396(0x107))/0xc*(parseInt(_0x3e2396(0xef))/0xd);if(_0x4def25===_0x1910a5)break;else _0x7a34ce['push'](_0x7a34ce['shift']());}catch(_0xfc3c55){_0x7a34ce['push'](_0x7a34ce['shift']());}}}(_0x133e,0x75782));import{Plugin as _0x2e5936}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x529132}from'./modelelementtracker.js';export class FootnotesTracker extends _0x2e5936{[_0x56c36c(0x11c)]=[];[_0x56c36c(0x122)]=null;[_0x56c36c(0xfb)]=null;[_0x56c36c(0x100)];[_0x56c36c(0x11d)];[_0x56c36c(0xe1)];static get[_0x56c36c(0x127)](){const _0x228fd1=_0x56c36c;return _0x228fd1(0x104);}static get[_0x56c36c(0x110)](){return!0x0;}static get[_0x56c36c(0x119)](){return!0x0;}constructor(_0x346dac){const _0x38c7ee=_0x56c36c;super(_0x346dac),this[_0x38c7ee(0x100)]=new _0x529132(this[_0x38c7ee(0xda)][_0x38c7ee(0x103)],{'elementName':_0x38c7ee(0xd2),'getElementKey':()=>_0x38c7ee(0xf5)}),this[_0x38c7ee(0x11d)]=new _0x529132(this[_0x38c7ee(0xda)][_0x38c7ee(0x103)],{'elementName':_0x38c7ee(0xcc),'getElementKey':_0x3c93c3=>_0x3c93c3[_0x38c7ee(0xed)](_0x38c7ee(0xd6))}),this[_0x38c7ee(0xe1)]=new _0x529132(this[_0x38c7ee(0xda)][_0x38c7ee(0x103)],{'elementName':_0x38c7ee(0xd1),'getElementKey':_0x10b35a=>_0x10b35a[_0x38c7ee(0xed)](_0x38c7ee(0xd6))});}[_0x56c36c(0x123)](){const _0x33a179=_0x56c36c,{editor:_0x3e9205}=this,{model:_0x5108f8,data:_0x23a0c3}=_0x3e9205;_0x5108f8[_0x33a179(0xfd)][_0x33a179(0xf0)](_0x100af3=>{const _0x33b3f7=_0x33a179,_0xaa6549=_0x5108f8[_0x33b3f7(0xfd)][_0x33b3f7(0xf6)][_0x33b3f7(0x112)]();let _0x24df0=!0x1;return this[_0x33b3f7(0xe6)](_0x100af3,_0xaa6549)&&(_0x24df0=!0x0),this[_0x33b3f7(0xff)](_0x100af3,_0xaa6549)&&(_0x24df0=!0x0),this[_0x33b3f7(0xeb)](_0x100af3,_0xaa6549)&&(_0x24df0=!0x0),this[_0x33b3f7(0xce)](_0x100af3)&&(_0x24df0=!0x0),this[_0x33b3f7(0x114)](_0x100af3)&&(_0x24df0=!0x0),this[_0x33b3f7(0x118)](_0x100af3)&&(_0x24df0=!0x0),_0x24df0;}),this[_0x33a179(0x129)](_0x5108f8[_0x33a179(0xfd)],_0x33a179(0xe7),()=>{const _0x29e2f1=_0x33a179;_0x5108f8[_0x29e2f1(0x124)]({'isUndoable':!0x1},_0x23965e=>{const _0x1ba085=_0x29e2f1;this[_0x1ba085(0x11e)](_0x23965e);});},{'priority':_0x33a179(0x10f)}),this[_0x33a179(0x129)](_0x23a0c3,_0x33a179(0xf3),()=>{const _0x475dd9=_0x33a179;this[_0x475dd9(0x11c)]=[],this[_0x475dd9(0x100)][_0x475dd9(0x121)](),this[_0x475dd9(0x11d)][_0x475dd9(0x121)](),this[_0x475dd9(0xe1)][_0x475dd9(0x121)]();},{'priority':_0x33a179(0xe9)});}[_0x56c36c(0xea)](){const _0x56cfe6=_0x56c36c;return this[_0x56cfe6(0x122)];}[_0x56c36c(0xe0)](_0xeff522){const _0x290d82=_0x56c36c;return this[_0x290d82(0x11c)][_0x290d82(0x10b)](_0x2c4698=>_0x2c4698['id']===_0xeff522)||null;}[_0x56c36c(0x125)](){const _0x453073=_0x56c36c;return Array[_0x453073(0x102)](this[_0x453073(0x11c)]);}[_0x56c36c(0x116)](){const _0x1ec235=_0x56c36c;return this[_0x1ec235(0xfb)];}[_0x56c36c(0xf1)](_0x818fa5){const _0x3e59f5=_0x56c36c;this[_0x3e59f5(0xfb)]=_0x818fa5;}[_0x56c36c(0xdb)](_0x253280,_0x2bdb17=0x0){const _0x630d5d=_0x56c36c;let _0x197a01=!0x1;for(let _0x25431a=_0x2bdb17;_0x25431a<this[_0x630d5d(0x11c)][_0x630d5d(0x10c)];_0x25431a++)this[_0x630d5d(0xd7)](_0x253280,_0x25431a)&&(_0x197a01=!0x0);return _0x197a01;}[_0x56c36c(0xcd)](_0x4a0781,_0x16450f){const _0x29a12b=_0x56c36c,_0xc8face=_0x4a0781[_0x29a12b(0x130)](_0x29a12b(0xd2),{});return _0x4a0781[_0x29a12b(0x12a)](_0xc8face,_0x16450f),this[_0x29a12b(0x122)]=_0xc8face,_0xc8face;}[_0x56c36c(0x11e)](_0x345ce2){const _0x44c15e=_0x56c36c;if(!this[_0x44c15e(0x11c)][_0x44c15e(0x10c)]||this[_0x44c15e(0x122)])return;const _0x132ba3=this[_0x44c15e(0x11c)][0x0][_0x44c15e(0x115)][_0x44c15e(0x120)],_0x39cf83=this[_0x44c15e(0xcd)](_0x345ce2,_0x132ba3);for(const _0x416a2e of this[_0x44c15e(0x11c)])_0x416a2e[_0x44c15e(0xe4)][_0x44c15e(0x109)]||_0x345ce2[_0x44c15e(0x12b)](_0x416a2e[_0x44c15e(0xe4)],_0x39cf83,_0x44c15e(0x12e));this[_0x44c15e(0xdb)](_0x345ce2);}[_0x56c36c(0xe6)](_0x502409,_0x2f36b5){const _0x4ce696=_0x56c36c;let _0x9edc09=!0x1;const {inserted:_0x284ea6,removed:_0x4e0b18,moved:_0xd915c2}=this[_0x4ce696(0x100)][_0x4ce696(0x112)](_0x2f36b5);if(_0xd915c2[_0x4ce696(0x10c)]&&(this[_0x4ce696(0x122)]=_0xd915c2[0x0]),_0x284ea6[_0x4ce696(0x10c)]){if(_0x284ea6[_0x4ce696(0x10c)]>0x1||this[_0x4ce696(0x122)]&&_0x284ea6[_0x4ce696(0x10e)](_0x18f3b7=>_0x18f3b7!==this[_0x4ce696(0x122)])){const _0x54b8d5=_0x502409[_0x4ce696(0x130)](_0x4ce696(0xd2),{}),_0xf2bd69=[];this[_0x4ce696(0x122)]&&_0xf2bd69[_0x4ce696(0xec)](this[_0x4ce696(0x122)]),_0xf2bd69[_0x4ce696(0xec)](..._0x284ea6),_0x502409[_0x4ce696(0x12b)](_0x54b8d5,_0xf2bd69[0x0],_0x4ce696(0xdf));for(const _0x43cd8b of _0xf2bd69)_0x502409[_0x4ce696(0x10a)](_0x502409[_0x4ce696(0xf8)](_0x43cd8b),_0x502409[_0x4ce696(0xe2)](_0x54b8d5,_0x4ce696(0x12e))),_0x502409[_0x4ce696(0xca)](_0x43cd8b);this[_0x4ce696(0x122)]=_0x54b8d5,this[_0x4ce696(0xdb)](_0x502409),_0x9edc09=!0x0;}else this[_0x4ce696(0x122)]=_0x284ea6[0x0];}if(_0x4e0b18[_0x4ce696(0x10c)]&&_0x4ce696(0xdc)===this[_0x4ce696(0x122)]?.[_0x4ce696(0x120)][_0x4ce696(0x131)]){for(const _0x336ffb of this[_0x4ce696(0x11c)])_0x502409[_0x4ce696(0xca)](_0x336ffb[_0x4ce696(0x115)]),_0x9edc09=!0x0;this[_0x4ce696(0x11c)]=[],this[_0x4ce696(0x122)]=null;}return _0x9edc09;}[_0x56c36c(0xff)](_0x39bacd,_0x5a731d){const _0x262be3=_0x56c36c;let _0xae1f1a=!0x1;const _0x23b1b0=this[_0x262be3(0xda)][_0x262be3(0x10d)][_0x262be3(0x11a)](_0x262be3(0xee)),{inserted:_0x519311,moved:_0x4b10cb}=this[_0x262be3(0xe1)][_0x262be3(0x112)](_0x5a731d);for(const _0x219539 of[..._0x4b10cb,..._0x519311]){const _0x3aed6a=_0x219539[_0x262be3(0xed)](_0x262be3(0xd6)),_0x5df495=this[_0x262be3(0xe0)](_0x3aed6a);_0x5df495&&(_0x5df495[_0x262be3(0xe4)]=_0x219539),_(_0x39bacd,_0x23b1b0,_0x219539)&&(_0xae1f1a=!0x0);}return _0xae1f1a;}[_0x56c36c(0xeb)](_0x31e573,_0x1ab3dc){const _0x54ac4a=_0x56c36c;let _0x301071=!0x1;const {removed:_0x4cacec,inserted:_0x4768a3,moved:_0x103252}=this[_0x54ac4a(0x11d)][_0x54ac4a(0x112)](_0x1ab3dc);for(const _0x5c99c0 of _0x4cacec)this[_0x54ac4a(0xcb)](_0x31e573,_0x5c99c0)&&(_0x301071=!0x0);for(const _0x48fe99 of _0x4768a3)this[_0x54ac4a(0xe3)](_0x31e573,_0x48fe99)&&(_0x301071=!0x0);for(const _0x2f6a67 of _0x103252)this[_0x54ac4a(0xd0)](_0x31e573,_0x2f6a67)&&(_0x301071=!0x0);return _0x301071;}[_0x56c36c(0x114)](_0x41b517){const _0x388d6e=_0x56c36c;if(!this[_0x388d6e(0x122)])return!0x1;let _0x2c4a02=!0x1;if(this[_0x388d6e(0x122)][_0x388d6e(0x12c)]!==this[_0x388d6e(0x11c)][_0x388d6e(0x10c)]){const _0x18f913=[];for(const _0x428321 of this[_0x388d6e(0x122)][_0x388d6e(0x128)]()){const _0x4b703e=_0x428321[_0x388d6e(0xed)](_0x388d6e(0xd6));this[_0x388d6e(0xe0)](_0x4b703e)||(_0x18f913[_0x388d6e(0xd3)](_0x428321),_0x2c4a02=!0x0);}for(const _0x3a2463 of _0x18f913)_0x41b517[_0x388d6e(0xca)](_0x3a2463);}const _0x693bc9=new Set(),_0xf06cbc=[];for(const _0x27c34e of this[_0x388d6e(0x122)][_0x388d6e(0x128)]()){const _0x4f84b4=_0x27c34e[_0x388d6e(0xed)](_0x388d6e(0xd6));_0x693bc9[_0x388d6e(0xfa)](_0x4f84b4)?(_0xf06cbc[_0x388d6e(0xd3)](_0x27c34e),_0x2c4a02=!0x0):_0x693bc9[_0x388d6e(0x106)](_0x4f84b4);}for(const _0x271fa3 of _0xf06cbc)_0x41b517[_0x388d6e(0xca)](_0x271fa3);return this[_0x388d6e(0x122)][_0x388d6e(0x12c)]||(_0x41b517[_0x388d6e(0xca)](this[_0x388d6e(0x122)]),this[_0x388d6e(0x122)]=null,_0x2c4a02=!0x0),_0x2c4a02;}[_0x56c36c(0xe3)](_0x30ef87,_0x2c03c3){const _0x191ff7=_0x56c36c;if(this[_0x191ff7(0x11c)][_0x191ff7(0x10b)](_0x24446d=>_0x24446d[_0x191ff7(0x115)]===_0x2c03c3))return!0x1;let _0x47523b=!0x1;const _0x16ba83=_0x2c03c3[_0x191ff7(0xed)](_0x191ff7(0xd6)),_0x188379=this[_0x191ff7(0x11c)][_0x191ff7(0x101)](_0x2ce78d=>_0x2ce78d['id']===_0x16ba83);-0x1!==_0x188379&&(_0x30ef87[_0x191ff7(0xca)](this[_0x191ff7(0x11c)][_0x188379][_0x191ff7(0x115)]),this[_0x191ff7(0x11c)][_0x191ff7(0xdd)](_0x188379,0x1),_0x47523b=!0x0);let _0x6d3406=this[_0x191ff7(0x122)]?function(_0x3b905c,_0x14aea6){const _0x249d01=_0x191ff7;for(const _0x328ac4 of _0x3b905c[_0x249d01(0x128)]())if(_0x328ac4[_0x249d01(0xed)](_0x249d01(0xd6))===_0x14aea6)return _0x328ac4;return null;}(this[_0x191ff7(0x122)],_0x16ba83):null;_0x6d3406||(_0x6d3406=_0x30ef87[_0x191ff7(0x130)](_0x191ff7(0xd1),{'footnoteId':_0x16ba83}),this[_0x191ff7(0x122)]&&(_0x30ef87[_0x191ff7(0x12b)](_0x6d3406,this[_0x191ff7(0x122)],_0x191ff7(0x12e)),_0x47523b=!0x0));const _0xe72864={'id':_0x16ba83,'reference':_0x2c03c3,'definition':_0x6d3406},_0x36fd16=I(this[_0x191ff7(0xda)][_0x191ff7(0x103)],this[_0x191ff7(0x11c)],_0x2c03c3);this[_0x191ff7(0x11c)][_0x191ff7(0xdd)](_0x36fd16,0x0,_0xe72864);let _0x1e7a75=_0x36fd16;return-0x1!==_0x188379&&(_0x1e7a75=Math[_0x191ff7(0xcf)](_0x36fd16,_0x188379)),this[_0x191ff7(0xdb)](_0x30ef87,_0x1e7a75)&&(_0x47523b=!0x0),_0x47523b;}[_0x56c36c(0xcb)](_0x480159,_0x43686b){const _0x4773fe=_0x56c36c,_0x3e3793=this[_0x4773fe(0x11c)][_0x4773fe(0x101)](_0x24a78e=>_0x24a78e['id']===_0x43686b);if(-0x1===_0x3e3793)return!0x1;let _0x131786=!0x1;const _0xb6aecf=this[_0x4773fe(0x11c)][_0x3e3793];return _0x4773fe(0xdc)!==_0xb6aecf[_0x4773fe(0xe4)][_0x4773fe(0x120)][_0x4773fe(0x131)]&&(_0x480159[_0x4773fe(0xca)](_0xb6aecf[_0x4773fe(0xe4)]),_0x131786=!0x0),this[_0x4773fe(0x11c)][_0x4773fe(0xdd)](_0x3e3793,0x1),this[_0x4773fe(0xdb)](_0x480159,_0x3e3793)&&(_0x131786=!0x0),_0x131786;}[_0x56c36c(0xd0)](_0xd3de6a,_0x31ca43){const _0x1206ed=_0x56c36c,_0x532ed6=_0x31ca43[_0x1206ed(0xed)](_0x1206ed(0xd6)),_0x473400=this[_0x1206ed(0x11c)][_0x1206ed(0x101)](_0x594593=>_0x594593['id']===_0x532ed6),_0x44345d=this[_0x1206ed(0x11c)][_0x473400];let _0x1d69e1=!0x1;_0x44345d[_0x1206ed(0x115)]=_0x31ca43,this[_0x1206ed(0x11c)][_0x1206ed(0xdd)](_0x473400,0x1);const _0x57f51c=I(this[_0x1206ed(0xda)][_0x1206ed(0x103)],this[_0x1206ed(0x11c)],_0x31ca43);return this[_0x1206ed(0x11c)][_0x1206ed(0xdd)](_0x57f51c,0x0,_0x44345d),this[_0x1206ed(0xdb)](_0xd3de6a,Math[_0x1206ed(0xcf)](_0x473400,_0x57f51c))&&(_0x1d69e1=!0x0),_0x1d69e1;}[_0x56c36c(0xd7)](_0x4f2b57,_0x742f2a){const _0x1e6c01=_0x56c36c;if(!this[_0x1e6c01(0x122)])return!0x1;const _0x5730fa=this[_0x1e6c01(0x11c)][_0x742f2a];let _0x3a01d6;return _0x3a01d6=this[_0x1e6c01(0xfb)]?this[_0x1e6c01(0xfb)]({'footnote':_0x5730fa,'container':this[_0x1e6c01(0x122)],'digits':String(this[_0x1e6c01(0x11c)][_0x1e6c01(0x10c)])[_0x1e6c01(0x10c)],'value':_0x742f2a+0x1}):String(_0x742f2a+0x1),_0x5730fa[_0x1e6c01(0x115)][_0x1e6c01(0xed)](_0x1e6c01(0xf4))!=_0x3a01d6&&(_0x4f2b57[_0x1e6c01(0x117)](_0x1e6c01(0xf4),_0x3a01d6,_0x5730fa[_0x1e6c01(0x115)]),!0x0);}[_0x56c36c(0x118)](_0x51443f){const _0x314fb2=_0x56c36c;if(!this[_0x314fb2(0x122)]||this[_0x314fb2(0x11c)][_0x314fb2(0x10c)]<0x2)return!0x1;if(function(_0x4cb185,_0x16d5c2){const _0x52051=_0x314fb2;if(_0x4cb185[_0x52051(0x10c)]!==_0x16d5c2[_0x52051(0x10c)])return!0x1;for(let _0x19d0c8=0x0;_0x19d0c8<_0x4cb185[_0x52051(0x10c)];_0x19d0c8++)if(_0x4cb185[_0x19d0c8]!==_0x16d5c2[_0x19d0c8])return!0x1;return!0x0;}(this[_0x314fb2(0x11c)][_0x314fb2(0xe8)](_0x1e2af5=>_0x1e2af5['id']),Array[_0x314fb2(0x102)](this[_0x314fb2(0x122)][_0x314fb2(0x128)]())[_0x314fb2(0xe8)](_0x110f7e=>_0x110f7e[_0x314fb2(0xed)](_0x314fb2(0xd6)))))return!0x1;let _0xd7b9ec=!0x1;for(let _0xe6e517=0x0;_0xe6e517<this[_0x314fb2(0x11c)][_0x314fb2(0x10c)];_0xe6e517++){const _0x5c6ad5=this[_0x314fb2(0x11c)][_0xe6e517],_0x44b941=_0x51443f[_0x314fb2(0xfe)](_0x5c6ad5[_0x314fb2(0xe4)]),_0x58ef48=_0x51443f[_0x314fb2(0xe2)](this[_0x314fb2(0x122)],_0xe6e517);_0x44b941[_0x314fb2(0xd4)](_0x58ef48)||(_0x51443f[_0x314fb2(0x10a)](_0x51443f[_0x314fb2(0x113)](_0x5c6ad5[_0x314fb2(0xe4)]),_0x58ef48),_0xd7b9ec=!0x0);}return _0xd7b9ec;}[_0x56c36c(0xce)](_0x54b84f){const _0x211838=_0x56c36c;if(!this[_0x211838(0x11c)][_0x211838(0x10c)])return!0x1;const {model:_0x40859c}=this[_0x211838(0xda)];let _0x13cf10=!0x1;for(let _0x1e2e29=0x0;_0x1e2e29<this[_0x211838(0x11c)][_0x211838(0x10c)]-0x1;_0x1e2e29++){const _0x1489e5=this[_0x211838(0x11c)][_0x1e2e29],_0x5d47d6=this[_0x211838(0x11c)][_0x1e2e29+0x1],_0x3f9c67=_0x40859c[_0x211838(0xfe)](_0x1489e5[_0x211838(0x115)]),_0x5ba51d=_0x40859c[_0x211838(0xfe)](_0x5d47d6[_0x211838(0x115)]);_0x211838(0x108)===_0x3f9c67[_0x211838(0x11f)](_0x5ba51d)&&(this[_0x211838(0xd0)](_0x54b84f,_0x1489e5[_0x211838(0x115)]),_0x1e2e29=-0x1,_0x13cf10=!0x0);}return _0x13cf10;}}function _(_0x5f5925,_0x366c5d,_0x527443){const _0x54f9e4=_0x56c36c;if(_0x527443[_0x54f9e4(0x12c)])return!0x1;const _0x4cc37b=_0x366c5d?_0x54f9e4(0xd9):_0x54f9e4(0x12d);return _0x5f5925[_0x54f9e4(0x12b)](_0x5f5925[_0x54f9e4(0x130)](_0x4cc37b),_0x527443),!0x0;}function _0x133e(){const _0x20b2ad=['getFootnotes','3774710gzlMVX','pluginName','getChildren','listenTo','append','insert','childCount','footnoteInlineContent','end','164cfgktW','createElement','rootName','remove','_handleRemoveFootnoteReferenceById','footnoteRef','_insertEmptyFootnotesDefinitionsContainer','_ensureFootnotesReferencesHaveProperOrder','min','_handleMovedFootnoteReference','footnoteDefinition','footnotesDefinitions','unshift','isEqual','94uyKjQG','footnoteId','_updateFootnoteRefCounter','626374itavFC','paragraph','editor','_updateFootnotesCounters','$graveyard','splice','26463oYFUDB','before','getFootnote','_footnoteDefsTracker','createPositionAt','_handleInsertedFootnoteReference','definition','getRootNames','_handleFootnotesDefinitionsObjectChanges','change:data','map','high','getFootnotesDefinitionsObjectElement','_handleFootnoteReferencesChanges','push','getAttribute','footnotes.multiBlock','689uHUukK','registerPostFixer','setFootnoteFormatter','1423881XfbiLy','set','footnoteCounter','singleton','differ','12339lesrWI','createRangeIn','indexOf','has','_footnoteFormatter','830IeWLlX','document','createPositionBefore','_handleFootnoteDefinitionsChanges','_footnoteDefsContainerTracker','findIndex','from','model','FootnotesTracker','40TvqjZr','add','109884UYOHdr','after','parent','move','find','length','config','some','low','isOfficialPlugin','60vzMuKG','getChanges','createRangeOn','_handleFootnotesDefinitionsObjectSync','reference','getFootnotesFormatter','setAttribute','_sortFootnoteDefinitions','isPremiumPlugin','get','84326qZciUq','_footnotes','_footnoteRefsTracker','_ensureFootnotesDefinitionsContainerExists','compareWith','root','reset','_footnotesDefinitions','init','enqueueChange'];_0x133e=function(){return _0x20b2ad;};return _0x133e();}function I(_0x2791f6,_0x51af48,_0x41bfe9){const _0x2d88e2=_0x56c36c;if(0x0===_0x51af48[_0x2d88e2(0x10c)])return 0x0;const _0x318a15=_0x2791f6[_0x2d88e2(0xfe)](_0x41bfe9);for(let _0x223e3e=0x0;_0x223e3e<_0x51af48[_0x2d88e2(0x10c)];_0x223e3e++){const _0x47ba9c=_0x51af48[_0x223e3e],_0x400173=_0x2791f6[_0x2d88e2(0xfe)](_0x47ba9c[_0x2d88e2(0x115)]);if(_0x2d88e2(0xdf)===_0x318a15[_0x2d88e2(0x11f)](_0x400173))return _0x223e3e;}const _0x48d75f=_0x41bfe9[_0x2d88e2(0x120)];let _0x58adf5=-0x1;for(let _0x21c1f4=_0x51af48[_0x2d88e2(0x10c)]-0x1;_0x21c1f4>=0x0;_0x21c1f4--)if(_0x51af48[_0x21c1f4][_0x2d88e2(0x115)][_0x2d88e2(0x120)]===_0x48d75f){_0x58adf5=_0x21c1f4;break;}if(-0x1!==_0x58adf5)return _0x58adf5+0x1;const _0x5136e0=_0x2791f6[_0x2d88e2(0xfd)][_0x2d88e2(0xe5)](),_0x18c44d=_0x5136e0[_0x2d88e2(0xf9)](_0x48d75f[_0x2d88e2(0x131)]),_0x346216=_0x5136e0[_0x18c44d+0x1];if(_0x346216){for(let _0x12a8f7=0x0;_0x12a8f7<_0x51af48[_0x2d88e2(0x10c)];_0x12a8f7++)if(_0x51af48[_0x12a8f7][_0x2d88e2(0x115)][_0x2d88e2(0x120)][_0x2d88e2(0x131)]===_0x346216)return _0x12a8f7;}return _0x51af48[_0x2d88e2(0x10c)];}
|
|
23
|
+
function _0x1ea1(){const _0x1e16ed=['createRangeOn','low','_footnoteDefsContainerTracker','before','map','reference','1903592EkCGCB','setAttribute','footnoteId','init','config','isOfficialPlugin','has','get','_ensureFootnotesReferencesHaveProperOrder','_handleFootnoteDefinitionsChanges','createRangeIn','getFootnotesDefinitionsObjectElement','isEqual','7hqWtJw','getFootnotes','length','getChanges','isPremiumPlugin','getRootNames','getAttribute','getFootnote','childCount','root','_footnoteDefsTracker','createPositionAt','min','_handleRemoveFootnoteReferenceById','setFootnoteFormatter','parent','FootnotesTracker','footnoteInlineContent','footnotesDefinitions','footnoteRef','pluginName','enqueueChange','12fsXECj','findIndex','add','indexOf','model','remove','_updateFootnoteRefCounter','_ensureFootnotesDefinitionsContainerExists','_updateFootnotesCounters','_footnotes','_footnotesDefinitions','footnoteDefinition','getChildren','_handleInsertedFootnoteReference','85407mDFVnq','createPositionBefore','_footnoteRefsTracker','5072QvNVxr','splice','_footnoteFormatter','insert','_handleFootnotesDefinitionsObjectChanges','document','append','_sortFootnoteDefinitions','151314poXLel','footnoteCounter','getFootnotesFormatter','listenTo','push','_handleFootnoteReferencesChanges','change:data','30dNgOGp','footnotes.multiBlock','definition','1790074nnRUrz','end','paragraph','set','singleton','compareWith','from','151921JwpSXc','2959650QEZcwR','createElement','40srkllL','some','_handleMovedFootnoteReference','unshift','find','_insertEmptyFootnotesDefinitionsContainer','editor','reset','$graveyard','high','move','16fCcdaL','differ','_handleFootnotesDefinitionsObjectSync','rootName','after','registerPostFixer','15HnTYpI'];_0x1ea1=function(){return _0x1e16ed;};return _0x1ea1();}const _0x59e8fe=_0x2fb7;(function(_0x27b536,_0x5655a7){const _0x3a5c87=_0x2fb7,_0x918be6=_0x27b536();while(!![]){try{const _0x417ac8=-parseInt(_0x3a5c87(0x184))/0x1*(-parseInt(_0x3a5c87(0x1d0))/0x2)+-parseInt(_0x3a5c87(0x1cd))/0x3*(parseInt(_0x3a5c87(0x18f))/0x4)+-parseInt(_0x3a5c87(0x195))/0x5*(parseInt(_0x3a5c87(0x170))/0x6)+parseInt(_0x3a5c87(0x1a9))/0x7*(-parseInt(_0x3a5c87(0x19c))/0x8)+parseInt(_0x3a5c87(0x182))/0x9+parseInt(_0x3a5c87(0x177))/0xa*(parseInt(_0x3a5c87(0x181))/0xb)+parseInt(_0x3a5c87(0x1bf))/0xc*(parseInt(_0x3a5c87(0x17a))/0xd);if(_0x417ac8===_0x5655a7)break;else _0x918be6['push'](_0x918be6['shift']());}catch(_0x45aba1){_0x918be6['push'](_0x918be6['shift']());}}}(_0x1ea1,0x2c6b3));import{Plugin as _0x57f629}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x514335}from'./modelelementtracker.js';function _0x2fb7(_0x19a8aa,_0x201caa){const _0x1ea123=_0x1ea1();return _0x2fb7=function(_0x2fb777,_0x5385cd){_0x2fb777=_0x2fb777-0x16b;let _0x83f55b=_0x1ea123[_0x2fb777];return _0x83f55b;},_0x2fb7(_0x19a8aa,_0x201caa);}export class FootnotesTracker extends _0x57f629{[_0x59e8fe(0x1c8)]=[];[_0x59e8fe(0x1c9)]=null;[_0x59e8fe(0x1d2)]=null;[_0x59e8fe(0x198)];[_0x59e8fe(0x1cf)];[_0x59e8fe(0x1b3)];static get[_0x59e8fe(0x1bd)](){const _0x27f3ce=_0x59e8fe;return _0x27f3ce(0x1b9);}static get[_0x59e8fe(0x1a1)](){return!0x0;}static get[_0x59e8fe(0x1ad)](){return!0x0;}constructor(_0x39ec3d){const _0x2c28d0=_0x59e8fe;super(_0x39ec3d),this[_0x2c28d0(0x198)]=new _0x514335(this[_0x2c28d0(0x18a)][_0x2c28d0(0x1c3)],{'elementName':_0x2c28d0(0x1bb),'getElementKey':()=>_0x2c28d0(0x17e)}),this[_0x2c28d0(0x1cf)]=new _0x514335(this[_0x2c28d0(0x18a)][_0x2c28d0(0x1c3)],{'elementName':_0x2c28d0(0x1bc),'getElementKey':_0x30c597=>_0x30c597[_0x2c28d0(0x1af)](_0x2c28d0(0x19e))}),this[_0x2c28d0(0x1b3)]=new _0x514335(this[_0x2c28d0(0x18a)][_0x2c28d0(0x1c3)],{'elementName':_0x2c28d0(0x1ca),'getElementKey':_0x29b43e=>_0x29b43e[_0x2c28d0(0x1af)](_0x2c28d0(0x19e))});}[_0x59e8fe(0x19f)](){const _0x58911f=_0x59e8fe,{editor:_0x45fc36}=this,{model:_0x3f2943,data:_0x382c3f}=_0x45fc36;_0x3f2943[_0x58911f(0x16d)][_0x58911f(0x194)](_0x5c9008=>{const _0x580ea1=_0x58911f,_0x871f78=_0x3f2943[_0x580ea1(0x16d)][_0x580ea1(0x190)][_0x580ea1(0x1ac)]();let _0x2dd65f=!0x1;return this[_0x580ea1(0x16c)](_0x5c9008,_0x871f78)&&(_0x2dd65f=!0x0),this[_0x580ea1(0x1a5)](_0x5c9008,_0x871f78)&&(_0x2dd65f=!0x0),this[_0x580ea1(0x175)](_0x5c9008,_0x871f78)&&(_0x2dd65f=!0x0),this[_0x580ea1(0x1a4)](_0x5c9008)&&(_0x2dd65f=!0x0),this[_0x580ea1(0x191)](_0x5c9008)&&(_0x2dd65f=!0x0),this[_0x580ea1(0x16f)](_0x5c9008)&&(_0x2dd65f=!0x0),_0x2dd65f;}),this[_0x58911f(0x173)](_0x3f2943[_0x58911f(0x16d)],_0x58911f(0x176),()=>{const _0x680a31=_0x58911f;_0x3f2943[_0x680a31(0x1be)]({'isUndoable':!0x1},_0xf4d6bd=>{const _0xcedf72=_0x680a31;this[_0xcedf72(0x1c6)](_0xf4d6bd);});},{'priority':_0x58911f(0x197)}),this[_0x58911f(0x173)](_0x382c3f,_0x58911f(0x17d),()=>{const _0x203a0a=_0x58911f;this[_0x203a0a(0x1c8)]=[],this[_0x203a0a(0x198)][_0x203a0a(0x18b)](),this[_0x203a0a(0x1cf)][_0x203a0a(0x18b)](),this[_0x203a0a(0x1b3)][_0x203a0a(0x18b)]();},{'priority':_0x58911f(0x18d)});}[_0x59e8fe(0x1a7)](){const _0x5d4fce=_0x59e8fe;return this[_0x5d4fce(0x1c9)];}[_0x59e8fe(0x1b0)](_0x342f60){const _0x597e70=_0x59e8fe;return this[_0x597e70(0x1c8)][_0x597e70(0x188)](_0x4ed03a=>_0x4ed03a['id']===_0x342f60)||null;}[_0x59e8fe(0x1aa)](){const _0x119eca=_0x59e8fe;return Array[_0x119eca(0x180)](this[_0x119eca(0x1c8)]);}[_0x59e8fe(0x172)](){const _0x3aa2cf=_0x59e8fe;return this[_0x3aa2cf(0x1d2)];}[_0x59e8fe(0x1b7)](_0x377e71){const _0x376bd1=_0x59e8fe;this[_0x376bd1(0x1d2)]=_0x377e71;}[_0x59e8fe(0x1c7)](_0x3386e2,_0xb5cd4d=0x0){const _0x3d3361=_0x59e8fe;let _0x580dc7=!0x1;for(let _0x3b1db9=_0xb5cd4d;_0x3b1db9<this[_0x3d3361(0x1c8)][_0x3d3361(0x1ab)];_0x3b1db9++)this[_0x3d3361(0x1c5)](_0x3386e2,_0x3b1db9)&&(_0x580dc7=!0x0);return _0x580dc7;}[_0x59e8fe(0x189)](_0x31ee7b,_0x267fea){const _0x17578a=_0x59e8fe,_0x807fd5=_0x31ee7b[_0x17578a(0x183)](_0x17578a(0x1bb),{});return _0x31ee7b[_0x17578a(0x16e)](_0x807fd5,_0x267fea),this[_0x17578a(0x1c9)]=_0x807fd5,_0x807fd5;}[_0x59e8fe(0x1c6)](_0x192acb){const _0x5d5c67=_0x59e8fe;if(!this[_0x5d5c67(0x1c8)][_0x5d5c67(0x1ab)]||this[_0x5d5c67(0x1c9)])return;const _0xfe4176=this[_0x5d5c67(0x1c8)][0x0][_0x5d5c67(0x19b)][_0x5d5c67(0x1b2)],_0x85c9a8=this[_0x5d5c67(0x189)](_0x192acb,_0xfe4176);for(const _0x23c079 of this[_0x5d5c67(0x1c8)])_0x23c079[_0x5d5c67(0x179)][_0x5d5c67(0x1b8)]||_0x192acb[_0x5d5c67(0x16b)](_0x23c079[_0x5d5c67(0x179)],_0x85c9a8,_0x5d5c67(0x17b));this[_0x5d5c67(0x1c7)](_0x192acb);}[_0x59e8fe(0x16c)](_0x1b9e1e,_0x50db7f){const _0x399132=_0x59e8fe;let _0x234ac9=!0x1;const {inserted:_0x2bbc7c,removed:_0x3292e0,moved:_0x47f6f1}=this[_0x399132(0x198)][_0x399132(0x1ac)](_0x50db7f);if(_0x47f6f1[_0x399132(0x1ab)]&&(this[_0x399132(0x1c9)]=_0x47f6f1[0x0]),_0x2bbc7c[_0x399132(0x1ab)]){if(_0x2bbc7c[_0x399132(0x1ab)]>0x1||this[_0x399132(0x1c9)]&&_0x2bbc7c[_0x399132(0x185)](_0x2c3d14=>_0x2c3d14!==this[_0x399132(0x1c9)])){const _0x3df3e8=_0x1b9e1e[_0x399132(0x183)](_0x399132(0x1bb),{}),_0x42de00=[];this[_0x399132(0x1c9)]&&_0x42de00[_0x399132(0x174)](this[_0x399132(0x1c9)]),_0x42de00[_0x399132(0x174)](..._0x2bbc7c),_0x1b9e1e[_0x399132(0x16b)](_0x3df3e8,_0x42de00[0x0],_0x399132(0x199));for(const _0x49d7e6 of _0x42de00)_0x1b9e1e[_0x399132(0x18e)](_0x1b9e1e[_0x399132(0x1a6)](_0x49d7e6),_0x1b9e1e[_0x399132(0x1b4)](_0x3df3e8,_0x399132(0x17b))),_0x1b9e1e[_0x399132(0x1c4)](_0x49d7e6);this[_0x399132(0x1c9)]=_0x3df3e8,this[_0x399132(0x1c7)](_0x1b9e1e),_0x234ac9=!0x0;}else this[_0x399132(0x1c9)]=_0x2bbc7c[0x0];}if(_0x3292e0[_0x399132(0x1ab)]&&_0x399132(0x18c)===this[_0x399132(0x1c9)]?.[_0x399132(0x1b2)][_0x399132(0x192)]){for(const _0x27d0d1 of this[_0x399132(0x1c8)])_0x1b9e1e[_0x399132(0x1c4)](_0x27d0d1[_0x399132(0x19b)]),_0x234ac9=!0x0;this[_0x399132(0x1c8)]=[],this[_0x399132(0x1c9)]=null;}return _0x234ac9;}[_0x59e8fe(0x1a5)](_0x3ff7cd,_0x3f873b){const _0x465e55=_0x59e8fe;let _0xfae349=!0x1;const _0x4c8705=this[_0x465e55(0x18a)][_0x465e55(0x1a0)][_0x465e55(0x1a3)](_0x465e55(0x178)),{inserted:_0x37d169,moved:_0x4261eb}=this[_0x465e55(0x1b3)][_0x465e55(0x1ac)](_0x3f873b);for(const _0x4dd3f4 of[..._0x4261eb,..._0x37d169]){const _0x3ae40f=_0x4dd3f4[_0x465e55(0x1af)](_0x465e55(0x19e)),_0x42638c=this[_0x465e55(0x1b0)](_0x3ae40f);_0x42638c&&(_0x42638c[_0x465e55(0x179)]=_0x4dd3f4),_(_0x3ff7cd,_0x4c8705,_0x4dd3f4)&&(_0xfae349=!0x0);}return _0xfae349;}[_0x59e8fe(0x175)](_0x58b83b,_0x31d1bc){const _0x68465d=_0x59e8fe;let _0x1bdd66=!0x1;const {removed:_0x3e349d,inserted:_0x1029a2,moved:_0xc07e6b}=this[_0x68465d(0x1cf)][_0x68465d(0x1ac)](_0x31d1bc);for(const _0x398eb4 of _0x3e349d)this[_0x68465d(0x1b6)](_0x58b83b,_0x398eb4)&&(_0x1bdd66=!0x0);for(const _0x2a38c8 of _0x1029a2)this[_0x68465d(0x1cc)](_0x58b83b,_0x2a38c8)&&(_0x1bdd66=!0x0);for(const _0x42db52 of _0xc07e6b)this[_0x68465d(0x186)](_0x58b83b,_0x42db52)&&(_0x1bdd66=!0x0);return _0x1bdd66;}[_0x59e8fe(0x191)](_0x2a0225){const _0x1e5f2b=_0x59e8fe;if(!this[_0x1e5f2b(0x1c9)])return!0x1;let _0x396502=!0x1;if(this[_0x1e5f2b(0x1c9)][_0x1e5f2b(0x1b1)]!==this[_0x1e5f2b(0x1c8)][_0x1e5f2b(0x1ab)]){const _0x196957=[];for(const _0x3b3a6b of this[_0x1e5f2b(0x1c9)][_0x1e5f2b(0x1cb)]()){const _0x58e2a5=_0x3b3a6b[_0x1e5f2b(0x1af)](_0x1e5f2b(0x19e));this[_0x1e5f2b(0x1b0)](_0x58e2a5)||(_0x196957[_0x1e5f2b(0x187)](_0x3b3a6b),_0x396502=!0x0);}for(const _0xa6ddf of _0x196957)_0x2a0225[_0x1e5f2b(0x1c4)](_0xa6ddf);}const _0x5a27c9=new Set(),_0x2bbeed=[];for(const _0x5eba83 of this[_0x1e5f2b(0x1c9)][_0x1e5f2b(0x1cb)]()){const _0x3efcc0=_0x5eba83[_0x1e5f2b(0x1af)](_0x1e5f2b(0x19e));_0x5a27c9[_0x1e5f2b(0x1a2)](_0x3efcc0)?(_0x2bbeed[_0x1e5f2b(0x187)](_0x5eba83),_0x396502=!0x0):_0x5a27c9[_0x1e5f2b(0x1c1)](_0x3efcc0);}for(const _0x4dbf37 of _0x2bbeed)_0x2a0225[_0x1e5f2b(0x1c4)](_0x4dbf37);return this[_0x1e5f2b(0x1c9)][_0x1e5f2b(0x1b1)]||(_0x2a0225[_0x1e5f2b(0x1c4)](this[_0x1e5f2b(0x1c9)]),this[_0x1e5f2b(0x1c9)]=null,_0x396502=!0x0),_0x396502;}[_0x59e8fe(0x1cc)](_0x444378,_0x52884b){const _0x316586=_0x59e8fe;if(this[_0x316586(0x1c8)][_0x316586(0x188)](_0xa16c86=>_0xa16c86[_0x316586(0x19b)]===_0x52884b))return!0x1;let _0x219e48=!0x1;const _0x46ac29=_0x52884b[_0x316586(0x1af)](_0x316586(0x19e)),_0x52012b=this[_0x316586(0x1c8)][_0x316586(0x1c0)](_0x3e452d=>_0x3e452d['id']===_0x46ac29);-0x1!==_0x52012b&&(_0x444378[_0x316586(0x1c4)](this[_0x316586(0x1c8)][_0x52012b][_0x316586(0x19b)]),this[_0x316586(0x1c8)][_0x316586(0x1d1)](_0x52012b,0x1),_0x219e48=!0x0);let _0x7fe837=this[_0x316586(0x1c9)]?function(_0x43c822,_0x366221){const _0x27b4f8=_0x316586;for(const _0x37a671 of _0x43c822[_0x27b4f8(0x1cb)]())if(_0x37a671[_0x27b4f8(0x1af)](_0x27b4f8(0x19e))===_0x366221)return _0x37a671;return null;}(this[_0x316586(0x1c9)],_0x46ac29):null;_0x7fe837||(_0x7fe837=_0x444378[_0x316586(0x183)](_0x316586(0x1ca),{'footnoteId':_0x46ac29}),this[_0x316586(0x1c9)]&&(_0x444378[_0x316586(0x16b)](_0x7fe837,this[_0x316586(0x1c9)],_0x316586(0x17b)),_0x219e48=!0x0));const _0x1d8a4d={'id':_0x46ac29,'reference':_0x52884b,'definition':_0x7fe837},_0x50ef88=I(this[_0x316586(0x18a)][_0x316586(0x1c3)],this[_0x316586(0x1c8)],_0x52884b);this[_0x316586(0x1c8)][_0x316586(0x1d1)](_0x50ef88,0x0,_0x1d8a4d);let _0x333a44=_0x50ef88;return-0x1!==_0x52012b&&(_0x333a44=Math[_0x316586(0x1b5)](_0x50ef88,_0x52012b)),this[_0x316586(0x1c7)](_0x444378,_0x333a44)&&(_0x219e48=!0x0),_0x219e48;}[_0x59e8fe(0x1b6)](_0x28c1ac,_0x47d17e){const _0x2f6396=_0x59e8fe,_0x1d94bf=this[_0x2f6396(0x1c8)][_0x2f6396(0x1c0)](_0x2871ad=>_0x2871ad['id']===_0x47d17e);if(-0x1===_0x1d94bf)return!0x1;let _0x3d6b30=!0x1;const _0x425ff2=this[_0x2f6396(0x1c8)][_0x1d94bf];return _0x2f6396(0x18c)!==_0x425ff2[_0x2f6396(0x179)][_0x2f6396(0x1b2)][_0x2f6396(0x192)]&&(_0x28c1ac[_0x2f6396(0x1c4)](_0x425ff2[_0x2f6396(0x179)]),_0x3d6b30=!0x0),this[_0x2f6396(0x1c8)][_0x2f6396(0x1d1)](_0x1d94bf,0x1),this[_0x2f6396(0x1c7)](_0x28c1ac,_0x1d94bf)&&(_0x3d6b30=!0x0),_0x3d6b30;}[_0x59e8fe(0x186)](_0x48eee1,_0x192f28){const _0x36b643=_0x59e8fe,_0x2ad5cb=_0x192f28[_0x36b643(0x1af)](_0x36b643(0x19e)),_0x596f8b=this[_0x36b643(0x1c8)][_0x36b643(0x1c0)](_0x825249=>_0x825249['id']===_0x2ad5cb),_0x3cad62=this[_0x36b643(0x1c8)][_0x596f8b];let _0x556919=!0x1;_0x3cad62[_0x36b643(0x19b)]=_0x192f28,this[_0x36b643(0x1c8)][_0x36b643(0x1d1)](_0x596f8b,0x1);const _0x356798=I(this[_0x36b643(0x18a)][_0x36b643(0x1c3)],this[_0x36b643(0x1c8)],_0x192f28);return this[_0x36b643(0x1c8)][_0x36b643(0x1d1)](_0x356798,0x0,_0x3cad62),this[_0x36b643(0x1c7)](_0x48eee1,Math[_0x36b643(0x1b5)](_0x596f8b,_0x356798))&&(_0x556919=!0x0),_0x556919;}[_0x59e8fe(0x1c5)](_0x210af3,_0x18a13b){const _0x16c4aa=_0x59e8fe;if(!this[_0x16c4aa(0x1c9)])return!0x1;const _0x591595=this[_0x16c4aa(0x1c8)][_0x18a13b];let _0x4df7c4;return _0x4df7c4=this[_0x16c4aa(0x1d2)]?this[_0x16c4aa(0x1d2)]({'footnote':_0x591595,'container':this[_0x16c4aa(0x1c9)],'digits':String(this[_0x16c4aa(0x1c8)][_0x16c4aa(0x1ab)])[_0x16c4aa(0x1ab)],'value':_0x18a13b+0x1}):String(_0x18a13b+0x1),_0x591595[_0x16c4aa(0x19b)][_0x16c4aa(0x1af)](_0x16c4aa(0x171))!=_0x4df7c4&&(_0x210af3[_0x16c4aa(0x19d)](_0x16c4aa(0x171),_0x4df7c4,_0x591595[_0x16c4aa(0x19b)]),!0x0);}[_0x59e8fe(0x16f)](_0xc8bc20){const _0x3201aa=_0x59e8fe;if(!this[_0x3201aa(0x1c9)]||this[_0x3201aa(0x1c8)][_0x3201aa(0x1ab)]<0x2)return!0x1;if(function(_0x4c6cf5,_0x1dd6b9){const _0x4f297a=_0x3201aa;if(_0x4c6cf5[_0x4f297a(0x1ab)]!==_0x1dd6b9[_0x4f297a(0x1ab)])return!0x1;for(let _0x627ec6=0x0;_0x627ec6<_0x4c6cf5[_0x4f297a(0x1ab)];_0x627ec6++)if(_0x4c6cf5[_0x627ec6]!==_0x1dd6b9[_0x627ec6])return!0x1;return!0x0;}(this[_0x3201aa(0x1c8)][_0x3201aa(0x19a)](_0x5af880=>_0x5af880['id']),Array[_0x3201aa(0x180)](this[_0x3201aa(0x1c9)][_0x3201aa(0x1cb)]())[_0x3201aa(0x19a)](_0x5828cc=>_0x5828cc[_0x3201aa(0x1af)](_0x3201aa(0x19e)))))return!0x1;let _0x449b78=!0x1;for(let _0x3d82c5=0x0;_0x3d82c5<this[_0x3201aa(0x1c8)][_0x3201aa(0x1ab)];_0x3d82c5++){const _0x2ef3bc=this[_0x3201aa(0x1c8)][_0x3d82c5],_0x59f50d=_0xc8bc20[_0x3201aa(0x1ce)](_0x2ef3bc[_0x3201aa(0x179)]),_0x313178=_0xc8bc20[_0x3201aa(0x1b4)](this[_0x3201aa(0x1c9)],_0x3d82c5);_0x59f50d[_0x3201aa(0x1a8)](_0x313178)||(_0xc8bc20[_0x3201aa(0x18e)](_0xc8bc20[_0x3201aa(0x196)](_0x2ef3bc[_0x3201aa(0x179)]),_0x313178),_0x449b78=!0x0);}return _0x449b78;}[_0x59e8fe(0x1a4)](_0x23ede8){const _0x2109ab=_0x59e8fe;if(!this[_0x2109ab(0x1c8)][_0x2109ab(0x1ab)])return!0x1;const {model:_0x2eafd4}=this[_0x2109ab(0x18a)];let _0x331907=!0x1;for(let _0x3863db=0x0;_0x3863db<this[_0x2109ab(0x1c8)][_0x2109ab(0x1ab)]-0x1;_0x3863db++){const _0x271d75=this[_0x2109ab(0x1c8)][_0x3863db],_0x6d8f1b=this[_0x2109ab(0x1c8)][_0x3863db+0x1],_0x29f9af=_0x2eafd4[_0x2109ab(0x1ce)](_0x271d75[_0x2109ab(0x19b)]),_0x14f5a5=_0x2eafd4[_0x2109ab(0x1ce)](_0x6d8f1b[_0x2109ab(0x19b)]);_0x2109ab(0x193)===_0x29f9af[_0x2109ab(0x17f)](_0x14f5a5)&&(this[_0x2109ab(0x186)](_0x23ede8,_0x271d75[_0x2109ab(0x19b)]),_0x3863db=-0x1,_0x331907=!0x0);}return _0x331907;}}function _(_0x41bc24,_0x45db2a,_0x1f8b6d){const _0x48f551=_0x59e8fe;if(_0x1f8b6d[_0x48f551(0x1b1)])return!0x1;const _0x986264=_0x45db2a?_0x48f551(0x17c):_0x48f551(0x1ba);return _0x41bc24[_0x48f551(0x16b)](_0x41bc24[_0x48f551(0x183)](_0x986264),_0x1f8b6d),!0x0;}function I(_0x34bbcc,_0x55ea7f,_0x353600){const _0x2d4cd1=_0x59e8fe;if(0x0===_0x55ea7f[_0x2d4cd1(0x1ab)])return 0x0;const _0x5362a0=_0x34bbcc[_0x2d4cd1(0x1ce)](_0x353600);for(let _0x12689b=0x0;_0x12689b<_0x55ea7f[_0x2d4cd1(0x1ab)];_0x12689b++){const _0x2a6d60=_0x55ea7f[_0x12689b],_0x46e874=_0x34bbcc[_0x2d4cd1(0x1ce)](_0x2a6d60[_0x2d4cd1(0x19b)]);if(_0x2d4cd1(0x199)===_0x5362a0[_0x2d4cd1(0x17f)](_0x46e874))return _0x12689b;}const _0x281344=_0x353600[_0x2d4cd1(0x1b2)];let _0x35a689=-0x1;for(let _0x280c1b=_0x55ea7f[_0x2d4cd1(0x1ab)]-0x1;_0x280c1b>=0x0;_0x280c1b--)if(_0x55ea7f[_0x280c1b][_0x2d4cd1(0x19b)][_0x2d4cd1(0x1b2)]===_0x281344){_0x35a689=_0x280c1b;break;}if(-0x1!==_0x35a689)return _0x35a689+0x1;const _0x1556e3=_0x34bbcc[_0x2d4cd1(0x16d)][_0x2d4cd1(0x1ae)](),_0x2cbff2=_0x1556e3[_0x2d4cd1(0x1c2)](_0x281344[_0x2d4cd1(0x192)]),_0x58a08a=_0x1556e3[_0x2cbff2+0x1];if(_0x58a08a){for(let _0x528ceb=0x0;_0x528ceb<_0x55ea7f[_0x2d4cd1(0x1ab)];_0x528ceb++)if(_0x55ea7f[_0x528ceb][_0x2d4cd1(0x19b)][_0x2d4cd1(0x1b2)][_0x2d4cd1(0x192)]===_0x58a08a)return _0x528ceb;}return _0x55ea7f[_0x2d4cd1(0x1ab)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x240bba,MenuBarMenuListItemButtonView as _0x3da696}from'ckeditor5/src/ui.js';import{Plugin as _0x37d6ad}from'ckeditor5/src/core.js';import{IconFootnote as _0x376f7f}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x37d6ad{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x538d52}=this,{componentFactory:_0x56faf7}=_0x538d52['ui'];_0x56faf7['add']('insertFootnote',E(_0x538d52,_0x240bba)),_0x56faf7['add']('menuBar:insertFootnote',E(_0x538d52,_0x3da696)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1118e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51d95e;for(const _0x51a310 in _0x1118e8){const _0x392f8c=_0x51a310,_0x300ab1=_0x1118e8[_0x392f8c];if('footnotesLicenseKeyValid'==_0x300ab1||'footnotesLicenseKeyInvalid'==_0x300ab1||'footnotesLicenseKeyExpired'==_0x300ab1||'footnotesLicenseKeyDomainLimit'==_0x300ab1||'footnotesLicenseKeyNotAllowed'==_0x300ab1||'footnotesLicenseKeyEvaluationLimit'==_0x300ab1||'footnotesLicenseKeyTrialLimit'==_0x300ab1||'footnotesLicenseKeyUsageLimit'==_0x300ab1){delete _0x1118e8[_0x392f8c],_0x51d95e=_0x300ab1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x51d95e&&_0x1118e8['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x51d95e&&_0x1118e8['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x51d95e&&_0x1118e8['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x51d95e&&_0x1118e8['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x51d95e&&_0x1118e8['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x51d95e&&_0x1118e8['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x51d95e&&_0x1118e8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x472bef,_0x2d0554){const _0x4a30f4=_0x472bef['commands']['get']('insertFootnote');return _0x1126d4=>{const {t:t}=_0x1126d4,_0x4f0441=new _0x2d0554(_0x1126d4),_0x5f281a=_0x4f0441 instanceof _0x3da696;return _0x4f0441['bind']('isEnabled')['to'](_0x4a30f4,'isEnabled'),_0x4f0441['set']({'label':t(_0x5f281a?'Footnote':'Insert\x20footnote'),'icon':_0x376f7f,'tooltip':!0x0}),_0x4f0441['on']('execute',()=>{_0x4a30f4['execute'](),_0x472bef['editing']['view']['focus']();}),_0x4f0441;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2a1f29,_0xd69ba5){var _0x5ce277=_0x2ea1,_0x19bd12=_0x2a1f29();while(!![]){try{var _0x5b122d=-parseInt(_0x5ce277(0x18e))/0x1*(parseInt(_0x5ce277(0x190))/0x2)+parseInt(_0x5ce277(0x196))/0x3*(parseInt(_0x5ce277(0x18b))/0x4)+-parseInt(_0x5ce277(0x18d))/0x5*(parseInt(_0x5ce277(0x191))/0x6)+-parseInt(_0x5ce277(0x194))/0x7*(-parseInt(_0x5ce277(0x195))/0x8)+-parseInt(_0x5ce277(0x197))/0x9*(-parseInt(_0x5ce277(0x192))/0xa)+parseInt(_0x5ce277(0x18c))/0xb+parseInt(_0x5ce277(0x193))/0xc*(-parseInt(_0x5ce277(0x18f))/0xd);if(_0x5b122d===_0xd69ba5)break;else _0x19bd12['push'](_0x19bd12['shift']());}catch(_0x256d61){_0x19bd12['push'](_0x19bd12['shift']());}}}(_0xbeb3,0x31e71));function _0x2ea1(_0x8fdafd,_0x494c31){var _0xbeb33b=_0xbeb3();return _0x2ea1=function(_0x2ea12d,_0xb04bf2){_0x2ea12d=_0x2ea12d-0x18b;var _0x1f6bdc=_0xbeb33b[_0x2ea12d];return _0x1f6bdc;},_0x2ea1(_0x8fdafd,_0x494c31);}import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';function _0xbeb3(){var _0xab29f6=['152madaxy','30501qSHgcF','61407pTHlVz','44nhPRUc','1360403VVRuaN','5faIKAN','1zHoqHi','13ZGEQgK','162626JYoVKF','13122NHbceW','530EScDWG','4924380qAmHfx','37261rtfQVT'];_0xbeb3=function(){return _0xab29f6;};return _0xbeb3();}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
|
-
function
|
|
23
|
+
const _0x2895d8=_0x1525;function _0x1525(_0x43cc20,_0x3786aa){const _0xab12f0=_0xab12();return _0x1525=function(_0x15254c,_0x167639){_0x15254c=_0x15254c-0x1d8;let _0xd40b8f=_0xab12f0[_0x15254c];return _0xd40b8f;},_0x1525(_0x43cc20,_0x3786aa);}function _0xab12(){const _0x2853fd=['length','position','_elementName','_model','12qgtnFh','flat','3195756atQJob','3006bhNaxd','push','$graveyard','175360KujckF','add','9976884yuUozj','has','1544LuZtHA','74367QUcJLp','251DfUkJX','_getElementKey','nodeAfter','root','13gMdBIr','name','3786167jSFfwu','set','getChanges','from','reset','getElementKey','insert','element','elementName','type','createRangeOn','22iwdhnO','$text','_trackedElements','get','rootName','slice','2972xCCRMM','5baUqLC','remove','getItems','clear','delete','attributes','values'];_0xab12=function(){return _0x2853fd;};return _0xab12();}(function(_0x9499f0,_0x291cf4){const _0x7a3cd7=_0x1525,_0x2d199a=_0x9499f0();while(!![]){try{const _0x2c470d=parseInt(_0x7a3cd7(0x204))/0x1*(-parseInt(_0x7a3cd7(0x1ec))/0x2)+parseInt(_0x7a3cd7(0x203))/0x3*(-parseInt(_0x7a3cd7(0x1f8))/0x4)+-parseInt(_0x7a3cd7(0x1ed))/0x5*(-parseInt(_0x7a3cd7(0x1fa))/0x6)+-parseInt(_0x7a3cd7(0x1db))/0x7+parseInt(_0x7a3cd7(0x202))/0x8*(-parseInt(_0x7a3cd7(0x1fb))/0x9)+parseInt(_0x7a3cd7(0x1fe))/0xa*(-parseInt(_0x7a3cd7(0x1e6))/0xb)+-parseInt(_0x7a3cd7(0x200))/0xc*(-parseInt(_0x7a3cd7(0x1d9))/0xd);if(_0x2c470d===_0x291cf4)break;else _0x2d199a['push'](_0x2d199a['shift']());}catch(_0x4a6a49){_0x2d199a['push'](_0x2d199a['shift']());}}}(_0xab12,0x43729));export class ModelElementTracker{[_0x2895d8(0x1f7)];[_0x2895d8(0x1f6)];[_0x2895d8(0x205)];[_0x2895d8(0x1e8)]=new Map();constructor(_0x4e8636,_0x3ea70a){const _0x28819c=_0x2895d8;this[_0x28819c(0x1f7)]=_0x4e8636,this[_0x28819c(0x1f6)]=_0x3ea70a[_0x28819c(0x1e3)],this[_0x28819c(0x205)]=_0x3ea70a[_0x28819c(0x1e0)];}[_0x2895d8(0x1df)](){const _0x1daf70=_0x2895d8;this[_0x1daf70(0x1e8)][_0x1daf70(0x1f0)]();}[_0x2895d8(0x1dd)](_0x4f942d){const _0x2ea33c=_0x2895d8,_0x4c81b2=new Set(),_0x2ce603=new Map();for(const _0x5655aa of _0x4f942d){if(_0x2ea33c(0x1e1)===_0x5655aa[_0x2ea33c(0x1e4)]&&_0x2ea33c(0x1e7)!==_0x5655aa[_0x2ea33c(0x1da)]&&_0x5655aa[_0x2ea33c(0x1f5)][_0x2ea33c(0x206)]){const _0x2981c1=this[_0x2ea33c(0x1f7)][_0x2ea33c(0x1e5)](_0x5655aa[_0x2ea33c(0x1f5)][_0x2ea33c(0x206)]);for(const _0x24c49a of _0x2981c1[_0x2ea33c(0x1ef)]()){if(!_0x24c49a['is'](_0x2ea33c(0x1e2),this[_0x2ea33c(0x1f6)]))continue;const _0x236711=this[_0x2ea33c(0x205)](_0x24c49a);_0x2ce603[_0x2ea33c(0x201)](_0x236711)||_0x2ce603[_0x2ea33c(0x1dc)](_0x236711,[]),_0x2ce603[_0x2ea33c(0x1e9)](_0x236711)[_0x2ea33c(0x1fc)](_0x24c49a);}}if(_0x2ea33c(0x1ee)===_0x5655aa[_0x2ea33c(0x1e4)]&&_0x5655aa[_0x2ea33c(0x1da)]===this[_0x2ea33c(0x1f6)]){const _0x46e80b=this[_0x2ea33c(0x205)]({'getAttribute':_0xf3f1ea=>_0x5655aa[_0x2ea33c(0x1f2)][_0x2ea33c(0x1e9)](_0xf3f1ea)});_0x4c81b2[_0x2ea33c(0x1ff)](_0x46e80b);}}for(const [_0x2b2002,_0x560e64]of this[_0x2ea33c(0x1e8)])_0x2ea33c(0x1fd)===_0x560e64[_0x2ea33c(0x1d8)][_0x2ea33c(0x1ea)]&&_0x4c81b2[_0x2ea33c(0x1ff)](_0x2b2002);for(const _0xa2003f of _0x4c81b2)this[_0x2ea33c(0x1e8)][_0x2ea33c(0x1f1)](_0xa2003f);for(const [_0x5c2d1c,_0x2d3638]of _0x2ce603)this[_0x2ea33c(0x1e8)][_0x2ea33c(0x1dc)](_0x5c2d1c,_0x2d3638[_0x2d3638[_0x2ea33c(0x1f4)]-0x1]);const _0x56efbf=new Set();for(const [_0xe95a6c,_0x5e0ef0]of _0x2ce603)_0x4c81b2[_0x2ea33c(0x201)](_0xe95a6c)&&(_0x56efbf[_0x2ea33c(0x1ff)](_0x5e0ef0[0x0]),_0x5e0ef0[_0x2ea33c(0x1f4)]>0x1?_0x2ce603[_0x2ea33c(0x1dc)](_0xe95a6c,_0x5e0ef0[_0x2ea33c(0x1eb)](0x1)):_0x2ce603[_0x2ea33c(0x1f1)](_0xe95a6c),_0x4c81b2[_0x2ea33c(0x1f1)](_0xe95a6c));return{'removed':Array[_0x2ea33c(0x1de)](_0x4c81b2),'inserted':Array[_0x2ea33c(0x1de)](_0x2ce603[_0x2ea33c(0x1f3)]())[_0x2ea33c(0x1f9)](),'moved':Array[_0x2ea33c(0x1de)](_0x56efbf)};}}
|