@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251113.0 → 0.0.0-nightly-20251118.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/LICENSE.md +3 -3
- 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 _0x42fd68}from'ckeditor5/src/core.js';import{isWidget as _0x487311,toWidget as _0x3456d9,toWidgetEditable as _0xfc3fa0}from'ckeditor5/src/widget.js';import{uid as _0x58b574}from'ckeditor5/src/utils.js';import{PointerObserver as _0x7d9fc4,ClickObserver as _0xdee22c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x102be0}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x401837}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x42fd68{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x102be0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x316470}=this;_0x316470['config']['define']('footnotes.multiBlock',!0x0),_0x316470['commands']['add']('insertFootnote',new _0x401837(_0x316470)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x30aba5){const _0x2d3f68=_0x326044([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]),_0xebd83c=0x47a28506,_0x47c609=0x47a5fdfe^_0xebd83c,_0x32d4fd=window[_0x326044([0x44,0x61,0x74,0x65])][_0x326044([0x6e,0x6f,0x77])](),_0x1db934=_0x30aba5[_0x326044([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x556b35=new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ced1=>{_0x1db934[_0x326044([0x6f,0x6e,0x63,0x65])](_0x326044([0x72,0x65,0x61,0x64,0x79]),_0x58ced1);}),_0x19c805={[_0x326044([0x6b,0x74,0x79])]:_0x326044([0x45,0x43]),[_0x326044([0x75,0x73,0x65])]:_0x326044([0x73,0x69,0x67]),[_0x326044([0x63,0x72,0x76])]:_0x326044([0x50,0x2d,0x32,0x35,0x36]),[_0x326044([0x78])]:_0x326044([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]),[_0x326044([0x79])]:_0x326044([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]),[_0x326044([0x61,0x6c,0x67])]:_0x326044([0x45,0x53,0x32,0x35,0x36])},_0x4756d8=_0x1db934[_0x326044([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x326044([0x67,0x65,0x74])](_0x326044([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28bd35(){let _0x526578,_0x18f79e=null,_0x35e8e6=null;try{if(_0x4756d8==_0x326044([0x47,0x50,0x4c]))return _0x326044([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x526578=_0x46ff2d(),!_0x526578)return _0x326044([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x526578[_0x326044([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35e8e6=_0x19bc8a(_0x526578[_0x326044([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x526578[_0x326044([0x6a,0x74,0x69])])),await _0x1740e3()?_0x2c3e58()?_0x5bfb5c()?_0x326044([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2343b9()?(_0x526578[_0x326044([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x326044([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18f79e=_0x5638ab(_0x326044([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x526578[_0x326044([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x326044([0x74,0x72,0x69,0x61,0x6c])&&(_0x18f79e=_0x5638ab(_0x326044([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47424a()):_0x326044([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x326044([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x326044([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x326044([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bfb5c(){const _0x27bc70=[_0x326044([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x326044([0x74,0x72,0x69,0x61,0x6c])][_0x326044([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x526578[_0x326044([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d4fd/0x3e8:0xe10*_0x47c609;return _0x526578[_0x326044([0x65,0x78,0x70])]<_0x27bc70;}function _0x2c3e58(){const _0x1a7544=_0x526578[_0x326044([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a7544&&(!!_0x1a7544[_0x326044([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x326044([0x2a]))||!!_0x1a7544[_0x326044([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x326044([0x46,0x4f,0x4f])));}function _0x2343b9(){const _0x1099fd=_0x526578[_0x326044([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1099fd||0x0==_0x1099fd[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x385058}=new URL(window[_0x326044([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1099fd[_0x326044([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x385058))return!0x0;const _0x1243e7=_0x385058[_0x326044([0x73,0x70,0x6c,0x69,0x74])](_0x326044([0x2e]));return _0x1099fd[_0x326044([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x201f8e=>_0x201f8e[_0x326044([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x326044([0x2a])))[_0x326044([0x6d,0x61,0x70])](_0x36d63b=>_0x36d63b[_0x326044([0x73,0x70,0x6c,0x69,0x74])](_0x326044([0x2e])))[_0x326044([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bed3d=>_0x1bed3d[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1243e7[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x326044([0x6d,0x61,0x70])](_0x9fedf8=>Array(_0x1243e7[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9fedf8[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x326044([0x66,0x69,0x6c,0x6c])](_0x9fedf8[0x0]===_0x326044([0x2a])?_0x326044([0x2a]):'')[_0x326044([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9fedf8))[_0x326044([0x73,0x6f,0x6d,0x65])](_0x47d9bf=>_0x1243e7[_0x326044([0x65,0x76,0x65,0x72,0x79])]((_0x7ff8f,_0x3ba3db)=>_0x47d9bf[_0x3ba3db]===_0x7ff8f||_0x47d9bf[_0x3ba3db]===_0x326044([0x2a])));}function _0x47424a(){return _0x18f79e&&_0x35e8e6?new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f02a,_0x4bec74)=>{_0x18f79e[_0x326044([0x74,0x68,0x65,0x6e])](_0x14f02a,_0x4bec74),_0x35e8e6[_0x326044([0x74,0x68,0x65,0x6e])](_0x309ab5=>{_0x309ab5!=_0x326044([0x56,0x61,0x6c,0x69,0x64])&&_0x14f02a(_0x309ab5);},_0x4bec74);}):_0x18f79e||_0x35e8e6||_0x326044([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19bc8a(_0x303ebc,_0x5e52aa){return new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7f49=>{if(_0x3242f6())return _0x4d7f49(_0x326044([0x56,0x61,0x6c,0x69,0x64]));_0x5ef431(),_0x1db934[_0x326044([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x326044([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50b885=!0x1;const _0x15dfa8=_0x58b574();function _0x46fd73(_0x5c662b){return!!_0x5c662b&&(typeof _0x5c662b===_0x326044([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c662b===_0x326044([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c662b[_0x326044([0x74,0x68,0x65,0x6e])]===_0x326044([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c662b[_0x326044([0x63,0x61,0x74,0x63,0x68])]===_0x326044([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41395e(_0x10ead2){_0x57c74f(_0x10ead2)[_0x326044([0x74,0x68,0x65,0x6e])](_0x3c6668=>{if(!_0x3c6668||_0x3c6668[_0x326044([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x326044([0x6f,0x6b]))return _0x326044([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x177fc3(_0xfdf4b4(_0x15dfa8+_0x5e52aa))!=_0x3c6668[_0x326044([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x326044([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x326044([0x56,0x61,0x6c,0x69,0x64]);})[_0x326044([0x74,0x68,0x65,0x6e])](_0x4ab250=>(_0x9724e(),_0x4ab250),()=>{const _0x567c02=_0x36220c();return null==_0x567c02?(_0x9724e(),_0x326044([0x56,0x61,0x6c,0x69,0x64])):_0x326044(_0x32d4fd-_0x567c02>(0x63ae0106^_0xebd83c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x326044([0x74,0x68,0x65,0x6e])](_0x4d7f49)[_0x326044([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d7f49(_0x326044([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19ec26=0x47946b86^_0xebd83c;function _0x9724e(){const _0x359e70=_0x326044([0x6c,0x6c,0x63,0x74,0x2d])+_0x177fc3(_0xfdf4b4(_0x303ebc)),_0x268c7d=_0x3b3651(_0x177fc3(window[_0x326044([0x4d,0x61,0x74,0x68])][_0x326044([0x63,0x65,0x69,0x6c])](_0x32d4fd/_0x19ec26)));window[_0x326044([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x326044([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x359e70,_0x268c7d);}function _0x36220c(){const _0x269d59=_0x326044([0x6c,0x6c,0x63,0x74,0x2d])+_0x177fc3(_0xfdf4b4(_0x303ebc)),_0x59a60c=window[_0x326044([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x326044([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x269d59);return _0x59a60c?window[_0x326044([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3651(_0x59a60c),0x10)*_0x19ec26:null;}function _0x57c74f(_0x4b8701){return new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x155924,_0x4f04b4)=>{_0x4b8701[_0x326044([0x74,0x68,0x65,0x6e])](_0x155924,_0x4f04b4),window[_0x326044([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f04b4,0x47a351c6^_0xebd83c);});}}_0x1db934[_0x326044([0x6f,0x6e])](_0x326044([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42ab69,_0x16185b)=>{if(_0x16185b[0x0]!=_0x303ebc)return _0x4d7f49(_0x326044([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16185b[0x1]={..._0x16185b[0x1],[_0x326044([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15dfa8};},{[_0x326044([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x326044([0x68,0x69,0x67,0x68])}),_0x1db934[_0x326044([0x6f,0x6e])](_0x326044([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b1ac8=>{_0x46fd73(_0x2b1ac8[_0x326044([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50b885=!0x0,_0x41395e(_0x2b1ac8[_0x326044([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x326044([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x326044([0x6c,0x6f,0x77])}),_0x556b35[_0x326044([0x74,0x68,0x65,0x6e])](()=>{_0x50b885||_0x4d7f49(_0x326044([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3242f6(){return _0x1db934[_0x326044([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x326044([0x76,0x69,0x65,0x77])][_0x326044([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x326044([0x61,0x75,0x74,0x6f]);}function _0x5ef431(){_0x1db934[_0x326044([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x326044([0x76,0x69,0x65,0x77])][_0x326044([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x326044([0x61,0x75,0x74,0x6f]);}}function _0x5638ab(_0xb78ac4){const _0x40d4d8=[new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1684c4=>setTimeout(_0x1684c4,0x47abbbca^_0xebd83c)),_0x556b35[_0x326044([0x74,0x68,0x65,0x6e])](()=>new window[(_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f87cd=>{let _0x1a1cd6=0x0;_0x1db934[_0x326044([0x6d,0x6f,0x64,0x65,0x6c])][_0x326044([0x6f,0x6e])](_0x326044([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34c948,_0x3bda4a)=>{_0x3bda4a[0x0][_0x326044([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a1cd6++,_0x1a1cd6==(0x47a284fe^_0xebd83c)&&(_0x4f87cd(),_0x34c948[_0x326044([0x6f,0x66,0x66])]());});}))];return window[_0x326044([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x326044([0x72,0x61,0x63,0x65])](_0x40d4d8)[_0x326044([0x74,0x68,0x65,0x6e])](()=>_0xb78ac4);}async function _0xd4c5c(){await _0x556b35,_0x1db934[_0x326044([0x6d,0x6f,0x64,0x65,0x6c])][_0x326044([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185206,_0x1db934[_0x326044([0x6d,0x6f,0x64,0x65,0x6c])][_0x326044([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185206,_0x1db934[_0x326044([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x326044([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53155c(_0xe250ad){const _0x241183=_0x45b431();_0x1db934[_0x241183]=_0x326044([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe250ad,_0xe250ad!=_0x326044([0x56,0x61,0x6c,0x69,0x64])&&_0xd4c5c();}function _0x45b431(){const _0xae9d9a=window[_0x326044([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x326044([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x326044([0x6e,0x6f,0x77])]())[_0x326044([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x326044([0x2e]),'');let _0xf8f417=_0x326044([0x75]);for(let _0x449878=0x0;_0x449878<_0xae9d9a[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x449878+=0x2){let _0xe61586=window[_0x326044([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae9d9a[_0x326044([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x449878,_0x449878+0x2));_0xe61586>=_0x2d3f68[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe61586-=_0x2d3f68[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf8f417+=_0x2d3f68[_0xe61586];}return _0xf8f417;}function _0x46ff2d(){const _0x5e3663=_0x4756d8[_0x326044([0x73,0x70,0x6c,0x69,0x74])](_0x326044([0x2e]));if(0x3!=_0x5e3663[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4262a4(_0x5e3663[0x1]);function _0x4262a4(_0x155039){const _0x4ed580=_0x5bac58(_0x155039);return _0x4ed580&&_0x3fc385()?_0x4ed580:null;function _0x3fc385(){const _0x309e69=_0x4ed580[_0x326044([0x6a,0x74,0x69])],_0x5d8e66=window[_0x326044([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309e69[_0x326044([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309e69[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dd806={..._0x4ed580,[_0x326044([0x6a,0x74,0x69])]:_0x309e69[_0x326044([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309e69[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dd806[_0x326044([0x76,0x63])],_0xfdf4b4(_0x4dd806)==_0x5d8e66;}}}async function _0x1740e3(){let _0x5ce28d=!0x0;try{const _0x123de5=_0x4756d8[_0x326044([0x73,0x70,0x6c,0x69,0x74])](_0x326044([0x2e])),[_0x1120f4,_0x2f8615,_0x12839b]=_0x123de5;return _0x460381(_0x1120f4),await _0x57e29a(_0x1120f4,_0x2f8615,_0x12839b),_0x5ce28d;}catch{return!0x1;}function _0x460381(_0x51a9ed){const _0x527384=_0x5bac58(_0x51a9ed);_0x527384&&_0x527384[_0x326044([0x61,0x6c,0x67])]==_0x326044([0x45,0x53,0x32,0x35,0x36])||(_0x5ce28d=!0x1);}async function _0x57e29a(_0x3cab45,_0x6d9591,_0x410acd){const _0x192d7a=window[_0x326044([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x326044([0x66,0x72,0x6f,0x6d])](_0x181910(_0x410acd),_0x46d0e6=>_0x46d0e6[_0x326044([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa02bcf=new window[(_0x326044([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x326044([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cab45+_0x326044([0x2e])+_0x6d9591),_0x3745a6=window[_0x326044([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x326044([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3745a6)return;const _0x1af91d=await _0x3745a6[_0x326044([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x326044([0x6a,0x77,0x6b]),_0x19c805,{[_0x326044([0x6e,0x61,0x6d,0x65])]:_0x326044([0x45,0x43,0x44,0x53,0x41]),[_0x326044([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x326044([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x326044([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3745a6[_0x326044([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x326044([0x6e,0x61,0x6d,0x65])]:_0x326044([0x45,0x43,0x44,0x53,0x41]),[_0x326044([0x68,0x61,0x73,0x68])]:{[_0x326044([0x6e,0x61,0x6d,0x65])]:_0x326044([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1af91d,_0x192d7a,_0xa02bcf)||(_0x5ce28d=!0x1);}}function _0x5bac58(_0x531282){return _0x531282[_0x326044([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x326044([0x65,0x79]))?JSON[_0x326044([0x70,0x61,0x72,0x73,0x65])](_0x181910(_0x531282)):null;}function _0x181910(_0x5c0dcb){return window[_0x326044([0x61,0x74,0x6f,0x62])](_0x5c0dcb[_0x326044([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x326044([0x2b]))[_0x326044([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x326044([0x2f])));}function _0xfdf4b4(_0x2cca97){let _0xb3305a=0x1505;function _0x1efbb3(_0x2c0886){for(let _0x504e56=0x0;_0x504e56<_0x2c0886[_0x326044([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x504e56++){const _0x1ac548=_0x2c0886[_0x326044([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x504e56);_0xb3305a=(_0xb3305a<<0x5)+_0xb3305a+_0x1ac548,_0xb3305a&=_0xb3305a;}}function _0x12f121(_0x9854aa){Array[_0x326044([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9854aa)?_0x9854aa[_0x326044([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12f121):_0x9854aa&&typeof _0x9854aa==_0x326044([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x326044([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9854aa)[_0x326044([0x73,0x6f,0x72,0x74])]()[_0x326044([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x322c57,_0x38e67d])=>{_0x1efbb3(_0x322c57),_0x12f121(_0x38e67d);}):_0x1efbb3(window[_0x326044([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9854aa));}return _0x12f121(_0x2cca97),_0xb3305a>>>0x0;}function _0x177fc3(_0x576337){return _0x576337[_0x326044([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x326044([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x326044([0x30]));}function _0x3b3651(_0x32937d){return _0x32937d[_0x326044([0x73,0x70,0x6c,0x69,0x74])]('')[_0x326044([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x326044([0x6a,0x6f,0x69,0x6e])]('');}function _0x185206(){}function _0x326044(_0x178357){return _0x178357['map'](_0x5531ac=>String['fromCharCode'](_0x5531ac))['join']('');}_0x53155c(await _0x28bd35());}(this);}['_moveSelectionToFootnoteDefinition'](_0x43667a){const {plugins:_0x245819,editing:_0xf4ae8c,model:_0x18b497}=this['editor'],_0x18154d=_0x245819['get'](_0x102be0)['getFootnote'](_0x43667a);return!!_0x18154d&&(_0x18b497['change'](_0x19f5cd=>{_0x19f5cd['setSelection'](_0x19f5cd['createPositionAt'](_0x18154d['definition'],'end'));}),_0xf4ae8c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x588360){const {plugins:_0x3cf143,editing:_0xe365e9,model:_0x27c4b2}=this['editor'],_0x33f721=_0x3cf143['get'](_0x102be0)['getFootnote'](_0x588360);return!!_0x33f721&&(_0x27c4b2['change'](_0x2a719d=>{_0x2a719d['setSelection'](_0x33f721['reference'],'on');}),_0xe365e9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x32bdc9}=this['editor']['model'],_0x3e8227=this['editor']['config']['get']('footnotes.multiBlock');_0x32bdc9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x32bdc9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x32bdc9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3e8227?_0x32bdc9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x32bdc9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x32bdc9['addChildCheck'](_0xf6b232=>{for(const _0x25e645 of _0xf6b232)if('footnoteDefinition'===_0x25e645['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3b4919}=this,{conversion:_0x230f71,editing:_0x1bb3c4}=_0x3b4919,{t:t}=_0x3b4919['locale'];_0x230f71['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x406b7e,{writer:_0x4b1431,consumable:_0x23479c})=>{const _0x54b130=_0x406b7e['getChild'](0x0);if(!_0x54b130||!_0x54b130['is']('element','a'))return null;const _0x4efbea=_0x54b130['getAttribute']('href')||'';if(!_0x4efbea['startsWith']('#'))return null;const _0x5eeda2=_0x4efbea['replace'](/^#/,'');if(!_0x5eeda2)return null;_0x23479c['consume'](_0x54b130,{'name':!0x0,'attributes':['href']});for(const {item:_0x58b07c}of _0x1bb3c4['view']['createRangeIn'](_0x54b130))_0x58b07c['is']('$textProxy')?_0x23479c['consume'](_0x58b07c['textNode'],{'name':!0x0}):_0x58b07c['is']('element')&&_0x23479c['consume'](_0x58b07c,{'name':!0x0});return _0x4b1431['createElement']('footnoteRef',{'footnoteId':_0x5eeda2});}}),_0x230f71['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x10b814,{writer:_0x1f636c})=>D(_0x10b814,_0x1f636c)}),_0x230f71['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x215f77,{writer:_0x315d58})=>{const _0x4918e3=_0x215f77['getAttribute']('footnoteCounter');return _0x3456d9(D(_0x215f77,_0x315d58),_0x315d58,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4918e3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x176706}=this,{t:t}=_0x176706['locale'],{conversion:_0x1d77df}=_0x176706;_0x1d77df['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1d77df['for']('upcast')['add'](_0x4d1e1c=>{_0x4d1e1c['on']('element:ol',(_0x291926,_0x5490a0,_0x21f3f0)=>{const _0x1c2ad7=_0x5490a0['viewItem'];if(!_0x1c2ad7['hasClass']('footnotes-list')||!_0x5490a0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x21f3f0['consumable']['consume'](_0x1c2ad7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x14d79c,modelCursor:_0xdbb338}=_0x21f3f0['convertChildren'](_0x5490a0['viewItem'],_0x5490a0['modelCursor']);_0x5490a0['modelRange']=_0x14d79c,_0x5490a0['modelCursor']=_0xdbb338;}),_0x4d1e1c['on']('element:hr',(_0x55f792,_0x415ba,_0x4c5d9c)=>{const _0x4ff14f=_0x415ba['viewItem'];_0x4ff14f['hasClass']('footnotes-divider')&&_0x415ba['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4c5d9c['consumable']['consume'](_0x4ff14f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1d77df['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1587f4,{writer:_0x21f13b})=>v(_0x21f13b)}),_0x1d77df['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x17000b,{writer:_0x2fbde3})=>{const _0x205469=v(_0x2fbde3,{'data-footnotes-list-label':t('Footnotes')}),_0x183f69=_0x3456d9(_0x205469,_0x2fbde3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2fbde3['setCustomProperty']('footnotesDefinitions',!0x0,_0x183f69),_0x183f69;}});}['_defineDefinitionConverters'](){const {editor:_0x58594c}=this,{conversion:_0x349697,locale:_0x14b425}=_0x58594c,_0x391c4a=_0x58594c['config']['get']('footnotes.multiBlock');_0x349697['for']('upcast')['add'](_0x3e1eb8=>{_0x3e1eb8['on']('element:li',(_0x355e69,_0x4fe342,_0x3c3077)=>{const _0x3ce7be=_0x4fe342['viewItem'];if(!_0x3ce7be['hasClass']('footnote-definition')||!_0x3ce7be['getAttribute']('id'))return;const _0x37fa2f=_0x3ce7be['parent'];if(!_0x37fa2f['is']('element','ol')||!_0x37fa2f['hasClass']('footnotes-list'))return;if(!_0x3c3077['consumable']['test'](_0x3ce7be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1cba6a=_0x3c3077['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3ce7be['getAttribute']('id')});if(!_0x3c3077['safeInsert'](_0x1cba6a,_0x4fe342['modelCursor']))return;_0x3c3077['consumable']['consume'](_0x3ce7be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x455284=Array['from'](_0x3ce7be['getChildren']())['find'](_0x29cc0e=>_0x29cc0e['is']('element')&&_0x29cc0e['hasClass']('footnote-content'));for(const _0x5dc1f0 of _0x3ce7be['getChildren']())_0x5dc1f0['is']('element')&&(_0x3c3077['consumable']['consume'](_0x5dc1f0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3c3077['consumable']['consume'](_0x5dc1f0,{'name':!0x0,'classes':'footnote-content'}));if(_0x455284){if(_0x391c4a)_0x3c3077['convertChildren'](_0x455284,_0x1cba6a);else{const _0x109181=_0x3c3077['writer']['createElement']('footnoteInlineContent');_0x3c3077['writer']['insert'](_0x109181,_0x1cba6a),_0x3c3077['convertChildren'](_0x455284,_0x109181);}}_0x3c3077['updateConversionResult'](_0x1cba6a,_0x4fe342);});}),_0x349697['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4535ba,{writer:_0x173713})=>b(_0x4535ba,_0x173713,_0x14b425,{'dataPipeline':!0x0})}),_0x349697['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a6988,{writer:_0x27ea5c})=>b(_0x4a6988,_0x27ea5c,_0x14b425)});}['_defineBogusParagraphConverters'](){const {editor:_0x24b5b3}=this,{conversion:_0x228f3f}=_0x24b5b3;_0x24b5b3['config']['get']('footnotes.multiBlock')?(_0x228f3f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x228f3f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x24b5b3['model']['document'],'change:data',()=>{!function(_0x306544,_0x2a262d){const _0x319f35=_0x306544['document']['differ'],_0x514179=new Set();for(const _0x687830 of _0x319f35['getChanges']()){const _0x64af91='attribute'==_0x687830['type']?_0x687830['range']['start']['parent']:_0x687830['position']['parent'];_0x64af91['is']('element','footnoteDefinition')&&_0x514179['add'](_0x64af91);}for(const _0x169c4f of _0x514179['values']()){const _0x482ae9=Array['from'](_0x169c4f['getChildren']())['filter'](_0x26e8b8=>g(_0x26e8b8,_0x2a262d['mapper']));for(const _0x293960 of _0x482ae9)_0x2a262d['reconvertItem'](_0x293960);}}(_0x24b5b3['model'],_0x24b5b3['editing']);})):(_0x228f3f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x228f3f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x52a6a5,{writer:_0x1a4c88})=>{const _0x8db823=_0x1a4c88['createContainerElement']('span');return _0x1a4c88['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x8db823),_0x8db823;}}));}['_defineKeyboardHandlers'](){const {editor:_0xb69fc3}=this,{editing:_0x5f0bec,t:t}=_0xb69fc3,_0x4e5bf2=_0xb69fc3['model']['document']['selection'];_0xb69fc3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xb69fc3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5f0bec['view']['document'],'enter',(_0x45d73f,_0x3ebe0c)=>{const _0x52d524=function(_0x40bda9){const _0x14fd7d=_0x40bda9['getSelectedElement']();if(_0x14fd7d?.['is']('element','footnoteRef'))return _0x14fd7d;return null;}(_0x4e5bf2);if(_0x52d524){const _0x305f8f=_0x52d524['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x305f8f),_0x3ebe0c['preventDefault'](),_0x45d73f['stop']();}},{'context':_0x487311});}['_defineClickHandlers'](){const {editor:_0x56ed2e}=this,{editing:_0x3be59f}=_0x56ed2e;_0x56ed2e['editing']['view']['addObserver'](_0x7d9fc4),_0x56ed2e['editing']['view']['addObserver'](_0xdee22c);let _0x26c2ba=!0x1;this['listenTo'](_0x3be59f['view']['document'],'pointerdown',(_0x2a61f3,_0x46759a)=>{const {target:_0x5e6945}=_0x46759a,_0x4e6272=_0x3be59f['view']['document']['selection'];_0x26c2ba=!!(_0x5e6945?.['is']('element','a')&&_0x5e6945['parent']?.['is']('element','sup')&&_0x5e6945['parent']['hasClass']('footnote'))&&_0x4e6272['getSelectedElement']()===_0x5e6945['parent'];},{'priority':'high'}),this['listenTo'](_0x3be59f['view']['document'],'click',(_0x1eba46,_0x1245df)=>{const {target:_0x22d6f7}=_0x1245df;if(!_0x22d6f7?.['is']('element','a'))return;if(_0x22d6f7['parent']?.['is']('element','sup')&&_0x22d6f7['parent']['hasClass']('footnote')&&!_0x26c2ba)return void _0x1245df['preventDefault']();let _0x174421=_0x22d6f7['getAttribute']('href');if(!_0x174421?.['startsWith']('#'))return;_0x174421=_0x174421['slice'](0x1);let _0x264d79=!0x1;(_0x174421['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x174421['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x174421))&&(_0x264d79=!0x0),_0x264d79&&(_0x1245df['preventDefault'](),_0x1eba46['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x2385cc}={}){return(_0x2a4a70,{writer:_0xb43898})=>{if(!p(_0x2a4a70))return null;if(!_0x2385cc)return _0xb43898['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3097c6=_0xb43898['createContainerElement']('p');return _0xb43898['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3097c6),_0x3097c6;};}function p(_0x1965fe){const {parent:_0x3a7acd}=_0x1965fe;if(!_0x3a7acd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3a7acd['childCount'])return!0x1;for(const _0x264b1c of _0x1965fe['getAttributeKeys']())if(!_0x264b1c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x264b1c)return!0x1;return!0x0;}function g(_0x4a9b99,_0x2a0a01){if(!_0x4a9b99['is']('element','paragraph'))return!0x1;const _0xefb201=_0x2a0a01['toViewElement'](_0x4a9b99);return!!_0xefb201&&p(_0x4a9b99)!==_0xefb201['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x13a624){return _0x487311(_0x13a624)&&_0x13a624['is']('containerElement')&&!!_0x13a624['getCustomProperty']('footnotesDefinitions');}function v(_0x2cce95,_0x3474cb={}){const _0x2eec51=_0x2cce95['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x8946f9=_0x2cce95['createContainerElement']('ol',{'class':'footnotes-list'},_0x2cce95['createSlot']());return _0x2cce95['createContainerElement']('div',{'class':'footnotes',..._0x3474cb},[_0x2eec51,_0x8946f9]);}function D(_0x128b73,_0x54c234){const _0x373151=_0x128b73['getAttribute']('footnoteId'),_0x389674=_0x128b73['getAttribute']('footnoteCounter'),_0x5c08f5=_0x54c234['createUIElement']('a',{'href':'#'+_0x373151},function(_0x9ff870){const _0x1650e3=this['toDomElement'](_0x9ff870);return _0x1650e3['textContent']=_0x389674,_0x1650e3;}),_0x4e7ce9=_0x54c234['createContainerElement']('sup',{'id':'ref-'+_0x373151,'class':'footnote'},[_0x5c08f5]);return _0x4e7ce9['getFillerOffset']=()=>null,_0x4e7ce9;}function b(_0x367229,_0x65621f,_0x5d3e0d,{dataPipeline:_0x3bcfbd}={}){const {t:t}=_0x5d3e0d,_0x4d56eb=_0x367229['getAttribute']('footnoteId'),_0x425654=_0x65621f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4d56eb},function(_0x556aac){const _0x20e0df=this['toDomElement'](_0x556aac);return _0x20e0df['innerText']='^',_0x20e0df;}),_0x242e78=_0x3bcfbd?_0x65621f['createContainerElement']('div',{'class':'footnote-content'}):_0xfc3fa0(_0x65621f['createEditableElement']('div',{'class':'footnote-content'}),_0x65621f,{'label':t('Footnote\x20content.')});return _0x65621f['insert'](_0x65621f['createPositionAt'](_0x242e78,0x0),_0x65621f['createSlot']()),_0x65621f['createContainerElement']('li',{'class':'footnote-definition','id':_0x4d56eb},[_0x425654,_0x242e78]);}
|
|
23
|
+
import{Plugin as _0xb91c9}from'ckeditor5/src/core.js';import{isWidget as _0x1fada5,toWidget as _0x2d70df,toWidgetEditable as _0x2b1825}from'ckeditor5/src/widget.js';import{uid as _0x67f7a9}from'ckeditor5/src/utils.js';import{PointerObserver as _0x2411b9,ClickObserver as _0x253138}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x47061a}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1b7a60}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xb91c9{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x47061a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x554cd6}=this;_0x554cd6['config']['define']('footnotes.multiBlock',!0x0),_0x554cd6['commands']['add']('insertFootnote',new _0x1b7a60(_0x554cd6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x18d4e7){const _0x555121=_0x3187d8([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]),_0x57ba79=0x47a28506,_0x58d773=0x47a5fc76^_0x57ba79,_0x51f4ee=window[_0x3187d8([0x44,0x61,0x74,0x65])][_0x3187d8([0x6e,0x6f,0x77])](),_0x1410ed=_0x18d4e7[_0x3187d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242318=new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x350da5=>{_0x1410ed[_0x3187d8([0x6f,0x6e,0x63,0x65])](_0x3187d8([0x72,0x65,0x61,0x64,0x79]),_0x350da5);}),_0x202077={[_0x3187d8([0x6b,0x74,0x79])]:_0x3187d8([0x45,0x43]),[_0x3187d8([0x75,0x73,0x65])]:_0x3187d8([0x73,0x69,0x67]),[_0x3187d8([0x63,0x72,0x76])]:_0x3187d8([0x50,0x2d,0x32,0x35,0x36]),[_0x3187d8([0x78])]:_0x3187d8([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]),[_0x3187d8([0x79])]:_0x3187d8([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]),[_0x3187d8([0x61,0x6c,0x67])]:_0x3187d8([0x45,0x53,0x32,0x35,0x36])},_0x25d081=_0x1410ed[_0x3187d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3187d8([0x67,0x65,0x74])](_0x3187d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52a537(){let _0x194f1d,_0x6d9abb=null,_0x5e1c5a=null;try{if(_0x25d081==_0x3187d8([0x47,0x50,0x4c]))return _0x3187d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x194f1d=_0x3c5da8(),!_0x194f1d)return _0x3187d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x194f1d[_0x3187d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e1c5a=_0x4f5325(_0x194f1d[_0x3187d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x194f1d[_0x3187d8([0x6a,0x74,0x69])])),await _0x1c29d5()?_0x5a1cce()?_0x1a122d()?_0x3187d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x419566()?(_0x194f1d[_0x3187d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3187d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6d9abb=_0x37d8e4(_0x3187d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x194f1d[_0x3187d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3187d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x6d9abb=_0x37d8e4(_0x3187d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3390c4()):_0x3187d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3187d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3187d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3187d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a122d(){const _0x22a379=[_0x3187d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3187d8([0x74,0x72,0x69,0x61,0x6c])][_0x3187d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194f1d[_0x3187d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51f4ee/0x3e8:0xe10*_0x58d773;return _0x194f1d[_0x3187d8([0x65,0x78,0x70])]<_0x22a379;}function _0x5a1cce(){const _0x3f8214=_0x194f1d[_0x3187d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f8214&&(!!_0x3f8214[_0x3187d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3187d8([0x2a]))||!!_0x3f8214[_0x3187d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3187d8([0x46,0x4f,0x4f])));}function _0x419566(){const _0x50131c=_0x194f1d[_0x3187d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50131c||0x0==_0x50131c[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2377f1}=new URL(window[_0x3187d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50131c[_0x3187d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2377f1))return!0x0;const _0x4ad9a9=_0x2377f1[_0x3187d8([0x73,0x70,0x6c,0x69,0x74])](_0x3187d8([0x2e]));return _0x50131c[_0x3187d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x113986=>_0x113986[_0x3187d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3187d8([0x2a])))[_0x3187d8([0x6d,0x61,0x70])](_0x156bf9=>_0x156bf9[_0x3187d8([0x73,0x70,0x6c,0x69,0x74])](_0x3187d8([0x2e])))[_0x3187d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40f146=>_0x40f146[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ad9a9[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3187d8([0x6d,0x61,0x70])](_0x4a3f25=>Array(_0x4ad9a9[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a3f25[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3187d8([0x66,0x69,0x6c,0x6c])](_0x4a3f25[0x0]===_0x3187d8([0x2a])?_0x3187d8([0x2a]):'')[_0x3187d8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a3f25))[_0x3187d8([0x73,0x6f,0x6d,0x65])](_0x1ba468=>_0x4ad9a9[_0x3187d8([0x65,0x76,0x65,0x72,0x79])]((_0x2366cd,_0x11f867)=>_0x1ba468[_0x11f867]===_0x2366cd||_0x1ba468[_0x11f867]===_0x3187d8([0x2a])));}function _0x3390c4(){return _0x6d9abb&&_0x5e1c5a?new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31768b,_0x849beb)=>{_0x6d9abb[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x31768b,_0x849beb),_0x5e1c5a[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x557745=>{_0x557745!=_0x3187d8([0x56,0x61,0x6c,0x69,0x64])&&_0x31768b(_0x557745);},_0x849beb);}):_0x6d9abb||_0x5e1c5a||_0x3187d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f5325(_0x236b28,_0x5c8651){return new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211669=>{if(_0x320bd3())return _0x211669(_0x3187d8([0x56,0x61,0x6c,0x69,0x64]));_0x39590e(),_0x1410ed[_0x3187d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3187d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x424c4c=!0x1;const _0x140a90=_0x67f7a9();function _0x5c4172(_0x1cc937){return!!_0x1cc937&&(typeof _0x1cc937===_0x3187d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cc937===_0x3187d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cc937[_0x3187d8([0x74,0x68,0x65,0x6e])]===_0x3187d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cc937[_0x3187d8([0x63,0x61,0x74,0x63,0x68])]===_0x3187d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a6c8e(_0x25e5d7){_0x2ab6db(_0x25e5d7)[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x274461=>{if(!_0x274461||_0x274461[_0x3187d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3187d8([0x6f,0x6b]))return _0x3187d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a8d2a(_0x2da10e(_0x140a90+_0x5c8651))!=_0x274461[_0x3187d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3187d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3187d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x3ac506=>(_0x36e967(),_0x3ac506),()=>{const _0x325876=_0x20a0dc();return null==_0x325876?(_0x36e967(),_0x3187d8([0x56,0x61,0x6c,0x69,0x64])):_0x3187d8(_0x51f4ee-_0x325876>(0x63ae0106^_0x57ba79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x211669)[_0x3187d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x211669(_0x3187d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x448476=0x47946b86^_0x57ba79;function _0x36e967(){const _0x4fa9de=_0x3187d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8d2a(_0x2da10e(_0x236b28)),_0x416f5d=_0x25b1ff(_0x5a8d2a(window[_0x3187d8([0x4d,0x61,0x74,0x68])][_0x3187d8([0x63,0x65,0x69,0x6c])](_0x51f4ee/_0x448476)));window[_0x3187d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3187d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fa9de,_0x416f5d);}function _0x20a0dc(){const _0x504962=_0x3187d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8d2a(_0x2da10e(_0x236b28)),_0x37aa33=window[_0x3187d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3187d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504962);return _0x37aa33?window[_0x3187d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25b1ff(_0x37aa33),0x10)*_0x448476:null;}function _0x2ab6db(_0x26f00b){return new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a1b5,_0x15c2ec)=>{_0x26f00b[_0x3187d8([0x74,0x68,0x65,0x6e])](_0x22a1b5,_0x15c2ec),window[_0x3187d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15c2ec,0x47a351c6^_0x57ba79);});}}_0x1410ed[_0x3187d8([0x6f,0x6e])](_0x3187d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb9c96b,_0x4c49e7)=>{if(_0x4c49e7[0x0]!=_0x236b28)return _0x211669(_0x3187d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c49e7[0x1]={..._0x4c49e7[0x1],[_0x3187d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x140a90};},{[_0x3187d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3187d8([0x68,0x69,0x67,0x68])}),_0x1410ed[_0x3187d8([0x6f,0x6e])](_0x3187d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b0752=>{_0x5c4172(_0x4b0752[_0x3187d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x424c4c=!0x0,_0x5a6c8e(_0x4b0752[_0x3187d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3187d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3187d8([0x6c,0x6f,0x77])}),_0x242318[_0x3187d8([0x74,0x68,0x65,0x6e])](()=>{_0x424c4c||_0x211669(_0x3187d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x320bd3(){return _0x1410ed[_0x3187d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3187d8([0x76,0x69,0x65,0x77])][_0x3187d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3187d8([0x61,0x75,0x74,0x6f]);}function _0x39590e(){_0x1410ed[_0x3187d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3187d8([0x76,0x69,0x65,0x77])][_0x3187d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3187d8([0x61,0x75,0x74,0x6f]);}}function _0x37d8e4(_0x102ab0){const _0x55aa0c=[new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b4ed7=>setTimeout(_0x4b4ed7,0x47abbbca^_0x57ba79)),_0x242318[_0x3187d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f532c=>{let _0xd1e8d7=0x0;_0x1410ed[_0x3187d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3187d8([0x6f,0x6e])](_0x3187d8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c9af5,_0x5d917f)=>{_0x5d917f[0x0][_0x3187d8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd1e8d7++,_0xd1e8d7==(0x47a284fe^_0x57ba79)&&(_0x4f532c(),_0x1c9af5[_0x3187d8([0x6f,0x66,0x66])]());});}))];return window[_0x3187d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3187d8([0x72,0x61,0x63,0x65])](_0x55aa0c)[_0x3187d8([0x74,0x68,0x65,0x6e])](()=>_0x102ab0);}async function _0x5d0e5f(){await _0x242318,_0x1410ed[_0x3187d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3187d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3aef4c,_0x1410ed[_0x3187d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3187d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3aef4c,_0x1410ed[_0x3187d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3187d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55a72e(_0x4674ca){const _0x29c6f7=_0x12de7f();_0x1410ed[_0x29c6f7]=_0x3187d8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4674ca,_0x4674ca!=_0x3187d8([0x56,0x61,0x6c,0x69,0x64])&&_0x5d0e5f();}function _0x12de7f(){const _0x241892=window[_0x3187d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3187d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3187d8([0x6e,0x6f,0x77])]())[_0x3187d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3187d8([0x2e]),'');let _0xa38423=_0x3187d8([0x75]);for(let _0x14dd99=0x0;_0x14dd99<_0x241892[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14dd99+=0x2){let _0x32faf6=window[_0x3187d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241892[_0x3187d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14dd99,_0x14dd99+0x2));_0x32faf6>=_0x555121[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32faf6-=_0x555121[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa38423+=_0x555121[_0x32faf6];}return _0xa38423;}function _0x3c5da8(){const _0x1afa0a=_0x25d081[_0x3187d8([0x73,0x70,0x6c,0x69,0x74])](_0x3187d8([0x2e]));if(0x3!=_0x1afa0a[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32bff7(_0x1afa0a[0x1]);function _0x32bff7(_0xbd1f02){const _0x4a16ff=_0x58faa4(_0xbd1f02);return _0x4a16ff&&_0x42e617()?_0x4a16ff:null;function _0x42e617(){const _0xffdedb=_0x4a16ff[_0x3187d8([0x6a,0x74,0x69])],_0x360691=window[_0x3187d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xffdedb[_0x3187d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xffdedb[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c84c7={..._0x4a16ff,[_0x3187d8([0x6a,0x74,0x69])]:_0xffdedb[_0x3187d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xffdedb[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c84c7[_0x3187d8([0x76,0x63])],_0x2da10e(_0x2c84c7)==_0x360691;}}}async function _0x1c29d5(){let _0x3c7525=!0x0;try{const _0x42afa6=_0x25d081[_0x3187d8([0x73,0x70,0x6c,0x69,0x74])](_0x3187d8([0x2e])),[_0x30e62d,_0x4bd4a9,_0x4fb843]=_0x42afa6;return _0x5a7d29(_0x30e62d),await _0x389cb6(_0x30e62d,_0x4bd4a9,_0x4fb843),_0x3c7525;}catch{return!0x1;}function _0x5a7d29(_0x448114){const _0x38ed54=_0x58faa4(_0x448114);_0x38ed54&&_0x38ed54[_0x3187d8([0x61,0x6c,0x67])]==_0x3187d8([0x45,0x53,0x32,0x35,0x36])||(_0x3c7525=!0x1);}async function _0x389cb6(_0x49891f,_0xdd7762,_0x5499c4){const _0x2d38f5=window[_0x3187d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3187d8([0x66,0x72,0x6f,0x6d])](_0x27639c(_0x5499c4),_0x3c7ea7=>_0x3c7ea7[_0x3187d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3269db=new window[(_0x3187d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3187d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49891f+_0x3187d8([0x2e])+_0xdd7762),_0x1ad5d8=window[_0x3187d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3187d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ad5d8)return;const _0x40f3a5=await _0x1ad5d8[_0x3187d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3187d8([0x6a,0x77,0x6b]),_0x202077,{[_0x3187d8([0x6e,0x61,0x6d,0x65])]:_0x3187d8([0x45,0x43,0x44,0x53,0x41]),[_0x3187d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3187d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3187d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ad5d8[_0x3187d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3187d8([0x6e,0x61,0x6d,0x65])]:_0x3187d8([0x45,0x43,0x44,0x53,0x41]),[_0x3187d8([0x68,0x61,0x73,0x68])]:{[_0x3187d8([0x6e,0x61,0x6d,0x65])]:_0x3187d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40f3a5,_0x2d38f5,_0x3269db)||(_0x3c7525=!0x1);}}function _0x58faa4(_0x3f6410){return _0x3f6410[_0x3187d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3187d8([0x65,0x79]))?JSON[_0x3187d8([0x70,0x61,0x72,0x73,0x65])](_0x27639c(_0x3f6410)):null;}function _0x27639c(_0x38ff77){return window[_0x3187d8([0x61,0x74,0x6f,0x62])](_0x38ff77[_0x3187d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3187d8([0x2b]))[_0x3187d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3187d8([0x2f])));}function _0x2da10e(_0x48962b){let _0x3f8e26=0x1505;function _0x10a638(_0x18e0cf){for(let _0x5f48bb=0x0;_0x5f48bb<_0x18e0cf[_0x3187d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f48bb++){const _0x5d4615=_0x18e0cf[_0x3187d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f48bb);_0x3f8e26=(_0x3f8e26<<0x5)+_0x3f8e26+_0x5d4615,_0x3f8e26&=_0x3f8e26;}}function _0x3d87b8(_0x5ba58f){Array[_0x3187d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ba58f)?_0x5ba58f[_0x3187d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d87b8):_0x5ba58f&&typeof _0x5ba58f==_0x3187d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3187d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ba58f)[_0x3187d8([0x73,0x6f,0x72,0x74])]()[_0x3187d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25d885,_0x166a3f])=>{_0x10a638(_0x25d885),_0x3d87b8(_0x166a3f);}):_0x10a638(window[_0x3187d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ba58f));}return _0x3d87b8(_0x48962b),_0x3f8e26>>>0x0;}function _0x5a8d2a(_0x3fa8f9){return _0x3fa8f9[_0x3187d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3187d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3187d8([0x30]));}function _0x25b1ff(_0xe54249){return _0xe54249[_0x3187d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3187d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3187d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3aef4c(){}function _0x3187d8(_0x38a4a0){return _0x38a4a0['map'](_0x228d08=>String['fromCharCode'](_0x228d08))['join']('');}_0x55a72e(await _0x52a537());}(this);}['_moveSelectionToFootnoteDefinition'](_0x48be88){const {plugins:_0x43108a,editing:_0x75cde9,model:_0x27f85c}=this['editor'],_0x5c0360=_0x43108a['get'](_0x47061a)['getFootnote'](_0x48be88);return!!_0x5c0360&&(_0x27f85c['change'](_0xb8ed3a=>{_0xb8ed3a['setSelection'](_0xb8ed3a['createPositionAt'](_0x5c0360['definition'],'end'));}),_0x75cde9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x30ec86){const {plugins:_0x19af40,editing:_0x3e4ab3,model:_0xcebb33}=this['editor'],_0x4e1572=_0x19af40['get'](_0x47061a)['getFootnote'](_0x30ec86);return!!_0x4e1572&&(_0xcebb33['change'](_0x33ca5b=>{_0x33ca5b['setSelection'](_0x4e1572['reference'],'on');}),_0x3e4ab3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1176f8}=this['editor']['model'],_0x2592ea=this['editor']['config']['get']('footnotes.multiBlock');_0x1176f8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1176f8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1176f8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2592ea?_0x1176f8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1176f8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1176f8['addChildCheck'](_0x5e7b4f=>{for(const _0x34e971 of _0x5e7b4f)if('footnoteDefinition'===_0x34e971['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x30a935}=this,{conversion:_0x459b04,editing:_0x1a51c4}=_0x30a935,{t:t}=_0x30a935['locale'];_0x459b04['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x14621d,{writer:_0x5a6997,consumable:_0xd20941})=>{const _0x6f7af2=_0x14621d['getChild'](0x0);if(!_0x6f7af2||!_0x6f7af2['is']('element','a'))return null;const _0x576ee0=_0x6f7af2['getAttribute']('href')||'';if(!_0x576ee0['startsWith']('#'))return null;const _0x38854e=_0x576ee0['replace'](/^#/,'');if(!_0x38854e)return null;_0xd20941['consume'](_0x6f7af2,{'name':!0x0,'attributes':['href']});for(const {item:_0x573f09}of _0x1a51c4['view']['createRangeIn'](_0x6f7af2))_0x573f09['is']('$textProxy')?_0xd20941['consume'](_0x573f09['textNode'],{'name':!0x0}):_0x573f09['is']('element')&&_0xd20941['consume'](_0x573f09,{'name':!0x0});return _0x5a6997['createElement']('footnoteRef',{'footnoteId':_0x38854e});}}),_0x459b04['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x278b82,{writer:_0x185b9a})=>D(_0x278b82,_0x185b9a)}),_0x459b04['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x449867,{writer:_0x31de9e})=>{const _0x3d4a51=_0x449867['getAttribute']('footnoteCounter');return _0x2d70df(D(_0x449867,_0x31de9e),_0x31de9e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3d4a51)});}});}['_defineDefinitionsConverters'](){const {editor:_0x30cc9f}=this,{t:t}=_0x30cc9f['locale'],{conversion:_0x4e91db}=_0x30cc9f;_0x4e91db['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4e91db['for']('upcast')['add'](_0x160362=>{_0x160362['on']('element:ol',(_0x176924,_0x5ae892,_0x20da93)=>{const _0xe9c862=_0x5ae892['viewItem'];if(!_0xe9c862['hasClass']('footnotes-list')||!_0x5ae892['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x20da93['consumable']['consume'](_0xe9c862,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x402425,modelCursor:_0xb1c811}=_0x20da93['convertChildren'](_0x5ae892['viewItem'],_0x5ae892['modelCursor']);_0x5ae892['modelRange']=_0x402425,_0x5ae892['modelCursor']=_0xb1c811;}),_0x160362['on']('element:hr',(_0x3352b0,_0x482a46,_0x50c049)=>{const _0x249154=_0x482a46['viewItem'];_0x249154['hasClass']('footnotes-divider')&&_0x482a46['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x50c049['consumable']['consume'](_0x249154,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4e91db['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x26dbcc,{writer:_0xa58d31})=>v(_0xa58d31)}),_0x4e91db['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22d8ae,{writer:_0x145a4f})=>{const _0xfefebe=v(_0x145a4f,{'data-footnotes-list-label':t('Footnotes')}),_0x1bc79a=_0x2d70df(_0xfefebe,_0x145a4f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x145a4f['setCustomProperty']('footnotesDefinitions',!0x0,_0x1bc79a),_0x1bc79a;}});}['_defineDefinitionConverters'](){const {editor:_0x4657b3}=this,{conversion:_0x358fc4,locale:_0x460def}=_0x4657b3,_0x2e6ea3=_0x4657b3['config']['get']('footnotes.multiBlock');_0x358fc4['for']('upcast')['add'](_0x9edd3d=>{_0x9edd3d['on']('element:li',(_0x5bdc1b,_0x5cbf21,_0x440223)=>{const _0x2b81bc=_0x5cbf21['viewItem'];if(!_0x2b81bc['hasClass']('footnote-definition')||!_0x2b81bc['getAttribute']('id'))return;const _0x185c5f=_0x2b81bc['parent'];if(!_0x185c5f['is']('element','ol')||!_0x185c5f['hasClass']('footnotes-list'))return;if(!_0x440223['consumable']['test'](_0x2b81bc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4f3be6=_0x440223['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2b81bc['getAttribute']('id')});if(!_0x440223['safeInsert'](_0x4f3be6,_0x5cbf21['modelCursor']))return;_0x440223['consumable']['consume'](_0x2b81bc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3507b3=Array['from'](_0x2b81bc['getChildren']())['find'](_0x4657db=>_0x4657db['is']('element')&&_0x4657db['hasClass']('footnote-content'));for(const _0x4f6235 of _0x2b81bc['getChildren']())_0x4f6235['is']('element')&&(_0x440223['consumable']['consume'](_0x4f6235,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x440223['consumable']['consume'](_0x4f6235,{'name':!0x0,'classes':'footnote-content'}));if(_0x3507b3){if(_0x2e6ea3)_0x440223['convertChildren'](_0x3507b3,_0x4f3be6);else{const _0x596600=_0x440223['writer']['createElement']('footnoteInlineContent');_0x440223['writer']['insert'](_0x596600,_0x4f3be6),_0x440223['convertChildren'](_0x3507b3,_0x596600);}}_0x440223['updateConversionResult'](_0x4f3be6,_0x5cbf21);});}),_0x358fc4['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x239be2,{writer:_0x357784})=>b(_0x239be2,_0x357784,_0x460def,{'dataPipeline':!0x0})}),_0x358fc4['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x509d73,{writer:_0x292c22})=>b(_0x509d73,_0x292c22,_0x460def)});}['_defineBogusParagraphConverters'](){const {editor:_0xe88fe}=this,{conversion:_0x32481f}=_0xe88fe;_0xe88fe['config']['get']('footnotes.multiBlock')?(_0x32481f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x32481f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xe88fe['model']['document'],'change:data',()=>{!function(_0x2cc1e9,_0x4a921f){const _0x3260ee=_0x2cc1e9['document']['differ'],_0x633e23=new Set();for(const _0x35ddb0 of _0x3260ee['getChanges']()){const _0x1cdf2d='attribute'==_0x35ddb0['type']?_0x35ddb0['range']['start']['parent']:_0x35ddb0['position']['parent'];_0x1cdf2d['is']('element','footnoteDefinition')&&_0x633e23['add'](_0x1cdf2d);}for(const _0xd63d67 of _0x633e23['values']()){const _0x1868d5=Array['from'](_0xd63d67['getChildren']())['filter'](_0x3aee28=>g(_0x3aee28,_0x4a921f['mapper']));for(const _0x325e2 of _0x1868d5)_0x4a921f['reconvertItem'](_0x325e2);}}(_0xe88fe['model'],_0xe88fe['editing']);})):(_0x32481f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x32481f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1ac04d,{writer:_0x41def3})=>{const _0x548e03=_0x41def3['createContainerElement']('span');return _0x41def3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x548e03),_0x548e03;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5d850c}=this,{editing:_0x40a68b,t:t}=_0x5d850c,_0x2d8bbb=_0x5d850c['model']['document']['selection'];_0x5d850c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5d850c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x40a68b['view']['document'],'enter',(_0xa52610,_0x1fccbc)=>{const _0x3f7ef2=function(_0x2d5e17){const _0x1edc01=_0x2d5e17['getSelectedElement']();if(_0x1edc01?.['is']('element','footnoteRef'))return _0x1edc01;return null;}(_0x2d8bbb);if(_0x3f7ef2){const _0x4eb4a8=_0x3f7ef2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4eb4a8),_0x1fccbc['preventDefault'](),_0xa52610['stop']();}},{'context':_0x1fada5});}['_defineClickHandlers'](){const {editor:_0x5f2561}=this,{editing:_0xd7ff5c}=_0x5f2561;_0x5f2561['editing']['view']['addObserver'](_0x2411b9),_0x5f2561['editing']['view']['addObserver'](_0x253138);let _0x14fadb=!0x1;this['listenTo'](_0xd7ff5c['view']['document'],'pointerdown',(_0x257e7d,_0x157878)=>{const {target:_0xb20612}=_0x157878,_0x4664ba=_0xd7ff5c['view']['document']['selection'];_0x14fadb=!!(_0xb20612?.['is']('element','a')&&_0xb20612['parent']?.['is']('element','sup')&&_0xb20612['parent']['hasClass']('footnote'))&&_0x4664ba['getSelectedElement']()===_0xb20612['parent'];},{'priority':'high'}),this['listenTo'](_0xd7ff5c['view']['document'],'click',(_0x14a148,_0x3aaf33)=>{const {target:_0x1cd63e}=_0x3aaf33;if(!_0x1cd63e?.['is']('element','a'))return;if(_0x1cd63e['parent']?.['is']('element','sup')&&_0x1cd63e['parent']['hasClass']('footnote')&&!_0x14fadb)return void _0x3aaf33['preventDefault']();let _0x47f642=_0x1cd63e['getAttribute']('href');if(!_0x47f642?.['startsWith']('#'))return;_0x47f642=_0x47f642['slice'](0x1);let _0x389704=!0x1;(_0x47f642['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x47f642['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x47f642))&&(_0x389704=!0x0),_0x389704&&(_0x3aaf33['preventDefault'](),_0x14a148['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x497e22}={}){return(_0x31f209,{writer:_0x1ed4b4})=>{if(!p(_0x31f209))return null;if(!_0x497e22)return _0x1ed4b4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3d4c5a=_0x1ed4b4['createContainerElement']('p');return _0x1ed4b4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3d4c5a),_0x3d4c5a;};}function p(_0x9cc7bf){const {parent:_0x29b48b}=_0x9cc7bf;if(!_0x29b48b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x29b48b['childCount'])return!0x1;for(const _0x1c2bed of _0x9cc7bf['getAttributeKeys']())if(!_0x1c2bed['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1c2bed)return!0x1;return!0x0;}function g(_0x12e18a,_0x386bda){if(!_0x12e18a['is']('element','paragraph'))return!0x1;const _0x37f381=_0x386bda['toViewElement'](_0x12e18a);return!!_0x37f381&&p(_0x12e18a)!==_0x37f381['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x20c96d){return _0x1fada5(_0x20c96d)&&_0x20c96d['is']('containerElement')&&!!_0x20c96d['getCustomProperty']('footnotesDefinitions');}function v(_0x4ab842,_0x35623a={}){const _0x2a4f64=_0x4ab842['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xdf836a=_0x4ab842['createContainerElement']('ol',{'class':'footnotes-list'},_0x4ab842['createSlot']());return _0x4ab842['createContainerElement']('div',{'class':'footnotes',..._0x35623a},[_0x2a4f64,_0xdf836a]);}function D(_0x47e3c8,_0x2d5d65){const _0x1c02ec=_0x47e3c8['getAttribute']('footnoteId'),_0x3122ab=_0x47e3c8['getAttribute']('footnoteCounter'),_0x1cd0b9=_0x2d5d65['createUIElement']('a',{'href':'#'+_0x1c02ec},function(_0x121bee){const _0x440715=this['toDomElement'](_0x121bee);return _0x440715['textContent']=_0x3122ab,_0x440715;}),_0x53d6d2=_0x2d5d65['createContainerElement']('sup',{'id':'ref-'+_0x1c02ec,'class':'footnote'},[_0x1cd0b9]);return _0x53d6d2['getFillerOffset']=()=>null,_0x53d6d2;}function b(_0x2a759d,_0x12899e,_0x1f911b,{dataPipeline:_0x4a9995}={}){const {t:t}=_0x1f911b,_0xbe1c6c=_0x2a759d['getAttribute']('footnoteId'),_0x193f9e=_0x12899e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xbe1c6c},function(_0x1fc79f){const _0x374571=this['toDomElement'](_0x1fc79f);return _0x374571['innerText']='^',_0x374571;}),_0xe400b=_0x4a9995?_0x12899e['createContainerElement']('div',{'class':'footnote-content'}):_0x2b1825(_0x12899e['createEditableElement']('div',{'class':'footnote-content'}),_0x12899e,{'label':t('Footnote\x20content.')});return _0x12899e['insert'](_0x12899e['createPositionAt'](_0xe400b,0x0),_0x12899e['createSlot']()),_0x12899e['createContainerElement']('li',{'class':'footnote-definition','id':_0xbe1c6c},[_0x193f9e,_0xe400b]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x822b05=_0x322d;(function(_0x1d576d,_0xc6502b){const _0xfc69ac=_0x322d,_0x3022d8=_0x1d576d();while(!![]){try{const _0x52f3b3=-parseInt(_0xfc69ac(0x8b))/0x1*(parseInt(_0xfc69ac(0x8d))/0x2)+parseInt(_0xfc69ac(0x84))/0x3+parseInt(_0xfc69ac(0x8a))/0x4*(parseInt(_0xfc69ac(0x8e))/0x5)+parseInt(_0xfc69ac(0x97))/0x6+parseInt(_0xfc69ac(0x88))/0x7+-parseInt(_0xfc69ac(0x92))/0x8*(-parseInt(_0xfc69ac(0x94))/0x9)+parseInt(_0xfc69ac(0x9a))/0xa*(-parseInt(_0xfc69ac(0x83))/0xb);if(_0x52f3b3===_0xc6502b)break;else _0x3022d8['push'](_0x3022d8['shift']());}catch(_0x1e0e03){_0x3022d8['push'](_0x3022d8['shift']());}}}(_0x4906,0xd8051));import{Command as _0x5366cf}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x508c85}from'../../footnotestracker.js';function _0x322d(_0x285ff0,_0x5bc084){const _0x4906ae=_0x4906();return _0x322d=function(_0x322dd8,_0x3cefd8){_0x322dd8=_0x322dd8-0x83;let _0x4946c9=_0x4906ae[_0x322dd8];return _0x4946c9;},_0x322d(_0x285ff0,_0x5bc084);}export class FootnotesStartCommand extends _0x5366cf{[_0x822b05(0x90)](){const _0x5a2199=_0x822b05,{editor:_0x2f92a2}=this,_0x341293=_0x2f92a2[_0x5a2199(0x86)][_0x5a2199(0x96)](_0x508c85)[_0x5a2199(0x8c)]();this[_0x5a2199(0x98)]=!!_0x341293,this[_0x5a2199(0x8f)]=_0x341293?.[_0x5a2199(0x93)](_0x5a2199(0x85))??null;}[_0x822b05(0x91)]({value:_0x5a2482}){const _0x348dda=_0x822b05,{editor:_0x1a7f06}=this,_0x169674=_0x1a7f06[_0x348dda(0x86)][_0x348dda(0x96)](_0x508c85),_0x109de6=_0x169674[_0x348dda(0x8c)]();_0x109de6&&Number[_0x348dda(0x87)](_0x5a2482)&&_0x1a7f06[_0x348dda(0x95)][_0x348dda(0x99)](_0x18ecf3=>{const _0x1889ed=_0x348dda;_0x18ecf3[_0x1889ed(0x9b)](_0x1889ed(0x85),_0x5a2482,_0x109de6),_0x169674[_0x1889ed(0x89)](_0x18ecf3);});}}function _0x4906(){const _0x3b2451=['127610hEzZHP','setAttribute','1342VGgRoH','4905177sHAOsu','footnotesListStart','plugins','isInteger','9336495vHKSnu','_updateFootnotesCounters','4VcmxkZ','3aJoveV','getFootnotesDefinitionsObjectElement','1026662kdNtZI','1867325nnpTGS','value','refresh','execute','4659128uGBuFK','getAttribute','9CNnXRK','model','get','341712gsmruB','isEnabled','change'];_0x4906=function(){return _0x3b2451;};return _0x4906();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x281775=_0x17c3;function _0x17c3(_0x1003ad,_0x16371b){const _0x2365e8=_0x2365();return _0x17c3=function(_0x17c33e,_0x4efba2){_0x17c33e=_0x17c33e-0x183;let _0x3cff05=_0x2365e8[_0x17c33e];return _0x3cff05;},_0x17c3(_0x1003ad,_0x16371b);}(function(_0x181f0a,_0xd26cb4){const _0x55dc20=_0x17c3,_0x53347a=_0x181f0a();while(!![]){try{const _0x40cf70=parseInt(_0x55dc20(0x18f))/0x1*(parseInt(_0x55dc20(0x189))/0x2)+parseInt(_0x55dc20(0x191))/0x3+-parseInt(_0x55dc20(0x18d))/0x4*(parseInt(_0x55dc20(0x199))/0x5)+-parseInt(_0x55dc20(0x19a))/0x6*(-parseInt(_0x55dc20(0x190))/0x7)+parseInt(_0x55dc20(0x184))/0x8+parseInt(_0x55dc20(0x197))/0x9+parseInt(_0x55dc20(0x192))/0xa*(-parseInt(_0x55dc20(0x18c))/0xb);if(_0x40cf70===_0xd26cb4)break;else _0x53347a['push'](_0x53347a['shift']());}catch(_0x3840b9){_0x53347a['push'](_0x53347a['shift']());}}}(_0x2365,0xc493f));import{Command as _0x217133}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x37b780}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x4bb67d}from'../../footnotestracker.js';function _0x2365(){const _0x2546ff=['get','2266080RzrZsZ','model','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','setAttribute','14EXvxEE','value','change','29137691eHMvQx','147768QbnpLl','includes','201874bQIeXT','816739VGzmea','1652739PiZBwb','10wVgJJJ','plugins','getAttribute','footnotesListStyle','isEnabled','11891439nBVfwp','execute','205OAiFdA','72LLnazM','refresh'];_0x2365=function(){return _0x2546ff;};return _0x2365();}export class FootnotesStyleCommand extends _0x217133{[_0x281775(0x19b)](){const _0x2998fb=_0x281775,{editor:_0x1aebf2}=this,_0x342ed7=_0x1aebf2[_0x2998fb(0x193)][_0x2998fb(0x183)](_0x4bb67d)[_0x2998fb(0x186)]();this[_0x2998fb(0x196)]=!!_0x342ed7,this[_0x2998fb(0x18a)]=_0x342ed7?.[_0x2998fb(0x194)](_0x2998fb(0x195))??null;}[_0x281775(0x198)]({value:_0x305b0e}){const _0x5df0dd=_0x281775,{editor:_0x4862a0}=this,_0x5db90b=_0x4862a0[_0x5df0dd(0x193)][_0x5df0dd(0x183)](_0x4bb67d),_0x52a213=_0x5db90b[_0x5df0dd(0x186)]();_0x52a213&&_0x37b780[_0x5df0dd(0x18e)](_0x305b0e)&&_0x4862a0[_0x5df0dd(0x185)][_0x5df0dd(0x18b)](_0x2b30f6=>{const _0x9deac7=_0x5df0dd;_0x2b30f6[_0x9deac7(0x188)](_0x9deac7(0x195),_0x305b0e,_0x52a213),_0x5db90b[_0x9deac7(0x187)](_0x2b30f6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3ab01a=_0x579f;(function(_0x4f8c82,_0xccb6f0){const _0x4ca506=_0x579f,_0xadf098=_0x4f8c82();while(!![]){try{const _0x44b146=parseInt(_0x4ca506(0x7f))/0x1+parseInt(_0x4ca506(0x7b))/0x2*(-parseInt(_0x4ca506(0x7a))/0x3)+-parseInt(_0x4ca506(0x70))/0x4*(-parseInt(_0x4ca506(0x78))/0x5)+parseInt(_0x4ca506(0x77))/0x6+parseInt(_0x4ca506(0x6f))/0x7+-parseInt(_0x4ca506(0x74))/0x8*(-parseInt(_0x4ca506(0x72))/0x9)+-parseInt(_0x4ca506(0x79))/0xa;if(_0x44b146===_0xccb6f0)break;else _0xadf098['push'](_0xadf098['shift']());}catch(_0x45957f){_0xadf098['push'](_0xadf098['shift']());}}}(_0xf7cb,0xd02de));function _0xf7cb(){const _0x4b54b1=['upper-alpha','6288240GBcGve','4fSohwg','lower-alpha','7645383MPvUsP','decimal-leading-zero','16GkJJBY','upper-roman','upper-latin','7551678rpGUnQ','5047190NtzQOF','32830430HZcJFv','1012335yXtjGw','10urZDGh','lower-roman','lower-latin','decimal','957625yaoRZs'];_0xf7cb=function(){return _0x4b54b1;};return _0xf7cb();}function _0x579f(_0x412c3f,_0x498ee2){const _0xf7cbbc=_0xf7cb();return _0x579f=function(_0x579f91,_0x1c7cd3){_0x579f91=_0x579f91-0x6e;let _0x2cfc73=_0xf7cbbc[_0x579f91];return _0x2cfc73;},_0x579f(_0x412c3f,_0x498ee2);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x3ab01a(0x7e),_0x3ab01a(0x73),_0x3ab01a(0x7d),_0x3ab01a(0x76),_0x3ab01a(0x71),_0x3ab01a(0x6e),_0x3ab01a(0x7c),_0x3ab01a(0x75)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x146c(){const _0x92688b=['decimal-leading-zero','hasClass','init','toLowerCase','9RYbmRm','upper-roman','911792LpDxaT','664539deJLum','parseInt','schema','element:ol','_defineConverters','document','isPremiumPlugin','getAttribute','viewItem','footnotesStart','requires','decimal','padStart','footnotesDefinitions','lower-alpha','nodeAfter','consume','_getDefaultStartIndex','config','footnotes-list','setFootnoteFormatter','floor','list-style-type','getChildren','attribute:footnotesListStyle:footnotesDefinitions','downcast','_getDefaultListStyle','footnotes.footnotesProperties.defaultStartIndex','_updateFootnotesCounters','attribute:footnotesListStart:footnotesDefinitions','removeStyle','lower-latin','fromCharCode','writer','plugins','_defineFormatter','setStyle','max','type','registerPostFixer','isOfficialPlugin','lower-roman','for','item','parent','_formatFootnoteListValue','137206dPluCK','getStyle','insert','commands','editor','toViewElement','add','footnotesStyle','checkAttribute','upper-alpha','10pIAWvT','from','toUpperCase','_defineSchema','9MbPtkS','getItems','2282784gHnokF','3556250SLSoqD','850904YzrGnz','removeAttribute','FootnotesPropertiesEditing','pluginName','extend','$text','name','2416662aEcMnK','consumable','isNaN','setAttribute','hasAttribute','footnotes.footnotesProperties.defaultListStyle','getChanges','differ','mapper','find','footnotesListStart','upper-latin','_definePostfixer','position','start','footnotesListStyle','model','modelCursor','upcast','createRangeOn','get','element','define'];_0x146c=function(){return _0x92688b;};return _0x146c();}const _0x57e3d1=_0x3eeb;(function(_0x4dfa4d,_0x37ff0e){const _0x416ce6=_0x3eeb,_0xa93f48=_0x4dfa4d();while(!![]){try{const _0x2027d3=-parseInt(_0x416ce6(0x15a))/0x1*(-parseInt(_0x416ce6(0x126))/0x2)+-parseInt(_0x416ce6(0x15d))/0x3+parseInt(_0x416ce6(0x138))/0x4*(-parseInt(_0x416ce6(0x130))/0x5)+parseInt(_0x416ce6(0x13f))/0x6+parseInt(_0x416ce6(0x15c))/0x7+parseInt(_0x416ce6(0x136))/0x8+-parseInt(_0x416ce6(0x134))/0x9*(parseInt(_0x416ce6(0x137))/0xa);if(_0x2027d3===_0x37ff0e)break;else _0xa93f48['push'](_0xa93f48['shift']());}catch(_0x379407){_0xa93f48['push'](_0xa93f48['shift']());}}}(_0x146c,0x69c42));import{Plugin as _0x1eda67}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x30325a}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x288ad7}from'./commands/footnotesstartcommand.js';function _0x3eeb(_0xc5a959,_0x1b8ff5){const _0x146c51=_0x146c();return _0x3eeb=function(_0x3eeb31,_0xb5b3da){_0x3eeb31=_0x3eeb31-0x104;let _0x3d0477=_0x146c51[_0x3eeb31];return _0x3d0477;},_0x3eeb(_0xc5a959,_0x1b8ff5);}import{FootnotesTracker as _0x3e7f42}from'../footnotestracker.js';import{FootnotesEditing as _0x420a66}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1eda67{static get[_0x57e3d1(0x13b)](){const _0x1fc4d9=_0x57e3d1;return _0x1fc4d9(0x13a);}static get[_0x57e3d1(0x167)](){return[_0x420a66,_0x3e7f42];}static get[_0x57e3d1(0x120)](){return!0x0;}static get[_0x57e3d1(0x163)](){return!0x0;}[_0x57e3d1(0x158)](){const _0x2b6b18=_0x57e3d1,{editor:_0x25ce27}=this;_0x25ce27[_0x2b6b18(0x10a)][_0x2b6b18(0x155)](_0x2b6b18(0x144),_0x2b6b18(0x168)),_0x25ce27[_0x2b6b18(0x10a)][_0x2b6b18(0x155)](_0x2b6b18(0x113),0x1),_0x25ce27[_0x2b6b18(0x129)][_0x2b6b18(0x12c)](_0x2b6b18(0x12d),new _0x30325a(_0x25ce27)),_0x25ce27[_0x2b6b18(0x129)][_0x2b6b18(0x12c)](_0x2b6b18(0x166),new _0x288ad7(_0x25ce27)),this[_0x2b6b18(0x133)](),this[_0x2b6b18(0x161)](),this[_0x2b6b18(0x11b)](),this[_0x2b6b18(0x14b)]();}[_0x57e3d1(0x133)](){const _0x13f889=_0x57e3d1,{editor:_0x543768}=this,{schema:_0x444f2f}=_0x543768[_0x13f889(0x14f)];_0x444f2f[_0x13f889(0x13c)](_0x13f889(0x105),{'allowAttributes':[_0x13f889(0x14e),_0x13f889(0x149)]});}[_0x57e3d1(0x161)](){const _0x22c265=_0x57e3d1,{editor:_0x4f9b6b}=this,{conversion:_0xea44fc,model:_0x9f4ce7}=_0x4f9b6b,{schema:_0x1f5e42}=_0x9f4ce7;_0xea44fc[_0x22c265(0x122)](_0x22c265(0x151))[_0x22c265(0x12c)](_0x45f9b2=>{const _0x3468d2=_0x22c265;_0x45f9b2['on'](_0x3468d2(0x160),(_0x31c883,_0x38088e,_0x22092b)=>{const _0x42cc46=_0x3468d2,_0x397659=_0x38088e[_0x42cc46(0x165)],_0x1c48ca=_0x38088e[_0x42cc46(0x150)]?.[_0x42cc46(0x124)];_0x397659[_0x42cc46(0x157)](_0x42cc46(0x10b))&&_0x1c48ca?.['is'](_0x42cc46(0x154),_0x42cc46(0x105))&&(function(_0x5db50b,_0x2ed875,_0x8a2546,_0x51dc31){const _0x40c947=_0x42cc46;if(!_0x51dc31[_0x40c947(0x12e)](_0x2ed875,_0x40c947(0x149)))return;let _0x3e05c6=0x1;const _0x45fbab=_0x8a2546[_0x40c947(0x140)][_0x40c947(0x108)](_0x5db50b,{'attributes':_0x40c947(0x14d)});if(_0x45fbab){const _0x909a94=Number[_0x40c947(0x15e)](_0x5db50b[_0x40c947(0x164)](_0x40c947(0x14d)),0xa);Number[_0x40c947(0x141)](_0x909a94)||(_0x3e05c6=_0x909a94);}!_0x45fbab&&_0x2ed875[_0x40c947(0x143)](_0x40c947(0x149))||_0x8a2546[_0x40c947(0x119)][_0x40c947(0x142)](_0x40c947(0x149),_0x3e05c6,_0x2ed875);}(_0x397659,_0x1c48ca,_0x22092b,_0x1f5e42),function(_0x4c38ff,_0x1da7d8,_0x1418f0,_0x57a2fc){const _0x2e7ab9=_0x42cc46;if(!_0x57a2fc[_0x2e7ab9(0x12e)](_0x1da7d8,_0x2e7ab9(0x14e)))return;let _0x392f24=_0x2e7ab9(0x168),_0x4a8f0c=!0x1;if(_0x1418f0[_0x2e7ab9(0x140)][_0x2e7ab9(0x108)](_0x4c38ff,{'attributes':_0x2e7ab9(0x11e)})){const _0xf7889a={0x1:_0x2e7ab9(0x168),'a':_0x2e7ab9(0x106),'A':_0x2e7ab9(0x12f),'i':_0x2e7ab9(0x121),'I':_0x2e7ab9(0x15b)}[_0x4c38ff[_0x2e7ab9(0x164)](_0x2e7ab9(0x11e))];_0xf7889a&&(_0x392f24=_0xf7889a),_0x4a8f0c=!0x0;}_0x1418f0[_0x2e7ab9(0x140)][_0x2e7ab9(0x108)](_0x4c38ff,{'styles':_0x2e7ab9(0x10e)})&&(_0x392f24=_0x4c38ff[_0x2e7ab9(0x127)](_0x2e7ab9(0x10e)),_0x4a8f0c=!0x0),!_0x4a8f0c&&_0x1da7d8[_0x2e7ab9(0x143)](_0x2e7ab9(0x14e))||_0x1418f0[_0x2e7ab9(0x119)][_0x2e7ab9(0x142)](_0x2e7ab9(0x14e),_0x392f24,_0x1da7d8);}(_0x397659,_0x1c48ca,_0x22092b,_0x1f5e42));});}),_0xea44fc[_0x22c265(0x122)](_0x22c265(0x111))[_0x22c265(0x12c)](_0x354de8=>{const _0x3932ef=_0x22c265;_0x354de8['on'](_0x3932ef(0x115),(_0x39c17b,_0x4753fb,_0x5e3a09)=>{const _0x52b960=_0x3932ef;if(!_0x5e3a09[_0x52b960(0x140)][_0x52b960(0x108)](_0x4753fb[_0x52b960(0x123)],_0x39c17b[_0x52b960(0x13e)]))return;const _0x59cd36=M(_0x4753fb[_0x52b960(0x123)],_0x5e3a09[_0x52b960(0x147)]),{attributeNewValue:_0x4b4d48}=_0x4753fb;null==_0x4b4d48||0x1===_0x4b4d48?_0x5e3a09[_0x52b960(0x119)][_0x52b960(0x139)](_0x52b960(0x14d),_0x59cd36):_0x5e3a09[_0x52b960(0x119)][_0x52b960(0x142)](_0x52b960(0x14d),String(_0x4b4d48),_0x59cd36);}),_0x354de8['on'](_0x3932ef(0x110),(_0x26f919,_0x2f5046,_0x57fac1)=>{const _0x341770=_0x3932ef;if(!_0x57fac1[_0x341770(0x140)][_0x341770(0x108)](_0x2f5046[_0x341770(0x123)],_0x26f919[_0x341770(0x13e)]))return;const _0x1b6846=M(_0x2f5046[_0x341770(0x123)],_0x57fac1[_0x341770(0x147)]),{attributeNewValue:_0x559d3c}=_0x2f5046;_0x559d3c&&_0x341770(0x168)!==_0x559d3c?_0x57fac1[_0x341770(0x119)][_0x341770(0x11c)](_0x341770(0x10e),_0x559d3c,_0x1b6846):_0x57fac1[_0x341770(0x119)][_0x341770(0x116)](_0x341770(0x10e),_0x1b6846);});});}[_0x57e3d1(0x14b)](){const _0x3a185f=_0x57e3d1,{editor:_0x45ee53}=this,{model:_0xd4a724}=_0x45ee53,_0x5b5b7e=_0x45ee53[_0x3a185f(0x11a)][_0x3a185f(0x153)](_0x3e7f42),_0x5a41d8=this[_0x3a185f(0x112)](),_0x4215ff=this[_0x3a185f(0x109)]();_0xd4a724[_0x3a185f(0x162)][_0x3a185f(0x11f)](_0x3ff410=>{const _0x2e3be9=_0x3a185f,_0x214eff=_0xd4a724[_0x2e3be9(0x162)][_0x2e3be9(0x146)][_0x2e3be9(0x145)]();let _0x4630c6=!0x1;for(const _0x39aaab of _0x214eff){if(_0x2e3be9(0x128)!==_0x39aaab[_0x2e3be9(0x11e)]||_0x2e3be9(0x13d)===_0x39aaab[_0x2e3be9(0x13e)])continue;const _0x4fa5dd=_0xd4a724[_0x2e3be9(0x152)](_0x39aaab[_0x2e3be9(0x14c)][_0x2e3be9(0x107)]);for(const _0xd3ad87 of _0x4fa5dd[_0x2e3be9(0x135)]())_0xd3ad87['is'](_0x2e3be9(0x154),_0x2e3be9(0x105))&&(!_0xd3ad87[_0x2e3be9(0x143)](_0x2e3be9(0x149))&&_0xd4a724[_0x2e3be9(0x15f)][_0x2e3be9(0x12e)](_0xd3ad87,_0x2e3be9(0x149))&&(_0x3ff410[_0x2e3be9(0x142)](_0x2e3be9(0x149),_0x4215ff,_0xd3ad87),_0x4630c6=!0x0),!_0xd3ad87[_0x2e3be9(0x143)](_0x2e3be9(0x14e))&&_0xd4a724[_0x2e3be9(0x15f)][_0x2e3be9(0x12e)](_0xd3ad87,_0x2e3be9(0x14e))&&(_0x3ff410[_0x2e3be9(0x142)](_0x2e3be9(0x14e),_0x5a41d8,_0xd3ad87),_0x4630c6=!0x0));}return _0x4630c6&&_0x5b5b7e[_0x2e3be9(0x114)](_0x3ff410),_0x4630c6;});}[_0x57e3d1(0x11b)](){const _0x19bbe0=_0x57e3d1,{editor:_0x254439}=this;_0x254439[_0x19bbe0(0x11a)][_0x19bbe0(0x153)](_0x3e7f42)[_0x19bbe0(0x10c)](_0x332d29=>this[_0x19bbe0(0x125)](_0x332d29));}[_0x57e3d1(0x112)](){const _0x577d59=_0x57e3d1;return this[_0x577d59(0x12a)][_0x577d59(0x10a)][_0x577d59(0x153)](_0x577d59(0x144));}[_0x57e3d1(0x109)](){const _0x7aa843=_0x57e3d1;return this[_0x7aa843(0x12a)][_0x7aa843(0x10a)][_0x7aa843(0x153)](_0x7aa843(0x113));}[_0x57e3d1(0x125)]({container:_0xfd6433,value:_0x19b75f,digits:_0x3a25e3}){const _0x34103a=_0x57e3d1,_0x3ea2a4=_0xfd6433[_0x34103a(0x164)](_0x34103a(0x14e)),_0x4d8420=_0xfd6433[_0x34103a(0x164)](_0x34103a(0x149)),_0x1b25f7=Math[_0x34103a(0x10d)](_0x19b75f)+(_0x4d8420??0x1)-0x1;switch(_0x3ea2a4){case _0x34103a(0x156):return function(_0x11e4d6,_0x51e38b){const _0x407607=_0x34103a;return String(_0x11e4d6)[_0x407607(0x104)](_0x51e38b,'0');}(_0x1b25f7,Math[_0x34103a(0x11d)](0x2,_0x3a25e3));case _0x34103a(0x106):case _0x34103a(0x117):return N(_0x1b25f7,!0x1);case _0x34103a(0x12f):case _0x34103a(0x14a):return N(_0x1b25f7,!0x0);case _0x34103a(0x121):return X(_0x1b25f7,!0x1);case _0x34103a(0x15b):return X(_0x1b25f7,!0x0);default:return String(_0x1b25f7);}}}function M(_0x5edde0,_0x285711){const _0x501d7b=_0x57e3d1,_0x58a83a=_0x285711[_0x501d7b(0x12b)](_0x5edde0);return Array[_0x501d7b(0x131)](_0x58a83a[_0x501d7b(0x10f)]())[_0x501d7b(0x148)](_0x2596e9=>_0x2596e9['is'](_0x501d7b(0x154),'ol')&&_0x2596e9[_0x501d7b(0x157)](_0x501d7b(0x10b)));}function N(_0x16d4e4,_0x5910ab){const _0x1ec5c5=_0x57e3d1;let _0x4c649e='',_0x35307c=_0x16d4e4;for(;_0x35307c>0x0;){const _0x247cac=(_0x35307c-0x1)%0x1a;_0x4c649e=String[_0x1ec5c5(0x118)](0x61+_0x247cac)+_0x4c649e,_0x35307c=Math[_0x1ec5c5(0x10d)]((_0x35307c-0x1)/0x1a);}return _0x5910ab?_0x4c649e[_0x1ec5c5(0x132)]():_0x4c649e;}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(_0x534f4d,_0x2f81c1){const _0xf10667=_0x57e3d1;let _0x50429b='',_0x5099de=_0x534f4d;for(const {value:_0x5a9ae2,numeral:_0x36415a}of V)for(;_0x5099de>=_0x5a9ae2;)_0x50429b+=_0x36415a,_0x5099de-=_0x5a9ae2;return _0x2f81c1?_0x50429b:_0x50429b[_0xf10667(0x159)]();}
|
|
23
|
+
const _0x389ca6=_0x10c7;(function(_0x4d0cad,_0xd85cd0){const _0x56fc07=_0x10c7,_0x501aac=_0x4d0cad();while(!![]){try{const _0x21ead9=parseInt(_0x56fc07(0x228))/0x1+parseInt(_0x56fc07(0x234))/0x2+parseInt(_0x56fc07(0x201))/0x3+parseInt(_0x56fc07(0x203))/0x4*(parseInt(_0x56fc07(0x23f))/0x5)+-parseInt(_0x56fc07(0x214))/0x6*(-parseInt(_0x56fc07(0x239))/0x7)+parseInt(_0x56fc07(0x22b))/0x8*(parseInt(_0x56fc07(0x1ea))/0x9)+-parseInt(_0x56fc07(0x215))/0xa*(parseInt(_0x56fc07(0x207))/0xb);if(_0x21ead9===_0xd85cd0)break;else _0x501aac['push'](_0x501aac['shift']());}catch(_0x540ba2){_0x501aac['push'](_0x501aac['shift']());}}}(_0x1294,0xa0d01));function _0x10c7(_0x2b2817,_0x20af32){const _0x1294db=_0x1294();return _0x10c7=function(_0x10c792,_0x53e35d){_0x10c792=_0x10c792-0x1df;let _0x814d3c=_0x1294db[_0x10c792];return _0x814d3c;},_0x10c7(_0x2b2817,_0x20af32);}import{Plugin as _0x507319}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0xb01338}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x367eb1}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x48d73a}from'../footnotestracker.js';import{FootnotesEditing as _0x380bb5}from'../footnotesediting.js';function _0x1294(){const _0x54e8a4=['setStyle','removeStyle','7ydafsb','get','hasClass','for','upcast','writer','5qTixVy','config','decimal-leading-zero','modelCursor','attribute:footnotesListStart:footnotesDefinitions','define','isOfficialPlugin','registerPostFixer','footnotesStyle','plugins','_definePostfixer','checkAttribute','setFootnoteFormatter','FootnotesPropertiesEditing','$text','start','from','393642FRgyDU','_defineFormatter','model','max','lower-roman','position','getChildren','_defineSchema','footnotesListStart','lower-alpha','init','downcast','lower-latin','toViewElement','decimal','_updateFootnotesCounters','pluginName','parseInt','padStart','_defineConverters','element','removeAttribute','add','1450392GLopeB','_formatFootnoteListValue','835216IDbFUy','insert','find','toLowerCase','11yUoWyj','editor','getChanges','footnotes.footnotesProperties.defaultListStyle','element:ol','nodeAfter','requires','document','setAttribute','footnotesDefinitions','fromCharCode','item','hasAttribute','3588582JGiSry','19141640HXTotZ','extend','isPremiumPlugin','commands','floor','upper-roman','toUpperCase','mapper','getStyle','differ','schema','footnotes.footnotesProperties.defaultStartIndex','_getDefaultStartIndex','createRangeOn','attribute:footnotesListStyle:footnotesDefinitions','name','consumable','footnotes-list','upper-alpha','479247EJSxsS','type','getItems','104yYSkSU','parent','_getDefaultListStyle','footnotesStart','footnotesListStyle','viewItem','consume','getAttribute','upper-latin','469294WUDjTw','list-style-type','isNaN'];_0x1294=function(){return _0x54e8a4;};return _0x1294();}export class FootnotesPropertiesEditing extends _0x507319{static get[_0x389ca6(0x1fa)](){const _0x20137f=_0x389ca6;return _0x20137f(0x1e6);}static get[_0x389ca6(0x20d)](){return[_0x380bb5,_0x48d73a];}static get[_0x389ca6(0x1df)](){return!0x0;}static get[_0x389ca6(0x217)](){return!0x0;}[_0x389ca6(0x1f4)](){const _0x564f6a=_0x389ca6,{editor:_0x29cd0a}=this;_0x29cd0a[_0x564f6a(0x240)][_0x564f6a(0x244)](_0x564f6a(0x20a),_0x564f6a(0x1f8)),_0x29cd0a[_0x564f6a(0x240)][_0x564f6a(0x244)](_0x564f6a(0x220),0x1),_0x29cd0a[_0x564f6a(0x218)][_0x564f6a(0x200)](_0x564f6a(0x1e1),new _0xb01338(_0x29cd0a)),_0x29cd0a[_0x564f6a(0x218)][_0x564f6a(0x200)](_0x564f6a(0x22e),new _0x367eb1(_0x29cd0a)),this[_0x564f6a(0x1f1)](),this[_0x564f6a(0x1fd)](),this[_0x564f6a(0x1eb)](),this[_0x564f6a(0x1e3)]();}[_0x389ca6(0x1f1)](){const _0x392038=_0x389ca6,{editor:_0x264f16}=this,{schema:_0x1bcf8c}=_0x264f16[_0x392038(0x1ec)];_0x1bcf8c[_0x392038(0x216)](_0x392038(0x210),{'allowAttributes':[_0x392038(0x22f),_0x392038(0x1f2)]});}[_0x389ca6(0x1fd)](){const _0x4ddd42=_0x389ca6,{editor:_0x309163}=this,{conversion:_0x1c3e2b,model:_0x46437b}=_0x309163,{schema:_0x5a5292}=_0x46437b;_0x1c3e2b[_0x4ddd42(0x23c)](_0x4ddd42(0x23d))[_0x4ddd42(0x200)](_0x273c84=>{const _0x8d74d9=_0x4ddd42;_0x273c84['on'](_0x8d74d9(0x20b),(_0x18ff68,_0x1b8bb5,_0x551794)=>{const _0x41b94f=_0x8d74d9,_0x458eec=_0x1b8bb5[_0x41b94f(0x230)],_0xea743e=_0x1b8bb5[_0x41b94f(0x242)]?.[_0x41b94f(0x22c)];_0x458eec[_0x41b94f(0x23b)](_0x41b94f(0x226))&&_0xea743e?.['is'](_0x41b94f(0x1fe),_0x41b94f(0x210))&&(function(_0x1d754b,_0x5e4ab1,_0x495168,_0x100061){const _0xb08bbc=_0x41b94f;if(!_0x100061[_0xb08bbc(0x1e4)](_0x5e4ab1,_0xb08bbc(0x1f2)))return;let _0x53d03d=0x1;const _0x2c7152=_0x495168[_0xb08bbc(0x225)][_0xb08bbc(0x231)](_0x1d754b,{'attributes':_0xb08bbc(0x1e8)});if(_0x2c7152){const _0x2eba73=Number[_0xb08bbc(0x1fb)](_0x1d754b[_0xb08bbc(0x232)](_0xb08bbc(0x1e8)),0xa);Number[_0xb08bbc(0x236)](_0x2eba73)||(_0x53d03d=_0x2eba73);}!_0x2c7152&&_0x5e4ab1[_0xb08bbc(0x213)](_0xb08bbc(0x1f2))||_0x495168[_0xb08bbc(0x23e)][_0xb08bbc(0x20f)](_0xb08bbc(0x1f2),_0x53d03d,_0x5e4ab1);}(_0x458eec,_0xea743e,_0x551794,_0x5a5292),function(_0xa7e078,_0x2ef2c6,_0x2cf4b5,_0x5e775e){const _0x2bdb5d=_0x41b94f;if(!_0x5e775e[_0x2bdb5d(0x1e4)](_0x2ef2c6,_0x2bdb5d(0x22f)))return;let _0x473aa9=_0x2bdb5d(0x1f8),_0x1b7c42=!0x1;if(_0x2cf4b5[_0x2bdb5d(0x225)][_0x2bdb5d(0x231)](_0xa7e078,{'attributes':_0x2bdb5d(0x229)})){const _0x80245a={0x1:_0x2bdb5d(0x1f8),'a':_0x2bdb5d(0x1f3),'A':_0x2bdb5d(0x227),'i':_0x2bdb5d(0x1ee),'I':_0x2bdb5d(0x21a)}[_0xa7e078[_0x2bdb5d(0x232)](_0x2bdb5d(0x229))];_0x80245a&&(_0x473aa9=_0x80245a),_0x1b7c42=!0x0;}_0x2cf4b5[_0x2bdb5d(0x225)][_0x2bdb5d(0x231)](_0xa7e078,{'styles':_0x2bdb5d(0x235)})&&(_0x473aa9=_0xa7e078[_0x2bdb5d(0x21d)](_0x2bdb5d(0x235)),_0x1b7c42=!0x0),!_0x1b7c42&&_0x2ef2c6[_0x2bdb5d(0x213)](_0x2bdb5d(0x22f))||_0x2cf4b5[_0x2bdb5d(0x23e)][_0x2bdb5d(0x20f)](_0x2bdb5d(0x22f),_0x473aa9,_0x2ef2c6);}(_0x458eec,_0xea743e,_0x551794,_0x5a5292));});}),_0x1c3e2b[_0x4ddd42(0x23c)](_0x4ddd42(0x1f5))[_0x4ddd42(0x200)](_0x5d8fc1=>{const _0x330bdf=_0x4ddd42;_0x5d8fc1['on'](_0x330bdf(0x243),(_0x14afd1,_0x221c30,_0x21e53b)=>{const _0x1aba32=_0x330bdf;if(!_0x21e53b[_0x1aba32(0x225)][_0x1aba32(0x231)](_0x221c30[_0x1aba32(0x212)],_0x14afd1[_0x1aba32(0x224)]))return;const _0x464ab5=M(_0x221c30[_0x1aba32(0x212)],_0x21e53b[_0x1aba32(0x21c)]),{attributeNewValue:_0x11a8e0}=_0x221c30;null==_0x11a8e0||0x1===_0x11a8e0?_0x21e53b[_0x1aba32(0x23e)][_0x1aba32(0x1ff)](_0x1aba32(0x1e8),_0x464ab5):_0x21e53b[_0x1aba32(0x23e)][_0x1aba32(0x20f)](_0x1aba32(0x1e8),String(_0x11a8e0),_0x464ab5);}),_0x5d8fc1['on'](_0x330bdf(0x223),(_0x49308a,_0x4fbfd7,_0x5981b7)=>{const _0x44c6b3=_0x330bdf;if(!_0x5981b7[_0x44c6b3(0x225)][_0x44c6b3(0x231)](_0x4fbfd7[_0x44c6b3(0x212)],_0x49308a[_0x44c6b3(0x224)]))return;const _0x205d8e=M(_0x4fbfd7[_0x44c6b3(0x212)],_0x5981b7[_0x44c6b3(0x21c)]),{attributeNewValue:_0x2d2a95}=_0x4fbfd7;_0x2d2a95&&_0x44c6b3(0x1f8)!==_0x2d2a95?_0x5981b7[_0x44c6b3(0x23e)][_0x44c6b3(0x237)](_0x44c6b3(0x235),_0x2d2a95,_0x205d8e):_0x5981b7[_0x44c6b3(0x23e)][_0x44c6b3(0x238)](_0x44c6b3(0x235),_0x205d8e);});});}[_0x389ca6(0x1e3)](){const _0x244d0b=_0x389ca6,{editor:_0x2bd075}=this,{model:_0xeb6bde}=_0x2bd075,_0x4377ea=_0x2bd075[_0x244d0b(0x1e2)][_0x244d0b(0x23a)](_0x48d73a),_0x3a006f=this[_0x244d0b(0x22d)](),_0x318e67=this[_0x244d0b(0x221)]();_0xeb6bde[_0x244d0b(0x20e)][_0x244d0b(0x1e0)](_0x30541f=>{const _0x1b15bd=_0x244d0b,_0x4ed7e1=_0xeb6bde[_0x1b15bd(0x20e)][_0x1b15bd(0x21e)][_0x1b15bd(0x209)]();let _0xa8850a=!0x1;for(const _0x33c72c of _0x4ed7e1){if(_0x1b15bd(0x204)!==_0x33c72c[_0x1b15bd(0x229)]||_0x1b15bd(0x1e7)===_0x33c72c[_0x1b15bd(0x224)])continue;const _0x42ded4=_0xeb6bde[_0x1b15bd(0x222)](_0x33c72c[_0x1b15bd(0x1ef)][_0x1b15bd(0x20c)]);for(const _0x58e935 of _0x42ded4[_0x1b15bd(0x22a)]())_0x58e935['is'](_0x1b15bd(0x1fe),_0x1b15bd(0x210))&&(!_0x58e935[_0x1b15bd(0x213)](_0x1b15bd(0x1f2))&&_0xeb6bde[_0x1b15bd(0x21f)][_0x1b15bd(0x1e4)](_0x58e935,_0x1b15bd(0x1f2))&&(_0x30541f[_0x1b15bd(0x20f)](_0x1b15bd(0x1f2),_0x318e67,_0x58e935),_0xa8850a=!0x0),!_0x58e935[_0x1b15bd(0x213)](_0x1b15bd(0x22f))&&_0xeb6bde[_0x1b15bd(0x21f)][_0x1b15bd(0x1e4)](_0x58e935,_0x1b15bd(0x22f))&&(_0x30541f[_0x1b15bd(0x20f)](_0x1b15bd(0x22f),_0x3a006f,_0x58e935),_0xa8850a=!0x0));}return _0xa8850a&&_0x4377ea[_0x1b15bd(0x1f9)](_0x30541f),_0xa8850a;});}[_0x389ca6(0x1eb)](){const _0x107f75=_0x389ca6,{editor:_0x2261c1}=this;_0x2261c1[_0x107f75(0x1e2)][_0x107f75(0x23a)](_0x48d73a)[_0x107f75(0x1e5)](_0x315192=>this[_0x107f75(0x202)](_0x315192));}[_0x389ca6(0x22d)](){const _0x50ef8f=_0x389ca6;return this[_0x50ef8f(0x208)][_0x50ef8f(0x240)][_0x50ef8f(0x23a)](_0x50ef8f(0x20a));}[_0x389ca6(0x221)](){const _0x48825f=_0x389ca6;return this[_0x48825f(0x208)][_0x48825f(0x240)][_0x48825f(0x23a)](_0x48825f(0x220));}[_0x389ca6(0x202)]({container:_0x1ceaea,value:_0x520013,digits:_0x34c380}){const _0x38a382=_0x389ca6,_0x374851=_0x1ceaea[_0x38a382(0x232)](_0x38a382(0x22f)),_0x69841c=_0x1ceaea[_0x38a382(0x232)](_0x38a382(0x1f2)),_0xbc2066=Math[_0x38a382(0x219)](_0x520013)+(_0x69841c??0x1)-0x1;switch(_0x374851){case _0x38a382(0x241):return function(_0x566233,_0x1628eb){const _0x3a7434=_0x38a382;return String(_0x566233)[_0x3a7434(0x1fc)](_0x1628eb,'0');}(_0xbc2066,Math[_0x38a382(0x1ed)](0x2,_0x34c380));case _0x38a382(0x1f3):case _0x38a382(0x1f6):return N(_0xbc2066,!0x1);case _0x38a382(0x227):case _0x38a382(0x233):return N(_0xbc2066,!0x0);case _0x38a382(0x1ee):return X(_0xbc2066,!0x1);case _0x38a382(0x21a):return X(_0xbc2066,!0x0);default:return String(_0xbc2066);}}}function M(_0x384c4b,_0x5ed3cf){const _0x438c19=_0x389ca6,_0x2b09d5=_0x5ed3cf[_0x438c19(0x1f7)](_0x384c4b);return Array[_0x438c19(0x1e9)](_0x2b09d5[_0x438c19(0x1f0)]())[_0x438c19(0x205)](_0x2588fa=>_0x2588fa['is'](_0x438c19(0x1fe),'ol')&&_0x2588fa[_0x438c19(0x23b)](_0x438c19(0x226)));}function N(_0x3c2744,_0x40da6b){const _0x1c2056=_0x389ca6;let _0x2514d1='',_0x6882ac=_0x3c2744;for(;_0x6882ac>0x0;){const _0x51103d=(_0x6882ac-0x1)%0x1a;_0x2514d1=String[_0x1c2056(0x211)](0x61+_0x51103d)+_0x2514d1,_0x6882ac=Math[_0x1c2056(0x219)]((_0x6882ac-0x1)/0x1a);}return _0x40da6b?_0x2514d1[_0x1c2056(0x21b)]():_0x2514d1;}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(_0x20b27f,_0x564658){const _0x3afc33=_0x389ca6;let _0x38fda5='',_0x22d6ca=_0x20b27f;for(const {value:_0x416a81,numeral:_0x17c2a8}of V)for(;_0x22d6ca>=_0x416a81;)_0x38fda5+=_0x17c2a8,_0x22d6ca-=_0x416a81;return _0x564658?_0x38fda5:_0x38fda5[_0x3afc33(0x206)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x4d854d,ButtonView as _0x1f79c4,ContextualBalloon as _0x59d567,createDropdown as _0x2bafb0}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x168368}from'ckeditor5/src/widget.js';import{Plugin as _0x43a303}from'ckeditor5/src/core.js';import{IconFootnote as _0x3e5c42,IconListStyleDecimal as _0x415ed7,IconListStyleDecimalLeadingZero as _0x372f91,IconListStyleLowerLatin as _0x7c3db4,IconListStyleLowerRoman as _0x4eb651,IconListStyleUpperLatin as _0x4beba4,IconListStyleUpperRoman as _0x18e4dc}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x42562f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x555029}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x43a303{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x59d567,_0x168368];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e43e6}=this,{componentFactory:_0x18eb32}=_0x3e43e6['ui'];_0x3e43e6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x18eb32['add']('footnotesStyle',function(_0x3f9d49){return _0x752f11=>{const {t:t}=_0x752f11,_0x2f9235=_0x3f9d49['commands']['get']('footnotesStyle'),_0x3897d9=_0x2bafb0(_0x752f11),{buttonView:_0x3bd883}=_0x3897d9;return _0x3897d9['class']='ck-footnotes-styles-dropdown',_0x3897d9['bind']('isEnabled')['to'](_0x2f9235,'isEnabled'),_0x3bd883['set']({'label':t('Footnotes\x20style'),'icon':_0x3e5c42,'tooltip':!0x0}),_0x3897d9['once']('change:isOpen',()=>{const _0x4cebdb=function({editor:_0x85d4c1,dropdownView:_0x5ecbe0}){const {t:t}=_0x85d4c1['locale'],_0x4cec30=t('Footnotes\x20definitions\x20styles'),_0x5de99f=function(_0x33b998){const t=_0x33b998['locale']['t'],_0x29d44e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x415ed7},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x372f91},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4eb651},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x18e4dc},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x7c3db4},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4beba4}];return _0x29d44e['map'](function(_0x5e6d2d){const _0xde266c=_0x5e6d2d['locale'];return({label:_0x1b38b8,icon:_0x183d62,tooltip:_0x9a59c3,style:_0x40c7fc})=>{const _0x5480aa=_0x5e6d2d['commands']['get']('footnotesStyle'),_0x22b010=new _0x1f79c4(_0xde266c);return _0x22b010['set']({'label':_0x1b38b8,'icon':_0x183d62,'tooltip':_0x9a59c3}),_0x22b010['bind']('isOn')['to'](_0x5480aa,'value',_0x5963ae=>_0x5963ae===_0x40c7fc),_0x22b010['bind']('isEnabled')['to'](_0x5480aa,'isEnabled'),_0x22b010['on']('execute',()=>{_0x5e6d2d['execute']('footnotesStyle',{'value':_0x40c7fc}),_0x5e6d2d['editing']['view']['focus']();}),_0x22b010;};}(_0x33b998));}(_0x85d4c1),_0x2ba10b=new _0x42562f(_0x85d4c1['locale'],{'styleGridAriaLabel':_0x4cec30,'styleButtonViews':_0x5de99f});return _0x2ba10b['delegate']('execute')['to'](_0x5ecbe0),_0x2ba10b['on']('footnotesListStart',(_0x5cfab1,_0x59dfac)=>{_0x85d4c1['execute']('footnotesStart',{'value':_0x59dfac['startIndex']});}),_0x2ba10b;}({'editor':_0x3f9d49,'dropdownView':_0x3897d9});_0x3897d9['panelView']['children']['add'](_0x4cebdb);}),_0x3897d9;};}(_0x3e43e6));}['afterInit'](){const {editor:_0x4fa732}=this,{t:t}=_0x4fa732['locale'],_0x524c7d=_0x4fa732['plugins']['get'](_0x168368),{defaultPositions:_0x19297f}=_0x4d854d;_0x524c7d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4fa732['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5f1b13=>{let _0x24cf47=_0x5f1b13['getFirstPosition']()?.['parent'];return _0x24cf47?.['is']('$text')&&(_0x24cf47=_0x24cf47['parent']),_0x24cf47?.['is']('element')?_0x24cf47['findAncestor'](_0x555029):null;},'positions':[_0x19297f['southArrowNorth'],_0x19297f['southArrowNorthMiddleWest'],_0x19297f['southArrowNorthMiddleEast'],_0x19297f['southArrowNorthWest'],_0x19297f['southArrowNorthEast'],_0x19297f['northArrowSouth'],_0x19297f['northArrowSouthMiddleWest'],_0x19297f['northArrowSouthMiddleEast'],_0x19297f['northArrowSouthWest'],_0x19297f['northArrowSouthEast'],_0x19297f['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1e06a7,View as _0x4384ef,ViewCollection as _0x111eef,FocusCycler as _0x2b182c,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 _0x4384ef{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x111eef();['focusCycler'];constructor(_0x4fdc10,{styleButtonViews:_0x3d8732,styleGridAriaLabel:_0x47e1bc}){super(_0x4fdc10),(this['focusCycler']=new _0x2b182c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3d8732,_0x47e1bc),[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 _0x506146 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x506146['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 _0x2ae157=_0x271e91=>_0x271e91['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2ae157),this['keystrokes']['set']('arrowleft',_0x2ae157),this['keystrokes']['set']('arrowup',_0x2ae157),this['keystrokes']['set']('arrowdown',_0x2ae157);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3cbf27,_0x4a1ae0){const _0x1a82a2=new _0x4384ef(this['locale']);return _0x1a82a2['children']=_0x1a82a2['createCollection'](),_0x1a82a2['children']['addMany'](_0x3cbf27),_0x1a82a2['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4a1ae0,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1a82a2['children']}),_0x1a82a2['children']['delegate']('execute')['to'](this),_0x1a82a2['focus']=function(){for(const _0x50f2d3 of this['children'])if(_0x50f2d3 instanceof _0x1e06a7&&_0x50f2d3['isOn'])return void _0x50f2d3['focus']();this['children']['first']['focus']();},_0x1a82a2['focusTracker']=new ot(),_0x1a82a2['keystrokes']=new rt(),_0x1a82a2['render'](),_0x1a82a2['keystrokes']['listenTo'](_0x1a82a2['element']),this['children']['add'](_0x1a82a2),_0x1a82a2;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x996d5b=this['_createStartIndexPropertyView'](),_0x40b5d3=[_0x996d5b],_0x4a6a40=new st(this['locale'],_0x40b5d3);return _0x4a6a40['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4a6a40['buttonView']['bind']('isEnabled')['toMany'](_0x40b5d3,'isEnabled',(..._0x47d699)=>_0x47d699['some'](_0x53cbb6=>_0x53cbb6)),_0x4a6a40['buttonView']['on']('change:isEnabled',(_0x58871c,_0x39ebbb,_0x10ece3)=>{_0x10ece3||(_0x4a6a40['isCollapsed']=!0x0);}),this['children']['add'](_0x4a6a40),[_0x996d5b,_0x4a6a40];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x313490=new it(this['locale'],et);return _0x313490['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x313490['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x313490['fieldView']['on']('input',()=>{const _0x3db878=_0x313490['fieldView']['element'],_0x42891a=_0x3db878['valueAsNumber'];Number['isNaN'](_0x42891a)?_0x313490['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3db878['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x42891a}):_0x313490['errorText']=t(_0x42891a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x313490;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa043b=_0x498b;(function(_0x396176,_0x3cc532){var _0x2de91d=_0x498b,_0x89841d=_0x396176();while(!![]){try{var _0x1094cb=-parseInt(_0x2de91d(0x177))/0x1+parseInt(_0x2de91d(0x16e))/0x2*(-parseInt(_0x2de91d(0x176))/0x3)+parseInt(_0x2de91d(0x171))/0x4+parseInt(_0x2de91d(0x16b))/0x5+parseInt(_0x2de91d(0x170))/0x6*(parseInt(_0x2de91d(0x16a))/0x7)+parseInt(_0x2de91d(0x174))/0x8*(parseInt(_0x2de91d(0x16d))/0x9)+parseInt(_0x2de91d(0x178))/0xa*(parseInt(_0x2de91d(0x172))/0xb);if(_0x1094cb===_0x3cc532)break;else _0x89841d['push'](_0x89841d['shift']());}catch(_0x9f26c6){_0x89841d['push'](_0x89841d['shift']());}}}(_0x3720,0x217ea));import{Plugin as _0x5340d1}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x6f58ba}from'./footnotesproperties/footnotespropertiesediting.js';function _0x498b(_0x38b16e,_0x512060){var _0x3720ad=_0x3720();return _0x498b=function(_0x498bbb,_0x3fa8f9){_0x498bbb=_0x498bbb-0x169;var _0x344257=_0x3720ad[_0x498bbb];return _0x344257;},_0x498b(_0x38b16e,_0x512060);}import{FootnotesPropertiesUI as _0x4e31e5}from'./footnotesproperties/footnotespropertiesui.js';function _0x3720(){var _0x57b729=['468yyBTcr','224044wZQCqJ','20jalEtH','FootnotesProperties','195496tCWTgk','339030RFoqlu','isPremiumPlugin','108VfbNvl','1922WvuXFD','requires','36INdypc','495360YXrMGK','474716cTxXkf','isOfficialPlugin','43752yUIZEl','pluginName'];_0x3720=function(){return _0x57b729;};return _0x3720();}export class FootnotesProperties extends _0x5340d1{static get[_0xa043b(0x175)](){var _0xab9863=_0xa043b;return _0xab9863(0x169);}static get[_0xa043b(0x16f)](){return[_0x6f58ba,_0x4e31e5];}static get[_0xa043b(0x173)](){return!0x0;}static get[_0xa043b(0x16c)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39cab3=_0x45de;(function(_0x2dc340,_0x3f2ffe){const _0x59d9f5=_0x45de,_0x5b8d84=_0x2dc340();while(!![]){try{const _0x3272d9=-parseInt(_0x59d9f5(0xcf))/0x1*(parseInt(_0x59d9f5(0xeb))/0x2)+parseInt(_0x59d9f5(0x101))/0x3*(-parseInt(_0x59d9f5(0xd3))/0x4)+parseInt(_0x59d9f5(0xe0))/0x5+parseInt(_0x59d9f5(0x119))/0x6*(-parseInt(_0x59d9f5(0xee))/0x7)+parseInt(_0x59d9f5(0x113))/0x8+parseInt(_0x59d9f5(0xed))/0x9*(-parseInt(_0x59d9f5(0x11a))/0xa)+-parseInt(_0x59d9f5(0xf5))/0xb*(-parseInt(_0x59d9f5(0x105))/0xc);if(_0x3272d9===_0x3f2ffe)break;else _0x5b8d84['push'](_0x5b8d84['shift']());}catch(_0x3417c8){_0x5b8d84['push'](_0x5b8d84['shift']());}}}(_0x34fc,0x48930));import{Plugin as _0x1e1532}from'ckeditor5/src/core.js';function _0x45de(_0x573e3b,_0x5371d4){const _0x34fcd8=_0x34fc();return _0x45de=function(_0x45de68,_0x4ce864){_0x45de68=_0x45de68-0xbb;let _0x43702b=_0x34fcd8[_0x45de68];return _0x43702b;},_0x45de(_0x573e3b,_0x5371d4);}function _0x34fc(){const _0x20b225=['singleton','has','getChildren','length','getFootnote','getChanges','createRangeIn','setFootnoteFormatter','append','high','2832235RxCKkQ','some','footnoteId','paragraph','_updateFootnotesCounters','push','splice','_handleFootnotesDefinitionsObjectSync','_footnoteRefsTracker','model','isPremiumPlugin','58042ArWvzs','editor','369WNeuuW','56jVaqAC','end','differ','_ensureFootnotesDefinitionsContainerExists','_ensureFootnotesReferencesHaveProperOrder','_handleRemoveFootnoteReferenceById','min','11CTBzvb','createElement','before','insert','footnoteDefinition','after','config','document','getAttribute','from','_footnoteDefsTracker','_updateFootnoteRefCounter','12jYPWlh','registerPostFixer','footnoteRef','_footnotes','12349524EyDUao','FootnotesTracker','footnoteInlineContent','_footnoteFormatter','get','footnotes.multiBlock','_handleInsertedFootnoteReference','childCount','listenTo','isOfficialPlugin','footnotesDefinitions','reference','definition','_footnotesDefinitions','368056YdnAbg','reset','createPositionAt','createRangeOn','_insertEmptyFootnotesDefinitionsContainer','remove','68808awFblY','92760tMnxNk','_handleFootnoteDefinitionsChanges','_sortFootnoteDefinitions','init','low','_footnoteDefsContainerTracker','map','unshift','find','findIndex','getFootnotesFormatter','compareWith','_handleFootnoteReferencesChanges','change:data','root','$graveyard','set','createPositionBefore','footnoteCounter','parent','move','enqueueChange','getFootnotes','indexOf','setAttribute','getFootnotesDefinitionsObjectElement','isEqual','getRootNames','13iZodZY','pluginName','add','rootName','494984clGeQh','_handleMovedFootnoteReference','_handleFootnotesDefinitionsObjectChanges'];_0x34fc=function(){return _0x20b225;};return _0x34fc();}import{ModelElementTracker as _0x1d295}from'./modelelementtracker.js';export class FootnotesTracker extends _0x1e1532{[_0x39cab3(0x104)]=[];[_0x39cab3(0x112)]=null;[_0x39cab3(0x108)]=null;[_0x39cab3(0x11f)];[_0x39cab3(0xe8)];[_0x39cab3(0xff)];static get[_0x39cab3(0xd0)](){const _0x26d38e=_0x39cab3;return _0x26d38e(0x106);}static get[_0x39cab3(0x10e)](){return!0x0;}static get[_0x39cab3(0xea)](){return!0x0;}constructor(_0xe21b85){const _0x10b4ff=_0x39cab3;super(_0xe21b85),this[_0x10b4ff(0x11f)]=new _0x1d295(this[_0x10b4ff(0xec)][_0x10b4ff(0xe9)],{'elementName':_0x10b4ff(0x10f),'getElementKey':()=>_0x10b4ff(0xd6)}),this[_0x10b4ff(0xe8)]=new _0x1d295(this[_0x10b4ff(0xec)][_0x10b4ff(0xe9)],{'elementName':_0x10b4ff(0x103),'getElementKey':_0x3c80b4=>_0x3c80b4[_0x10b4ff(0xfd)](_0x10b4ff(0xe2))}),this[_0x10b4ff(0xff)]=new _0x1d295(this[_0x10b4ff(0xec)][_0x10b4ff(0xe9)],{'elementName':_0x10b4ff(0xf9),'getElementKey':_0x42b662=>_0x42b662[_0x10b4ff(0xfd)](_0x10b4ff(0xe2))});}[_0x39cab3(0x11d)](){const _0x4ef08d=_0x39cab3,{editor:_0x3a9a14}=this,{model:_0x148bc8,data:_0x19ce92}=_0x3a9a14;_0x148bc8[_0x4ef08d(0xfc)][_0x4ef08d(0x102)](_0x527546=>{const _0x44841c=_0x4ef08d,_0x538a83=_0x148bc8[_0x44841c(0xfc)][_0x44841c(0xf0)][_0x44841c(0xdb)]();let _0x5bc60f=!0x1;return this[_0x44841c(0xd5)](_0x527546,_0x538a83)&&(_0x5bc60f=!0x0),this[_0x44841c(0x11b)](_0x527546,_0x538a83)&&(_0x5bc60f=!0x0),this[_0x44841c(0xbf)](_0x527546,_0x538a83)&&(_0x5bc60f=!0x0),this[_0x44841c(0xf2)](_0x527546)&&(_0x5bc60f=!0x0),this[_0x44841c(0xe7)](_0x527546)&&(_0x5bc60f=!0x0),this[_0x44841c(0x11c)](_0x527546)&&(_0x5bc60f=!0x0),_0x5bc60f;}),this[_0x4ef08d(0x10d)](_0x148bc8[_0x4ef08d(0xfc)],_0x4ef08d(0xc0),()=>{const _0xb5cdc=_0x4ef08d;_0x148bc8[_0xb5cdc(0xc8)]({'isUndoable':!0x1},_0x1cbac3=>{const _0x4e44a3=_0xb5cdc;this[_0x4e44a3(0xf1)](_0x1cbac3);});},{'priority':_0x4ef08d(0x11e)}),this[_0x4ef08d(0x10d)](_0x19ce92,_0x4ef08d(0xc3),()=>{const _0x3e1745=_0x4ef08d;this[_0x3e1745(0x104)]=[],this[_0x3e1745(0x11f)][_0x3e1745(0x114)](),this[_0x3e1745(0xe8)][_0x3e1745(0x114)](),this[_0x3e1745(0xff)][_0x3e1745(0x114)]();},{'priority':_0x4ef08d(0xdf)});}[_0x39cab3(0xcc)](){const _0x173086=_0x39cab3;return this[_0x173086(0x112)];}[_0x39cab3(0xda)](_0x221754){const _0x49d0d5=_0x39cab3;return this[_0x49d0d5(0x104)][_0x49d0d5(0xbb)](_0x3eedb4=>_0x3eedb4['id']===_0x221754)||null;}[_0x39cab3(0xc9)](){const _0x2119b0=_0x39cab3;return Array[_0x2119b0(0xfe)](this[_0x2119b0(0x104)]);}[_0x39cab3(0xbd)](){const _0x159fa0=_0x39cab3;return this[_0x159fa0(0x108)];}[_0x39cab3(0xdd)](_0x28ed0c){const _0x342eca=_0x39cab3;this[_0x342eca(0x108)]=_0x28ed0c;}[_0x39cab3(0xe4)](_0x2fba44,_0x1bd6f7=0x0){const _0x582de3=_0x39cab3;let _0x288c29=!0x1;for(let _0x546391=_0x1bd6f7;_0x546391<this[_0x582de3(0x104)][_0x582de3(0xd9)];_0x546391++)this[_0x582de3(0x100)](_0x2fba44,_0x546391)&&(_0x288c29=!0x0);return _0x288c29;}[_0x39cab3(0x117)](_0x578e37,_0x3b0724){const _0x2116c0=_0x39cab3,_0xff8725=_0x578e37[_0x2116c0(0xf6)](_0x2116c0(0x10f),{});return _0x578e37[_0x2116c0(0xde)](_0xff8725,_0x3b0724),this[_0x2116c0(0x112)]=_0xff8725,_0xff8725;}[_0x39cab3(0xf1)](_0x5231ff){const _0x17e5bf=_0x39cab3;if(!this[_0x17e5bf(0x104)][_0x17e5bf(0xd9)]||this[_0x17e5bf(0x112)])return;const _0x179817=this[_0x17e5bf(0x104)][0x0][_0x17e5bf(0x110)][_0x17e5bf(0xc1)],_0xf5cbd1=this[_0x17e5bf(0x117)](_0x5231ff,_0x179817);for(const _0x48effc of this[_0x17e5bf(0x104)])_0x48effc[_0x17e5bf(0x111)][_0x17e5bf(0xc6)]||_0x5231ff[_0x17e5bf(0xf8)](_0x48effc[_0x17e5bf(0x111)],_0xf5cbd1,_0x17e5bf(0xef));this[_0x17e5bf(0xe4)](_0x5231ff);}[_0x39cab3(0xd5)](_0xb31cc6,_0x2562b1){const _0x25c669=_0x39cab3;let _0x1ffd08=!0x1;const {inserted:_0x478112,removed:_0x52b438,moved:_0x3f37c7}=this[_0x25c669(0x11f)][_0x25c669(0xdb)](_0x2562b1);if(_0x3f37c7[_0x25c669(0xd9)]&&(this[_0x25c669(0x112)]=_0x3f37c7[0x0]),_0x478112[_0x25c669(0xd9)]){if(_0x478112[_0x25c669(0xd9)]>0x1||this[_0x25c669(0x112)]&&_0x478112[_0x25c669(0xe1)](_0x37f47e=>_0x37f47e!==this[_0x25c669(0x112)])){const _0x1ef7e1=_0xb31cc6[_0x25c669(0xf6)](_0x25c669(0x10f),{}),_0x9a3086=[];this[_0x25c669(0x112)]&&_0x9a3086[_0x25c669(0xe5)](this[_0x25c669(0x112)]),_0x9a3086[_0x25c669(0xe5)](..._0x478112),_0xb31cc6[_0x25c669(0xf8)](_0x1ef7e1,_0x9a3086[0x0],_0x25c669(0xf7));for(const _0x367856 of _0x9a3086)_0xb31cc6[_0x25c669(0xc7)](_0xb31cc6[_0x25c669(0xdc)](_0x367856),_0xb31cc6[_0x25c669(0x115)](_0x1ef7e1,_0x25c669(0xef))),_0xb31cc6[_0x25c669(0x118)](_0x367856);this[_0x25c669(0x112)]=_0x1ef7e1,this[_0x25c669(0xe4)](_0xb31cc6),_0x1ffd08=!0x0;}else this[_0x25c669(0x112)]=_0x478112[0x0];}if(_0x52b438[_0x25c669(0xd9)]&&_0x25c669(0xc2)===this[_0x25c669(0x112)]?.[_0x25c669(0xc1)][_0x25c669(0xd2)]){for(const _0x49c25a of this[_0x25c669(0x104)])_0xb31cc6[_0x25c669(0x118)](_0x49c25a[_0x25c669(0x110)]),_0x1ffd08=!0x0;this[_0x25c669(0x104)]=[],this[_0x25c669(0x112)]=null;}return _0x1ffd08;}[_0x39cab3(0x11b)](_0x19cf07,_0x43cc14){const _0x114e27=_0x39cab3;let _0x5e1586=!0x1;const _0x476791=this[_0x114e27(0xec)][_0x114e27(0xfb)][_0x114e27(0x109)](_0x114e27(0x10a)),{inserted:_0x5bf766,moved:_0x2d621d}=this[_0x114e27(0xff)][_0x114e27(0xdb)](_0x43cc14);for(const _0x5dc295 of[..._0x2d621d,..._0x5bf766]){const _0x53d7c5=_0x5dc295[_0x114e27(0xfd)](_0x114e27(0xe2)),_0x465144=this[_0x114e27(0xda)](_0x53d7c5);_0x465144&&(_0x465144[_0x114e27(0x111)]=_0x5dc295),_(_0x19cf07,_0x476791,_0x5dc295)&&(_0x5e1586=!0x0);}return _0x5e1586;}[_0x39cab3(0xbf)](_0x4bda76,_0x59c8b2){const _0xe4a85e=_0x39cab3;let _0x586a98=!0x1;const {removed:_0x4b2928,inserted:_0x13e92b,moved:_0x46c11d}=this[_0xe4a85e(0xe8)][_0xe4a85e(0xdb)](_0x59c8b2);for(const _0x360a69 of _0x4b2928)this[_0xe4a85e(0xf3)](_0x4bda76,_0x360a69)&&(_0x586a98=!0x0);for(const _0x2a8683 of _0x13e92b)this[_0xe4a85e(0x10b)](_0x4bda76,_0x2a8683)&&(_0x586a98=!0x0);for(const _0x3ec4ed of _0x46c11d)this[_0xe4a85e(0xd4)](_0x4bda76,_0x3ec4ed)&&(_0x586a98=!0x0);return _0x586a98;}[_0x39cab3(0xe7)](_0x189802){const _0x546507=_0x39cab3;if(!this[_0x546507(0x112)])return!0x1;let _0xc76ea5=!0x1;if(this[_0x546507(0x112)][_0x546507(0x10c)]!==this[_0x546507(0x104)][_0x546507(0xd9)]){const _0x57d4a7=[];for(const _0x49577d of this[_0x546507(0x112)][_0x546507(0xd8)]()){const _0x22b391=_0x49577d[_0x546507(0xfd)](_0x546507(0xe2));this[_0x546507(0xda)](_0x22b391)||(_0x57d4a7[_0x546507(0x121)](_0x49577d),_0xc76ea5=!0x0);}for(const _0x467958 of _0x57d4a7)_0x189802[_0x546507(0x118)](_0x467958);}const _0x203f88=new Set(),_0xfaf462=[];for(const _0x458908 of this[_0x546507(0x112)][_0x546507(0xd8)]()){const _0xe23bfb=_0x458908[_0x546507(0xfd)](_0x546507(0xe2));_0x203f88[_0x546507(0xd7)](_0xe23bfb)?(_0xfaf462[_0x546507(0x121)](_0x458908),_0xc76ea5=!0x0):_0x203f88[_0x546507(0xd1)](_0xe23bfb);}for(const _0x13e048 of _0xfaf462)_0x189802[_0x546507(0x118)](_0x13e048);return this[_0x546507(0x112)][_0x546507(0x10c)]||(_0x189802[_0x546507(0x118)](this[_0x546507(0x112)]),this[_0x546507(0x112)]=null,_0xc76ea5=!0x0),_0xc76ea5;}[_0x39cab3(0x10b)](_0x1eeadd,_0x5a8fb7){const _0x53e09b=_0x39cab3;if(this[_0x53e09b(0x104)][_0x53e09b(0xbb)](_0x4b24b9=>_0x4b24b9[_0x53e09b(0x110)]===_0x5a8fb7))return!0x1;let _0x1056a6=!0x1;const _0x183a1e=_0x5a8fb7[_0x53e09b(0xfd)](_0x53e09b(0xe2)),_0x36b7ab=this[_0x53e09b(0x104)][_0x53e09b(0xbc)](_0x451ec7=>_0x451ec7['id']===_0x183a1e);-0x1!==_0x36b7ab&&(_0x1eeadd[_0x53e09b(0x118)](this[_0x53e09b(0x104)][_0x36b7ab][_0x53e09b(0x110)]),this[_0x53e09b(0x104)][_0x53e09b(0xe6)](_0x36b7ab,0x1),_0x1056a6=!0x0);let _0xc3fca9=this[_0x53e09b(0x112)]?function(_0x4c4026,_0x580a01){const _0x146ae2=_0x53e09b;for(const _0x44968a of _0x4c4026[_0x146ae2(0xd8)]())if(_0x44968a[_0x146ae2(0xfd)](_0x146ae2(0xe2))===_0x580a01)return _0x44968a;return null;}(this[_0x53e09b(0x112)],_0x183a1e):null;_0xc3fca9||(_0xc3fca9=_0x1eeadd[_0x53e09b(0xf6)](_0x53e09b(0xf9),{'footnoteId':_0x183a1e}),this[_0x53e09b(0x112)]&&(_0x1eeadd[_0x53e09b(0xf8)](_0xc3fca9,this[_0x53e09b(0x112)],_0x53e09b(0xef)),_0x1056a6=!0x0));const _0x24218b={'id':_0x183a1e,'reference':_0x5a8fb7,'definition':_0xc3fca9},_0x1b8a10=I(this[_0x53e09b(0xec)][_0x53e09b(0xe9)],this[_0x53e09b(0x104)],_0x5a8fb7);this[_0x53e09b(0x104)][_0x53e09b(0xe6)](_0x1b8a10,0x0,_0x24218b);let _0xc1810b=_0x1b8a10;return-0x1!==_0x36b7ab&&(_0xc1810b=Math[_0x53e09b(0xf4)](_0x1b8a10,_0x36b7ab)),this[_0x53e09b(0xe4)](_0x1eeadd,_0xc1810b)&&(_0x1056a6=!0x0),_0x1056a6;}[_0x39cab3(0xf3)](_0x82c690,_0x5e8426){const _0x3ac4df=_0x39cab3,_0x2dd2bf=this[_0x3ac4df(0x104)][_0x3ac4df(0xbc)](_0x16b0c6=>_0x16b0c6['id']===_0x5e8426);if(-0x1===_0x2dd2bf)return!0x1;let _0x248cf4=!0x1;const _0x14c0bc=this[_0x3ac4df(0x104)][_0x2dd2bf];return _0x3ac4df(0xc2)!==_0x14c0bc[_0x3ac4df(0x111)][_0x3ac4df(0xc1)][_0x3ac4df(0xd2)]&&(_0x82c690[_0x3ac4df(0x118)](_0x14c0bc[_0x3ac4df(0x111)]),_0x248cf4=!0x0),this[_0x3ac4df(0x104)][_0x3ac4df(0xe6)](_0x2dd2bf,0x1),this[_0x3ac4df(0xe4)](_0x82c690,_0x2dd2bf)&&(_0x248cf4=!0x0),_0x248cf4;}[_0x39cab3(0xd4)](_0x3f0834,_0x36560f){const _0x16b021=_0x39cab3,_0x7a3e69=_0x36560f[_0x16b021(0xfd)](_0x16b021(0xe2)),_0x116e33=this[_0x16b021(0x104)][_0x16b021(0xbc)](_0x877634=>_0x877634['id']===_0x7a3e69),_0x299146=this[_0x16b021(0x104)][_0x116e33];let _0x56fde0=!0x1;_0x299146[_0x16b021(0x110)]=_0x36560f,this[_0x16b021(0x104)][_0x16b021(0xe6)](_0x116e33,0x1);const _0x1d51d9=I(this[_0x16b021(0xec)][_0x16b021(0xe9)],this[_0x16b021(0x104)],_0x36560f);return this[_0x16b021(0x104)][_0x16b021(0xe6)](_0x1d51d9,0x0,_0x299146),this[_0x16b021(0xe4)](_0x3f0834,Math[_0x16b021(0xf4)](_0x116e33,_0x1d51d9))&&(_0x56fde0=!0x0),_0x56fde0;}[_0x39cab3(0x100)](_0x4f8d74,_0x1114ab){const _0x13fd3b=_0x39cab3;if(!this[_0x13fd3b(0x112)])return!0x1;const _0x1c01fb=this[_0x13fd3b(0x104)][_0x1114ab];let _0x2883b2;return _0x2883b2=this[_0x13fd3b(0x108)]?this[_0x13fd3b(0x108)]({'footnote':_0x1c01fb,'container':this[_0x13fd3b(0x112)],'digits':String(this[_0x13fd3b(0x104)][_0x13fd3b(0xd9)])[_0x13fd3b(0xd9)],'value':_0x1114ab+0x1}):String(_0x1114ab+0x1),_0x1c01fb[_0x13fd3b(0x110)][_0x13fd3b(0xfd)](_0x13fd3b(0xc5))!=_0x2883b2&&(_0x4f8d74[_0x13fd3b(0xcb)](_0x13fd3b(0xc5),_0x2883b2,_0x1c01fb[_0x13fd3b(0x110)]),!0x0);}[_0x39cab3(0x11c)](_0xdcddb5){const _0x26ae59=_0x39cab3;if(!this[_0x26ae59(0x112)]||this[_0x26ae59(0x104)][_0x26ae59(0xd9)]<0x2)return!0x1;if(function(_0x2a05ed,_0xb56a0){const _0x4e6e11=_0x26ae59;if(_0x2a05ed[_0x4e6e11(0xd9)]!==_0xb56a0[_0x4e6e11(0xd9)])return!0x1;for(let _0x55bc48=0x0;_0x55bc48<_0x2a05ed[_0x4e6e11(0xd9)];_0x55bc48++)if(_0x2a05ed[_0x55bc48]!==_0xb56a0[_0x55bc48])return!0x1;return!0x0;}(this[_0x26ae59(0x104)][_0x26ae59(0x120)](_0x4e4e6a=>_0x4e4e6a['id']),Array[_0x26ae59(0xfe)](this[_0x26ae59(0x112)][_0x26ae59(0xd8)]())[_0x26ae59(0x120)](_0x2e3945=>_0x2e3945[_0x26ae59(0xfd)](_0x26ae59(0xe2)))))return!0x1;let _0x5d1203=!0x1;for(let _0x5242b6=0x0;_0x5242b6<this[_0x26ae59(0x104)][_0x26ae59(0xd9)];_0x5242b6++){const _0xff2075=this[_0x26ae59(0x104)][_0x5242b6],_0x4edd41=_0xdcddb5[_0x26ae59(0xc4)](_0xff2075[_0x26ae59(0x111)]),_0x499b5d=_0xdcddb5[_0x26ae59(0x115)](this[_0x26ae59(0x112)],_0x5242b6);_0x4edd41[_0x26ae59(0xcd)](_0x499b5d)||(_0xdcddb5[_0x26ae59(0xc7)](_0xdcddb5[_0x26ae59(0x116)](_0xff2075[_0x26ae59(0x111)]),_0x499b5d),_0x5d1203=!0x0);}return _0x5d1203;}[_0x39cab3(0xf2)](_0x4a131f){const _0x50baec=_0x39cab3;if(!this[_0x50baec(0x104)][_0x50baec(0xd9)])return!0x1;const {model:_0x4c6dc6}=this[_0x50baec(0xec)];let _0x14c13a=!0x1;for(let _0x59301c=0x0;_0x59301c<this[_0x50baec(0x104)][_0x50baec(0xd9)]-0x1;_0x59301c++){const _0x40837b=this[_0x50baec(0x104)][_0x59301c],_0x9335bd=this[_0x50baec(0x104)][_0x59301c+0x1],_0x3b46d9=_0x4c6dc6[_0x50baec(0xc4)](_0x40837b[_0x50baec(0x110)]),_0x370969=_0x4c6dc6[_0x50baec(0xc4)](_0x9335bd[_0x50baec(0x110)]);_0x50baec(0xfa)===_0x3b46d9[_0x50baec(0xbe)](_0x370969)&&(this[_0x50baec(0xd4)](_0x4a131f,_0x40837b[_0x50baec(0x110)]),_0x59301c=-0x1,_0x14c13a=!0x0);}return _0x14c13a;}}function _(_0x196eae,_0x3ad6ff,_0x37b48f){const _0x2dfc64=_0x39cab3;if(_0x37b48f[_0x2dfc64(0x10c)])return!0x1;const _0x3acb12=_0x3ad6ff?_0x2dfc64(0xe3):_0x2dfc64(0x107);return _0x196eae[_0x2dfc64(0xf8)](_0x196eae[_0x2dfc64(0xf6)](_0x3acb12),_0x37b48f),!0x0;}function I(_0x76f756,_0x1a5c2a,_0x5f95df){const _0x483289=_0x39cab3;if(0x0===_0x1a5c2a[_0x483289(0xd9)])return 0x0;const _0x32ca7f=_0x76f756[_0x483289(0xc4)](_0x5f95df);for(let _0x39d06d=0x0;_0x39d06d<_0x1a5c2a[_0x483289(0xd9)];_0x39d06d++){const _0x1739e3=_0x1a5c2a[_0x39d06d],_0x61638c=_0x76f756[_0x483289(0xc4)](_0x1739e3[_0x483289(0x110)]);if(_0x483289(0xf7)===_0x32ca7f[_0x483289(0xbe)](_0x61638c))return _0x39d06d;}const _0x227b11=_0x5f95df[_0x483289(0xc1)];let _0x1c5078=-0x1;for(let _0x294f99=_0x1a5c2a[_0x483289(0xd9)]-0x1;_0x294f99>=0x0;_0x294f99--)if(_0x1a5c2a[_0x294f99][_0x483289(0x110)][_0x483289(0xc1)]===_0x227b11){_0x1c5078=_0x294f99;break;}if(-0x1!==_0x1c5078)return _0x1c5078+0x1;const _0x423922=_0x76f756[_0x483289(0xfc)][_0x483289(0xce)](),_0xbb57dc=_0x423922[_0x483289(0xca)](_0x227b11[_0x483289(0xd2)]),_0x5a8cc1=_0x423922[_0xbb57dc+0x1];if(_0x5a8cc1){for(let _0x1ee938=0x0;_0x1ee938<_0x1a5c2a[_0x483289(0xd9)];_0x1ee938++)if(_0x1a5c2a[_0x1ee938][_0x483289(0x110)][_0x483289(0xc1)][_0x483289(0xd2)]===_0x5a8cc1)return _0x1ee938;}return _0x1a5c2a[_0x483289(0xd9)];}
|
|
23
|
+
const _0x7707a2=_0x1ea6;function _0x1ea6(_0x2e07cf,_0x35d658){const _0x3eef80=_0x3eef();return _0x1ea6=function(_0x1ea640,_0x30875d){_0x1ea640=_0x1ea640-0x15f;let _0xeed385=_0x3eef80[_0x1ea640];return _0xeed385;},_0x1ea6(_0x2e07cf,_0x35d658);}(function(_0x27d9a3,_0x5b9e01){const _0x1e53bb=_0x1ea6,_0x334a23=_0x27d9a3();while(!![]){try{const _0x58c90b=-parseInt(_0x1e53bb(0x196))/0x1*(parseInt(_0x1e53bb(0x191))/0x2)+-parseInt(_0x1e53bb(0x188))/0x3+-parseInt(_0x1e53bb(0x181))/0x4*(parseInt(_0x1e53bb(0x187))/0x5)+parseInt(_0x1e53bb(0x194))/0x6+-parseInt(_0x1e53bb(0x164))/0x7*(parseInt(_0x1e53bb(0x19d))/0x8)+parseInt(_0x1e53bb(0x178))/0x9+-parseInt(_0x1e53bb(0x173))/0xa*(-parseInt(_0x1e53bb(0x163))/0xb);if(_0x58c90b===_0x5b9e01)break;else _0x334a23['push'](_0x334a23['shift']());}catch(_0x4ca604){_0x334a23['push'](_0x334a23['shift']());}}}(_0x3eef,0xaac70));import{Plugin as _0x332779}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x3fd883}from'./modelelementtracker.js';function _0x3eef(){const _0x35edf7=['_sortFootnoteDefinitions','_ensureFootnotesDefinitionsContainerExists','length','from','createPositionBefore','_footnoteFormatter','editor','singleton','318884wiVpeH','listenTo','move','5558850rYycnV','splice','2saOltU','change:data','definition','_footnoteDefsContainerTracker','_handleFootnoteDefinitionsChanges','footnoteId','find','137688Grfnwn','config','init','getChanges','footnoteRef','before','$graveyard','root','_handleFootnoteReferencesChanges','footnotesDefinitions','indexOf','createElement','high','after','end','_insertEmptyFootnotesDefinitionsContainer','getAttribute','setFootnoteFormatter','getChildren','_handleFootnotesDefinitionsObjectChanges','unshift','childCount','_updateFootnoteRefCounter','footnoteInlineContent','min','low','rootName','compareWith','_handleRemoveFootnoteReferenceById','add','has','getRootNames','footnoteCounter','_updateFootnotesCounters','some','enqueueChange','_footnotes','reference','isEqual','paragraph','getFootnotes','document','parent','registerPostFixer','22429IhSURB','147bMatGU','map','set','model','isPremiumPlugin','insert','_handleMovedFootnoteReference','_footnoteDefsTracker','_handleFootnotesDefinitionsObjectSync','differ','_footnoteRefsTracker','pluginName','_handleInsertedFootnoteReference','getFootnotesFormatter','createRangeIn','470ZzkeQC','isOfficialPlugin','_ensureFootnotesReferencesHaveProperOrder','reset','findIndex','11649366wRtcya','getFootnote','getFootnotesDefinitionsObjectElement','createRangeOn','createPositionAt','_footnotesDefinitions','FootnotesTracker','setAttribute','remove','28uPJRXE','get','append','footnotes.multiBlock','push','footnoteDefinition','314485EdYlRS','1489752YvTnUK'];_0x3eef=function(){return _0x35edf7;};return _0x3eef();}export class FootnotesTracker extends _0x332779{[_0x7707a2(0x1c1)]=[];[_0x7707a2(0x17d)]=null;[_0x7707a2(0x18e)]=null;[_0x7707a2(0x199)];[_0x7707a2(0x16e)];[_0x7707a2(0x16b)];static get[_0x7707a2(0x16f)](){const _0x1fea8e=_0x7707a2;return _0x1fea8e(0x17e);}static get[_0x7707a2(0x174)](){return!0x0;}static get[_0x7707a2(0x168)](){return!0x0;}constructor(_0x147d78){const _0x441332=_0x7707a2;super(_0x147d78),this[_0x441332(0x199)]=new _0x3fd883(this[_0x441332(0x18f)][_0x441332(0x167)],{'elementName':_0x441332(0x1a6),'getElementKey':()=>_0x441332(0x190)}),this[_0x441332(0x16e)]=new _0x3fd883(this[_0x441332(0x18f)][_0x441332(0x167)],{'elementName':_0x441332(0x1a1),'getElementKey':_0x52d793=>_0x52d793[_0x441332(0x1ad)](_0x441332(0x19b))}),this[_0x441332(0x16b)]=new _0x3fd883(this[_0x441332(0x18f)][_0x441332(0x167)],{'elementName':_0x441332(0x186),'getElementKey':_0x2b0590=>_0x2b0590[_0x441332(0x1ad)](_0x441332(0x19b))});}[_0x7707a2(0x19f)](){const _0x26faef=_0x7707a2,{editor:_0x279c2d}=this,{model:_0x42612d,data:_0x1558fa}=_0x279c2d;_0x42612d[_0x26faef(0x160)][_0x26faef(0x162)](_0x2e2220=>{const _0x3a1f37=_0x26faef,_0x3c6880=_0x42612d[_0x3a1f37(0x160)][_0x3a1f37(0x16d)][_0x3a1f37(0x1a0)]();let _0x204069=!0x1;return this[_0x3a1f37(0x1b0)](_0x2e2220,_0x3c6880)&&(_0x204069=!0x0),this[_0x3a1f37(0x19a)](_0x2e2220,_0x3c6880)&&(_0x204069=!0x0),this[_0x3a1f37(0x1a5)](_0x2e2220,_0x3c6880)&&(_0x204069=!0x0),this[_0x3a1f37(0x175)](_0x2e2220)&&(_0x204069=!0x0),this[_0x3a1f37(0x16c)](_0x2e2220)&&(_0x204069=!0x0),this[_0x3a1f37(0x189)](_0x2e2220)&&(_0x204069=!0x0),_0x204069;}),this[_0x26faef(0x192)](_0x42612d[_0x26faef(0x160)],_0x26faef(0x197),()=>{const _0x33fd1f=_0x26faef;_0x42612d[_0x33fd1f(0x1c0)]({'isUndoable':!0x1},_0x3cd57b=>{const _0x221483=_0x33fd1f;this[_0x221483(0x18a)](_0x3cd57b);});},{'priority':_0x26faef(0x1b6)}),this[_0x26faef(0x192)](_0x1558fa,_0x26faef(0x166),()=>{const _0x2251b0=_0x26faef;this[_0x2251b0(0x1c1)]=[],this[_0x2251b0(0x199)][_0x2251b0(0x176)](),this[_0x2251b0(0x16e)][_0x2251b0(0x176)](),this[_0x2251b0(0x16b)][_0x2251b0(0x176)]();},{'priority':_0x26faef(0x1a9)});}[_0x7707a2(0x17a)](){const _0x3f87b9=_0x7707a2;return this[_0x3f87b9(0x17d)];}[_0x7707a2(0x179)](_0x14320d){const _0x45f673=_0x7707a2;return this[_0x45f673(0x1c1)][_0x45f673(0x19c)](_0x5d5c99=>_0x5d5c99['id']===_0x14320d)||null;}[_0x7707a2(0x15f)](){const _0x8a38c2=_0x7707a2;return Array[_0x8a38c2(0x18c)](this[_0x8a38c2(0x1c1)]);}[_0x7707a2(0x171)](){const _0x199be7=_0x7707a2;return this[_0x199be7(0x18e)];}[_0x7707a2(0x1ae)](_0x2a75f4){const _0x132831=_0x7707a2;this[_0x132831(0x18e)]=_0x2a75f4;}[_0x7707a2(0x1be)](_0xac6a8f,_0xa7ad2a=0x0){const _0x8ceb03=_0x7707a2;let _0x5801d9=!0x1;for(let _0x571087=_0xa7ad2a;_0x571087<this[_0x8ceb03(0x1c1)][_0x8ceb03(0x18b)];_0x571087++)this[_0x8ceb03(0x1b3)](_0xac6a8f,_0x571087)&&(_0x5801d9=!0x0);return _0x5801d9;}[_0x7707a2(0x1ac)](_0x1fff58,_0x23976e){const _0xfb40c2=_0x7707a2,_0xd94a08=_0x1fff58[_0xfb40c2(0x1a8)](_0xfb40c2(0x1a6),{});return _0x1fff58[_0xfb40c2(0x183)](_0xd94a08,_0x23976e),this[_0xfb40c2(0x17d)]=_0xd94a08,_0xd94a08;}[_0x7707a2(0x18a)](_0x24bc00){const _0x4432ec=_0x7707a2;if(!this[_0x4432ec(0x1c1)][_0x4432ec(0x18b)]||this[_0x4432ec(0x17d)])return;const _0x17d4d0=this[_0x4432ec(0x1c1)][0x0][_0x4432ec(0x1c2)][_0x4432ec(0x1a4)],_0x45a464=this[_0x4432ec(0x1ac)](_0x24bc00,_0x17d4d0);for(const _0xe43c27 of this[_0x4432ec(0x1c1)])_0xe43c27[_0x4432ec(0x198)][_0x4432ec(0x161)]||_0x24bc00[_0x4432ec(0x169)](_0xe43c27[_0x4432ec(0x198)],_0x45a464,_0x4432ec(0x1ab));this[_0x4432ec(0x1be)](_0x24bc00);}[_0x7707a2(0x1b0)](_0x58a7b7,_0x3c53bb){const _0xe2ff61=_0x7707a2;let _0x2489aa=!0x1;const {inserted:_0x42e4b9,removed:_0x229e66,moved:_0x149e7d}=this[_0xe2ff61(0x199)][_0xe2ff61(0x1a0)](_0x3c53bb);if(_0x149e7d[_0xe2ff61(0x18b)]&&(this[_0xe2ff61(0x17d)]=_0x149e7d[0x0]),_0x42e4b9[_0xe2ff61(0x18b)]){if(_0x42e4b9[_0xe2ff61(0x18b)]>0x1||this[_0xe2ff61(0x17d)]&&_0x42e4b9[_0xe2ff61(0x1bf)](_0x480c14=>_0x480c14!==this[_0xe2ff61(0x17d)])){const _0x58eb3b=_0x58a7b7[_0xe2ff61(0x1a8)](_0xe2ff61(0x1a6),{}),_0x5e1ee1=[];this[_0xe2ff61(0x17d)]&&_0x5e1ee1[_0xe2ff61(0x185)](this[_0xe2ff61(0x17d)]),_0x5e1ee1[_0xe2ff61(0x185)](..._0x42e4b9),_0x58a7b7[_0xe2ff61(0x169)](_0x58eb3b,_0x5e1ee1[0x0],_0xe2ff61(0x1a2));for(const _0xb36e4a of _0x5e1ee1)_0x58a7b7[_0xe2ff61(0x193)](_0x58a7b7[_0xe2ff61(0x172)](_0xb36e4a),_0x58a7b7[_0xe2ff61(0x17c)](_0x58eb3b,_0xe2ff61(0x1ab))),_0x58a7b7[_0xe2ff61(0x180)](_0xb36e4a);this[_0xe2ff61(0x17d)]=_0x58eb3b,this[_0xe2ff61(0x1be)](_0x58a7b7),_0x2489aa=!0x0;}else this[_0xe2ff61(0x17d)]=_0x42e4b9[0x0];}if(_0x229e66[_0xe2ff61(0x18b)]&&_0xe2ff61(0x1a3)===this[_0xe2ff61(0x17d)]?.[_0xe2ff61(0x1a4)][_0xe2ff61(0x1b7)]){for(const _0x7cb400 of this[_0xe2ff61(0x1c1)])_0x58a7b7[_0xe2ff61(0x180)](_0x7cb400[_0xe2ff61(0x1c2)]),_0x2489aa=!0x0;this[_0xe2ff61(0x1c1)]=[],this[_0xe2ff61(0x17d)]=null;}return _0x2489aa;}[_0x7707a2(0x19a)](_0x334da7,_0x54fe85){const _0x50913c=_0x7707a2;let _0xbfe42=!0x1;const _0x40d6e3=this[_0x50913c(0x18f)][_0x50913c(0x19e)][_0x50913c(0x182)](_0x50913c(0x184)),{inserted:_0x4a4d75,moved:_0x334105}=this[_0x50913c(0x16b)][_0x50913c(0x1a0)](_0x54fe85);for(const _0x53d0d8 of[..._0x334105,..._0x4a4d75]){const _0x423a15=_0x53d0d8[_0x50913c(0x1ad)](_0x50913c(0x19b)),_0x1f3795=this[_0x50913c(0x179)](_0x423a15);_0x1f3795&&(_0x1f3795[_0x50913c(0x198)]=_0x53d0d8),_(_0x334da7,_0x40d6e3,_0x53d0d8)&&(_0xbfe42=!0x0);}return _0xbfe42;}[_0x7707a2(0x1a5)](_0x42a770,_0x47a640){const _0x16d7d5=_0x7707a2;let _0x294f3d=!0x1;const {removed:_0x56df04,inserted:_0x2a4ac2,moved:_0xeb3c07}=this[_0x16d7d5(0x16e)][_0x16d7d5(0x1a0)](_0x47a640);for(const _0xcd29bf of _0x56df04)this[_0x16d7d5(0x1b9)](_0x42a770,_0xcd29bf)&&(_0x294f3d=!0x0);for(const _0x2c2ee8 of _0x2a4ac2)this[_0x16d7d5(0x170)](_0x42a770,_0x2c2ee8)&&(_0x294f3d=!0x0);for(const _0x287429 of _0xeb3c07)this[_0x16d7d5(0x16a)](_0x42a770,_0x287429)&&(_0x294f3d=!0x0);return _0x294f3d;}[_0x7707a2(0x16c)](_0x5eff73){const _0x3e9afc=_0x7707a2;if(!this[_0x3e9afc(0x17d)])return!0x1;let _0x24579c=!0x1;if(this[_0x3e9afc(0x17d)][_0x3e9afc(0x1b2)]!==this[_0x3e9afc(0x1c1)][_0x3e9afc(0x18b)]){const _0x3358d2=[];for(const _0x4046b0 of this[_0x3e9afc(0x17d)][_0x3e9afc(0x1af)]()){const _0x55c4ea=_0x4046b0[_0x3e9afc(0x1ad)](_0x3e9afc(0x19b));this[_0x3e9afc(0x179)](_0x55c4ea)||(_0x3358d2[_0x3e9afc(0x1b1)](_0x4046b0),_0x24579c=!0x0);}for(const _0x58a618 of _0x3358d2)_0x5eff73[_0x3e9afc(0x180)](_0x58a618);}const _0x4935cf=new Set(),_0x4bcc80=[];for(const _0x590e02 of this[_0x3e9afc(0x17d)][_0x3e9afc(0x1af)]()){const _0x38cdd2=_0x590e02[_0x3e9afc(0x1ad)](_0x3e9afc(0x19b));_0x4935cf[_0x3e9afc(0x1bb)](_0x38cdd2)?(_0x4bcc80[_0x3e9afc(0x1b1)](_0x590e02),_0x24579c=!0x0):_0x4935cf[_0x3e9afc(0x1ba)](_0x38cdd2);}for(const _0x5351c1 of _0x4bcc80)_0x5eff73[_0x3e9afc(0x180)](_0x5351c1);return this[_0x3e9afc(0x17d)][_0x3e9afc(0x1b2)]||(_0x5eff73[_0x3e9afc(0x180)](this[_0x3e9afc(0x17d)]),this[_0x3e9afc(0x17d)]=null,_0x24579c=!0x0),_0x24579c;}[_0x7707a2(0x170)](_0x3ed73b,_0x46eaca){const _0x6a2e9b=_0x7707a2;if(this[_0x6a2e9b(0x1c1)][_0x6a2e9b(0x19c)](_0xe0953f=>_0xe0953f[_0x6a2e9b(0x1c2)]===_0x46eaca))return!0x1;let _0xaeeca=!0x1;const _0x586cf3=_0x46eaca[_0x6a2e9b(0x1ad)](_0x6a2e9b(0x19b)),_0x4d5041=this[_0x6a2e9b(0x1c1)][_0x6a2e9b(0x177)](_0xc2578a=>_0xc2578a['id']===_0x586cf3);-0x1!==_0x4d5041&&(_0x3ed73b[_0x6a2e9b(0x180)](this[_0x6a2e9b(0x1c1)][_0x4d5041][_0x6a2e9b(0x1c2)]),this[_0x6a2e9b(0x1c1)][_0x6a2e9b(0x195)](_0x4d5041,0x1),_0xaeeca=!0x0);let _0x2f0224=this[_0x6a2e9b(0x17d)]?function(_0x8a4b38,_0x167c7a){const _0x9bcc60=_0x6a2e9b;for(const _0x161cb8 of _0x8a4b38[_0x9bcc60(0x1af)]())if(_0x161cb8[_0x9bcc60(0x1ad)](_0x9bcc60(0x19b))===_0x167c7a)return _0x161cb8;return null;}(this[_0x6a2e9b(0x17d)],_0x586cf3):null;_0x2f0224||(_0x2f0224=_0x3ed73b[_0x6a2e9b(0x1a8)](_0x6a2e9b(0x186),{'footnoteId':_0x586cf3}),this[_0x6a2e9b(0x17d)]&&(_0x3ed73b[_0x6a2e9b(0x169)](_0x2f0224,this[_0x6a2e9b(0x17d)],_0x6a2e9b(0x1ab)),_0xaeeca=!0x0));const _0x409068={'id':_0x586cf3,'reference':_0x46eaca,'definition':_0x2f0224},_0x55acda=I(this[_0x6a2e9b(0x18f)][_0x6a2e9b(0x167)],this[_0x6a2e9b(0x1c1)],_0x46eaca);this[_0x6a2e9b(0x1c1)][_0x6a2e9b(0x195)](_0x55acda,0x0,_0x409068);let _0x287326=_0x55acda;return-0x1!==_0x4d5041&&(_0x287326=Math[_0x6a2e9b(0x1b5)](_0x55acda,_0x4d5041)),this[_0x6a2e9b(0x1be)](_0x3ed73b,_0x287326)&&(_0xaeeca=!0x0),_0xaeeca;}[_0x7707a2(0x1b9)](_0x546462,_0x219f88){const _0x1fd1fa=_0x7707a2,_0x4f72ba=this[_0x1fd1fa(0x1c1)][_0x1fd1fa(0x177)](_0x4094c0=>_0x4094c0['id']===_0x219f88);if(-0x1===_0x4f72ba)return!0x1;let _0x4deefe=!0x1;const _0x1e13d5=this[_0x1fd1fa(0x1c1)][_0x4f72ba];return _0x1fd1fa(0x1a3)!==_0x1e13d5[_0x1fd1fa(0x198)][_0x1fd1fa(0x1a4)][_0x1fd1fa(0x1b7)]&&(_0x546462[_0x1fd1fa(0x180)](_0x1e13d5[_0x1fd1fa(0x198)]),_0x4deefe=!0x0),this[_0x1fd1fa(0x1c1)][_0x1fd1fa(0x195)](_0x4f72ba,0x1),this[_0x1fd1fa(0x1be)](_0x546462,_0x4f72ba)&&(_0x4deefe=!0x0),_0x4deefe;}[_0x7707a2(0x16a)](_0x205f4b,_0x4b678f){const _0x1fd522=_0x7707a2,_0x2ca4cc=_0x4b678f[_0x1fd522(0x1ad)](_0x1fd522(0x19b)),_0x1be3b2=this[_0x1fd522(0x1c1)][_0x1fd522(0x177)](_0x30dad5=>_0x30dad5['id']===_0x2ca4cc),_0xd6c2dc=this[_0x1fd522(0x1c1)][_0x1be3b2];let _0x402daf=!0x1;_0xd6c2dc[_0x1fd522(0x1c2)]=_0x4b678f,this[_0x1fd522(0x1c1)][_0x1fd522(0x195)](_0x1be3b2,0x1);const _0x2668bf=I(this[_0x1fd522(0x18f)][_0x1fd522(0x167)],this[_0x1fd522(0x1c1)],_0x4b678f);return this[_0x1fd522(0x1c1)][_0x1fd522(0x195)](_0x2668bf,0x0,_0xd6c2dc),this[_0x1fd522(0x1be)](_0x205f4b,Math[_0x1fd522(0x1b5)](_0x1be3b2,_0x2668bf))&&(_0x402daf=!0x0),_0x402daf;}[_0x7707a2(0x1b3)](_0x1c3f44,_0x284778){const _0x371d2c=_0x7707a2;if(!this[_0x371d2c(0x17d)])return!0x1;const _0x1ff0cf=this[_0x371d2c(0x1c1)][_0x284778];let _0x570ee2;return _0x570ee2=this[_0x371d2c(0x18e)]?this[_0x371d2c(0x18e)]({'footnote':_0x1ff0cf,'container':this[_0x371d2c(0x17d)],'digits':String(this[_0x371d2c(0x1c1)][_0x371d2c(0x18b)])[_0x371d2c(0x18b)],'value':_0x284778+0x1}):String(_0x284778+0x1),_0x1ff0cf[_0x371d2c(0x1c2)][_0x371d2c(0x1ad)](_0x371d2c(0x1bd))!=_0x570ee2&&(_0x1c3f44[_0x371d2c(0x17f)](_0x371d2c(0x1bd),_0x570ee2,_0x1ff0cf[_0x371d2c(0x1c2)]),!0x0);}[_0x7707a2(0x189)](_0x841e1f){const _0x546a78=_0x7707a2;if(!this[_0x546a78(0x17d)]||this[_0x546a78(0x1c1)][_0x546a78(0x18b)]<0x2)return!0x1;if(function(_0x27fbd0,_0x559ea4){const _0x1958d7=_0x546a78;if(_0x27fbd0[_0x1958d7(0x18b)]!==_0x559ea4[_0x1958d7(0x18b)])return!0x1;for(let _0x22fe04=0x0;_0x22fe04<_0x27fbd0[_0x1958d7(0x18b)];_0x22fe04++)if(_0x27fbd0[_0x22fe04]!==_0x559ea4[_0x22fe04])return!0x1;return!0x0;}(this[_0x546a78(0x1c1)][_0x546a78(0x165)](_0x582907=>_0x582907['id']),Array[_0x546a78(0x18c)](this[_0x546a78(0x17d)][_0x546a78(0x1af)]())[_0x546a78(0x165)](_0x2485ca=>_0x2485ca[_0x546a78(0x1ad)](_0x546a78(0x19b)))))return!0x1;let _0x15234b=!0x1;for(let _0x3f3d72=0x0;_0x3f3d72<this[_0x546a78(0x1c1)][_0x546a78(0x18b)];_0x3f3d72++){const _0x501010=this[_0x546a78(0x1c1)][_0x3f3d72],_0x21c775=_0x841e1f[_0x546a78(0x18d)](_0x501010[_0x546a78(0x198)]),_0x1c925c=_0x841e1f[_0x546a78(0x17c)](this[_0x546a78(0x17d)],_0x3f3d72);_0x21c775[_0x546a78(0x1c3)](_0x1c925c)||(_0x841e1f[_0x546a78(0x193)](_0x841e1f[_0x546a78(0x17b)](_0x501010[_0x546a78(0x198)]),_0x1c925c),_0x15234b=!0x0);}return _0x15234b;}[_0x7707a2(0x175)](_0x54a1eb){const _0x43944f=_0x7707a2;if(!this[_0x43944f(0x1c1)][_0x43944f(0x18b)])return!0x1;const {model:_0x516369}=this[_0x43944f(0x18f)];let _0xe72270=!0x1;for(let _0x298a42=0x0;_0x298a42<this[_0x43944f(0x1c1)][_0x43944f(0x18b)]-0x1;_0x298a42++){const _0x4a7157=this[_0x43944f(0x1c1)][_0x298a42],_0xaa5073=this[_0x43944f(0x1c1)][_0x298a42+0x1],_0x45d942=_0x516369[_0x43944f(0x18d)](_0x4a7157[_0x43944f(0x1c2)]),_0x58f1b6=_0x516369[_0x43944f(0x18d)](_0xaa5073[_0x43944f(0x1c2)]);_0x43944f(0x1aa)===_0x45d942[_0x43944f(0x1b8)](_0x58f1b6)&&(this[_0x43944f(0x16a)](_0x54a1eb,_0x4a7157[_0x43944f(0x1c2)]),_0x298a42=-0x1,_0xe72270=!0x0);}return _0xe72270;}}function _(_0x1d5ee1,_0x48eced,_0x3a497d){const _0x101ea0=_0x7707a2;if(_0x3a497d[_0x101ea0(0x1b2)])return!0x1;const _0x215741=_0x48eced?_0x101ea0(0x1c4):_0x101ea0(0x1b4);return _0x1d5ee1[_0x101ea0(0x169)](_0x1d5ee1[_0x101ea0(0x1a8)](_0x215741),_0x3a497d),!0x0;}function I(_0x20f1e6,_0x17a164,_0x38b200){const _0x35fb41=_0x7707a2;if(0x0===_0x17a164[_0x35fb41(0x18b)])return 0x0;const _0x2b6445=_0x20f1e6[_0x35fb41(0x18d)](_0x38b200);for(let _0x447df2=0x0;_0x447df2<_0x17a164[_0x35fb41(0x18b)];_0x447df2++){const _0x2141c3=_0x17a164[_0x447df2],_0x578214=_0x20f1e6[_0x35fb41(0x18d)](_0x2141c3[_0x35fb41(0x1c2)]);if(_0x35fb41(0x1a2)===_0x2b6445[_0x35fb41(0x1b8)](_0x578214))return _0x447df2;}const _0x44767f=_0x38b200[_0x35fb41(0x1a4)];let _0x1b4986=-0x1;for(let _0x30c0c9=_0x17a164[_0x35fb41(0x18b)]-0x1;_0x30c0c9>=0x0;_0x30c0c9--)if(_0x17a164[_0x30c0c9][_0x35fb41(0x1c2)][_0x35fb41(0x1a4)]===_0x44767f){_0x1b4986=_0x30c0c9;break;}if(-0x1!==_0x1b4986)return _0x1b4986+0x1;const _0x3b4b4e=_0x20f1e6[_0x35fb41(0x160)][_0x35fb41(0x1bc)](),_0x5e32a3=_0x3b4b4e[_0x35fb41(0x1a7)](_0x44767f[_0x35fb41(0x1b7)]),_0x2ccf27=_0x3b4b4e[_0x5e32a3+0x1];if(_0x2ccf27){for(let _0x387268=0x0;_0x387268<_0x17a164[_0x35fb41(0x18b)];_0x387268++)if(_0x17a164[_0x387268][_0x35fb41(0x1c2)][_0x35fb41(0x1a4)][_0x35fb41(0x1b7)]===_0x2ccf27)return _0x387268;}return _0x17a164[_0x35fb41(0x18b)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5c4b52,MenuBarMenuListItemButtonView as _0x19bfc9}from'ckeditor5/src/ui.js';import{Plugin as _0x312ac6}from'ckeditor5/src/core.js';import{IconFootnote as _0x42725a}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x312ac6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f4168}=this,{componentFactory:_0x382e2f}=_0x4f4168['ui'];_0x382e2f['add']('insertFootnote',x(_0x4f4168,_0x5c4b52)),_0x382e2f['add']('menuBar:insertFootnote',x(_0x4f4168,_0x19bfc9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc1900d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bc84e;for(const _0x41631b in _0xc1900d){const _0xe3c6=_0x41631b,_0x35bedf=_0xc1900d[_0xe3c6];if('footnotesLicenseKeyValid'==_0x35bedf||'footnotesLicenseKeyInvalid'==_0x35bedf||'footnotesLicenseKeyExpired'==_0x35bedf||'footnotesLicenseKeyDomainLimit'==_0x35bedf||'footnotesLicenseKeyNotAllowed'==_0x35bedf||'footnotesLicenseKeyEvaluationLimit'==_0x35bedf||'footnotesLicenseKeyTrialLimit'==_0x35bedf||'footnotesLicenseKeyUsageLimit'==_0x35bedf){delete _0xc1900d[_0xe3c6],_0x4bc84e=_0x35bedf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4bc84e&&_0xc1900d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4bc84e&&_0xc1900d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4bc84e&&_0xc1900d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4bc84e&&_0xc1900d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4bc84e&&_0xc1900d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4bc84e&&_0xc1900d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4bc84e&&_0xc1900d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x54b057,_0x523c01){const _0x3bf277=_0x54b057['commands']['get']('insertFootnote');return _0x385caf=>{const {t:t}=_0x385caf,_0x323e55=new _0x523c01(_0x385caf),_0x3a81c0=_0x323e55 instanceof _0x19bfc9;return _0x323e55['bind']('isEnabled')['to'](_0x3bf277,'isEnabled'),_0x323e55['set']({'label':t(_0x3a81c0?'Footnote':'Insert\x20footnote'),'icon':_0x42725a,'tooltip':!0x0}),_0x323e55['on']('execute',()=>{_0x3bf277['execute'](),_0x54b057['editing']['view']['focus']();}),_0x323e55;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xc14127,_0x4b3b9c){var _0x5f051b=_0x2b87,_0x103a21=_0xc14127();while(!![]){try{var _0x124c1=parseInt(_0x5f051b(0x1cd))/0x1+parseInt(_0x5f051b(0x1ce))/0x2*(parseInt(_0x5f051b(0x1d0))/0x3)+parseInt(_0x5f051b(0x1c7))/0x4+-parseInt(_0x5f051b(0x1c8))/0x5+parseInt(_0x5f051b(0x1cc))/0x6*(-parseInt(_0x5f051b(0x1cf))/0x7)+parseInt(_0x5f051b(0x1c9))/0x8+parseInt(_0x5f051b(0x1cb))/0x9*(-parseInt(_0x5f051b(0x1ca))/0xa);if(_0x124c1===_0x4b3b9c)break;else _0x103a21['push'](_0x103a21['shift']());}catch(_0x957b5f){_0x103a21['push'](_0x103a21['shift']());}}}(_0x4009,0x6cee5));import'./augmentation.js';export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';function _0x4009(){var _0x176906=['83496fcJGpJ','426401mmzjvR','78GAERqy','294hfcBhI','68085MZfMZB','1058964WiAHeb','1402900wrQHLf','1982544TfevCP','2564160tzrPjU','18TDHUKQ'];_0x4009=function(){return _0x176906;};return _0x4009();}export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';function _0x2b87(_0x737f4a,_0x398fc){var _0x40090d=_0x4009();return _0x2b87=function(_0x2b8764,_0x10566f){_0x2b8764=_0x2b8764-0x1c7;var _0x204756=_0x40090d[_0x2b8764];return _0x204756;},_0x2b87(_0x737f4a,_0x398fc);}export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x19a1(){const _0x507ea1=['createRangeOn','$text','1296108JiPtCe','flat','reset','type','push','attributes','get','has','add','getElementKey','root','delete','rootName','name','clear','50EeTluw','insert','170876jsnHBS','nodeAfter','values','element','_trackedElements','slice','1395065wSiCJE','_getElementKey','remove','_elementName','1ddEVqc','set','136244KAkkim','9ClJtEp','position','getChanges','359028CJYPaU','length','1199070TYdlsL','getItems','$graveyard','_model','elementName','1546328ZVMwOz','from'];_0x19a1=function(){return _0x507ea1;};return _0x19a1();}const _0x10c98c=_0x4888;(function(_0x386d78,_0x41b7d9){const _0x5714dc=_0x4888,_0x132441=_0x386d78();while(!![]){try{const _0x15b0d9=parseInt(_0x5714dc(0xa7))/0x1*(parseInt(_0x5714dc(0x9d))/0x2)+-parseInt(_0x5714dc(0xaa))/0x3*(parseInt(_0x5714dc(0xa9))/0x4)+-parseInt(_0x5714dc(0xaf))/0x5+parseInt(_0x5714dc(0xb8))/0x6+-parseInt(_0x5714dc(0xa3))/0x7+parseInt(_0x5714dc(0xb4))/0x8+-parseInt(_0x5714dc(0xad))/0x9*(-parseInt(_0x5714dc(0x9b))/0xa);if(_0x15b0d9===_0x41b7d9)break;else _0x132441['push'](_0x132441['shift']());}catch(_0x39ac81){_0x132441['push'](_0x132441['shift']());}}}(_0x19a1,0x25553));function _0x4888(_0x3d092b,_0x3ad0e4){const _0x19a1a8=_0x19a1();return _0x4888=function(_0x4888d1,_0x38a51e){_0x4888d1=_0x4888d1-0x95;let _0x48fa36=_0x19a1a8[_0x4888d1];return _0x48fa36;},_0x4888(_0x3d092b,_0x3ad0e4);}export class ModelElementTracker{[_0x10c98c(0xb2)];[_0x10c98c(0xa6)];[_0x10c98c(0xa4)];[_0x10c98c(0xa1)]=new Map();constructor(_0x300a43,_0x2649de){const _0x5c2a88=_0x10c98c;this[_0x5c2a88(0xb2)]=_0x300a43,this[_0x5c2a88(0xa6)]=_0x2649de[_0x5c2a88(0xb3)],this[_0x5c2a88(0xa4)]=_0x2649de[_0x5c2a88(0x95)];}[_0x10c98c(0xba)](){const _0x13f4ed=_0x10c98c;this[_0x13f4ed(0xa1)][_0x13f4ed(0x9a)]();}[_0x10c98c(0xac)](_0x2887bd){const _0x554f2b=_0x10c98c,_0x21fb37=new Set(),_0x51f47a=new Map();for(const _0x466733 of _0x2887bd){if(_0x554f2b(0x9c)===_0x466733[_0x554f2b(0xbb)]&&_0x554f2b(0xb7)!==_0x466733[_0x554f2b(0x99)]&&_0x466733[_0x554f2b(0xab)][_0x554f2b(0x9e)]){const _0x1a3066=this[_0x554f2b(0xb2)][_0x554f2b(0xb6)](_0x466733[_0x554f2b(0xab)][_0x554f2b(0x9e)]);for(const _0x5397b4 of _0x1a3066[_0x554f2b(0xb0)]()){if(!_0x5397b4['is'](_0x554f2b(0xa0),this[_0x554f2b(0xa6)]))continue;const _0x48c0a9=this[_0x554f2b(0xa4)](_0x5397b4);_0x51f47a[_0x554f2b(0xbf)](_0x48c0a9)||_0x51f47a[_0x554f2b(0xa8)](_0x48c0a9,[]),_0x51f47a[_0x554f2b(0xbe)](_0x48c0a9)[_0x554f2b(0xbc)](_0x5397b4);}}if(_0x554f2b(0xa5)===_0x466733[_0x554f2b(0xbb)]&&_0x466733[_0x554f2b(0x99)]===this[_0x554f2b(0xa6)]){const _0x3db7cc=this[_0x554f2b(0xa4)]({'getAttribute':_0x3526d9=>_0x466733[_0x554f2b(0xbd)][_0x554f2b(0xbe)](_0x3526d9)});_0x21fb37[_0x554f2b(0xc0)](_0x3db7cc);}}for(const [_0x129d44,_0x6cf66e]of this[_0x554f2b(0xa1)])_0x554f2b(0xb1)===_0x6cf66e[_0x554f2b(0x96)][_0x554f2b(0x98)]&&_0x21fb37[_0x554f2b(0xc0)](_0x129d44);for(const _0x1b9d1f of _0x21fb37)this[_0x554f2b(0xa1)][_0x554f2b(0x97)](_0x1b9d1f);for(const [_0x246655,_0x2dcc67]of _0x51f47a)this[_0x554f2b(0xa1)][_0x554f2b(0xa8)](_0x246655,_0x2dcc67[_0x2dcc67[_0x554f2b(0xae)]-0x1]);const _0x1ee15b=new Set();for(const [_0x57cbe7,_0x51d696]of _0x51f47a)_0x21fb37[_0x554f2b(0xbf)](_0x57cbe7)&&(_0x1ee15b[_0x554f2b(0xc0)](_0x51d696[0x0]),_0x51d696[_0x554f2b(0xae)]>0x1?_0x51f47a[_0x554f2b(0xa8)](_0x57cbe7,_0x51d696[_0x554f2b(0xa2)](0x1)):_0x51f47a[_0x554f2b(0x97)](_0x57cbe7),_0x21fb37[_0x554f2b(0x97)](_0x57cbe7));return{'removed':Array[_0x554f2b(0xb5)](_0x21fb37),'inserted':Array[_0x554f2b(0xb5)](_0x51f47a[_0x554f2b(0x9f)]())[_0x554f2b(0xb9)](),'moved':Array[_0x554f2b(0xb5)](_0x1ee15b)};}}
|