@ckeditor/ckeditor5-footnotes 0.0.0-internal-20251210.0 → 0.0.0-internal-20251218.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 _0x4f6b2d}from'ckeditor5/src/core.js';import{isWidget as _0x4786bb,toWidget as _0x506259,toWidgetEditable as _0x888e54}from'ckeditor5/src/widget.js';import{uid as _0x3ad473}from'ckeditor5/src/utils.js';import{PointerObserver as _0x394201,ClickObserver as _0x18c85a}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x42cb3b}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1bad1a}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4f6b2d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x42cb3b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d2ad1}=this;_0x8d2ad1['config']['define']('footnotes.multiBlock',!0x0),_0x8d2ad1['commands']['add']('insertFootnote',new _0x1bad1a(_0x8d2ad1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x38422d){const _0x1b5aaf=_0x2b5403([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]),_0x58738b=0x47a28506,_0x104f92=0x47a5fe86^_0x58738b,_0x4634be=window[_0x2b5403([0x44,0x61,0x74,0x65])][_0x2b5403([0x6e,0x6f,0x77])](),_0x59cdfa=_0x38422d[_0x2b5403([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19edc9=new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1750=>{_0x59cdfa[_0x2b5403([0x6f,0x6e,0x63,0x65])](_0x2b5403([0x72,0x65,0x61,0x64,0x79]),_0x4e1750);}),_0x4bf2aa={[_0x2b5403([0x6b,0x74,0x79])]:_0x2b5403([0x45,0x43]),[_0x2b5403([0x75,0x73,0x65])]:_0x2b5403([0x73,0x69,0x67]),[_0x2b5403([0x63,0x72,0x76])]:_0x2b5403([0x50,0x2d,0x32,0x35,0x36]),[_0x2b5403([0x78])]:_0x2b5403([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]),[_0x2b5403([0x79])]:_0x2b5403([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]),[_0x2b5403([0x61,0x6c,0x67])]:_0x2b5403([0x45,0x53,0x32,0x35,0x36])},_0x56cfff=_0x59cdfa[_0x2b5403([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b5403([0x67,0x65,0x74])](_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c6222(){let _0xd4fc2b,_0x36275b=null,_0xf657e6=null;try{if(_0x56cfff==_0x2b5403([0x47,0x50,0x4c]))return _0x2b5403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd4fc2b=_0x5c27ec(),!_0xd4fc2b)return _0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd4fc2b[_0x2b5403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf657e6=_0x285064(_0xd4fc2b[_0x2b5403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd4fc2b[_0x2b5403([0x6a,0x74,0x69])])),await _0x1232e9()?_0x129b3c()?_0x4a71d7()?_0x2b5403([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x201d07()?(_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36275b=_0x48d2ed(_0x2b5403([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5403([0x74,0x72,0x69,0x61,0x6c])&&(_0x36275b=_0x48d2ed(_0x2b5403([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4606f4()):_0x2b5403([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b5403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a71d7(){const _0xad300f=[_0x2b5403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b5403([0x74,0x72,0x69,0x61,0x6c])][_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4634be/0x3e8:0xe10*_0x104f92;return _0xd4fc2b[_0x2b5403([0x65,0x78,0x70])]<_0xad300f;}function _0x129b3c(){const _0x19c319=_0xd4fc2b[_0x2b5403([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19c319&&(!!_0x19c319[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x2a]))||!!_0x19c319[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x46,0x4f,0x4f])));}function _0x201d07(){const _0x29c618=_0xd4fc2b[_0x2b5403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29c618||0x0==_0x29c618[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43b5bc}=new URL(window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29c618[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b5bc))return!0x0;const _0x465c5e=_0x43b5bc[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e]));return _0x29c618[_0x2b5403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d8099=>_0x2d8099[_0x2b5403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5403([0x2a])))[_0x2b5403([0x6d,0x61,0x70])](_0x48b95e=>_0x48b95e[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e])))[_0x2b5403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f1b54=>_0x3f1b54[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x465c5e[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5403([0x6d,0x61,0x70])](_0xe2beb9=>Array(_0x465c5e[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe2beb9[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5403([0x66,0x69,0x6c,0x6c])](_0xe2beb9[0x0]===_0x2b5403([0x2a])?_0x2b5403([0x2a]):'')[_0x2b5403([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe2beb9))[_0x2b5403([0x73,0x6f,0x6d,0x65])](_0x29f3fa=>_0x465c5e[_0x2b5403([0x65,0x76,0x65,0x72,0x79])]((_0x5615c5,_0x6a581f)=>_0x29f3fa[_0x6a581f]===_0x5615c5||_0x29f3fa[_0x6a581f]===_0x2b5403([0x2a])));}function _0x4606f4(){return _0x36275b&&_0xf657e6?new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x298b33,_0x5a4790)=>{_0x36275b[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x298b33,_0x5a4790),_0xf657e6[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x246725=>{_0x246725!=_0x2b5403([0x56,0x61,0x6c,0x69,0x64])&&_0x298b33(_0x246725);},_0x5a4790);}):_0x36275b||_0xf657e6||_0x2b5403([0x56,0x61,0x6c,0x69,0x64]);}}function _0x285064(_0x1f60e9,_0x2639aa){return new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac81e=>{if(_0x3f0fab())return _0x5ac81e(_0x2b5403([0x56,0x61,0x6c,0x69,0x64]));_0x472999(),_0x59cdfa[_0x2b5403([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dcb1b=!0x1;const _0x478190=_0x3ad473();function _0x1292c5(_0x221875){return!!_0x221875&&(typeof _0x221875===_0x2b5403([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x221875===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x221875[_0x2b5403([0x74,0x68,0x65,0x6e])]===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x221875[_0x2b5403([0x63,0x61,0x74,0x63,0x68])]===_0x2b5403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524d8f(_0x2573c6){_0x7edd38(_0x2573c6)[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x21c297=>{if(!_0x21c297||_0x21c297[_0x2b5403([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b5403([0x6f,0x6b]))return _0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a79da(_0x596d06(_0x478190+_0x2639aa))!=_0x21c297[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5403([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x2dac29=>(_0x254c81(),_0x2dac29),()=>{const _0x1b9ba9=_0x3f9762();return null==_0x1b9ba9?(_0x254c81(),_0x2b5403([0x56,0x61,0x6c,0x69,0x64])):_0x2b5403(_0x4634be-_0x1b9ba9>(0x63ae0106^_0x58738b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x5ac81e)[_0x2b5403([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2da246=0x47946b86^_0x58738b;function _0x254c81(){const _0x3d61b9=_0x2b5403([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a79da(_0x596d06(_0x1f60e9)),_0x528cba=_0x2aa86f(_0x2a79da(window[_0x2b5403([0x4d,0x61,0x74,0x68])][_0x2b5403([0x63,0x65,0x69,0x6c])](_0x4634be/_0x2da246)));window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5403([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d61b9,_0x528cba);}function _0x3f9762(){const _0x1b2de2=_0x2b5403([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a79da(_0x596d06(_0x1f60e9)),_0x58d1eb=window[_0x2b5403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5403([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b2de2);return _0x58d1eb?window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aa86f(_0x58d1eb),0x10)*_0x2da246:null;}function _0x7edd38(_0x2cfdf5){return new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45da8e,_0x11942c)=>{_0x2cfdf5[_0x2b5403([0x74,0x68,0x65,0x6e])](_0x45da8e,_0x11942c),window[_0x2b5403([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11942c,0x47a351c6^_0x58738b);});}}_0x59cdfa[_0x2b5403([0x6f,0x6e])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x535815,_0x5b12a0)=>{if(_0x5b12a0[0x0]!=_0x1f60e9)return _0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b12a0[0x1]={..._0x5b12a0[0x1],[_0x2b5403([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x478190};},{[_0x2b5403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5403([0x68,0x69,0x67,0x68])}),_0x59cdfa[_0x2b5403([0x6f,0x6e])](_0x2b5403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a26e7=>{_0x1292c5(_0x3a26e7[_0x2b5403([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dcb1b=!0x0,_0x524d8f(_0x3a26e7[_0x2b5403([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b5403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5403([0x6c,0x6f,0x77])}),_0x19edc9[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>{_0x1dcb1b||_0x5ac81e(_0x2b5403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f0fab(){return _0x59cdfa[_0x2b5403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5403([0x76,0x69,0x65,0x77])][_0x2b5403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b5403([0x61,0x75,0x74,0x6f]);}function _0x472999(){_0x59cdfa[_0x2b5403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5403([0x76,0x69,0x65,0x77])][_0x2b5403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b5403([0x61,0x75,0x74,0x6f]);}}function _0x48d2ed(_0x2677d7){const _0x4a87c7=[new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x95eaf5=>setTimeout(_0x95eaf5,0x47abbbca^_0x58738b)),_0x19edc9[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb5a5=>{let _0x48df3b=0x0;_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x6f,0x6e])](_0x2b5403([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a735a,_0x1ce973)=>{_0x1ce973[0x0][_0x2b5403([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48df3b++,_0x48df3b==(0x47a284fe^_0x58738b)&&(_0x1bb5a5(),_0x5a735a[_0x2b5403([0x6f,0x66,0x66])]());});}))];return window[_0x2b5403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b5403([0x72,0x61,0x63,0x65])](_0x4a87c7)[_0x2b5403([0x74,0x68,0x65,0x6e])](()=>_0x2677d7);}async function _0x9e119d(){await _0x19edc9,_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x189c68,_0x59cdfa[_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5403([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x189c68,_0x59cdfa[_0x2b5403([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b5403([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x461400(_0x516d13){const _0x55dd94=_0x5a3199();_0x59cdfa[_0x55dd94]=_0x2b5403([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x516d13,_0x516d13!=_0x2b5403([0x56,0x61,0x6c,0x69,0x64])&&_0x9e119d();}function _0x5a3199(){const _0x5c5215=window[_0x2b5403([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b5403([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b5403([0x6e,0x6f,0x77])]())[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b5403([0x2e]),'');let _0x341391=_0x2b5403([0x75]);for(let _0x368edf=0x0;_0x368edf<_0x5c5215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368edf+=0x2){let _0x4e7823=window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c5215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368edf,_0x368edf+0x2));_0x4e7823>=_0x1b5aaf[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e7823-=_0x1b5aaf[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x341391+=_0x1b5aaf[_0x4e7823];}return _0x341391;}function _0x5c27ec(){const _0x166122=_0x56cfff[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e]));if(0x3!=_0x166122[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b855f(_0x166122[0x1]);function _0x1b855f(_0x212d47){const _0x4b56e5=_0x9e7ce0(_0x212d47);return _0x4b56e5&&_0x356af3()?_0x4b56e5:null;function _0x356af3(){const _0x3ff215=_0x4b56e5[_0x2b5403([0x6a,0x74,0x69])],_0x21f5e2=window[_0x2b5403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ff215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ff215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x470138={..._0x4b56e5,[_0x2b5403([0x6a,0x74,0x69])]:_0x3ff215[_0x2b5403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ff215[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x470138[_0x2b5403([0x76,0x63])],_0x596d06(_0x470138)==_0x21f5e2;}}}async function _0x1232e9(){let _0x2ae4c1=!0x0;try{const _0x206872=_0x56cfff[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])](_0x2b5403([0x2e])),[_0x49ee5c,_0x53e62c,_0x50766f]=_0x206872;return _0x555be7(_0x49ee5c),await _0x278d4f(_0x49ee5c,_0x53e62c,_0x50766f),_0x2ae4c1;}catch{return!0x1;}function _0x555be7(_0x423f1e){const _0x21be7b=_0x9e7ce0(_0x423f1e);_0x21be7b&&_0x21be7b[_0x2b5403([0x61,0x6c,0x67])]==_0x2b5403([0x45,0x53,0x32,0x35,0x36])||(_0x2ae4c1=!0x1);}async function _0x278d4f(_0x1d0e2d,_0x2bd565,_0x30dd31){const _0x5837f5=window[_0x2b5403([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b5403([0x66,0x72,0x6f,0x6d])](_0x1f98ec(_0x30dd31),_0x5c2968=>_0x5c2968[_0x2b5403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x437540=new window[(_0x2b5403([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b5403([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0e2d+_0x2b5403([0x2e])+_0x2bd565),_0x2184f3=window[_0x2b5403([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b5403([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2184f3)return;const _0x531c30=await _0x2184f3[_0x2b5403([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b5403([0x6a,0x77,0x6b]),_0x4bf2aa,{[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x45,0x43,0x44,0x53,0x41]),[_0x2b5403([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b5403([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2184f3[_0x2b5403([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x45,0x43,0x44,0x53,0x41]),[_0x2b5403([0x68,0x61,0x73,0x68])]:{[_0x2b5403([0x6e,0x61,0x6d,0x65])]:_0x2b5403([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x531c30,_0x5837f5,_0x437540)||(_0x2ae4c1=!0x1);}}function _0x9e7ce0(_0x344e2f){return _0x344e2f[_0x2b5403([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b5403([0x65,0x79]))?JSON[_0x2b5403([0x70,0x61,0x72,0x73,0x65])](_0x1f98ec(_0x344e2f)):null;}function _0x1f98ec(_0x1fdbd7){return window[_0x2b5403([0x61,0x74,0x6f,0x62])](_0x1fdbd7[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b5403([0x2b]))[_0x2b5403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b5403([0x2f])));}function _0x596d06(_0x4d3268){let _0x5155f0=0x1505;function _0x54fa87(_0x5772c1){for(let _0x3a8b4f=0x0;_0x3a8b4f<_0x5772c1[_0x2b5403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a8b4f++){const _0x379a4d=_0x5772c1[_0x2b5403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a8b4f);_0x5155f0=(_0x5155f0<<0x5)+_0x5155f0+_0x379a4d,_0x5155f0&=_0x5155f0;}}function _0x1fa450(_0x4e68cc){Array[_0x2b5403([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e68cc)?_0x4e68cc[_0x2b5403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fa450):_0x4e68cc&&typeof _0x4e68cc==_0x2b5403([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b5403([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e68cc)[_0x2b5403([0x73,0x6f,0x72,0x74])]()[_0x2b5403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21056a,_0x48bac5])=>{_0x54fa87(_0x21056a),_0x1fa450(_0x48bac5);}):_0x54fa87(window[_0x2b5403([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e68cc));}return _0x1fa450(_0x4d3268),_0x5155f0>>>0x0;}function _0x2a79da(_0x684c01){return _0x684c01[_0x2b5403([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b5403([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b5403([0x30]));}function _0x2aa86f(_0x39e7f0){return _0x39e7f0[_0x2b5403([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b5403([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b5403([0x6a,0x6f,0x69,0x6e])]('');}function _0x189c68(){}function _0x2b5403(_0x98319b){return _0x98319b['map'](_0x3adda5=>String['fromCharCode'](_0x3adda5))['join']('');}_0x461400(await _0x5c6222());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1a0f36){const {plugins:_0xbdacf5,editing:_0x57c30f,model:_0x3b3e0c}=this['editor'],_0x35d77c=_0xbdacf5['get'](_0x42cb3b)['getFootnote'](_0x1a0f36);return!!_0x35d77c&&(_0x3b3e0c['change'](_0x287425=>{_0x287425['setSelection'](_0x287425['createPositionAt'](_0x35d77c['definition'],'end'));}),_0x57c30f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1db0d4){const {plugins:_0x4f9178,editing:_0x2f759f,model:_0x2120ee}=this['editor'],_0x3e2855=_0x4f9178['get'](_0x42cb3b)['getFootnote'](_0x1db0d4);return!!_0x3e2855&&(_0x2120ee['change'](_0x5a8a7a=>{_0x5a8a7a['setSelection'](_0x3e2855['reference'],'on');}),_0x2f759f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2efd16}=this['editor']['model'],_0x211359=this['editor']['config']['get']('footnotes.multiBlock');_0x2efd16['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2efd16['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2efd16['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x211359?_0x2efd16['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2efd16['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2efd16['addChildCheck'](_0x200205=>{for(const _0x200541 of _0x200205)if('footnoteDefinition'===_0x200541['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x585f70}=this,{conversion:_0xe81f45,editing:_0x2c97bd}=_0x585f70,{t:t}=_0x585f70['locale'];_0xe81f45['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4da914,{writer:_0x2c794d,consumable:_0x35b844})=>{const _0xd3f582=_0x4da914['getChild'](0x0);if(!_0xd3f582||!_0xd3f582['is']('element','a'))return null;const _0xcb8c2=_0xd3f582['getAttribute']('href')||'';if(!_0xcb8c2['startsWith']('#'))return null;const _0x53042c=_0xcb8c2['replace'](/^#/,'');if(!_0x53042c)return null;_0x35b844['consume'](_0xd3f582,{'name':!0x0,'attributes':['href']});for(const {item:_0x1e9ff9}of _0x2c97bd['view']['createRangeIn'](_0xd3f582))_0x1e9ff9['is']('$textProxy')?_0x35b844['consume'](_0x1e9ff9['textNode'],{'name':!0x0}):_0x1e9ff9['is']('element')&&_0x35b844['consume'](_0x1e9ff9,{'name':!0x0});return _0x2c794d['createElement']('footnoteRef',{'footnoteId':_0x53042c});}}),_0xe81f45['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x153a6c,{writer:_0x801ad2})=>D(_0x153a6c,_0x801ad2)}),_0xe81f45['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x376453,{writer:_0x1dcf0a})=>{const _0x565ee0=_0x376453['getAttribute']('footnoteCounter');return _0x506259(D(_0x376453,_0x1dcf0a),_0x1dcf0a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x565ee0)});}});}['_defineDefinitionsConverters'](){const {editor:_0x226a97}=this,{t:t}=_0x226a97['locale'],{conversion:_0x418f08}=_0x226a97;_0x418f08['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x418f08['for']('upcast')['add'](_0x71d31b=>{_0x71d31b['on']('element:ol',(_0x526bd5,_0x48cb4f,_0x1a50c5)=>{const _0x237814=_0x48cb4f['viewItem'];if(!_0x237814['hasClass']('footnotes-list')||!_0x48cb4f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1a50c5['consumable']['consume'](_0x237814,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55aa0d,modelCursor:_0x79411}=_0x1a50c5['convertChildren'](_0x48cb4f['viewItem'],_0x48cb4f['modelCursor']);_0x48cb4f['modelRange']=_0x55aa0d,_0x48cb4f['modelCursor']=_0x79411;}),_0x71d31b['on']('element:hr',(_0x8aa2a6,_0x1095b3,_0x20a550)=>{const _0x1dab0f=_0x1095b3['viewItem'];_0x1dab0f['hasClass']('footnotes-divider')&&_0x1095b3['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x20a550['consumable']['consume'](_0x1dab0f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x418f08['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x19a252,{writer:_0x54b4bb})=>v(_0x54b4bb)}),_0x418f08['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c97f6,{writer:_0x1269f2})=>{const _0x30507a=v(_0x1269f2,{'data-footnotes-list-label':t('Footnotes')}),_0x33fe15=_0x506259(_0x30507a,_0x1269f2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1269f2['setCustomProperty']('footnotesDefinitions',!0x0,_0x33fe15),_0x33fe15;}});}['_defineDefinitionConverters'](){const {editor:_0x401904}=this,{conversion:_0x338e55,locale:_0x23f70a}=_0x401904,_0x1c8c49=_0x401904['config']['get']('footnotes.multiBlock');_0x338e55['for']('upcast')['add'](_0x59dc9a=>{_0x59dc9a['on']('element:li',(_0x3352df,_0x2f39bd,_0x507af3)=>{const _0x102996=_0x2f39bd['viewItem'];if(!_0x102996['hasClass']('footnote-definition')||!_0x102996['getAttribute']('id'))return;const _0x1d39ef=_0x102996['parent'];if(!_0x1d39ef['is']('element','ol')||!_0x1d39ef['hasClass']('footnotes-list'))return;if(!_0x507af3['consumable']['test'](_0x102996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x549630=_0x507af3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x102996['getAttribute']('id')});if(!_0x507af3['safeInsert'](_0x549630,_0x2f39bd['modelCursor']))return;_0x507af3['consumable']['consume'](_0x102996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5b941f=Array['from'](_0x102996['getChildren']())['find'](_0x7dfd63=>_0x7dfd63['is']('element')&&_0x7dfd63['hasClass']('footnote-content'));for(const _0x2fc3a5 of _0x102996['getChildren']())_0x2fc3a5['is']('element')&&(_0x507af3['consumable']['consume'](_0x2fc3a5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x507af3['consumable']['consume'](_0x2fc3a5,{'name':!0x0,'classes':'footnote-content'}));if(_0x5b941f){if(_0x1c8c49)_0x507af3['convertChildren'](_0x5b941f,_0x549630);else{const _0x5a6506=_0x507af3['writer']['createElement']('footnoteInlineContent');_0x507af3['writer']['insert'](_0x5a6506,_0x549630),_0x507af3['convertChildren'](_0x5b941f,_0x5a6506);}}_0x507af3['updateConversionResult'](_0x549630,_0x2f39bd);});}),_0x338e55['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2ca026,{writer:_0xebac5e})=>b(_0x2ca026,_0xebac5e,_0x23f70a,{'dataPipeline':!0x0})}),_0x338e55['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ab86e,{writer:_0x4b9539})=>b(_0x4ab86e,_0x4b9539,_0x23f70a)});}['_defineBogusParagraphConverters'](){const {editor:_0x51687d}=this,{conversion:_0x11ccd2}=_0x51687d;_0x51687d['config']['get']('footnotes.multiBlock')?(_0x11ccd2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x11ccd2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x51687d['model']['document'],'change:data',()=>{!function(_0x5b7c85,_0x2ecf2b){const _0x538738=_0x5b7c85['document']['differ'],_0x1cc475=new Set();for(const _0xdfb13e of _0x538738['getChanges']()){const _0x4cd693='attribute'==_0xdfb13e['type']?_0xdfb13e['range']['start']['parent']:_0xdfb13e['position']['parent'];_0x4cd693['is']('element','footnoteDefinition')&&_0x1cc475['add'](_0x4cd693);}for(const _0x528c76 of _0x1cc475['values']()){const _0x1a9eb8=Array['from'](_0x528c76['getChildren']())['filter'](_0x256995=>g(_0x256995,_0x2ecf2b['mapper']));for(const _0x206de0 of _0x1a9eb8)_0x2ecf2b['reconvertItem'](_0x206de0);}}(_0x51687d['model'],_0x51687d['editing']);})):(_0x11ccd2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x11ccd2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4a8238,{writer:_0x6a759e})=>{const _0x134542=_0x6a759e['createContainerElement']('span');return _0x6a759e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x134542),_0x134542;}}));}['_defineKeyboardHandlers'](){const {editor:_0xb73106}=this,{editing:_0x6b1849,t:t}=_0xb73106,_0x310059=_0xb73106['model']['document']['selection'];_0xb73106['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xb73106['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x6b1849['view']['document'],'enter',(_0x43bd9d,_0x55ccee)=>{const _0x30d276=function(_0x71d8d1){const _0x98e554=_0x71d8d1['getSelectedElement']();if(_0x98e554?.['is']('element','footnoteRef'))return _0x98e554;return null;}(_0x310059);if(_0x30d276){const _0x591c75=_0x30d276['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x591c75),_0x55ccee['preventDefault'](),_0x43bd9d['stop']();}},{'context':_0x4786bb});}['_defineClickHandlers'](){const {editor:_0x5d4fb0}=this,{editing:_0x2f268e}=_0x5d4fb0;_0x5d4fb0['editing']['view']['addObserver'](_0x394201),_0x5d4fb0['editing']['view']['addObserver'](_0x18c85a);let _0x10d85a=!0x1;this['listenTo'](_0x2f268e['view']['document'],'pointerdown',(_0x30b3d4,_0x3cff92)=>{const {target:_0x4560cf}=_0x3cff92,_0x2dfe4d=_0x2f268e['view']['document']['selection'];_0x10d85a=!!(_0x4560cf?.['is']('element','a')&&_0x4560cf['parent']?.['is']('element','sup')&&_0x4560cf['parent']['hasClass']('footnote'))&&_0x2dfe4d['getSelectedElement']()===_0x4560cf['parent'];},{'priority':'high'}),this['listenTo'](_0x2f268e['view']['document'],'click',(_0x133093,_0x2a560f)=>{const {target:_0x507ef6}=_0x2a560f;if(!_0x507ef6?.['is']('element','a'))return;if(_0x507ef6['parent']?.['is']('element','sup')&&_0x507ef6['parent']['hasClass']('footnote')&&!_0x10d85a)return void _0x2a560f['preventDefault']();let _0x59dc12=_0x507ef6['getAttribute']('href');if(!_0x59dc12?.['startsWith']('#'))return;_0x59dc12=_0x59dc12['slice'](0x1);let _0x307514=!0x1;(_0x59dc12['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x59dc12['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x59dc12))&&(_0x307514=!0x0),_0x307514&&(_0x2a560f['preventDefault'](),_0x133093['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5a86a2}={}){return(_0x17d873,{writer:_0x575785})=>{if(!p(_0x17d873))return null;if(!_0x5a86a2)return _0x575785['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x29d3fd=_0x575785['createContainerElement']('p');return _0x575785['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29d3fd),_0x29d3fd;};}function p(_0x256c3e){const {parent:_0x2d8437}=_0x256c3e;if(!_0x2d8437?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2d8437['childCount'])return!0x1;for(const _0x56a78c of _0x256c3e['getAttributeKeys']())if(!_0x56a78c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x56a78c)return!0x1;return!0x0;}function g(_0x5ef392,_0x52ecd1){if(!_0x5ef392['is']('element','paragraph'))return!0x1;const _0x18dfdf=_0x52ecd1['toViewElement'](_0x5ef392);return!!_0x18dfdf&&p(_0x5ef392)!==_0x18dfdf['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1b8d73){return _0x4786bb(_0x1b8d73)&&_0x1b8d73['is']('containerElement')&&!!_0x1b8d73['getCustomProperty']('footnotesDefinitions');}function v(_0x339fdf,_0x471b59={}){const _0x36488d=_0x339fdf['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x14f222=_0x339fdf['createContainerElement']('ol',{'class':'footnotes-list'},_0x339fdf['createSlot']());return _0x339fdf['createContainerElement']('div',{'class':'footnotes',..._0x471b59},[_0x36488d,_0x14f222]);}function D(_0xfd9e55,_0x3f333b){const _0x17a7fe=_0xfd9e55['getAttribute']('footnoteId'),_0x2d3119=_0xfd9e55['getAttribute']('footnoteCounter'),_0xbe7078=_0x3f333b['createUIElement']('a',{'href':'#'+_0x17a7fe},function(_0x558ce0){const _0x2be7e7=this['toDomElement'](_0x558ce0);return _0x2be7e7['textContent']=_0x2d3119,_0x2be7e7;}),_0x1021c5=_0x3f333b['createContainerElement']('sup',{'id':'ref-'+_0x17a7fe,'class':'footnote'},[_0xbe7078]);return _0x1021c5['getFillerOffset']=()=>null,_0x1021c5;}function b(_0x439377,_0x433f1a,_0x1084ab,{dataPipeline:_0x3baa15}={}){const {t:t}=_0x1084ab,_0x36c6e8=_0x439377['getAttribute']('footnoteId'),_0x8585c7=_0x433f1a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x36c6e8},function(_0x101d19){const _0x1cd671=this['toDomElement'](_0x101d19);return _0x1cd671['innerText']='^',_0x1cd671;}),_0x3ae8a3=_0x3baa15?_0x433f1a['createContainerElement']('div',{'class':'footnote-content'}):_0x888e54(_0x433f1a['createEditableElement']('div',{'class':'footnote-content'}),_0x433f1a,{'label':t('Footnote\x20content.')});return _0x433f1a['insert'](_0x433f1a['createPositionAt'](_0x3ae8a3,0x0),_0x433f1a['createSlot']()),_0x433f1a['createContainerElement']('li',{'class':'footnote-definition','id':_0x36c6e8},[_0x8585c7,_0x3ae8a3]);}
|
|
23
|
+
import{Plugin as _0x5ca4f4}from'ckeditor5/src/core.js';import{isWidget as _0x5e9dfa,toWidget as _0x4229e5,toWidgetEditable as _0x4c32a9}from'ckeditor5/src/widget.js';import{uid as _0x447db1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x252ea5,ClickObserver as _0x1c7011}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x29fca4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4ff9c9}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5ca4f4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x29fca4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x564b2c}=this;_0x564b2c['config']['define']('footnotes.multiBlock',!0x0),_0x564b2c['commands']['add']('insertFootnote',new _0x4ff9c9(_0x564b2c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4bca96){const _0x59d02e=_0x276e06([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]),_0x347098=0x47a28506,_0x4ecf2f=0x47a5f946^_0x347098,_0xd1b9ab=window[_0x276e06([0x44,0x61,0x74,0x65])][_0x276e06([0x6e,0x6f,0x77])](),_0x3e107f=_0x4bca96[_0x276e06([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x372af0=new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10bca3=>{_0x3e107f[_0x276e06([0x6f,0x6e,0x63,0x65])](_0x276e06([0x72,0x65,0x61,0x64,0x79]),_0x10bca3);}),_0x516cd8={[_0x276e06([0x6b,0x74,0x79])]:_0x276e06([0x45,0x43]),[_0x276e06([0x75,0x73,0x65])]:_0x276e06([0x73,0x69,0x67]),[_0x276e06([0x63,0x72,0x76])]:_0x276e06([0x50,0x2d,0x32,0x35,0x36]),[_0x276e06([0x78])]:_0x276e06([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]),[_0x276e06([0x79])]:_0x276e06([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]),[_0x276e06([0x61,0x6c,0x67])]:_0x276e06([0x45,0x53,0x32,0x35,0x36])},_0x1305a8=_0x3e107f[_0x276e06([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x276e06([0x67,0x65,0x74])](_0x276e06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d97fa(){let _0x571458,_0xefc7c3=null,_0x30ba52=null;try{if(_0x1305a8==_0x276e06([0x47,0x50,0x4c]))return _0x276e06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x571458=_0x236946(),!_0x571458)return _0x276e06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x571458[_0x276e06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30ba52=_0x38c1a2(_0x571458[_0x276e06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x571458[_0x276e06([0x6a,0x74,0x69])])),await _0x4931df()?_0x30f813()?_0x31167c()?_0x276e06([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b5c0()?(_0x571458[_0x276e06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x276e06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xefc7c3=_0xb5a3d2(_0x276e06([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x571458[_0x276e06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x276e06([0x74,0x72,0x69,0x61,0x6c])&&(_0xefc7c3=_0xb5a3d2(_0x276e06([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f6258()):_0x276e06([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x276e06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x276e06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x276e06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31167c(){const _0x2ffb7a=[_0x276e06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x276e06([0x74,0x72,0x69,0x61,0x6c])][_0x276e06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571458[_0x276e06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd1b9ab/0x3e8:0xe10*_0x4ecf2f;return _0x571458[_0x276e06([0x65,0x78,0x70])]<_0x2ffb7a;}function _0x30f813(){const _0x118d14=_0x571458[_0x276e06([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x118d14&&(!!_0x118d14[_0x276e06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x276e06([0x2a]))||!!_0x118d14[_0x276e06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x276e06([0x46,0x4f,0x4f])));}function _0x58b5c0(){const _0x592c19=_0x571458[_0x276e06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x592c19||0x0==_0x592c19[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e6e5b}=new URL(window[_0x276e06([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x592c19[_0x276e06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e6e5b))return!0x0;const _0x3ec283=_0x2e6e5b[_0x276e06([0x73,0x70,0x6c,0x69,0x74])](_0x276e06([0x2e]));return _0x592c19[_0x276e06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2643f6=>_0x2643f6[_0x276e06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x276e06([0x2a])))[_0x276e06([0x6d,0x61,0x70])](_0x5836fa=>_0x5836fa[_0x276e06([0x73,0x70,0x6c,0x69,0x74])](_0x276e06([0x2e])))[_0x276e06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8b150c=>_0x8b150c[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ec283[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x276e06([0x6d,0x61,0x70])](_0x458f04=>Array(_0x3ec283[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x458f04[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x276e06([0x66,0x69,0x6c,0x6c])](_0x458f04[0x0]===_0x276e06([0x2a])?_0x276e06([0x2a]):'')[_0x276e06([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x458f04))[_0x276e06([0x73,0x6f,0x6d,0x65])](_0x11ad6d=>_0x3ec283[_0x276e06([0x65,0x76,0x65,0x72,0x79])]((_0x1c4ccd,_0x259870)=>_0x11ad6d[_0x259870]===_0x1c4ccd||_0x11ad6d[_0x259870]===_0x276e06([0x2a])));}function _0x3f6258(){return _0xefc7c3&&_0x30ba52?new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x211efe,_0x28dd23)=>{_0xefc7c3[_0x276e06([0x74,0x68,0x65,0x6e])](_0x211efe,_0x28dd23),_0x30ba52[_0x276e06([0x74,0x68,0x65,0x6e])](_0x3546f3=>{_0x3546f3!=_0x276e06([0x56,0x61,0x6c,0x69,0x64])&&_0x211efe(_0x3546f3);},_0x28dd23);}):_0xefc7c3||_0x30ba52||_0x276e06([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38c1a2(_0x51d88a,_0x511db6){return new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b5b3=>{if(_0x34f8d0())return _0x53b5b3(_0x276e06([0x56,0x61,0x6c,0x69,0x64]));_0x159286(),_0x3e107f[_0x276e06([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x276e06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1805b1=!0x1;const _0x171869=_0x447db1();function _0x436d94(_0x12a58d){return!!_0x12a58d&&(typeof _0x12a58d===_0x276e06([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12a58d===_0x276e06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12a58d[_0x276e06([0x74,0x68,0x65,0x6e])]===_0x276e06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12a58d[_0x276e06([0x63,0x61,0x74,0x63,0x68])]===_0x276e06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x171be6(_0x566f2c){_0x5b7e80(_0x566f2c)[_0x276e06([0x74,0x68,0x65,0x6e])](_0x35ab56=>{if(!_0x35ab56||_0x35ab56[_0x276e06([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x276e06([0x6f,0x6b]))return _0x276e06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15b377(_0xad1332(_0x171869+_0x511db6))!=_0x35ab56[_0x276e06([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x276e06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x276e06([0x56,0x61,0x6c,0x69,0x64]);})[_0x276e06([0x74,0x68,0x65,0x6e])](_0x4a0a97=>(_0x368a67(),_0x4a0a97),()=>{const _0x4d2794=_0x12a3c7();return null==_0x4d2794?(_0x368a67(),_0x276e06([0x56,0x61,0x6c,0x69,0x64])):_0x276e06(_0xd1b9ab-_0x4d2794>(0x63ae0106^_0x347098)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x276e06([0x74,0x68,0x65,0x6e])](_0x53b5b3)[_0x276e06([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53b5b3(_0x276e06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e206c=0x47946b86^_0x347098;function _0x368a67(){const _0x36ff75=_0x276e06([0x6c,0x6c,0x63,0x74,0x2d])+_0x15b377(_0xad1332(_0x51d88a)),_0x3b8f62=_0x3f27c9(_0x15b377(window[_0x276e06([0x4d,0x61,0x74,0x68])][_0x276e06([0x63,0x65,0x69,0x6c])](_0xd1b9ab/_0x5e206c)));window[_0x276e06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x276e06([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36ff75,_0x3b8f62);}function _0x12a3c7(){const _0x16ef5d=_0x276e06([0x6c,0x6c,0x63,0x74,0x2d])+_0x15b377(_0xad1332(_0x51d88a)),_0x54f85b=window[_0x276e06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x276e06([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ef5d);return _0x54f85b?window[_0x276e06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f27c9(_0x54f85b),0x10)*_0x5e206c:null;}function _0x5b7e80(_0x4f19a2){return new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d61dc,_0x2bddd0)=>{_0x4f19a2[_0x276e06([0x74,0x68,0x65,0x6e])](_0x5d61dc,_0x2bddd0),window[_0x276e06([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bddd0,0x47a351c6^_0x347098);});}}_0x3e107f[_0x276e06([0x6f,0x6e])](_0x276e06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1eded6,_0x1377e9)=>{if(_0x1377e9[0x0]!=_0x51d88a)return _0x53b5b3(_0x276e06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1377e9[0x1]={..._0x1377e9[0x1],[_0x276e06([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x171869};},{[_0x276e06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x276e06([0x68,0x69,0x67,0x68])}),_0x3e107f[_0x276e06([0x6f,0x6e])](_0x276e06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cf39c=>{_0x436d94(_0x2cf39c[_0x276e06([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1805b1=!0x0,_0x171be6(_0x2cf39c[_0x276e06([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x276e06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x276e06([0x6c,0x6f,0x77])}),_0x372af0[_0x276e06([0x74,0x68,0x65,0x6e])](()=>{_0x1805b1||_0x53b5b3(_0x276e06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34f8d0(){return _0x3e107f[_0x276e06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x276e06([0x76,0x69,0x65,0x77])][_0x276e06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x276e06([0x61,0x75,0x74,0x6f]);}function _0x159286(){_0x3e107f[_0x276e06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x276e06([0x76,0x69,0x65,0x77])][_0x276e06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x276e06([0x61,0x75,0x74,0x6f]);}}function _0xb5a3d2(_0xe08309){const _0x555934=[new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29c79b=>setTimeout(_0x29c79b,0x47abbbca^_0x347098)),_0x372af0[_0x276e06([0x74,0x68,0x65,0x6e])](()=>new window[(_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23c8a2=>{let _0x2ecef9=0x0;_0x3e107f[_0x276e06([0x6d,0x6f,0x64,0x65,0x6c])][_0x276e06([0x6f,0x6e])](_0x276e06([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x291b8a,_0x1d2032)=>{_0x1d2032[0x0][_0x276e06([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ecef9++,_0x2ecef9==(0x47a284fe^_0x347098)&&(_0x23c8a2(),_0x291b8a[_0x276e06([0x6f,0x66,0x66])]());});}))];return window[_0x276e06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x276e06([0x72,0x61,0x63,0x65])](_0x555934)[_0x276e06([0x74,0x68,0x65,0x6e])](()=>_0xe08309);}async function _0x161510(){await _0x372af0,_0x3e107f[_0x276e06([0x6d,0x6f,0x64,0x65,0x6c])][_0x276e06([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cfdbf,_0x3e107f[_0x276e06([0x6d,0x6f,0x64,0x65,0x6c])][_0x276e06([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cfdbf,_0x3e107f[_0x276e06([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x276e06([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ecc24(_0x29830b){const _0x400898=_0x13a58d();_0x3e107f[_0x400898]=_0x276e06([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29830b,_0x29830b!=_0x276e06([0x56,0x61,0x6c,0x69,0x64])&&_0x161510();}function _0x13a58d(){const _0xd751ab=window[_0x276e06([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x276e06([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x276e06([0x6e,0x6f,0x77])]())[_0x276e06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x276e06([0x2e]),'');let _0x195619=_0x276e06([0x75]);for(let _0x584a90=0x0;_0x584a90<_0xd751ab[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x584a90+=0x2){let _0x105ade=window[_0x276e06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd751ab[_0x276e06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x584a90,_0x584a90+0x2));_0x105ade>=_0x59d02e[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x105ade-=_0x59d02e[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x195619+=_0x59d02e[_0x105ade];}return _0x195619;}function _0x236946(){const _0x1e8989=_0x1305a8[_0x276e06([0x73,0x70,0x6c,0x69,0x74])](_0x276e06([0x2e]));if(0x3!=_0x1e8989[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5171f8(_0x1e8989[0x1]);function _0x5171f8(_0x5c8fed){const _0x2c33d4=_0x3117f0(_0x5c8fed);return _0x2c33d4&&_0x355875()?_0x2c33d4:null;function _0x355875(){const _0x4788ea=_0x2c33d4[_0x276e06([0x6a,0x74,0x69])],_0x4241de=window[_0x276e06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4788ea[_0x276e06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4788ea[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ea94c={..._0x2c33d4,[_0x276e06([0x6a,0x74,0x69])]:_0x4788ea[_0x276e06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4788ea[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ea94c[_0x276e06([0x76,0x63])],_0xad1332(_0x3ea94c)==_0x4241de;}}}async function _0x4931df(){let _0x18bf3a=!0x0;try{const _0x22b576=_0x1305a8[_0x276e06([0x73,0x70,0x6c,0x69,0x74])](_0x276e06([0x2e])),[_0x577bef,_0x20855a,_0x59e649]=_0x22b576;return _0x139c03(_0x577bef),await _0x5ad03a(_0x577bef,_0x20855a,_0x59e649),_0x18bf3a;}catch{return!0x1;}function _0x139c03(_0x51f482){const _0x527ad6=_0x3117f0(_0x51f482);_0x527ad6&&_0x527ad6[_0x276e06([0x61,0x6c,0x67])]==_0x276e06([0x45,0x53,0x32,0x35,0x36])||(_0x18bf3a=!0x1);}async function _0x5ad03a(_0x2ec6d0,_0x2b51ac,_0x7b09d6){const _0x18016c=window[_0x276e06([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x276e06([0x66,0x72,0x6f,0x6d])](_0x3c2d31(_0x7b09d6),_0x7e5eeb=>_0x7e5eeb[_0x276e06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x464b86=new window[(_0x276e06([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x276e06([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ec6d0+_0x276e06([0x2e])+_0x2b51ac),_0x262121=window[_0x276e06([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x276e06([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x262121)return;const _0x2bb2f5=await _0x262121[_0x276e06([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x276e06([0x6a,0x77,0x6b]),_0x516cd8,{[_0x276e06([0x6e,0x61,0x6d,0x65])]:_0x276e06([0x45,0x43,0x44,0x53,0x41]),[_0x276e06([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x276e06([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x276e06([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x262121[_0x276e06([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x276e06([0x6e,0x61,0x6d,0x65])]:_0x276e06([0x45,0x43,0x44,0x53,0x41]),[_0x276e06([0x68,0x61,0x73,0x68])]:{[_0x276e06([0x6e,0x61,0x6d,0x65])]:_0x276e06([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bb2f5,_0x18016c,_0x464b86)||(_0x18bf3a=!0x1);}}function _0x3117f0(_0x2886a7){return _0x2886a7[_0x276e06([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x276e06([0x65,0x79]))?JSON[_0x276e06([0x70,0x61,0x72,0x73,0x65])](_0x3c2d31(_0x2886a7)):null;}function _0x3c2d31(_0x541a61){return window[_0x276e06([0x61,0x74,0x6f,0x62])](_0x541a61[_0x276e06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x276e06([0x2b]))[_0x276e06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x276e06([0x2f])));}function _0xad1332(_0x251f50){let _0x229c5c=0x1505;function _0x533a8c(_0x5a7b73){for(let _0x1e5bb7=0x0;_0x1e5bb7<_0x5a7b73[_0x276e06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e5bb7++){const _0x4c753=_0x5a7b73[_0x276e06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e5bb7);_0x229c5c=(_0x229c5c<<0x5)+_0x229c5c+_0x4c753,_0x229c5c&=_0x229c5c;}}function _0x42c0a9(_0x374d15){Array[_0x276e06([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x374d15)?_0x374d15[_0x276e06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42c0a9):_0x374d15&&typeof _0x374d15==_0x276e06([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x276e06([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x374d15)[_0x276e06([0x73,0x6f,0x72,0x74])]()[_0x276e06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x547325,_0x12e0bd])=>{_0x533a8c(_0x547325),_0x42c0a9(_0x12e0bd);}):_0x533a8c(window[_0x276e06([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x374d15));}return _0x42c0a9(_0x251f50),_0x229c5c>>>0x0;}function _0x15b377(_0xc950c6){return _0xc950c6[_0x276e06([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x276e06([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x276e06([0x30]));}function _0x3f27c9(_0xaecf74){return _0xaecf74[_0x276e06([0x73,0x70,0x6c,0x69,0x74])]('')[_0x276e06([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x276e06([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cfdbf(){}function _0x276e06(_0x4d4602){return _0x4d4602['map'](_0x52dbaf=>String['fromCharCode'](_0x52dbaf))['join']('');}_0x1ecc24(await _0x4d97fa());}(this);}['_moveSelectionToFootnoteDefinition'](_0x165a6e){const {plugins:_0x41e990,editing:_0x19115c,model:_0x9d90d6}=this['editor'],_0x44354b=_0x41e990['get'](_0x29fca4)['getFootnote'](_0x165a6e);return!!_0x44354b&&(_0x9d90d6['change'](_0xcf8784=>{_0xcf8784['setSelection'](_0xcf8784['createPositionAt'](_0x44354b['definition'],'end'));}),_0x19115c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2ed14e){const {plugins:_0x2465dc,editing:_0x29d76b,model:_0x55346d}=this['editor'],_0x519efa=_0x2465dc['get'](_0x29fca4)['getFootnote'](_0x2ed14e);return!!_0x519efa&&(_0x55346d['change'](_0x392ae4=>{_0x392ae4['setSelection'](_0x519efa['reference'],'on');}),_0x29d76b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x395577}=this['editor']['model'],_0x541f26=this['editor']['config']['get']('footnotes.multiBlock');_0x395577['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x395577['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x395577['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x541f26?_0x395577['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x395577['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x395577['addChildCheck'](_0x2e82d4=>{for(const _0x486fc8 of _0x2e82d4)if('footnoteDefinition'===_0x486fc8['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2558ce}=this,{conversion:_0x99b850,editing:_0x17726d}=_0x2558ce,{t:t}=_0x2558ce['locale'];_0x99b850['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4258e8,{writer:_0xf934a1,consumable:_0x1f5eaf})=>{const _0xdde43a=_0x4258e8['getChild'](0x0);if(!_0xdde43a||!_0xdde43a['is']('element','a'))return null;const _0x745f25=_0xdde43a['getAttribute']('href')||'';if(!_0x745f25['startsWith']('#'))return null;const _0x1cc076=_0x745f25['replace'](/^#/,'');if(!_0x1cc076)return null;_0x1f5eaf['consume'](_0xdde43a,{'name':!0x0,'attributes':['href']});for(const {item:_0x36540f}of _0x17726d['view']['createRangeIn'](_0xdde43a))_0x36540f['is']('$textProxy')?_0x1f5eaf['consume'](_0x36540f['textNode'],{'name':!0x0}):_0x36540f['is']('element')&&_0x1f5eaf['consume'](_0x36540f,{'name':!0x0});return _0xf934a1['createElement']('footnoteRef',{'footnoteId':_0x1cc076});}}),_0x99b850['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x33920a,{writer:_0x1c82d7})=>D(_0x33920a,_0x1c82d7)}),_0x99b850['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1cdf95,{writer:_0x1c5b6b})=>{const _0x4896c1=_0x1cdf95['getAttribute']('footnoteCounter');return _0x4229e5(D(_0x1cdf95,_0x1c5b6b),_0x1c5b6b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4896c1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2c79cd}=this,{t:t}=_0x2c79cd['locale'],{conversion:_0x6feb4a}=_0x2c79cd;_0x6feb4a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x6feb4a['for']('upcast')['add'](_0x31a036=>{_0x31a036['on']('element:ol',(_0x2cc9a6,_0x559b0e,_0x3f053b)=>{const _0x579c51=_0x559b0e['viewItem'];if(!_0x579c51['hasClass']('footnotes-list')||!_0x559b0e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3f053b['consumable']['consume'](_0x579c51,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1db5c6,modelCursor:_0x18e87c}=_0x3f053b['convertChildren'](_0x559b0e['viewItem'],_0x559b0e['modelCursor']);_0x559b0e['modelRange']=_0x1db5c6,_0x559b0e['modelCursor']=_0x18e87c;}),_0x31a036['on']('element:hr',(_0x2e6b76,_0x32c8eb,_0x4121b8)=>{const _0x5500f1=_0x32c8eb['viewItem'];_0x5500f1['hasClass']('footnotes-divider')&&_0x32c8eb['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4121b8['consumable']['consume'](_0x5500f1,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x6feb4a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x27305c,{writer:_0x35f7e0})=>v(_0x35f7e0)}),_0x6feb4a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x384add,{writer:_0x3f4f5d})=>{const _0x506c74=v(_0x3f4f5d,{'data-footnotes-list-label':t('Footnotes')}),_0x5ab11d=_0x4229e5(_0x506c74,_0x3f4f5d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3f4f5d['setCustomProperty']('footnotesDefinitions',!0x0,_0x5ab11d),_0x5ab11d;}});}['_defineDefinitionConverters'](){const {editor:_0x815921}=this,{conversion:_0x521c37,locale:_0x42430e}=_0x815921,_0x271330=_0x815921['config']['get']('footnotes.multiBlock');_0x521c37['for']('upcast')['add'](_0x1b361f=>{_0x1b361f['on']('element:li',(_0x5d7947,_0x3689c9,_0x26c91f)=>{const _0x4bd3cc=_0x3689c9['viewItem'];if(!_0x4bd3cc['hasClass']('footnote-definition')||!_0x4bd3cc['getAttribute']('id'))return;const _0x57336f=_0x4bd3cc['parent'];if(!_0x57336f['is']('element','ol')||!_0x57336f['hasClass']('footnotes-list'))return;if(!_0x26c91f['consumable']['test'](_0x4bd3cc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x17f9b8=_0x26c91f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4bd3cc['getAttribute']('id')});if(!_0x26c91f['safeInsert'](_0x17f9b8,_0x3689c9['modelCursor']))return;_0x26c91f['consumable']['consume'](_0x4bd3cc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4d00bd=Array['from'](_0x4bd3cc['getChildren']())['find'](_0x7dbfd3=>_0x7dbfd3['is']('element')&&_0x7dbfd3['hasClass']('footnote-content'));for(const _0x3ff0f5 of _0x4bd3cc['getChildren']())_0x3ff0f5['is']('element')&&(_0x26c91f['consumable']['consume'](_0x3ff0f5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x26c91f['consumable']['consume'](_0x3ff0f5,{'name':!0x0,'classes':'footnote-content'}));if(_0x4d00bd){if(_0x271330)_0x26c91f['convertChildren'](_0x4d00bd,_0x17f9b8);else{const _0x4cc040=_0x26c91f['writer']['createElement']('footnoteInlineContent');_0x26c91f['writer']['insert'](_0x4cc040,_0x17f9b8),_0x26c91f['convertChildren'](_0x4d00bd,_0x4cc040);}}_0x26c91f['updateConversionResult'](_0x17f9b8,_0x3689c9);});}),_0x521c37['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x40f21b,{writer:_0x54ea38})=>b(_0x40f21b,_0x54ea38,_0x42430e,{'dataPipeline':!0x0})}),_0x521c37['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x526a48,{writer:_0x390107})=>b(_0x526a48,_0x390107,_0x42430e)});}['_defineBogusParagraphConverters'](){const {editor:_0x16e522}=this,{conversion:_0x40c3fa}=_0x16e522;_0x16e522['config']['get']('footnotes.multiBlock')?(_0x40c3fa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x40c3fa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x16e522['model']['document'],'change:data',()=>{!function(_0x714def,_0x50a68f){const _0x467d7f=_0x714def['document']['differ'],_0x126f4e=new Set();for(const _0x3b16e2 of _0x467d7f['getChanges']()){const _0x28e0c7='attribute'==_0x3b16e2['type']?_0x3b16e2['range']['start']['parent']:_0x3b16e2['position']['parent'];_0x28e0c7['is']('element','footnoteDefinition')&&_0x126f4e['add'](_0x28e0c7);}for(const _0x3de18d of _0x126f4e['values']()){const _0x4558aa=Array['from'](_0x3de18d['getChildren']())['filter'](_0x21e932=>g(_0x21e932,_0x50a68f['mapper']));for(const _0x255179 of _0x4558aa)_0x50a68f['reconvertItem'](_0x255179);}}(_0x16e522['model'],_0x16e522['editing']);})):(_0x40c3fa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x40c3fa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1e1976,{writer:_0x2c2518})=>{const _0x32e5b1=_0x2c2518['createContainerElement']('span');return _0x2c2518['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x32e5b1),_0x32e5b1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2c72fe}=this,{editing:_0x915b52,t:t}=_0x2c72fe,_0x4e9ce3=_0x2c72fe['model']['document']['selection'];_0x2c72fe['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2c72fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x915b52['view']['document'],'enter',(_0x379e52,_0x15c7bb)=>{const _0x116ea3=function(_0x2e425b){const _0x121065=_0x2e425b['getSelectedElement']();if(_0x121065?.['is']('element','footnoteRef'))return _0x121065;return null;}(_0x4e9ce3);if(_0x116ea3){const _0x110da7=_0x116ea3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x110da7),_0x15c7bb['preventDefault'](),_0x379e52['stop']();}},{'context':_0x5e9dfa});}['_defineClickHandlers'](){const {editor:_0x197455}=this,{editing:_0xbc47eb}=_0x197455;_0x197455['editing']['view']['addObserver'](_0x252ea5),_0x197455['editing']['view']['addObserver'](_0x1c7011);let _0x5b5218=!0x1;this['listenTo'](_0xbc47eb['view']['document'],'pointerdown',(_0xec309b,_0x2d319b)=>{const {target:_0x34a1dc}=_0x2d319b,_0x589223=_0xbc47eb['view']['document']['selection'];_0x5b5218=!!(_0x34a1dc?.['is']('element','a')&&_0x34a1dc['parent']?.['is']('element','sup')&&_0x34a1dc['parent']['hasClass']('footnote'))&&_0x589223['getSelectedElement']()===_0x34a1dc['parent'];},{'priority':'high'}),this['listenTo'](_0xbc47eb['view']['document'],'click',(_0x16329c,_0x1bdaae)=>{const {target:_0x22d41e}=_0x1bdaae;if(!_0x22d41e?.['is']('element','a'))return;if(_0x22d41e['parent']?.['is']('element','sup')&&_0x22d41e['parent']['hasClass']('footnote')&&!_0x5b5218)return void _0x1bdaae['preventDefault']();let _0x357ac6=_0x22d41e['getAttribute']('href');if(!_0x357ac6?.['startsWith']('#'))return;_0x357ac6=_0x357ac6['slice'](0x1);let _0x595bdb=!0x1;(_0x357ac6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x357ac6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x357ac6))&&(_0x595bdb=!0x0),_0x595bdb&&(_0x1bdaae['preventDefault'](),_0x16329c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1c13d5}={}){return(_0x1c74d2,{writer:_0x44b529})=>{if(!p(_0x1c74d2))return null;if(!_0x1c13d5)return _0x44b529['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x58b527=_0x44b529['createContainerElement']('p');return _0x44b529['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x58b527),_0x58b527;};}function p(_0x25f400){const {parent:_0x4e6ba4}=_0x25f400;if(!_0x4e6ba4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4e6ba4['childCount'])return!0x1;for(const _0x4ef128 of _0x25f400['getAttributeKeys']())if(!_0x4ef128['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4ef128)return!0x1;return!0x0;}function g(_0xe7936,_0x4e7ba3){if(!_0xe7936['is']('element','paragraph'))return!0x1;const _0x42a4bd=_0x4e7ba3['toViewElement'](_0xe7936);return!!_0x42a4bd&&p(_0xe7936)!==_0x42a4bd['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x5f557b){return _0x5e9dfa(_0x5f557b)&&_0x5f557b['is']('containerElement')&&!!_0x5f557b['getCustomProperty']('footnotesDefinitions');}function v(_0x4be3bf,_0x2bae41={}){const _0x1ee3d1=_0x4be3bf['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1ead80=_0x4be3bf['createContainerElement']('ol',{'class':'footnotes-list'},_0x4be3bf['createSlot']());return _0x4be3bf['createContainerElement']('div',{'class':'footnotes',..._0x2bae41},[_0x1ee3d1,_0x1ead80]);}function D(_0x466c4f,_0x4bc123){const _0x57a92d=_0x466c4f['getAttribute']('footnoteId'),_0x4574f3=_0x466c4f['getAttribute']('footnoteCounter'),_0x2e02ea=_0x4bc123['createUIElement']('a',{'href':'#'+_0x57a92d},function(_0x17af7d){const _0x5f192a=this['toDomElement'](_0x17af7d);return _0x5f192a['textContent']=_0x4574f3,_0x5f192a;}),_0x362523=_0x4bc123['createContainerElement']('sup',{'id':'ref-'+_0x57a92d,'class':'footnote'},[_0x2e02ea]);return _0x362523['getFillerOffset']=()=>null,_0x362523;}function b(_0x9e1bc7,_0x455b2c,_0x3b7a7b,{dataPipeline:_0x3e38e4}={}){const {t:t}=_0x3b7a7b,_0x2ba613=_0x9e1bc7['getAttribute']('footnoteId'),_0x5455e8=_0x455b2c['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2ba613},function(_0x530d24){const _0x41a00a=this['toDomElement'](_0x530d24);return _0x41a00a['innerText']='^',_0x41a00a;}),_0x36be3d=_0x3e38e4?_0x455b2c['createContainerElement']('div',{'class':'footnote-content'}):_0x4c32a9(_0x455b2c['createEditableElement']('div',{'class':'footnote-content'}),_0x455b2c,{'label':t('Footnote\x20content.')});return _0x455b2c['insert'](_0x455b2c['createPositionAt'](_0x36be3d,0x0),_0x455b2c['createSlot']()),_0x455b2c['createContainerElement']('li',{'class':'footnote-definition','id':_0x2ba613},[_0x5455e8,_0x36be3d]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x7c3b12=_0x2809;function _0x5172(){const _0x13e5dc=['8DAKzjv','isInteger','change','901928pibjVI','971073jOgcpV','footnotesListStart','_updateFootnotesCounters','320054eXhNmA','setAttribute','plugins','20rBcYHe','get','model','316368YnHVit','1015818xolXWH','16518EhdSgv','execute','getAttribute','getFootnotesDefinitionsObjectElement','isEnabled','854gnrFos','5jFynpe','value','1955074wZEyfv','refresh'];_0x5172=function(){return _0x13e5dc;};return _0x5172();}function _0x2809(_0x277332,_0x1724a3){const _0x5172bd=_0x5172();return _0x2809=function(_0x28098f,_0x2c89ca){_0x28098f=_0x28098f-0x13c;let _0x3b6438=_0x5172bd[_0x28098f];return _0x3b6438;},_0x2809(_0x277332,_0x1724a3);}(function(_0x15f475,_0x5b256e){const _0x1e0110=_0x2809,_0x998667=_0x15f475();while(!![]){try{const _0x2559f3=parseInt(_0x1e0110(0x144))/0x1+-parseInt(_0x1e0110(0x13e))/0x2+-parseInt(_0x1e0110(0x145))/0x3+parseInt(_0x1e0110(0x153))/0x4*(parseInt(_0x1e0110(0x14c))/0x5)+-parseInt(_0x1e0110(0x146))/0x6*(parseInt(_0x1e0110(0x14b))/0x7)+parseInt(_0x1e0110(0x150))/0x8*(parseInt(_0x1e0110(0x154))/0x9)+parseInt(_0x1e0110(0x141))/0xa*(parseInt(_0x1e0110(0x14e))/0xb);if(_0x2559f3===_0x5b256e)break;else _0x998667['push'](_0x998667['shift']());}catch(_0x3e3f85){_0x998667['push'](_0x998667['shift']());}}}(_0x5172,0x29adc));import{Command as _0x182422}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x299dfa}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x182422{[_0x7c3b12(0x14f)](){const _0x4ccf6e=_0x7c3b12,{editor:_0x1a1b8f}=this,_0x6a9b09=_0x1a1b8f[_0x4ccf6e(0x140)][_0x4ccf6e(0x142)](_0x299dfa)[_0x4ccf6e(0x149)]();this[_0x4ccf6e(0x14a)]=!!_0x6a9b09,this[_0x4ccf6e(0x14d)]=_0x6a9b09?.[_0x4ccf6e(0x148)](_0x4ccf6e(0x13c))??null;}[_0x7c3b12(0x147)]({value:_0x1d684d}){const _0x512fc6=_0x7c3b12,{editor:_0x118612}=this,_0x5760f6=_0x118612[_0x512fc6(0x140)][_0x512fc6(0x142)](_0x299dfa),_0x538005=_0x5760f6[_0x512fc6(0x149)]();_0x538005&&Number[_0x512fc6(0x151)](_0x1d684d)&&_0x118612[_0x512fc6(0x143)][_0x512fc6(0x152)](_0x5bd5f9=>{const _0x550a94=_0x512fc6;_0x5bd5f9[_0x550a94(0x13f)](_0x550a94(0x13c),_0x1d684d,_0x538005),_0x5760f6[_0x550a94(0x13d)](_0x5bd5f9);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d49aa=_0x1350;(function(_0x16dea2,_0x3e515c){const _0x3ab1b9=_0x1350,_0x39b88d=_0x16dea2();while(!![]){try{const _0x40370b=-parseInt(_0x3ab1b9(0x11c))/0x1*(parseInt(_0x3ab1b9(0x124))/0x2)+parseInt(_0x3ab1b9(0x125))/0x3*(-parseInt(_0x3ab1b9(0x127))/0x4)+parseInt(_0x3ab1b9(0x122))/0x5+parseInt(_0x3ab1b9(0x11e))/0x6+parseInt(_0x3ab1b9(0x116))/0x7*(parseInt(_0x3ab1b9(0x11f))/0x8)+-parseInt(_0x3ab1b9(0x118))/0x9+parseInt(_0x3ab1b9(0x11d))/0xa;if(_0x40370b===_0x3e515c)break;else _0x39b88d['push'](_0x39b88d['shift']());}catch(_0x52b36a){_0x39b88d['push'](_0x39b88d['shift']());}}}(_0x2a2a,0x5afbd));function _0x1350(_0x2ef8c4,_0x31f725){const _0x2a2a9c=_0x2a2a();return _0x1350=function(_0x13509d,_0x187436){_0x13509d=_0x13509d-0x111;let _0x1f9132=_0x2a2a9c[_0x13509d];return _0x1f9132;},_0x1350(_0x2ef8c4,_0x31f725);}import{Command as _0x1b4c2f}from'ckeditor5/src/core.js';function _0x2a2a(){const _0x5edab7=['8680860LcgUim','1200384zYBkRG','8vOoImK','plugins','includes','837730LqqGAE','footnotesListStyle','50xAzQFu','3BjsHrR','get','188756TLyRoC','_updateFootnotesCounters','change','execute','isEnabled','setAttribute','getAttribute','1775858UNReuv','value','6129063encOik','model','refresh','getFootnotesDefinitionsObjectElement','15541cMFqCq'];_0x2a2a=function(){return _0x5edab7;};return _0x2a2a();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x4ef09f}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1c1111}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1b4c2f{[_0x5d49aa(0x11a)](){const _0x556a04=_0x5d49aa,{editor:_0x590601}=this,_0x4edf5c=_0x590601[_0x556a04(0x120)][_0x556a04(0x126)](_0x1c1111)[_0x556a04(0x11b)]();this[_0x556a04(0x113)]=!!_0x4edf5c,this[_0x556a04(0x117)]=_0x4edf5c?.[_0x556a04(0x115)](_0x556a04(0x123))??null;}[_0x5d49aa(0x112)]({value:_0xe1f835}){const _0x42f4bf=_0x5d49aa,{editor:_0x4e2ec8}=this,_0x16d943=_0x4e2ec8[_0x42f4bf(0x120)][_0x42f4bf(0x126)](_0x1c1111),_0x353bd1=_0x16d943[_0x42f4bf(0x11b)]();_0x353bd1&&_0x4ef09f[_0x42f4bf(0x121)](_0xe1f835)&&_0x4e2ec8[_0x42f4bf(0x119)][_0x42f4bf(0x111)](_0x128a79=>{const _0x515246=_0x42f4bf;_0x128a79[_0x515246(0x114)](_0x515246(0x123),_0xe1f835,_0x353bd1),_0x16d943[_0x515246(0x128)](_0x128a79);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x38e385=_0x2f2a;(function(_0x3402b2,_0x4206a8){const _0x587e2a=_0x2f2a,_0x3ba3fa=_0x3402b2();while(!![]){try{const _0xe8d9d5=-parseInt(_0x587e2a(0x162))/0x1*(parseInt(_0x587e2a(0x16b))/0x2)+parseInt(_0x587e2a(0x16d))/0x3+-parseInt(_0x587e2a(0x163))/0x4+parseInt(_0x587e2a(0x161))/0x5+-parseInt(_0x587e2a(0x15e))/0x6*(-parseInt(_0x587e2a(0x160))/0x7)+parseInt(_0x587e2a(0x168))/0x8+-parseInt(_0x587e2a(0x165))/0x9*(-parseInt(_0x587e2a(0x166))/0xa);if(_0xe8d9d5===_0x4206a8)break;else _0x3ba3fa['push'](_0x3ba3fa['shift']());}catch(_0x43909d){_0x3ba3fa['push'](_0x3ba3fa['shift']());}}}(_0x3258,0x2366b));function _0x2f2a(_0x4a1db8,_0x3b21af){const _0x325861=_0x3258();return _0x2f2a=function(_0x2f2a24,_0x278e68){_0x2f2a24=_0x2f2a24-0x15c;let _0x1c780b=_0x325861[_0x2f2a24];return _0x1c780b;},_0x2f2a(_0x4a1db8,_0x3b21af);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x38e385(0x15c),_0x38e385(0x164),_0x38e385(0x16a),_0x38e385(0x16c),_0x38e385(0x15d),_0x38e385(0x169),_0x38e385(0x167),_0x38e385(0x15f)];function _0x3258(){const _0x3b3910=['lower-alpha','30UmgHYt','upper-roman','184961fKVevj','833405mZCkCO','1iFoyBd','1126012NTyVfr','decimal-leading-zero','852534RNOdjB','20YUXGhU','lower-roman','940056qPOIQu','upper-alpha','lower-latin','433942bhNoxm','upper-latin','113166eCZVtl','decimal'];_0x3258=function(){return _0x3b3910;};return _0x3258();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xeb1b93=_0x6a8c;function _0x5bde(){const _0x51c019=['1781356fViWVK','attribute:footnotesListStyle:footnotesDefinitions','padStart','parent','toUpperCase','define','isOfficialPlugin','setStyle','removeAttribute','attribute:footnotesListStart:footnotesDefinitions','from','plugins','find','parseInt','toLowerCase','FootnotesPropertiesEditing','footnotesDefinitions','nodeAfter','document','897599QoWZHR','downcast','decimal','insert','model','lower-roman','item','decimal-leading-zero','removeStyle','element:ol','modelCursor','244605YRvjUV','isPremiumPlugin','upcast','writer','editor','floor','schema','createRangeOn','footnotesListStart','for','_defineConverters','max','getStyle','position','toViewElement','2287665KqIrMg','setFootnoteFormatter','requires','isNaN','list-style-type','mapper','_formatFootnoteListValue','start','_updateFootnotesCounters','_getDefaultStartIndex','commands','getChildren','8501528VztcUF','footnotesListStyle','consume','hasClass','upper-roman','189301AblzLP','extend','getAttribute','registerPostFixer','checkAttribute','consumable','type','_defineSchema','_definePostfixer','$text','setAttribute','get','hasAttribute','footnotesStart','footnotes.footnotesProperties.defaultListStyle','element','14xbsmPw','lower-alpha','20446320ynImDT','lower-latin','pluginName','add','getItems','_defineFormatter','footnotes-list','viewItem','init','upper-alpha','config','footnotes.footnotesProperties.defaultStartIndex','getChanges','fromCharCode','footnotesStyle','name','differ','5luSgvc','_getDefaultListStyle','276fkekvi','upper-latin'];_0x5bde=function(){return _0x51c019;};return _0x5bde();}function _0x6a8c(_0x3d344c,_0x209f02){const _0x5bde7c=_0x5bde();return _0x6a8c=function(_0x6a8cc3,_0x586e71){_0x6a8cc3=_0x6a8cc3-0xf5;let _0x3f7f11=_0x5bde7c[_0x6a8cc3];return _0x3f7f11;},_0x6a8c(_0x3d344c,_0x209f02);}(function(_0x36dc10,_0x40616e){const _0x31bc73=_0x6a8c,_0x1c6912=_0x36dc10();while(!![]){try{const _0x2fff52=parseInt(_0x31bc73(0x14f))/0x1+-parseInt(_0x31bc73(0x125))/0x2*(parseInt(_0x31bc73(0xf5))/0x3)+parseInt(_0x31bc73(0x13c))/0x4*(parseInt(_0x31bc73(0x138))/0x5)+parseInt(_0x31bc73(0x13a))/0x6*(parseInt(_0x31bc73(0x115))/0x7)+parseInt(_0x31bc73(0x110))/0x8+-parseInt(_0x31bc73(0x104))/0x9+-parseInt(_0x31bc73(0x127))/0xa;if(_0x2fff52===_0x40616e)break;else _0x1c6912['push'](_0x1c6912['shift']());}catch(_0x3d251a){_0x1c6912['push'](_0x1c6912['shift']());}}}(_0x5bde,0xbe70d));import{Plugin as _0x1900a0}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x314df6}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x44b038}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x204a29}from'../footnotestracker.js';import{FootnotesEditing as _0x4986ce}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1900a0{static get[_0xeb1b93(0x129)](){const _0x2d537a=_0xeb1b93;return _0x2d537a(0x14b);}static get[_0xeb1b93(0x106)](){return[_0x4986ce,_0x204a29];}static get[_0xeb1b93(0x142)](){return!0x0;}static get[_0xeb1b93(0xf6)](){return!0x0;}[_0xeb1b93(0x12f)](){const _0x5ba900=_0xeb1b93,{editor:_0x2880f6}=this;_0x2880f6[_0x5ba900(0x131)][_0x5ba900(0x141)](_0x5ba900(0x123),_0x5ba900(0x151)),_0x2880f6[_0x5ba900(0x131)][_0x5ba900(0x141)](_0x5ba900(0x132),0x1),_0x2880f6[_0x5ba900(0x10e)][_0x5ba900(0x12a)](_0x5ba900(0x135),new _0x314df6(_0x2880f6)),_0x2880f6[_0x5ba900(0x10e)][_0x5ba900(0x12a)](_0x5ba900(0x122),new _0x44b038(_0x2880f6)),this[_0x5ba900(0x11c)](),this[_0x5ba900(0xff)](),this[_0x5ba900(0x12c)](),this[_0x5ba900(0x11d)]();}[_0xeb1b93(0x11c)](){const _0x4023e9=_0xeb1b93,{editor:_0x31e704}=this,{schema:_0x262b77}=_0x31e704[_0x4023e9(0x153)];_0x262b77[_0x4023e9(0x116)](_0x4023e9(0x14c),{'allowAttributes':[_0x4023e9(0x111),_0x4023e9(0xfd)]});}[_0xeb1b93(0xff)](){const _0x3fa0a5=_0xeb1b93,{editor:_0x30c94a}=this,{conversion:_0x1629d2,model:_0x56e9e8}=_0x30c94a,{schema:_0x33cc2e}=_0x56e9e8;_0x1629d2[_0x3fa0a5(0xfe)](_0x3fa0a5(0xf7))[_0x3fa0a5(0x12a)](_0x435db6=>{const _0x32bad7=_0x3fa0a5;_0x435db6['on'](_0x32bad7(0x158),(_0x32c69a,_0x4f2376,_0x57ecd4)=>{const _0x11721c=_0x32bad7,_0x602960=_0x4f2376[_0x11721c(0x12e)],_0x1e221c=_0x4f2376[_0x11721c(0x159)]?.[_0x11721c(0x13f)];_0x602960[_0x11721c(0x113)](_0x11721c(0x12d))&&_0x1e221c?.['is'](_0x11721c(0x124),_0x11721c(0x14c))&&(function(_0x13279c,_0x2b6b12,_0x22e64d,_0x7d495a){const _0x897d5d=_0x11721c;if(!_0x7d495a[_0x897d5d(0x119)](_0x2b6b12,_0x897d5d(0xfd)))return;let _0x39b85f=0x1;const _0xad3937=_0x22e64d[_0x897d5d(0x11a)][_0x897d5d(0x112)](_0x13279c,{'attributes':_0x897d5d(0x10b)});if(_0xad3937){const _0x256fcf=Number[_0x897d5d(0x149)](_0x13279c[_0x897d5d(0x117)](_0x897d5d(0x10b)),0xa);Number[_0x897d5d(0x107)](_0x256fcf)||(_0x39b85f=_0x256fcf);}!_0xad3937&&_0x2b6b12[_0x897d5d(0x121)](_0x897d5d(0xfd))||_0x22e64d[_0x897d5d(0xf8)][_0x897d5d(0x11f)](_0x897d5d(0xfd),_0x39b85f,_0x2b6b12);}(_0x602960,_0x1e221c,_0x57ecd4,_0x33cc2e),function(_0x487749,_0x4f2542,_0x5266e0,_0x51f5c3){const _0x20e99c=_0x11721c;if(!_0x51f5c3[_0x20e99c(0x119)](_0x4f2542,_0x20e99c(0x111)))return;let _0x11ff86=_0x20e99c(0x151),_0x38269e=!0x1;if(_0x5266e0[_0x20e99c(0x11a)][_0x20e99c(0x112)](_0x487749,{'attributes':_0x20e99c(0x11b)})){const _0xa83bd1={0x1:_0x20e99c(0x151),'a':_0x20e99c(0x126),'A':_0x20e99c(0x130),'i':_0x20e99c(0x154),'I':_0x20e99c(0x114)}[_0x487749[_0x20e99c(0x117)](_0x20e99c(0x11b))];_0xa83bd1&&(_0x11ff86=_0xa83bd1),_0x38269e=!0x0;}_0x5266e0[_0x20e99c(0x11a)][_0x20e99c(0x112)](_0x487749,{'styles':_0x20e99c(0x108)})&&(_0x11ff86=function(_0x47f674){const _0x35723b=_0x20e99c;switch(_0x47f674){case _0x35723b(0x126):return _0x35723b(0x128);case _0x35723b(0x130):return _0x35723b(0x13b);default:return _0x47f674;}}(_0x487749[_0x20e99c(0x101)](_0x20e99c(0x108))),_0x38269e=!0x0),!_0x38269e&&_0x4f2542[_0x20e99c(0x121)](_0x20e99c(0x111))||_0x5266e0[_0x20e99c(0xf8)][_0x20e99c(0x11f)](_0x20e99c(0x111),_0x11ff86,_0x4f2542);}(_0x602960,_0x1e221c,_0x57ecd4,_0x33cc2e));});}),_0x1629d2[_0x3fa0a5(0xfe)](_0x3fa0a5(0x150))[_0x3fa0a5(0x12a)](_0x1d3bd6=>{const _0x128a2b=_0x3fa0a5;_0x1d3bd6['on'](_0x128a2b(0x145),(_0x5c9ff6,_0x18c007,_0x1296b2)=>{const _0x14cae8=_0x128a2b;if(!_0x1296b2[_0x14cae8(0x11a)][_0x14cae8(0x112)](_0x18c007[_0x14cae8(0x155)],_0x5c9ff6[_0x14cae8(0x136)]))return;const _0x811077=M(_0x18c007[_0x14cae8(0x155)],_0x1296b2[_0x14cae8(0x109)]),{attributeNewValue:_0x9612b8}=_0x18c007;null==_0x9612b8||0x1===_0x9612b8?_0x1296b2[_0x14cae8(0xf8)][_0x14cae8(0x144)](_0x14cae8(0x10b),_0x811077):_0x1296b2[_0x14cae8(0xf8)][_0x14cae8(0x11f)](_0x14cae8(0x10b),String(_0x9612b8),_0x811077);}),_0x1d3bd6['on'](_0x128a2b(0x13d),(_0x3fc81f,_0x425256,_0x2d0115)=>{const _0x1478b2=_0x128a2b;if(!_0x2d0115[_0x1478b2(0x11a)][_0x1478b2(0x112)](_0x425256[_0x1478b2(0x155)],_0x3fc81f[_0x1478b2(0x136)]))return;const _0x2ecf30=M(_0x425256[_0x1478b2(0x155)],_0x2d0115[_0x1478b2(0x109)]),{attributeNewValue:_0x4c44da}=_0x425256;_0x4c44da&&_0x1478b2(0x151)!==_0x4c44da?_0x2d0115[_0x1478b2(0xf8)][_0x1478b2(0x143)](_0x1478b2(0x108),_0x4c44da,_0x2ecf30):_0x2d0115[_0x1478b2(0xf8)][_0x1478b2(0x157)](_0x1478b2(0x108),_0x2ecf30);});});}[_0xeb1b93(0x11d)](){const _0x53d9ab=_0xeb1b93,{editor:_0xe1965}=this,{model:_0x535ff7}=_0xe1965,_0x5a1bf4=_0xe1965[_0x53d9ab(0x147)][_0x53d9ab(0x120)](_0x204a29),_0x3bb728=this[_0x53d9ab(0x139)](),_0x52921b=this[_0x53d9ab(0x10d)]();_0x535ff7[_0x53d9ab(0x14e)][_0x53d9ab(0x118)](_0x1d2ab1=>{const _0x40a631=_0x53d9ab,_0x53c8ea=_0x535ff7[_0x40a631(0x14e)][_0x40a631(0x137)][_0x40a631(0x133)]();let _0x30957b=!0x1;for(const _0x266b58 of _0x53c8ea){if(_0x40a631(0x152)!==_0x266b58[_0x40a631(0x11b)]||_0x40a631(0x11e)===_0x266b58[_0x40a631(0x136)])continue;const _0x55bde1=_0x535ff7[_0x40a631(0xfc)](_0x266b58[_0x40a631(0x102)][_0x40a631(0x14d)]);for(const _0x516bea of _0x55bde1[_0x40a631(0x12b)]())_0x516bea['is'](_0x40a631(0x124),_0x40a631(0x14c))&&(!_0x516bea[_0x40a631(0x121)](_0x40a631(0xfd))&&_0x535ff7[_0x40a631(0xfb)][_0x40a631(0x119)](_0x516bea,_0x40a631(0xfd))&&(_0x1d2ab1[_0x40a631(0x11f)](_0x40a631(0xfd),_0x52921b,_0x516bea),_0x30957b=!0x0),!_0x516bea[_0x40a631(0x121)](_0x40a631(0x111))&&_0x535ff7[_0x40a631(0xfb)][_0x40a631(0x119)](_0x516bea,_0x40a631(0x111))&&(_0x1d2ab1[_0x40a631(0x11f)](_0x40a631(0x111),_0x3bb728,_0x516bea),_0x30957b=!0x0));}return _0x30957b&&_0x5a1bf4[_0x40a631(0x10c)](_0x1d2ab1),_0x30957b;});}[_0xeb1b93(0x12c)](){const _0xf70c97=_0xeb1b93,{editor:_0x3c915f}=this;_0x3c915f[_0xf70c97(0x147)][_0xf70c97(0x120)](_0x204a29)[_0xf70c97(0x105)](_0xa3c84c=>this[_0xf70c97(0x10a)](_0xa3c84c));}[_0xeb1b93(0x139)](){const _0x52b22e=_0xeb1b93;return this[_0x52b22e(0xf9)][_0x52b22e(0x131)][_0x52b22e(0x120)](_0x52b22e(0x123));}[_0xeb1b93(0x10d)](){const _0x3760f5=_0xeb1b93;return this[_0x3760f5(0xf9)][_0x3760f5(0x131)][_0x3760f5(0x120)](_0x3760f5(0x132));}[_0xeb1b93(0x10a)]({container:_0x27dd79,value:_0x167853,digits:_0x425bab}){const _0x1cefb0=_0xeb1b93,_0x5b8250=_0x27dd79[_0x1cefb0(0x117)](_0x1cefb0(0x111)),_0x156f3f=_0x27dd79[_0x1cefb0(0x117)](_0x1cefb0(0xfd)),_0x28fd76=Math[_0x1cefb0(0xfa)](_0x167853)+(_0x156f3f??0x1)-0x1;switch(_0x5b8250){case _0x1cefb0(0x156):return function(_0x2f31e7,_0x5130eb){const _0x404624=_0x1cefb0;return String(_0x2f31e7)[_0x404624(0x13e)](_0x5130eb,'0');}(_0x28fd76,Math[_0x1cefb0(0x100)](0x2,_0x425bab));case _0x1cefb0(0x126):case _0x1cefb0(0x128):return N(_0x28fd76,!0x1);case _0x1cefb0(0x130):case _0x1cefb0(0x13b):return N(_0x28fd76,!0x0);case _0x1cefb0(0x154):return X(_0x28fd76,!0x1);case _0x1cefb0(0x114):return X(_0x28fd76,!0x0);default:return String(_0x28fd76);}}}function M(_0x35d1de,_0x48639e){const _0x268595=_0xeb1b93,_0x154301=_0x48639e[_0x268595(0x103)](_0x35d1de);return Array[_0x268595(0x146)](_0x154301[_0x268595(0x10f)]())[_0x268595(0x148)](_0x33c334=>_0x33c334['is'](_0x268595(0x124),'ol')&&_0x33c334[_0x268595(0x113)](_0x268595(0x12d)));}function N(_0x5ae46f,_0x460c4f){const _0x4c2019=_0xeb1b93;let _0x23fca5='',_0x3dfc76=_0x5ae46f;for(;_0x3dfc76>0x0;){const _0x3075f1=(_0x3dfc76-0x1)%0x1a;_0x23fca5=String[_0x4c2019(0x134)](0x61+_0x3075f1)+_0x23fca5,_0x3dfc76=Math[_0x4c2019(0xfa)]((_0x3dfc76-0x1)/0x1a);}return _0x460c4f?_0x23fca5[_0x4c2019(0x140)]():_0x23fca5;}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(_0x2a5179,_0x10221c){const _0x167ff7=_0xeb1b93;let _0xb9b5f0='',_0x48ef98=_0x2a5179;for(const {value:_0x49d7ad,numeral:_0xf6133d}of V)for(;_0x48ef98>=_0x49d7ad;)_0xb9b5f0+=_0xf6133d,_0x48ef98-=_0x49d7ad;return _0x10221c?_0xb9b5f0:_0xb9b5f0[_0x167ff7(0x14a)]();}
|
|
23
|
+
const _0x21a6c6=_0x4a9c;(function(_0xe16c74,_0x2e8913){const _0x2ed0e4=_0x4a9c,_0x22e31c=_0xe16c74();while(!![]){try{const _0x344ebb=parseInt(_0x2ed0e4(0x9f))/0x1*(-parseInt(_0x2ed0e4(0x88))/0x2)+-parseInt(_0x2ed0e4(0x6e))/0x3*(parseInt(_0x2ed0e4(0xc7))/0x4)+parseInt(_0x2ed0e4(0xca))/0x5*(-parseInt(_0x2ed0e4(0xa4))/0x6)+parseInt(_0x2ed0e4(0x97))/0x7*(parseInt(_0x2ed0e4(0x90))/0x8)+-parseInt(_0x2ed0e4(0x8a))/0x9+parseInt(_0x2ed0e4(0x7a))/0xa+parseInt(_0x2ed0e4(0xbb))/0xb*(parseInt(_0x2ed0e4(0xc0))/0xc);if(_0x344ebb===_0x2e8913)break;else _0x22e31c['push'](_0x22e31c['shift']());}catch(_0x2160e6){_0x22e31c['push'](_0x22e31c['shift']());}}}(_0x1ab9,0x55a5a));function _0x4a9c(_0x2d4040,_0x796f68){const _0x1ab945=_0x1ab9();return _0x4a9c=function(_0x4a9c6e,_0x3e4758){_0x4a9c6e=_0x4a9c6e-0x6a;let _0xc147a7=_0x1ab945[_0x4a9c6e];return _0xc147a7;},_0x4a9c(_0x2d4040,_0x796f68);}import{Plugin as _0x30993c}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0xce45c9}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x223e12}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x2eceb3}from'../footnotestracker.js';import{FootnotesEditing as _0x4277e5}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x30993c{static get[_0x21a6c6(0x6f)](){const _0x45670=_0x21a6c6;return _0x45670(0xc9);}static get[_0x21a6c6(0xa1)](){return[_0x4277e5,_0x2eceb3];}static get[_0x21a6c6(0x8e)](){return!0x0;}static get[_0x21a6c6(0xa0)](){return!0x0;}[_0x21a6c6(0xaa)](){const _0x1c2d00=_0x21a6c6,{editor:_0x39606d}=this;_0x39606d[_0x1c2d00(0x76)][_0x1c2d00(0x81)](_0x1c2d00(0xc3),_0x1c2d00(0xb7)),_0x39606d[_0x1c2d00(0x76)][_0x1c2d00(0x81)](_0x1c2d00(0xb0),0x1),_0x39606d[_0x1c2d00(0xb2)][_0x1c2d00(0x9b)](_0x1c2d00(0x8b),new _0xce45c9(_0x39606d)),_0x39606d[_0x1c2d00(0xb2)][_0x1c2d00(0x9b)](_0x1c2d00(0x73),new _0x223e12(_0x39606d)),this[_0x1c2d00(0x86)](),this[_0x1c2d00(0xbe)](),this[_0x1c2d00(0xa5)](),this[_0x1c2d00(0xb5)]();}[_0x21a6c6(0x86)](){const _0x19c1e5=_0x21a6c6,{editor:_0x334a83}=this,{schema:_0x5b8a9a}=_0x334a83[_0x19c1e5(0x8f)];_0x5b8a9a[_0x19c1e5(0x7d)](_0x19c1e5(0x92),{'allowAttributes':[_0x19c1e5(0x6c),_0x19c1e5(0xcf)]});}[_0x21a6c6(0xbe)](){const _0x184a11=_0x21a6c6,{editor:_0x15a8dc}=this,{conversion:_0x4cc8f9,model:_0x2b3007}=_0x15a8dc,{schema:_0x579bdd}=_0x2b3007;_0x4cc8f9[_0x184a11(0x8d)](_0x184a11(0x71))[_0x184a11(0x9b)](_0x365836=>{const _0x3ff1ac=_0x184a11;_0x365836['on'](_0x3ff1ac(0x75),(_0x3ddff0,_0x25b20f,_0x264947)=>{const _0xf9cfa7=_0x3ff1ac,_0x3233e7=_0x25b20f[_0xf9cfa7(0x93)],_0x1ef257=_0x25b20f[_0xf9cfa7(0x9e)]?.[_0xf9cfa7(0xb1)];_0x3233e7[_0xf9cfa7(0x89)](_0xf9cfa7(0x96))&&_0x1ef257?.['is'](_0xf9cfa7(0x9a),_0xf9cfa7(0x92))&&(function(_0x285c9c,_0x2498df,_0x110cb3,_0x216f5f){const _0x4d12af=_0xf9cfa7;if(!_0x216f5f[_0x4d12af(0xa3)](_0x2498df,_0x4d12af(0xcf)))return;let _0x492dba=0x1;const _0x1d03d8=_0x110cb3[_0x4d12af(0xc6)][_0x4d12af(0x91)](_0x285c9c,{'attributes':_0x4d12af(0x8c)});if(_0x1d03d8){const _0x1f85fe=Number[_0x4d12af(0x72)](_0x285c9c[_0x4d12af(0x79)](_0x4d12af(0x8c)),0xa);Number[_0x4d12af(0x9d)](_0x1f85fe)||(_0x492dba=_0x1f85fe);}!_0x1d03d8&&_0x2498df[_0x4d12af(0xb6)](_0x4d12af(0xcf))||_0x110cb3[_0x4d12af(0x7f)][_0x4d12af(0x6b)](_0x4d12af(0xcf),_0x492dba,_0x2498df);}(_0x3233e7,_0x1ef257,_0x264947,_0x579bdd),function(_0x5aaac0,_0x574f35,_0x10b6d0,_0x10fd66){const _0x42262a=_0xf9cfa7;if(!_0x10fd66[_0x42262a(0xa3)](_0x574f35,_0x42262a(0x6c)))return;let _0x215bb6=_0x42262a(0xb7),_0x4ac3ee=!0x1;if(_0x10b6d0[_0x42262a(0xc6)][_0x42262a(0x91)](_0x5aaac0,{'attributes':_0x42262a(0xb8)})){const _0x1c41a9={0x1:_0x42262a(0xb7),'a':_0x42262a(0xb9),'A':_0x42262a(0xc4),'i':_0x42262a(0xbf),'I':_0x42262a(0xc2)}[_0x5aaac0[_0x42262a(0x79)](_0x42262a(0xb8))];_0x1c41a9&&(_0x215bb6=_0x1c41a9),_0x4ac3ee=!0x0;}_0x10b6d0[_0x42262a(0xc6)][_0x42262a(0x91)](_0x5aaac0,{'styles':_0x42262a(0x9c)})&&(_0x215bb6=function(_0xc8957b){const _0x1b2863=_0x42262a;switch(_0xc8957b){case _0x1b2863(0xb9):return _0x1b2863(0xa9);case _0x1b2863(0xc4):return _0x1b2863(0x74);default:return _0xc8957b;}}(_0x5aaac0[_0x42262a(0x7b)](_0x42262a(0x9c))),_0x4ac3ee=!0x0),!_0x4ac3ee&&_0x574f35[_0x42262a(0xb6)](_0x42262a(0x6c))||_0x10b6d0[_0x42262a(0x7f)][_0x42262a(0x6b)](_0x42262a(0x6c),_0x215bb6,_0x574f35);}(_0x3233e7,_0x1ef257,_0x264947,_0x579bdd));});}),_0x4cc8f9[_0x184a11(0x8d)](_0x184a11(0x7e))[_0x184a11(0x9b)](_0x121ba5=>{const _0x4ba057=_0x184a11;_0x121ba5['on'](_0x4ba057(0x7c),(_0x48b9cb,_0x4675c8,_0xefd2c4)=>{const _0x3ff1e5=_0x4ba057;if(!_0xefd2c4[_0x3ff1e5(0xc6)][_0x3ff1e5(0x91)](_0x4675c8[_0x3ff1e5(0xbc)],_0x48b9cb[_0x3ff1e5(0xa8)]))return;const _0x1b2ec7=M(_0x4675c8[_0x3ff1e5(0xbc)],_0xefd2c4[_0x3ff1e5(0xc5)]),{attributeNewValue:_0x582c9b}=_0x4675c8;null==_0x582c9b||0x1===_0x582c9b?_0xefd2c4[_0x3ff1e5(0x7f)][_0x3ff1e5(0x77)](_0x3ff1e5(0x8c),_0x1b2ec7):_0xefd2c4[_0x3ff1e5(0x7f)][_0x3ff1e5(0x6b)](_0x3ff1e5(0x8c),String(_0x582c9b),_0x1b2ec7);}),_0x121ba5['on'](_0x4ba057(0x84),(_0x530a75,_0x149acf,_0x484478)=>{const _0x2424ce=_0x4ba057;if(!_0x484478[_0x2424ce(0xc6)][_0x2424ce(0x91)](_0x149acf[_0x2424ce(0xbc)],_0x530a75[_0x2424ce(0xa8)]))return;const _0x4fc03b=M(_0x149acf[_0x2424ce(0xbc)],_0x484478[_0x2424ce(0xc5)]),{attributeNewValue:_0x150e4f}=_0x149acf;_0x150e4f&&_0x2424ce(0xb7)!==_0x150e4f?_0x484478[_0x2424ce(0x7f)][_0x2424ce(0x70)](_0x2424ce(0x9c),_0x150e4f,_0x4fc03b):_0x484478[_0x2424ce(0x7f)][_0x2424ce(0xae)](_0x2424ce(0x9c),_0x4fc03b);});});}[_0x21a6c6(0xb5)](){const _0x366073=_0x21a6c6,{editor:_0x56a293}=this,{model:_0x19c1d5}=_0x56a293,_0x280f80=_0x56a293[_0x366073(0xac)][_0x366073(0xab)](_0x2eceb3),_0x9f4c0f=this[_0x366073(0xce)](),_0x559c32=this[_0x366073(0x95)]();_0x19c1d5[_0x366073(0xbd)][_0x366073(0xcc)](_0x36014c=>{const _0x2b89f0=_0x366073,_0x59cd4b=_0x19c1d5[_0x2b89f0(0xbd)][_0x2b89f0(0xa7)][_0x2b89f0(0x83)]();let _0x475061=!0x1;for(const _0x4e50c5 of _0x59cd4b){if(_0x2b89f0(0xc1)!==_0x4e50c5[_0x2b89f0(0xb8)]||_0x2b89f0(0xc8)===_0x4e50c5[_0x2b89f0(0xa8)])continue;const _0x39d4a7=_0x19c1d5[_0x2b89f0(0x94)](_0x4e50c5[_0x2b89f0(0xaf)][_0x2b89f0(0xad)]);for(const _0x2e594b of _0x39d4a7[_0x2b89f0(0x99)]())_0x2e594b['is'](_0x2b89f0(0x9a),_0x2b89f0(0x92))&&(!_0x2e594b[_0x2b89f0(0xb6)](_0x2b89f0(0xcf))&&_0x19c1d5[_0x2b89f0(0xcd)][_0x2b89f0(0xa3)](_0x2e594b,_0x2b89f0(0xcf))&&(_0x36014c[_0x2b89f0(0x6b)](_0x2b89f0(0xcf),_0x559c32,_0x2e594b),_0x475061=!0x0),!_0x2e594b[_0x2b89f0(0xb6)](_0x2b89f0(0x6c))&&_0x19c1d5[_0x2b89f0(0xcd)][_0x2b89f0(0xa3)](_0x2e594b,_0x2b89f0(0x6c))&&(_0x36014c[_0x2b89f0(0x6b)](_0x2b89f0(0x6c),_0x9f4c0f,_0x2e594b),_0x475061=!0x0));}return _0x475061&&_0x280f80[_0x2b89f0(0xb3)](_0x36014c),_0x475061;});}[_0x21a6c6(0xa5)](){const _0x484356=_0x21a6c6,{editor:_0x4a29aa}=this;_0x4a29aa[_0x484356(0xac)][_0x484356(0xab)](_0x2eceb3)[_0x484356(0x98)](_0x1c4761=>this[_0x484356(0x82)](_0x1c4761));}[_0x21a6c6(0xce)](){const _0x4d7a1b=_0x21a6c6;return this[_0x4d7a1b(0x87)][_0x4d7a1b(0x76)][_0x4d7a1b(0xab)](_0x4d7a1b(0xc3));}[_0x21a6c6(0x95)](){const _0x2d44b9=_0x21a6c6;return this[_0x2d44b9(0x87)][_0x2d44b9(0x76)][_0x2d44b9(0xab)](_0x2d44b9(0xb0));}[_0x21a6c6(0x82)]({container:_0x42fcbb,value:_0x19a607,digits:_0x50d661}){const _0x141e10=_0x21a6c6,_0x3a7551=_0x42fcbb[_0x141e10(0x79)](_0x141e10(0x6c)),_0x158ab5=_0x42fcbb[_0x141e10(0x79)](_0x141e10(0xcf)),_0x48b243=Math[_0x141e10(0x85)](_0x19a607)+(_0x158ab5??0x1)-0x1;switch(_0x3a7551){case _0x141e10(0xd0):return function(_0xb5c1ab,_0x427875){const _0x37827b=_0x141e10;return String(_0xb5c1ab)[_0x37827b(0xcb)](_0x427875,'0');}(_0x48b243,Math[_0x141e10(0xa2)](0x2,_0x50d661));case _0x141e10(0xb9):case _0x141e10(0xa9):return N(_0x48b243,!0x1);case _0x141e10(0xc4):case _0x141e10(0x74):return N(_0x48b243,!0x0);case _0x141e10(0xbf):return X(_0x48b243,!0x1);case _0x141e10(0xc2):return X(_0x48b243,!0x0);default:return String(_0x48b243);}}}function M(_0x3b08e4,_0x3938d6){const _0x10ab15=_0x21a6c6,_0x45f7d1=_0x3938d6[_0x10ab15(0x80)](_0x3b08e4);return Array[_0x10ab15(0xa6)](_0x45f7d1[_0x10ab15(0x6d)]())[_0x10ab15(0xba)](_0x5b1222=>_0x5b1222['is'](_0x10ab15(0x9a),'ol')&&_0x5b1222[_0x10ab15(0x89)](_0x10ab15(0x96)));}function _0x1ab9(){const _0x4ef797=['insert','upper-roman','footnotes.footnotesProperties.defaultListStyle','upper-alpha','mapper','consumable','17428gUxxdq','$text','FootnotesPropertiesEditing','11065LxIqgd','padStart','registerPostFixer','schema','_getDefaultListStyle','footnotesListStart','decimal-leading-zero','toLowerCase','setAttribute','footnotesListStyle','getChildren','387XZaYSx','pluginName','setStyle','upcast','parseInt','footnotesStart','upper-latin','element:ol','config','removeAttribute','fromCharCode','getAttribute','3771610lpXsqu','getStyle','attribute:footnotesListStart:footnotesDefinitions','extend','downcast','writer','toViewElement','define','_formatFootnoteListValue','getChanges','attribute:footnotesListStyle:footnotesDefinitions','floor','_defineSchema','editor','124kernAL','hasClass','4896153vlmYgZ','footnotesStyle','start','for','isOfficialPlugin','model','40mIsYRQ','consume','footnotesDefinitions','viewItem','createRangeOn','_getDefaultStartIndex','footnotes-list','615615YHQwlX','setFootnoteFormatter','getItems','element','add','list-style-type','isNaN','modelCursor','2803CcevYL','isPremiumPlugin','requires','max','checkAttribute','1446PaORox','_defineFormatter','from','differ','name','lower-latin','init','get','plugins','nodeAfter','removeStyle','position','footnotes.footnotesProperties.defaultStartIndex','parent','commands','_updateFootnotesCounters','toUpperCase','_definePostfixer','hasAttribute','decimal','type','lower-alpha','find','11SDPwlE','item','document','_defineConverters','lower-roman','16165356INrZQN'];_0x1ab9=function(){return _0x4ef797;};return _0x1ab9();}function N(_0x24f1f0,_0x7b2812){const _0x6ee789=_0x21a6c6;let _0x313a92='',_0x55f98b=_0x24f1f0;for(;_0x55f98b>0x0;){const _0x29d9ed=(_0x55f98b-0x1)%0x1a;_0x313a92=String[_0x6ee789(0x78)](0x61+_0x29d9ed)+_0x313a92,_0x55f98b=Math[_0x6ee789(0x85)]((_0x55f98b-0x1)/0x1a);}return _0x7b2812?_0x313a92[_0x6ee789(0xb4)]():_0x313a92;}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(_0x15b067,_0x30c0e9){const _0x516dc7=_0x21a6c6;let _0x2a4ace='',_0x34ea43=_0x15b067;for(const {value:_0x275ad4,numeral:_0x17ca96}of V)for(;_0x34ea43>=_0x275ad4;)_0x2a4ace+=_0x17ca96,_0x34ea43-=_0x275ad4;return _0x30c0e9?_0x2a4ace:_0x2a4ace[_0x516dc7(0x6a)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x324796,ButtonView as _0x124ad1,ContextualBalloon as _0x77af1d,createDropdown as _0x208444}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x352e02}from'ckeditor5/src/widget.js';import{Plugin as _0x1b61a1}from'ckeditor5/src/core.js';import{IconFootnote as _0x458212,IconListStyleDecimal as _0x142119,IconListStyleDecimalLeadingZero as _0xe864e,IconListStyleLowerLatin as _0x5d64f9,IconListStyleLowerRoman as _0x16c911,IconListStyleUpperLatin as _0x37971f,IconListStyleUpperRoman as _0x9b95e2}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x3cc83f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x14b0a0}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1b61a1{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x77af1d,_0x352e02];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x274b85}=this,{componentFactory:_0x12a6f5}=_0x274b85['ui'];_0x274b85['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x12a6f5['add']('footnotesStyle',function(_0x14af42){return _0x18b4bd=>{const {t:t}=_0x18b4bd,_0x503bb3=_0x14af42['commands']['get']('footnotesStyle'),_0x16b67f=_0x208444(_0x18b4bd),{buttonView:_0x40031e}=_0x16b67f;return _0x16b67f['class']='ck-footnotes-styles-dropdown',_0x16b67f['bind']('isEnabled')['to'](_0x503bb3,'isEnabled'),_0x40031e['set']({'label':t('Footnotes\x20style'),'icon':_0x458212,'tooltip':!0x0}),_0x16b67f['once']('change:isOpen',()=>{const _0x5e2a1a=function({editor:_0x51c975,dropdownView:_0x1066de}){const {t:t}=_0x51c975['locale'],_0x2c6844=t('Footnotes\x20definitions\x20styles'),_0xaac0a3=function(_0x184866){const t=_0x184866['locale']['t'],_0x25d364=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x142119},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xe864e},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x16c911},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x9b95e2},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5d64f9},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x37971f}];return _0x25d364['map'](function(_0xf2e042){const _0x29f6c9=_0xf2e042['locale'];return({label:_0x2a2c61,icon:_0x3a1880,tooltip:_0x4853cc,style:_0x480d2d})=>{const _0x8a3c08=_0xf2e042['commands']['get']('footnotesStyle'),_0x3fb518=new _0x124ad1(_0x29f6c9);return _0x3fb518['set']({'label':_0x2a2c61,'icon':_0x3a1880,'tooltip':_0x4853cc}),_0x3fb518['bind']('isOn')['to'](_0x8a3c08,'value',_0x5ab936=>_0x5ab936===_0x480d2d),_0x3fb518['bind']('isEnabled')['to'](_0x8a3c08,'isEnabled'),_0x3fb518['on']('execute',()=>{_0xf2e042['execute']('footnotesStyle',{'value':_0x480d2d}),_0xf2e042['editing']['view']['focus']();}),_0x3fb518;};}(_0x184866));}(_0x51c975),_0x267807=new _0x3cc83f(_0x51c975['locale'],{'styleGridAriaLabel':_0x2c6844,'styleButtonViews':_0xaac0a3}),_0xff3cb8=_0x51c975['commands']['get']('footnotesStart');return _0x267807['startIndexFieldView']['bind']('isEnabled')['to'](_0xff3cb8),_0x267807['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xff3cb8),_0x267807['on']('footnotesListStart',(_0x48215f,_0x278b2b)=>{_0x51c975['execute']('footnotesStart',{'value':_0x278b2b['startIndex']});}),_0x267807['delegate']('execute')['to'](_0x1066de),_0x267807;}({'editor':_0x14af42,'dropdownView':_0x16b67f});_0x16b67f['panelView']['children']['add'](_0x5e2a1a);}),_0x16b67f;};}(_0x274b85));}['afterInit'](){const {editor:_0x3b3d75}=this,{t:t}=_0x3b3d75['locale'],_0x5e6ef6=_0x3b3d75['plugins']['get'](_0x352e02),{defaultPositions:_0x5c8ee1}=_0x324796;_0x5e6ef6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3b3d75['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5ad06d=>{let _0x320299=_0x5ad06d['getFirstPosition']()?.['parent'];return _0x320299?.['is']('$text')&&(_0x320299=_0x320299['parent']),_0x320299?.['is']('element')?_0x320299['findAncestor'](_0x14b0a0):null;},'positions':[_0x5c8ee1['southArrowNorth'],_0x5c8ee1['southArrowNorthMiddleWest'],_0x5c8ee1['southArrowNorthMiddleEast'],_0x5c8ee1['southArrowNorthWest'],_0x5c8ee1['southArrowNorthEast'],_0x5c8ee1['northArrowSouth'],_0x5c8ee1['northArrowSouthMiddleWest'],_0x5c8ee1['northArrowSouthMiddleEast'],_0x5c8ee1['northArrowSouthWest'],_0x5c8ee1['northArrowSouthEast'],_0x5c8ee1['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x117cf4,View as _0x192924,ViewCollection as _0x4dd00f,FocusCycler as _0x7a153d,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x192924{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4dd00f();['focusCycler'];constructor(_0x14b1e1,{styleButtonViews:_0x49051d,styleGridAriaLabel:_0x3e2737}){super(_0x14b1e1),(this['focusCycler']=new _0x7a153d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x49051d,_0x3e2737),[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 _0x171796 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x171796['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x278cae=_0x48bb63=>_0x48bb63['stopPropagation']();this['keystrokes']['set']('arrowright',_0x278cae),this['keystrokes']['set']('arrowleft',_0x278cae),this['keystrokes']['set']('arrowup',_0x278cae),this['keystrokes']['set']('arrowdown',_0x278cae);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xf8d5f6,_0x5176ec){const _0x5b040c=new _0x192924(this['locale']);return _0x5b040c['children']=_0x5b040c['createCollection'](),_0x5b040c['children']['addMany'](_0xf8d5f6),_0x5b040c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5176ec,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5b040c['children']}),_0x5b040c['children']['delegate']('execute')['to'](this),_0x5b040c['focus']=function(){for(const _0xed5efc of this['children'])if(_0xed5efc instanceof _0x117cf4&&_0xed5efc['isOn'])return void _0xed5efc['focus']();this['children']['first']['focus']();},_0x5b040c['focusTracker']=new ot(),_0x5b040c['keystrokes']=new rt(),_0x5b040c['render'](),_0x5b040c['keystrokes']['listenTo'](_0x5b040c['element']),this['children']['add'](_0x5b040c),_0x5b040c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x52d2f4=this['_createStartIndexPropertyView'](),_0x59868d=[_0x52d2f4],_0x6535be=new st(this['locale'],_0x59868d);return _0x6535be['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x6535be['buttonView']['bind']('isEnabled')['toMany'](_0x59868d,'isEnabled',(..._0x45b7d4)=>_0x45b7d4['some'](_0x10f4ce=>_0x10f4ce)),_0x6535be['buttonView']['on']('change:isEnabled',(_0x488e6c,_0x3701e0,_0x2c634f)=>{_0x2c634f||(_0x6535be['isCollapsed']=!0x0);}),this['children']['add'](_0x6535be),[_0x52d2f4,_0x6535be];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2868c1=new it(this['locale'],et);return _0x2868c1['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2868c1['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2868c1['fieldView']['on']('input',()=>{const _0xcfaaba=_0x2868c1['fieldView']['element'],_0x27822d=_0xcfaaba['valueAsNumber'];Number['isNaN'](_0x27822d)?_0x2868c1['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0xcfaaba['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x27822d}):_0x2868c1['errorText']=t(_0x27822d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2868c1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x11fc66=_0x4450;(function(_0x5de5e9,_0x217411){var _0xb6afc4=_0x4450,_0x3476c7=_0x5de5e9();while(!![]){try{var _0xa3a0c3=parseInt(_0xb6afc4(0x156))/0x1+parseInt(_0xb6afc4(0x151))/0x2*(-parseInt(_0xb6afc4(0x15a))/0x3)+parseInt(_0xb6afc4(0x153))/0x4+parseInt(_0xb6afc4(0x152))/0x5+-parseInt(_0xb6afc4(0x159))/0x6+parseInt(_0xb6afc4(0x157))/0x7+parseInt(_0xb6afc4(0x155))/0x8*(-parseInt(_0xb6afc4(0x150))/0x9);if(_0xa3a0c3===_0x217411)break;else _0x3476c7['push'](_0x3476c7['shift']());}catch(_0x4e7f54){_0x3476c7['push'](_0x3476c7['shift']());}}}(_0x3df1,0x78b0a));import{Plugin as _0x27e7b3}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x524a71}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x5b337f}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x27e7b3{static get[_0x11fc66(0x14e)](){var _0x2e4ab5=_0x11fc66;return _0x2e4ab5(0x154);}static get[_0x11fc66(0x14f)](){return[_0x524a71,_0x5b337f];}static get[_0x11fc66(0x14d)](){return!0x0;}static get[_0x11fc66(0x158)](){return!0x0;}}function _0x4450(_0x2d48ed,_0x470854){var _0x3df18a=_0x3df1();return _0x4450=function(_0x445074,_0xbb391f){_0x445074=_0x445074-0x14d;var _0x4d99ae=_0x3df18a[_0x445074];return _0x4d99ae;},_0x4450(_0x2d48ed,_0x470854);}function _0x3df1(){var _0xcea8e=['8gMFrjd','345485aVbbyC','2319051vYenlA','isPremiumPlugin','2174862GuxOqw','392505PQOPsR','isOfficialPlugin','pluginName','requires','8869050QHhmsn','2XXtsOe','2522680KMgnrm','3167176pTVpvg','FootnotesProperties'];_0x3df1=function(){return _0xcea8e;};return _0x3df1();}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51c6f4=_0x5f37;function _0x3899(){const _0xe1c35e=['getRootNames','min','getFootnotesFormatter','some','document','isEqual','unshift','_footnoteDefsContainerTracker','differ','2538348EzNvuk','root','_footnoteFormatter','registerPostFixer','indexOf','setAttribute','model','getFootnotes','footnotes.multiBlock','findIndex','$graveyard','footnotesDefinitions','isPremiumPlugin','7XswcMR','move','from','footnoteDefinition','_updateFootnoteRefCounter','compareWith','reference','editor','createRangeOn','createElement','createPositionAt','_ensureFootnotesDefinitionsContainerExists','_handleFootnoteDefinitionsChanges','config','_updateFootnotesCounters','childCount','createRangeIn','parent','351AKNlkM','footnoteId','reset','footnoteRef','set','high','append','9315531eMijdq','FootnotesTracker','add','10wfOCXQ','_sortFootnoteDefinitions','_insertEmptyFootnotesDefinitionsContainer','getChildren','isOfficialPlugin','get','createPositionBefore','find','low','before','_handleInsertedFootnoteReference','_ensureFootnotesReferencesHaveProperOrder','singleton','footnoteInlineContent','getAttribute','setFootnoteFormatter','_footnoteDefsTracker','_handleFootnoteReferencesChanges','change:data','262931aalmMg','has','enqueueChange','init','getFootnote','33nbcusK','length','rootName','remove','splice','after','definition','32268OuKvqJ','pluginName','paragraph','getFootnotesDefinitionsObjectElement','13621136yUlgfD','push','insert','_handleMovedFootnoteReference','_footnotesDefinitions','footnoteCounter','172130jnaijg','_handleRemoveFootnoteReferenceById','map','end','6896190NtQrMt','getChanges','listenTo','_handleFootnotesDefinitionsObjectChanges','_handleFootnotesDefinitionsObjectSync','_footnotes','_footnoteRefsTracker'];_0x3899=function(){return _0xe1c35e;};return _0x3899();}(function(_0x3ad69d,_0x32fbe2){const _0x3931b3=_0x5f37,_0xb3a296=_0x3ad69d();while(!![]){try{const _0x282fcf=-parseInt(_0x3931b3(0x12d))/0x1*(parseInt(_0x3931b3(0x11a))/0x2)+-parseInt(_0x3931b3(0x110))/0x3*(parseInt(_0x3931b3(0x139))/0x4)+-parseInt(_0x3931b3(0x143))/0x5+parseInt(_0x3931b3(0xf1))/0x6+parseInt(_0x3931b3(0xfe))/0x7*(parseInt(_0x3931b3(0x13d))/0x8)+-parseInt(_0x3931b3(0x117))/0x9+parseInt(_0x3931b3(0x147))/0xa*(parseInt(_0x3931b3(0x132))/0xb);if(_0x282fcf===_0x32fbe2)break;else _0xb3a296['push'](_0xb3a296['shift']());}catch(_0x3a2978){_0xb3a296['push'](_0xb3a296['shift']());}}}(_0x3899,0xd3912));import{Plugin as _0x1af9fe}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x16d14e}from'./modelelementtracker.js';export class FootnotesTracker extends _0x1af9fe{[_0x51c6f4(0x14c)]=[];[_0x51c6f4(0x141)]=null;[_0x51c6f4(0xf3)]=null;[_0x51c6f4(0xef)];[_0x51c6f4(0x14d)];[_0x51c6f4(0x12a)];static get[_0x51c6f4(0x13a)](){const _0x3a7938=_0x51c6f4;return _0x3a7938(0x118);}static get[_0x51c6f4(0x11e)](){return!0x0;}static get[_0x51c6f4(0xfd)](){return!0x0;}constructor(_0x2e25f2){const _0x2d8068=_0x51c6f4;super(_0x2e25f2),this[_0x2d8068(0xef)]=new _0x16d14e(this[_0x2d8068(0x105)][_0x2d8068(0xf7)],{'elementName':_0x2d8068(0xfc),'getElementKey':()=>_0x2d8068(0x126)}),this[_0x2d8068(0x14d)]=new _0x16d14e(this[_0x2d8068(0x105)][_0x2d8068(0xf7)],{'elementName':_0x2d8068(0x113),'getElementKey':_0x4e9d34=>_0x4e9d34[_0x2d8068(0x128)](_0x2d8068(0x111))}),this[_0x2d8068(0x12a)]=new _0x16d14e(this[_0x2d8068(0x105)][_0x2d8068(0xf7)],{'elementName':_0x2d8068(0x101),'getElementKey':_0x53ff79=>_0x53ff79[_0x2d8068(0x128)](_0x2d8068(0x111))});}[_0x51c6f4(0x130)](){const _0x177dd5=_0x51c6f4,{editor:_0x257130}=this,{model:_0x287791,data:_0x5c077d}=_0x257130;_0x287791[_0x177dd5(0xec)][_0x177dd5(0xf4)](_0x11f4b9=>{const _0x42736f=_0x177dd5,_0x1f0284=_0x287791[_0x42736f(0xec)][_0x42736f(0xf0)][_0x42736f(0x148)]();let _0x17d649=!0x1;return this[_0x42736f(0x14a)](_0x11f4b9,_0x1f0284)&&(_0x17d649=!0x0),this[_0x42736f(0x10a)](_0x11f4b9,_0x1f0284)&&(_0x17d649=!0x0),this[_0x42736f(0x12b)](_0x11f4b9,_0x1f0284)&&(_0x17d649=!0x0),this[_0x42736f(0x125)](_0x11f4b9)&&(_0x17d649=!0x0),this[_0x42736f(0x14b)](_0x11f4b9)&&(_0x17d649=!0x0),this[_0x42736f(0x11b)](_0x11f4b9)&&(_0x17d649=!0x0),_0x17d649;}),this[_0x177dd5(0x149)](_0x287791[_0x177dd5(0xec)],_0x177dd5(0x12c),()=>{const _0x383e04=_0x177dd5;_0x287791[_0x383e04(0x12f)]({'isUndoable':!0x1},_0x3883f9=>{const _0x2e94f9=_0x383e04;this[_0x2e94f9(0x109)](_0x3883f9);});},{'priority':_0x177dd5(0x122)}),this[_0x177dd5(0x149)](_0x5c077d,_0x177dd5(0x114),()=>{const _0x24be75=_0x177dd5;this[_0x24be75(0x14c)]=[],this[_0x24be75(0xef)][_0x24be75(0x112)](),this[_0x24be75(0x14d)][_0x24be75(0x112)](),this[_0x24be75(0x12a)][_0x24be75(0x112)]();},{'priority':_0x177dd5(0x115)});}[_0x51c6f4(0x13c)](){const _0x4b5ba1=_0x51c6f4;return this[_0x4b5ba1(0x141)];}[_0x51c6f4(0x131)](_0x4618fb){const _0x97983d=_0x51c6f4;return this[_0x97983d(0x14c)][_0x97983d(0x121)](_0x442453=>_0x442453['id']===_0x4618fb)||null;}[_0x51c6f4(0xf8)](){const _0x450087=_0x51c6f4;return Array[_0x450087(0x100)](this[_0x450087(0x14c)]);}[_0x51c6f4(0x150)](){const _0x1317d9=_0x51c6f4;return this[_0x1317d9(0xf3)];}[_0x51c6f4(0x129)](_0x6c173){const _0x51d06d=_0x51c6f4;this[_0x51d06d(0xf3)]=_0x6c173;}[_0x51c6f4(0x10c)](_0x5d0e1d,_0x51995e=0x0){const _0x26596a=_0x51c6f4;let _0x43c7b4=!0x1;for(let _0x3c1109=_0x51995e;_0x3c1109<this[_0x26596a(0x14c)][_0x26596a(0x133)];_0x3c1109++)this[_0x26596a(0x102)](_0x5d0e1d,_0x3c1109)&&(_0x43c7b4=!0x0);return _0x43c7b4;}[_0x51c6f4(0x11c)](_0x2649ed,_0x3a42d2){const _0xbebbe8=_0x51c6f4,_0x150999=_0x2649ed[_0xbebbe8(0x107)](_0xbebbe8(0xfc),{});return _0x2649ed[_0xbebbe8(0x116)](_0x150999,_0x3a42d2),this[_0xbebbe8(0x141)]=_0x150999,_0x150999;}[_0x51c6f4(0x109)](_0x20869c){const _0x20a6a6=_0x51c6f4;if(!this[_0x20a6a6(0x14c)][_0x20a6a6(0x133)]||this[_0x20a6a6(0x141)])return;const _0x74ef82=this[_0x20a6a6(0x14c)][0x0][_0x20a6a6(0x104)][_0x20a6a6(0xf2)],_0x1a8d5b=this[_0x20a6a6(0x11c)](_0x20869c,_0x74ef82);for(const _0x2fa860 of this[_0x20a6a6(0x14c)])_0x2fa860[_0x20a6a6(0x138)][_0x20a6a6(0x10f)]||_0x20869c[_0x20a6a6(0x13f)](_0x2fa860[_0x20a6a6(0x138)],_0x1a8d5b,_0x20a6a6(0x146));this[_0x20a6a6(0x10c)](_0x20869c);}[_0x51c6f4(0x14a)](_0x32a55e,_0x2b2562){const _0x475eab=_0x51c6f4;let _0xadcc39=!0x1;const {inserted:_0x4ab534,removed:_0x527b76,moved:_0x5a1cb5}=this[_0x475eab(0xef)][_0x475eab(0x148)](_0x2b2562);if(_0x5a1cb5[_0x475eab(0x133)]&&(this[_0x475eab(0x141)]=_0x5a1cb5[0x0]),_0x4ab534[_0x475eab(0x133)]){if(_0x4ab534[_0x475eab(0x133)]>0x1||this[_0x475eab(0x141)]&&_0x4ab534[_0x475eab(0x151)](_0x20f90d=>_0x20f90d!==this[_0x475eab(0x141)])){const _0x316381=_0x32a55e[_0x475eab(0x107)](_0x475eab(0xfc),{}),_0x4f59ce=[];this[_0x475eab(0x141)]&&_0x4f59ce[_0x475eab(0x13e)](this[_0x475eab(0x141)]),_0x4f59ce[_0x475eab(0x13e)](..._0x4ab534),_0x32a55e[_0x475eab(0x13f)](_0x316381,_0x4f59ce[0x0],_0x475eab(0x123));for(const _0x2e33f5 of _0x4f59ce)_0x32a55e[_0x475eab(0xff)](_0x32a55e[_0x475eab(0x10e)](_0x2e33f5),_0x32a55e[_0x475eab(0x108)](_0x316381,_0x475eab(0x146))),_0x32a55e[_0x475eab(0x135)](_0x2e33f5);this[_0x475eab(0x141)]=_0x316381,this[_0x475eab(0x10c)](_0x32a55e),_0xadcc39=!0x0;}else this[_0x475eab(0x141)]=_0x4ab534[0x0];}if(_0x527b76[_0x475eab(0x133)]&&_0x475eab(0xfb)===this[_0x475eab(0x141)]?.[_0x475eab(0xf2)][_0x475eab(0x134)]){for(const _0x37f952 of this[_0x475eab(0x14c)])_0x32a55e[_0x475eab(0x135)](_0x37f952[_0x475eab(0x104)]),_0xadcc39=!0x0;this[_0x475eab(0x14c)]=[],this[_0x475eab(0x141)]=null;}return _0xadcc39;}[_0x51c6f4(0x10a)](_0x5bdd1f,_0x77499c){const _0x5cecc2=_0x51c6f4;let _0x1bbf4a=!0x1;const _0x5552df=this[_0x5cecc2(0x105)][_0x5cecc2(0x10b)][_0x5cecc2(0x11f)](_0x5cecc2(0xf9)),{inserted:_0x52360e,moved:_0x439e5f}=this[_0x5cecc2(0x12a)][_0x5cecc2(0x148)](_0x77499c);for(const _0x437d69 of[..._0x439e5f,..._0x52360e]){const _0x61406e=_0x437d69[_0x5cecc2(0x128)](_0x5cecc2(0x111)),_0x177406=this[_0x5cecc2(0x131)](_0x61406e);_0x177406&&(_0x177406[_0x5cecc2(0x138)]=_0x437d69),_(_0x5bdd1f,_0x5552df,_0x437d69)&&(_0x1bbf4a=!0x0);}return _0x1bbf4a;}[_0x51c6f4(0x12b)](_0x58fbd4,_0xf0f63a){const _0x2668de=_0x51c6f4;let _0x3c1e48=!0x1;const {removed:_0x49b211,inserted:_0x5d4f07,moved:_0xb529a1}=this[_0x2668de(0x14d)][_0x2668de(0x148)](_0xf0f63a);for(const _0x230d71 of _0x49b211)this[_0x2668de(0x144)](_0x58fbd4,_0x230d71)&&(_0x3c1e48=!0x0);for(const _0x5629dc of _0x5d4f07)this[_0x2668de(0x124)](_0x58fbd4,_0x5629dc)&&(_0x3c1e48=!0x0);for(const _0x4158a2 of _0xb529a1)this[_0x2668de(0x140)](_0x58fbd4,_0x4158a2)&&(_0x3c1e48=!0x0);return _0x3c1e48;}[_0x51c6f4(0x14b)](_0x1072db){const _0x4c47fd=_0x51c6f4;if(!this[_0x4c47fd(0x141)])return!0x1;let _0x5de2d4=!0x1;if(this[_0x4c47fd(0x141)][_0x4c47fd(0x10d)]!==this[_0x4c47fd(0x14c)][_0x4c47fd(0x133)]){const _0x96da87=[];for(const _0x5126c9 of this[_0x4c47fd(0x141)][_0x4c47fd(0x11d)]()){const _0x1e19a6=_0x5126c9[_0x4c47fd(0x128)](_0x4c47fd(0x111));this[_0x4c47fd(0x131)](_0x1e19a6)||(_0x96da87[_0x4c47fd(0xee)](_0x5126c9),_0x5de2d4=!0x0);}for(const _0x9d575a of _0x96da87)_0x1072db[_0x4c47fd(0x135)](_0x9d575a);}const _0x2109a5=new Set(),_0x4fe6a5=[];for(const _0x312a2a of this[_0x4c47fd(0x141)][_0x4c47fd(0x11d)]()){const _0x4e85df=_0x312a2a[_0x4c47fd(0x128)](_0x4c47fd(0x111));_0x2109a5[_0x4c47fd(0x12e)](_0x4e85df)?(_0x4fe6a5[_0x4c47fd(0xee)](_0x312a2a),_0x5de2d4=!0x0):_0x2109a5[_0x4c47fd(0x119)](_0x4e85df);}for(const _0x25e47c of _0x4fe6a5)_0x1072db[_0x4c47fd(0x135)](_0x25e47c);return this[_0x4c47fd(0x141)][_0x4c47fd(0x10d)]||(_0x1072db[_0x4c47fd(0x135)](this[_0x4c47fd(0x141)]),this[_0x4c47fd(0x141)]=null,_0x5de2d4=!0x0),_0x5de2d4;}[_0x51c6f4(0x124)](_0x130856,_0x12f2ae){const _0x9c0860=_0x51c6f4;if(this[_0x9c0860(0x14c)][_0x9c0860(0x121)](_0xae0bfb=>_0xae0bfb[_0x9c0860(0x104)]===_0x12f2ae))return!0x1;let _0xc07698=!0x1;const _0x5c30cb=_0x12f2ae[_0x9c0860(0x128)](_0x9c0860(0x111)),_0x5e4540=this[_0x9c0860(0x14c)][_0x9c0860(0xfa)](_0x3725b7=>_0x3725b7['id']===_0x5c30cb);-0x1!==_0x5e4540&&(_0x130856[_0x9c0860(0x135)](this[_0x9c0860(0x14c)][_0x5e4540][_0x9c0860(0x104)]),this[_0x9c0860(0x14c)][_0x9c0860(0x136)](_0x5e4540,0x1),_0xc07698=!0x0);let _0x1336a4=this[_0x9c0860(0x141)]?function(_0x1ee521,_0x16764a){const _0x2b2806=_0x9c0860;for(const _0x528135 of _0x1ee521[_0x2b2806(0x11d)]())if(_0x528135[_0x2b2806(0x128)](_0x2b2806(0x111))===_0x16764a)return _0x528135;return null;}(this[_0x9c0860(0x141)],_0x5c30cb):null;_0x1336a4||(_0x1336a4=_0x130856[_0x9c0860(0x107)](_0x9c0860(0x101),{'footnoteId':_0x5c30cb}),this[_0x9c0860(0x141)]&&(_0x130856[_0x9c0860(0x13f)](_0x1336a4,this[_0x9c0860(0x141)],_0x9c0860(0x146)),_0xc07698=!0x0));const _0x3065f2={'id':_0x5c30cb,'reference':_0x12f2ae,'definition':_0x1336a4},_0x47e650=I(this[_0x9c0860(0x105)][_0x9c0860(0xf7)],this[_0x9c0860(0x14c)],_0x12f2ae);this[_0x9c0860(0x14c)][_0x9c0860(0x136)](_0x47e650,0x0,_0x3065f2);let _0x425e3e=_0x47e650;return-0x1!==_0x5e4540&&(_0x425e3e=Math[_0x9c0860(0x14f)](_0x47e650,_0x5e4540)),this[_0x9c0860(0x10c)](_0x130856,_0x425e3e)&&(_0xc07698=!0x0),_0xc07698;}[_0x51c6f4(0x144)](_0x534382,_0x1bd466){const _0x5ee832=_0x51c6f4,_0x1a07d8=this[_0x5ee832(0x14c)][_0x5ee832(0xfa)](_0x2cca6d=>_0x2cca6d['id']===_0x1bd466);if(-0x1===_0x1a07d8)return!0x1;let _0x44b367=!0x1;const _0x340578=this[_0x5ee832(0x14c)][_0x1a07d8];return _0x5ee832(0xfb)!==_0x340578[_0x5ee832(0x138)][_0x5ee832(0xf2)][_0x5ee832(0x134)]&&(_0x534382[_0x5ee832(0x135)](_0x340578[_0x5ee832(0x138)]),_0x44b367=!0x0),this[_0x5ee832(0x14c)][_0x5ee832(0x136)](_0x1a07d8,0x1),this[_0x5ee832(0x10c)](_0x534382,_0x1a07d8)&&(_0x44b367=!0x0),_0x44b367;}[_0x51c6f4(0x140)](_0x382a26,_0xe913ae){const _0x519483=_0x51c6f4,_0x568568=_0xe913ae[_0x519483(0x128)](_0x519483(0x111)),_0x7869b4=this[_0x519483(0x14c)][_0x519483(0xfa)](_0x3ef373=>_0x3ef373['id']===_0x568568),_0x5867d5=this[_0x519483(0x14c)][_0x7869b4];let _0xa32866=!0x1;_0x5867d5[_0x519483(0x104)]=_0xe913ae,this[_0x519483(0x14c)][_0x519483(0x136)](_0x7869b4,0x1);const _0x266aa7=I(this[_0x519483(0x105)][_0x519483(0xf7)],this[_0x519483(0x14c)],_0xe913ae);return this[_0x519483(0x14c)][_0x519483(0x136)](_0x266aa7,0x0,_0x5867d5),this[_0x519483(0x10c)](_0x382a26,Math[_0x519483(0x14f)](_0x7869b4,_0x266aa7))&&(_0xa32866=!0x0),_0xa32866;}[_0x51c6f4(0x102)](_0x227586,_0x4dcbaf){const _0x7d35c=_0x51c6f4;if(!this[_0x7d35c(0x141)])return!0x1;const _0x5cf02b=this[_0x7d35c(0x14c)][_0x4dcbaf];let _0x1fb849;return _0x1fb849=this[_0x7d35c(0xf3)]?this[_0x7d35c(0xf3)]({'footnote':_0x5cf02b,'container':this[_0x7d35c(0x141)],'digits':String(this[_0x7d35c(0x14c)][_0x7d35c(0x133)])[_0x7d35c(0x133)],'value':_0x4dcbaf+0x1}):String(_0x4dcbaf+0x1),_0x5cf02b[_0x7d35c(0x104)][_0x7d35c(0x128)](_0x7d35c(0x142))!=_0x1fb849&&(_0x227586[_0x7d35c(0xf6)](_0x7d35c(0x142),_0x1fb849,_0x5cf02b[_0x7d35c(0x104)]),!0x0);}[_0x51c6f4(0x11b)](_0x468cf5){const _0xcfc62a=_0x51c6f4;if(!this[_0xcfc62a(0x141)]||this[_0xcfc62a(0x14c)][_0xcfc62a(0x133)]<0x2)return!0x1;if(function(_0x142a19,_0x5acff8){const _0x285ac7=_0xcfc62a;if(_0x142a19[_0x285ac7(0x133)]!==_0x5acff8[_0x285ac7(0x133)])return!0x1;for(let _0x165f1d=0x0;_0x165f1d<_0x142a19[_0x285ac7(0x133)];_0x165f1d++)if(_0x142a19[_0x165f1d]!==_0x5acff8[_0x165f1d])return!0x1;return!0x0;}(this[_0xcfc62a(0x14c)][_0xcfc62a(0x145)](_0xbbb34a=>_0xbbb34a['id']),Array[_0xcfc62a(0x100)](this[_0xcfc62a(0x141)][_0xcfc62a(0x11d)]())[_0xcfc62a(0x145)](_0x5ececc=>_0x5ececc[_0xcfc62a(0x128)](_0xcfc62a(0x111)))))return!0x1;let _0x3a6946=!0x1;for(let _0x4e8687=0x0;_0x4e8687<this[_0xcfc62a(0x14c)][_0xcfc62a(0x133)];_0x4e8687++){const _0x530314=this[_0xcfc62a(0x14c)][_0x4e8687],_0x3fadd2=_0x468cf5[_0xcfc62a(0x120)](_0x530314[_0xcfc62a(0x138)]),_0xe6e1e1=_0x468cf5[_0xcfc62a(0x108)](this[_0xcfc62a(0x141)],_0x4e8687);_0x3fadd2[_0xcfc62a(0xed)](_0xe6e1e1)||(_0x468cf5[_0xcfc62a(0xff)](_0x468cf5[_0xcfc62a(0x106)](_0x530314[_0xcfc62a(0x138)]),_0xe6e1e1),_0x3a6946=!0x0);}return _0x3a6946;}[_0x51c6f4(0x125)](_0x5907f6){const _0x4fc39e=_0x51c6f4;if(!this[_0x4fc39e(0x14c)][_0x4fc39e(0x133)])return!0x1;const {model:_0x1b2d4e}=this[_0x4fc39e(0x105)];let _0x531fba=!0x1;for(let _0x252ce7=0x0;_0x252ce7<this[_0x4fc39e(0x14c)][_0x4fc39e(0x133)]-0x1;_0x252ce7++){const _0x3ddf90=this[_0x4fc39e(0x14c)][_0x252ce7],_0x3f8ec8=this[_0x4fc39e(0x14c)][_0x252ce7+0x1],_0x4bfce5=_0x1b2d4e[_0x4fc39e(0x120)](_0x3ddf90[_0x4fc39e(0x104)]),_0x3ae231=_0x1b2d4e[_0x4fc39e(0x120)](_0x3f8ec8[_0x4fc39e(0x104)]);_0x4fc39e(0x137)===_0x4bfce5[_0x4fc39e(0x103)](_0x3ae231)&&(this[_0x4fc39e(0x140)](_0x5907f6,_0x3ddf90[_0x4fc39e(0x104)]),_0x252ce7=-0x1,_0x531fba=!0x0);}return _0x531fba;}}function _(_0x261671,_0xcd3da9,_0x5c2aaf){const _0x548079=_0x51c6f4;if(_0x5c2aaf[_0x548079(0x10d)])return!0x1;const _0xe272b=_0xcd3da9?_0x548079(0x13b):_0x548079(0x127);return _0x261671[_0x548079(0x13f)](_0x261671[_0x548079(0x107)](_0xe272b),_0x5c2aaf),!0x0;}function _0x5f37(_0x288b40,_0x206270){const _0x3899fe=_0x3899();return _0x5f37=function(_0x5f3759,_0x326442){_0x5f3759=_0x5f3759-0xec;let _0x3f08cf=_0x3899fe[_0x5f3759];return _0x3f08cf;},_0x5f37(_0x288b40,_0x206270);}function I(_0x22f5da,_0x3153b1,_0x467968){const _0x41a0ce=_0x51c6f4;if(0x0===_0x3153b1[_0x41a0ce(0x133)])return 0x0;const _0x23ae45=_0x22f5da[_0x41a0ce(0x120)](_0x467968);for(let _0x53135b=0x0;_0x53135b<_0x3153b1[_0x41a0ce(0x133)];_0x53135b++){const _0x415f5f=_0x3153b1[_0x53135b],_0x55baba=_0x22f5da[_0x41a0ce(0x120)](_0x415f5f[_0x41a0ce(0x104)]);if(_0x41a0ce(0x123)===_0x23ae45[_0x41a0ce(0x103)](_0x55baba))return _0x53135b;}const _0x446026=_0x467968[_0x41a0ce(0xf2)];let _0x501a8b=-0x1;for(let _0x409d17=_0x3153b1[_0x41a0ce(0x133)]-0x1;_0x409d17>=0x0;_0x409d17--)if(_0x3153b1[_0x409d17][_0x41a0ce(0x104)][_0x41a0ce(0xf2)]===_0x446026){_0x501a8b=_0x409d17;break;}if(-0x1!==_0x501a8b)return _0x501a8b+0x1;const _0x14c4e5=_0x22f5da[_0x41a0ce(0xec)][_0x41a0ce(0x14e)](),_0x28a2d6=_0x14c4e5[_0x41a0ce(0xf5)](_0x446026[_0x41a0ce(0x134)]),_0x4f134b=_0x14c4e5[_0x28a2d6+0x1];if(_0x4f134b){for(let _0x3b43d2=0x0;_0x3b43d2<_0x3153b1[_0x41a0ce(0x133)];_0x3b43d2++)if(_0x3153b1[_0x3b43d2][_0x41a0ce(0x104)][_0x41a0ce(0xf2)][_0x41a0ce(0x134)]===_0x4f134b)return _0x3b43d2;}return _0x3153b1[_0x41a0ce(0x133)];}
|
|
23
|
+
const _0x4c1120=_0x5cf3;(function(_0x5817fc,_0x3dd535){const _0x4bb3ab=_0x5cf3,_0x4d470e=_0x5817fc();while(!![]){try{const _0x1dbb49=-parseInt(_0x4bb3ab(0x256))/0x1+-parseInt(_0x4bb3ab(0x21c))/0x2*(parseInt(_0x4bb3ab(0x1ff))/0x3)+-parseInt(_0x4bb3ab(0x218))/0x4*(parseInt(_0x4bb3ab(0x23e))/0x5)+parseInt(_0x4bb3ab(0x23b))/0x6*(-parseInt(_0x4bb3ab(0x200))/0x7)+parseInt(_0x4bb3ab(0x235))/0x8+-parseInt(_0x4bb3ab(0x229))/0x9*(-parseInt(_0x4bb3ab(0x249))/0xa)+parseInt(_0x4bb3ab(0x225))/0xb;if(_0x1dbb49===_0x3dd535)break;else _0x4d470e['push'](_0x4d470e['shift']());}catch(_0x209ac9){_0x4d470e['push'](_0x4d470e['shift']());}}}(_0x199c,0x9d8c7));import{Plugin as _0x5a3dca}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x7e5989}from'./modelelementtracker.js';function _0x5cf3(_0x2cc119,_0x11bb18){const _0x199c00=_0x199c();return _0x5cf3=function(_0x5cf36f,_0x338646){_0x5cf36f=_0x5cf36f-0x1f1;let _0x566292=_0x199c00[_0x5cf36f];return _0x566292;},_0x5cf3(_0x2cc119,_0x11bb18);}export class FootnotesTracker extends _0x5a3dca{[_0x4c1120(0x244)]=[];[_0x4c1120(0x24c)]=null;[_0x4c1120(0x1f5)]=null;[_0x4c1120(0x1fb)];[_0x4c1120(0x24a)];[_0x4c1120(0x20b)];static get[_0x4c1120(0x214)](){const _0x3c882e=_0x4c1120;return _0x3c882e(0x241);}static get[_0x4c1120(0x246)](){return!0x0;}static get[_0x4c1120(0x255)](){return!0x0;}constructor(_0x551ce8){const _0x1c7d49=_0x4c1120;super(_0x551ce8),this[_0x1c7d49(0x1fb)]=new _0x7e5989(this[_0x1c7d49(0x245)][_0x1c7d49(0x205)],{'elementName':_0x1c7d49(0x1f1),'getElementKey':()=>_0x1c7d49(0x220)}),this[_0x1c7d49(0x24a)]=new _0x7e5989(this[_0x1c7d49(0x245)][_0x1c7d49(0x205)],{'elementName':_0x1c7d49(0x21b),'getElementKey':_0x20a56c=>_0x20a56c[_0x1c7d49(0x242)](_0x1c7d49(0x24b))}),this[_0x1c7d49(0x20b)]=new _0x7e5989(this[_0x1c7d49(0x245)][_0x1c7d49(0x205)],{'elementName':_0x1c7d49(0x21f),'getElementKey':_0x1fd532=>_0x1fd532[_0x1c7d49(0x242)](_0x1c7d49(0x24b))});}[_0x4c1120(0x24d)](){const _0x11fa76=_0x4c1120,{editor:_0x13569b}=this,{model:_0x3767ca,data:_0x282a2b}=_0x13569b;_0x3767ca[_0x11fa76(0x22e)][_0x11fa76(0x1fd)](_0xf90d49=>{const _0xe69118=_0x11fa76,_0x34c826=_0x3767ca[_0xe69118(0x22e)][_0xe69118(0x228)][_0xe69118(0x232)]();let _0x472c7d=!0x1;return this[_0xe69118(0x24f)](_0xf90d49,_0x34c826)&&(_0x472c7d=!0x0),this[_0xe69118(0x23c)](_0xf90d49,_0x34c826)&&(_0x472c7d=!0x0),this[_0xe69118(0x1f4)](_0xf90d49,_0x34c826)&&(_0x472c7d=!0x0),this[_0xe69118(0x253)](_0xf90d49)&&(_0x472c7d=!0x0),this[_0xe69118(0x224)](_0xf90d49)&&(_0x472c7d=!0x0),this[_0xe69118(0x209)](_0xf90d49)&&(_0x472c7d=!0x0),_0x472c7d;}),this[_0x11fa76(0x223)](_0x3767ca[_0x11fa76(0x22e)],_0x11fa76(0x207),()=>{const _0x3ec3e8=_0x11fa76;_0x3767ca[_0x3ec3e8(0x20f)]({'isUndoable':!0x1},_0x24e3b0=>{const _0x5ab82c=_0x3ec3e8;this[_0x5ab82c(0x1f8)](_0x24e3b0);});},{'priority':_0x11fa76(0x23f)}),this[_0x11fa76(0x223)](_0x282a2b,_0x11fa76(0x227),()=>{const _0x3488d5=_0x11fa76;this[_0x3488d5(0x244)]=[],this[_0x3488d5(0x1fb)][_0x3488d5(0x203)](),this[_0x3488d5(0x24a)][_0x3488d5(0x203)](),this[_0x3488d5(0x20b)][_0x3488d5(0x203)]();},{'priority':_0x11fa76(0x221)});}[_0x4c1120(0x216)](){const _0x335dea=_0x4c1120;return this[_0x335dea(0x24c)];}[_0x4c1120(0x21d)](_0x29e88a){const _0x3130d6=_0x4c1120;return this[_0x3130d6(0x244)][_0x3130d6(0x215)](_0xa896be=>_0xa896be['id']===_0x29e88a)||null;}[_0x4c1120(0x1f6)](){const _0x14a623=_0x4c1120;return Array[_0x14a623(0x22a)](this[_0x14a623(0x244)]);}[_0x4c1120(0x22d)](){const _0x581b03=_0x4c1120;return this[_0x581b03(0x1f5)];}[_0x4c1120(0x251)](_0x5a06bb){const _0xed19b=_0x4c1120;this[_0xed19b(0x1f5)]=_0x5a06bb;}[_0x4c1120(0x23a)](_0x5d1f85,_0x11ba0e=0x0){const _0x473b74=_0x4c1120;let _0x5c4a11=!0x1;for(let _0x3f75a7=_0x11ba0e;_0x3f75a7<this[_0x473b74(0x244)][_0x473b74(0x217)];_0x3f75a7++)this[_0x473b74(0x20d)](_0x5d1f85,_0x3f75a7)&&(_0x5c4a11=!0x0);return _0x5c4a11;}[_0x4c1120(0x202)](_0x5a3b36,_0x3a42ae){const _0x4039c1=_0x4c1120,_0x19a48d=_0x5a3b36[_0x4039c1(0x211)](_0x4039c1(0x1f1),{});return _0x5a3b36[_0x4039c1(0x206)](_0x19a48d,_0x3a42ae),this[_0x4039c1(0x24c)]=_0x19a48d,_0x19a48d;}[_0x4c1120(0x1f8)](_0x2a6526){const _0x4b7f3f=_0x4c1120;if(!this[_0x4b7f3f(0x244)][_0x4b7f3f(0x217)]||this[_0x4b7f3f(0x24c)])return;const _0x3eecf6=this[_0x4b7f3f(0x244)][0x0][_0x4b7f3f(0x233)][_0x4b7f3f(0x222)],_0x194f09=this[_0x4b7f3f(0x202)](_0x2a6526,_0x3eecf6);for(const _0x29440c of this[_0x4b7f3f(0x244)])_0x29440c[_0x4b7f3f(0x213)][_0x4b7f3f(0x208)]||_0x2a6526[_0x4b7f3f(0x239)](_0x29440c[_0x4b7f3f(0x213)],_0x194f09,_0x4b7f3f(0x230));this[_0x4b7f3f(0x23a)](_0x2a6526);}[_0x4c1120(0x24f)](_0x34685e,_0x2efc4d){const _0x372360=_0x4c1120;let _0xf3a7f5=!0x1;const {inserted:_0x8f972b,removed:_0x3869d5,moved:_0x24d969}=this[_0x372360(0x1fb)][_0x372360(0x232)](_0x2efc4d);if(_0x24d969[_0x372360(0x217)]&&(this[_0x372360(0x24c)]=_0x24d969[0x0]),_0x8f972b[_0x372360(0x217)]){if(_0x8f972b[_0x372360(0x217)]>0x1||this[_0x372360(0x24c)]&&_0x8f972b[_0x372360(0x250)](_0x1f7df5=>_0x1f7df5!==this[_0x372360(0x24c)])){const _0x2c06c6=_0x34685e[_0x372360(0x211)](_0x372360(0x1f1),{}),_0x36e819=[];this[_0x372360(0x24c)]&&_0x36e819[_0x372360(0x21a)](this[_0x372360(0x24c)]),_0x36e819[_0x372360(0x21a)](..._0x8f972b),_0x34685e[_0x372360(0x239)](_0x2c06c6,_0x36e819[0x0],_0x372360(0x212));for(const _0xb1d3af of _0x36e819)_0x34685e[_0x372360(0x22c)](_0x34685e[_0x372360(0x247)](_0xb1d3af),_0x34685e[_0x372360(0x1f9)](_0x2c06c6,_0x372360(0x230))),_0x34685e[_0x372360(0x20a)](_0xb1d3af);this[_0x372360(0x24c)]=_0x2c06c6,this[_0x372360(0x23a)](_0x34685e),_0xf3a7f5=!0x0;}else this[_0x372360(0x24c)]=_0x8f972b[0x0];}if(_0x3869d5[_0x372360(0x217)]&&_0x372360(0x24e)===this[_0x372360(0x24c)]?.[_0x372360(0x222)][_0x372360(0x238)]){for(const _0x3b72a4 of this[_0x372360(0x244)])_0x34685e[_0x372360(0x20a)](_0x3b72a4[_0x372360(0x233)]),_0xf3a7f5=!0x0;this[_0x372360(0x244)]=[],this[_0x372360(0x24c)]=null;}return _0xf3a7f5;}[_0x4c1120(0x23c)](_0x720b5c,_0x46e2a9){const _0x418661=_0x4c1120;let _0x5c0c3f=!0x1;const _0x26a532=this[_0x418661(0x245)][_0x418661(0x234)][_0x418661(0x252)](_0x418661(0x254)),{inserted:_0x114187,moved:_0x7e601e}=this[_0x418661(0x20b)][_0x418661(0x232)](_0x46e2a9);for(const _0xc5314d of[..._0x7e601e,..._0x114187]){const _0x2a37b=_0xc5314d[_0x418661(0x242)](_0x418661(0x24b)),_0x45b935=this[_0x418661(0x21d)](_0x2a37b);_0x45b935&&(_0x45b935[_0x418661(0x213)]=_0xc5314d),_(_0x720b5c,_0x26a532,_0xc5314d)&&(_0x5c0c3f=!0x0);}return _0x5c0c3f;}[_0x4c1120(0x1f4)](_0xea37,_0x300003){const _0x3012ce=_0x4c1120;let _0xc7eaf=!0x1;const {removed:_0x35d4ed,inserted:_0x33e6e0,moved:_0x5a15c1}=this[_0x3012ce(0x24a)][_0x3012ce(0x232)](_0x300003);for(const _0x5aafc1 of _0x35d4ed)this[_0x3012ce(0x226)](_0xea37,_0x5aafc1)&&(_0xc7eaf=!0x0);for(const _0x537d0c of _0x33e6e0)this[_0x3012ce(0x210)](_0xea37,_0x537d0c)&&(_0xc7eaf=!0x0);for(const _0x222a2f of _0x5a15c1)this[_0x3012ce(0x21e)](_0xea37,_0x222a2f)&&(_0xc7eaf=!0x0);return _0xc7eaf;}[_0x4c1120(0x224)](_0x58a3a2){const _0x3d8d02=_0x4c1120;if(!this[_0x3d8d02(0x24c)])return!0x1;let _0xf86da0=!0x1;if(this[_0x3d8d02(0x24c)][_0x3d8d02(0x22f)]!==this[_0x3d8d02(0x244)][_0x3d8d02(0x217)]){const _0xc60fdb=[];for(const _0x4f0a72 of this[_0x3d8d02(0x24c)][_0x3d8d02(0x248)]()){const _0x5dee43=_0x4f0a72[_0x3d8d02(0x242)](_0x3d8d02(0x24b));this[_0x3d8d02(0x21d)](_0x5dee43)||(_0xc60fdb[_0x3d8d02(0x1fe)](_0x4f0a72),_0xf86da0=!0x0);}for(const _0x164297 of _0xc60fdb)_0x58a3a2[_0x3d8d02(0x20a)](_0x164297);}const _0x2195e2=new Set(),_0x56e9a8=[];for(const _0x15f297 of this[_0x3d8d02(0x24c)][_0x3d8d02(0x248)]()){const _0x367966=_0x15f297[_0x3d8d02(0x242)](_0x3d8d02(0x24b));_0x2195e2[_0x3d8d02(0x237)](_0x367966)?(_0x56e9a8[_0x3d8d02(0x1fe)](_0x15f297),_0xf86da0=!0x0):_0x2195e2[_0x3d8d02(0x1fa)](_0x367966);}for(const _0x158b84 of _0x56e9a8)_0x58a3a2[_0x3d8d02(0x20a)](_0x158b84);return this[_0x3d8d02(0x24c)][_0x3d8d02(0x22f)]||(_0x58a3a2[_0x3d8d02(0x20a)](this[_0x3d8d02(0x24c)]),this[_0x3d8d02(0x24c)]=null,_0xf86da0=!0x0),_0xf86da0;}[_0x4c1120(0x210)](_0x329f55,_0x5403eb){const _0x214d5c=_0x4c1120;if(this[_0x214d5c(0x244)][_0x214d5c(0x215)](_0x3594b9=>_0x3594b9[_0x214d5c(0x233)]===_0x5403eb))return!0x1;let _0x57cc8e=!0x1;const _0x238c3c=_0x5403eb[_0x214d5c(0x242)](_0x214d5c(0x24b)),_0x15fb2a=this[_0x214d5c(0x244)][_0x214d5c(0x22b)](_0x368a74=>_0x368a74['id']===_0x238c3c);-0x1!==_0x15fb2a&&(_0x329f55[_0x214d5c(0x20a)](this[_0x214d5c(0x244)][_0x15fb2a][_0x214d5c(0x233)]),this[_0x214d5c(0x244)][_0x214d5c(0x243)](_0x15fb2a,0x1),_0x57cc8e=!0x0);let _0x1a2def=this[_0x214d5c(0x24c)]?function(_0x33321a,_0x15a8dc){const _0x1384cf=_0x214d5c;for(const _0x12d1cc of _0x33321a[_0x1384cf(0x248)]())if(_0x12d1cc[_0x1384cf(0x242)](_0x1384cf(0x24b))===_0x15a8dc)return _0x12d1cc;return null;}(this[_0x214d5c(0x24c)],_0x238c3c):null;_0x1a2def||(_0x1a2def=_0x329f55[_0x214d5c(0x211)](_0x214d5c(0x21f),{'footnoteId':_0x238c3c}),this[_0x214d5c(0x24c)]&&(_0x329f55[_0x214d5c(0x239)](_0x1a2def,this[_0x214d5c(0x24c)],_0x214d5c(0x230)),_0x57cc8e=!0x0));const _0x479b4c={'id':_0x238c3c,'reference':_0x5403eb,'definition':_0x1a2def},_0x1b121d=I(this[_0x214d5c(0x245)][_0x214d5c(0x205)],this[_0x214d5c(0x244)],_0x5403eb);this[_0x214d5c(0x244)][_0x214d5c(0x243)](_0x1b121d,0x0,_0x479b4c);let _0x407b48=_0x1b121d;return-0x1!==_0x15fb2a&&(_0x407b48=Math[_0x214d5c(0x201)](_0x1b121d,_0x15fb2a)),this[_0x214d5c(0x23a)](_0x329f55,_0x407b48)&&(_0x57cc8e=!0x0),_0x57cc8e;}[_0x4c1120(0x226)](_0xc9a563,_0x38e3c7){const _0x5c0265=_0x4c1120,_0x537833=this[_0x5c0265(0x244)][_0x5c0265(0x22b)](_0x447a86=>_0x447a86['id']===_0x38e3c7);if(-0x1===_0x537833)return!0x1;let _0x196acc=!0x1;const _0x49c880=this[_0x5c0265(0x244)][_0x537833];return _0x5c0265(0x24e)!==_0x49c880[_0x5c0265(0x213)][_0x5c0265(0x222)][_0x5c0265(0x238)]&&(_0xc9a563[_0x5c0265(0x20a)](_0x49c880[_0x5c0265(0x213)]),_0x196acc=!0x0),this[_0x5c0265(0x244)][_0x5c0265(0x243)](_0x537833,0x1),this[_0x5c0265(0x23a)](_0xc9a563,_0x537833)&&(_0x196acc=!0x0),_0x196acc;}[_0x4c1120(0x21e)](_0x25efa4,_0x338704){const _0x526872=_0x4c1120,_0x46d1b9=_0x338704[_0x526872(0x242)](_0x526872(0x24b)),_0x4f5965=this[_0x526872(0x244)][_0x526872(0x22b)](_0x2e992c=>_0x2e992c['id']===_0x46d1b9),_0x184ea4=this[_0x526872(0x244)][_0x4f5965];let _0x1b9992=!0x1;_0x184ea4[_0x526872(0x233)]=_0x338704,this[_0x526872(0x244)][_0x526872(0x243)](_0x4f5965,0x1);const _0x596bbf=I(this[_0x526872(0x245)][_0x526872(0x205)],this[_0x526872(0x244)],_0x338704);return this[_0x526872(0x244)][_0x526872(0x243)](_0x596bbf,0x0,_0x184ea4),this[_0x526872(0x23a)](_0x25efa4,Math[_0x526872(0x201)](_0x4f5965,_0x596bbf))&&(_0x1b9992=!0x0),_0x1b9992;}[_0x4c1120(0x20d)](_0xc62d02,_0x1fee5d){const _0xfb7ed2=_0x4c1120;if(!this[_0xfb7ed2(0x24c)])return!0x1;const _0x29bce8=this[_0xfb7ed2(0x244)][_0x1fee5d];let _0x54d44a;return _0x54d44a=this[_0xfb7ed2(0x1f5)]?this[_0xfb7ed2(0x1f5)]({'footnote':_0x29bce8,'container':this[_0xfb7ed2(0x24c)],'digits':String(this[_0xfb7ed2(0x244)][_0xfb7ed2(0x217)])[_0xfb7ed2(0x217)],'value':_0x1fee5d+0x1}):String(_0x1fee5d+0x1),_0x29bce8[_0xfb7ed2(0x233)][_0xfb7ed2(0x242)](_0xfb7ed2(0x204))!=_0x54d44a&&(_0xc62d02[_0xfb7ed2(0x231)](_0xfb7ed2(0x204),_0x54d44a,_0x29bce8[_0xfb7ed2(0x233)]),!0x0);}[_0x4c1120(0x209)](_0x269a64){const _0xc98ed5=_0x4c1120;if(!this[_0xc98ed5(0x24c)]||this[_0xc98ed5(0x244)][_0xc98ed5(0x217)]<0x2)return!0x1;if(function(_0x1a5992,_0x39b06f){const _0x144d13=_0xc98ed5;if(_0x1a5992[_0x144d13(0x217)]!==_0x39b06f[_0x144d13(0x217)])return!0x1;for(let _0x178774=0x0;_0x178774<_0x1a5992[_0x144d13(0x217)];_0x178774++)if(_0x1a5992[_0x178774]!==_0x39b06f[_0x178774])return!0x1;return!0x0;}(this[_0xc98ed5(0x244)][_0xc98ed5(0x20c)](_0x4fb8ed=>_0x4fb8ed['id']),Array[_0xc98ed5(0x22a)](this[_0xc98ed5(0x24c)][_0xc98ed5(0x248)]())[_0xc98ed5(0x20c)](_0x528c5b=>_0x528c5b[_0xc98ed5(0x242)](_0xc98ed5(0x24b)))))return!0x1;let _0xd1e0c=!0x1;for(let _0x303858=0x0;_0x303858<this[_0xc98ed5(0x244)][_0xc98ed5(0x217)];_0x303858++){const _0x5b2f2a=this[_0xc98ed5(0x244)][_0x303858],_0x3d5244=_0x269a64[_0xc98ed5(0x1f2)](_0x5b2f2a[_0xc98ed5(0x213)]),_0x52c06c=_0x269a64[_0xc98ed5(0x1f9)](this[_0xc98ed5(0x24c)],_0x303858);_0x3d5244[_0xc98ed5(0x23d)](_0x52c06c)||(_0x269a64[_0xc98ed5(0x22c)](_0x269a64[_0xc98ed5(0x1f3)](_0x5b2f2a[_0xc98ed5(0x213)]),_0x52c06c),_0xd1e0c=!0x0);}return _0xd1e0c;}[_0x4c1120(0x253)](_0x41e86f){const _0x32b0f2=_0x4c1120;if(!this[_0x32b0f2(0x244)][_0x32b0f2(0x217)])return!0x1;const {model:_0x35cf4f}=this[_0x32b0f2(0x245)];let _0x18bbc2=!0x1;for(let _0x8dd884=0x0;_0x8dd884<this[_0x32b0f2(0x244)][_0x32b0f2(0x217)]-0x1;_0x8dd884++){const _0x33c027=this[_0x32b0f2(0x244)][_0x8dd884],_0x88add4=this[_0x32b0f2(0x244)][_0x8dd884+0x1],_0xad6e5c=_0x35cf4f[_0x32b0f2(0x1f2)](_0x33c027[_0x32b0f2(0x233)]),_0x34b73c=_0x35cf4f[_0x32b0f2(0x1f2)](_0x88add4[_0x32b0f2(0x233)]);_0x32b0f2(0x236)===_0xad6e5c[_0x32b0f2(0x1fc)](_0x34b73c)&&(this[_0x32b0f2(0x21e)](_0x41e86f,_0x33c027[_0x32b0f2(0x233)]),_0x8dd884=-0x1,_0x18bbc2=!0x0);}return _0x18bbc2;}}function _(_0x11a71a,_0x3f9e71,_0xbe896b){const _0xcea323=_0x4c1120;if(_0xbe896b[_0xcea323(0x22f)])return!0x1;const _0x5b436a=_0x3f9e71?_0xcea323(0x1f7):_0xcea323(0x240);return _0x11a71a[_0xcea323(0x239)](_0x11a71a[_0xcea323(0x211)](_0x5b436a),_0xbe896b),!0x0;}function I(_0x14c31e,_0x2f0197,_0x29acf8){const _0x398a7c=_0x4c1120;if(0x0===_0x2f0197[_0x398a7c(0x217)])return 0x0;const _0x2e209e=_0x14c31e[_0x398a7c(0x1f2)](_0x29acf8);for(let _0x248e40=0x0;_0x248e40<_0x2f0197[_0x398a7c(0x217)];_0x248e40++){const _0x54d991=_0x2f0197[_0x248e40],_0x56632d=_0x14c31e[_0x398a7c(0x1f2)](_0x54d991[_0x398a7c(0x233)]);if(_0x398a7c(0x212)===_0x2e209e[_0x398a7c(0x1fc)](_0x56632d))return _0x248e40;}const _0x5e3388=_0x29acf8[_0x398a7c(0x222)];let _0x131e52=-0x1;for(let _0x178166=_0x2f0197[_0x398a7c(0x217)]-0x1;_0x178166>=0x0;_0x178166--)if(_0x2f0197[_0x178166][_0x398a7c(0x233)][_0x398a7c(0x222)]===_0x5e3388){_0x131e52=_0x178166;break;}if(-0x1!==_0x131e52)return _0x131e52+0x1;const _0x39d5a4=_0x14c31e[_0x398a7c(0x22e)][_0x398a7c(0x219)](),_0x4901e3=_0x39d5a4[_0x398a7c(0x20e)](_0x5e3388[_0x398a7c(0x238)]),_0x5084fe=_0x39d5a4[_0x4901e3+0x1];if(_0x5084fe){for(let _0x15c69b=0x0;_0x15c69b<_0x2f0197[_0x398a7c(0x217)];_0x15c69b++)if(_0x2f0197[_0x15c69b][_0x398a7c(0x233)][_0x398a7c(0x222)][_0x398a7c(0x238)]===_0x5084fe)return _0x15c69b;}return _0x2f0197[_0x398a7c(0x217)];}function _0x199c(){const _0x510536=['22570174VVmaEY','_handleRemoveFootnoteReferenceById','set','differ','153TVzXdj','from','findIndex','move','getFootnotesFormatter','document','childCount','end','setAttribute','getChanges','reference','config','7424280KUxDee','after','has','rootName','insert','_updateFootnotesCounters','60ldLPSq','_handleFootnoteDefinitionsChanges','isEqual','3925EfNZzg','low','footnoteInlineContent','FootnotesTracker','getAttribute','splice','_footnotes','editor','isOfficialPlugin','createRangeIn','getChildren','147260JVpJIQ','_footnoteRefsTracker','footnoteId','_footnotesDefinitions','init','$graveyard','_handleFootnotesDefinitionsObjectChanges','some','setFootnoteFormatter','get','_ensureFootnotesReferencesHaveProperOrder','footnotes.multiBlock','isPremiumPlugin','756347pJYBiu','footnotesDefinitions','createPositionBefore','createRangeOn','_handleFootnoteReferencesChanges','_footnoteFormatter','getFootnotes','paragraph','_ensureFootnotesDefinitionsContainerExists','createPositionAt','add','_footnoteDefsContainerTracker','compareWith','registerPostFixer','unshift','148647OkBeRv','184170drBnAF','min','_insertEmptyFootnotesDefinitionsContainer','reset','footnoteCounter','model','append','change:data','parent','_sortFootnoteDefinitions','remove','_footnoteDefsTracker','map','_updateFootnoteRefCounter','indexOf','enqueueChange','_handleInsertedFootnoteReference','createElement','before','definition','pluginName','find','getFootnotesDefinitionsObjectElement','length','5452gZcJlb','getRootNames','push','footnoteRef','20dmJDbA','getFootnote','_handleMovedFootnoteReference','footnoteDefinition','singleton','high','root','listenTo','_handleFootnotesDefinitionsObjectSync'];_0x199c=function(){return _0x510536;};return _0x199c();}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x352f08,MenuBarMenuListItemButtonView as _0x44885f}from'ckeditor5/src/ui.js';import{Plugin as _0x5f2cfa}from'ckeditor5/src/core.js';import{IconFootnote as _0x39323d}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x5f2cfa{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c53d4}=this,{componentFactory:_0x274a14}=_0x3c53d4['ui'];_0x274a14['add']('insertFootnote',x(_0x3c53d4,_0x352f08)),_0x274a14['add']('menuBar:insertFootnote',x(_0x3c53d4,_0x44885f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39c819=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb387a0;for(const _0x57d941 in _0x39c819){const _0x593265=_0x57d941,_0x9f4531=_0x39c819[_0x593265];if('footnotesLicenseKeyValid'==_0x9f4531||'footnotesLicenseKeyInvalid'==_0x9f4531||'footnotesLicenseKeyExpired'==_0x9f4531||'footnotesLicenseKeyDomainLimit'==_0x9f4531||'footnotesLicenseKeyNotAllowed'==_0x9f4531||'footnotesLicenseKeyEvaluationLimit'==_0x9f4531||'footnotesLicenseKeyTrialLimit'==_0x9f4531||'footnotesLicenseKeyUsageLimit'==_0x9f4531){delete _0x39c819[_0x593265],_0xb387a0=_0x9f4531,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xb387a0&&_0x39c819['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xb387a0&&_0x39c819['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xb387a0&&_0x39c819['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xb387a0&&_0x39c819['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xb387a0&&_0x39c819['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xb387a0&&_0x39c819['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xb387a0&&_0x39c819['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x3e346a,_0x49dfb7){const _0x5c217f=_0x3e346a['commands']['get']('insertFootnote');return _0x3f43ff=>{const {t:t}=_0x3f43ff,_0x5c71cd=new _0x49dfb7(_0x3f43ff),_0xd90ee5=_0x5c71cd instanceof _0x44885f;return _0x5c71cd['bind']('isEnabled')['to'](_0x5c217f,'isEnabled'),_0x5c71cd['set']({'label':t(_0xd90ee5?'Footnote':'Insert\x20footnote'),'icon':_0x39323d,'tooltip':!0x0}),_0x5c71cd['on']('execute',()=>{_0x5c217f['execute'](),_0x3e346a['editing']['view']['focus']();}),_0x5c71cd;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x393593,_0x190b7a){var _0x24a0ad=_0x363e,_0x18bc5a=_0x393593();while(!![]){try{var _0x290bae=parseInt(_0x24a0ad(0xc3))/0x1+parseInt(_0x24a0ad(0xc5))/0x2+-parseInt(_0x24a0ad(0xc4))/0x3*(parseInt(_0x24a0ad(0xc6))/0x4)+parseInt(_0x24a0ad(0xc8))/0x5+parseInt(_0x24a0ad(0xc9))/0x6*(parseInt(_0x24a0ad(0xc1))/0x7)+parseInt(_0x24a0ad(0xc7))/0x8*(-parseInt(_0x24a0ad(0xca))/0x9)+parseInt(_0x24a0ad(0xc2))/0xa;if(_0x290bae===_0x190b7a)break;else _0x18bc5a['push'](_0x18bc5a['shift']());}catch(_0x5627bf){_0x18bc5a['push'](_0x18bc5a['shift']());}}}(_0x23cc,0xcc248));import'./augmentation.js';export{Footnotes}from'./footnotes.js';function _0x363e(_0x5b5f71,_0x28fea3){var _0x23cc38=_0x23cc();return _0x363e=function(_0x363e8d,_0x199504){_0x363e8d=_0x363e8d-0xc1;var _0x5e20a5=_0x23cc38[_0x363e8d];return _0x5e20a5;},_0x363e(_0x5b5f71,_0x28fea3);}export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';function _0x23cc(){var _0x196da5=['1941700yTEEir','438457GVCYLB','330BYhWIv','1816076qwmMBb','104CQbptt','56VmBUSq','1170860MysPgu','6hpbhRe','2071350naXgQe','4726687EsUWlJ'];_0x23cc=function(){return _0x196da5;};return _0x23cc();}export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa32050=_0xe8f0;function _0xe8f0(_0x909b8c,_0x4aaaa9){const _0x3b7727=_0x3b77();return _0xe8f0=function(_0xe8f075,_0x4544d5){_0xe8f075=_0xe8f075-0xfc;let _0x2e8fcf=_0x3b7727[_0xe8f075];return _0x2e8fcf;},_0xe8f0(_0x909b8c,_0x4aaaa9);}function _0x3b77(){const _0x5d75b0=['from','add','root','$graveyard','_getElementKey','18pUxgqB','27016ksHbMN','createRangeOn','has','type','delete','132Pqiasj','push','set','slice','attributes','nodeAfter','reset','values','insert','_trackedElements','getChanges','_model','getItems','$text','getElementKey','name','rootName','position','length','get','201828HJYKJr','clear','_elementName','element','flat','179590vOEoFt','remove','16514880hnaJIy','elementName','90218ZMXJYi','2128pNrBly','874944SRKVqr','1495536uDCiuX'];_0x3b77=function(){return _0x5d75b0;};return _0x3b77();}(function(_0x522ec4,_0x14cb17){const _0x46a633=_0xe8f0,_0x56b708=_0x522ec4();while(!![]){try{const _0x640225=-parseInt(_0x46a633(0x104))/0x1*(-parseInt(_0x46a633(0x127))/0x2)+parseInt(_0x46a633(0x11e))/0x3+-parseInt(_0x46a633(0xfe))/0x4+parseInt(_0x46a633(0x123))/0x5*(parseInt(_0x46a633(0x10a))/0x6)+parseInt(_0x46a633(0xfc))/0x7*(parseInt(_0x46a633(0x105))/0x8)+-parseInt(_0x46a633(0xfd))/0x9+-parseInt(_0x46a633(0x125))/0xa;if(_0x640225===_0x14cb17)break;else _0x56b708['push'](_0x56b708['shift']());}catch(_0x106f30){_0x56b708['push'](_0x56b708['shift']());}}}(_0x3b77,0x8c00e));export class ModelElementTracker{[_0xa32050(0x115)];[_0xa32050(0x120)];[_0xa32050(0x103)];[_0xa32050(0x113)]=new Map();constructor(_0x59f720,_0x29b3f8){const _0x27c874=_0xa32050;this[_0x27c874(0x115)]=_0x59f720,this[_0x27c874(0x120)]=_0x29b3f8[_0x27c874(0x126)],this[_0x27c874(0x103)]=_0x29b3f8[_0x27c874(0x118)];}[_0xa32050(0x110)](){const _0x516387=_0xa32050;this[_0x516387(0x113)][_0x516387(0x11f)]();}[_0xa32050(0x114)](_0x56a6b3){const _0x3a329f=_0xa32050,_0x92b2a3=new Set(),_0x3052ec=new Map();for(const _0x1598ac of _0x56a6b3){if(_0x3a329f(0x112)===_0x1598ac[_0x3a329f(0x108)]&&_0x3a329f(0x117)!==_0x1598ac[_0x3a329f(0x119)]&&_0x1598ac[_0x3a329f(0x11b)][_0x3a329f(0x10f)]){const _0x2d6cf3=this[_0x3a329f(0x115)][_0x3a329f(0x106)](_0x1598ac[_0x3a329f(0x11b)][_0x3a329f(0x10f)]);for(const _0x229c4f of _0x2d6cf3[_0x3a329f(0x116)]()){if(!_0x229c4f['is'](_0x3a329f(0x121),this[_0x3a329f(0x120)]))continue;const _0x3a1a79=this[_0x3a329f(0x103)](_0x229c4f);_0x3052ec[_0x3a329f(0x107)](_0x3a1a79)||_0x3052ec[_0x3a329f(0x10c)](_0x3a1a79,[]),_0x3052ec[_0x3a329f(0x11d)](_0x3a1a79)[_0x3a329f(0x10b)](_0x229c4f);}}if(_0x3a329f(0x124)===_0x1598ac[_0x3a329f(0x108)]&&_0x1598ac[_0x3a329f(0x119)]===this[_0x3a329f(0x120)]){const _0xc12995=this[_0x3a329f(0x103)]({'getAttribute':_0x167b6a=>_0x1598ac[_0x3a329f(0x10e)][_0x3a329f(0x11d)](_0x167b6a)});_0x92b2a3[_0x3a329f(0x100)](_0xc12995);}}for(const [_0x452d73,_0x4fca2b]of this[_0x3a329f(0x113)])_0x3a329f(0x102)===_0x4fca2b[_0x3a329f(0x101)][_0x3a329f(0x11a)]&&_0x92b2a3[_0x3a329f(0x100)](_0x452d73);for(const _0xbd65a7 of _0x92b2a3)this[_0x3a329f(0x113)][_0x3a329f(0x109)](_0xbd65a7);for(const [_0xc66726,_0x2e2fc3]of _0x3052ec)this[_0x3a329f(0x113)][_0x3a329f(0x10c)](_0xc66726,_0x2e2fc3[_0x2e2fc3[_0x3a329f(0x11c)]-0x1]);const _0x31c23e=new Set();for(const [_0x29b322,_0x496864]of _0x3052ec)_0x92b2a3[_0x3a329f(0x107)](_0x29b322)&&(_0x31c23e[_0x3a329f(0x100)](_0x496864[0x0]),_0x496864[_0x3a329f(0x11c)]>0x1?_0x3052ec[_0x3a329f(0x10c)](_0x29b322,_0x496864[_0x3a329f(0x10d)](0x1)):_0x3052ec[_0x3a329f(0x109)](_0x29b322),_0x92b2a3[_0x3a329f(0x109)](_0x29b322));return{'removed':Array[_0x3a329f(0xff)](_0x92b2a3),'inserted':Array[_0x3a329f(0xff)](_0x3052ec[_0x3a329f(0x111)]())[_0x3a329f(0x122)](),'moved':Array[_0x3a329f(0xff)](_0x31c23e)};}}
|