@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251016.0 → 0.0.0-nightly-20251018.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/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.d.ts +4 -0
- 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 _0x58d380}from'ckeditor5/src/core.js';import{isWidget as _0x3c9a62,toWidget as _0x58098e,toWidgetEditable as _0x2203ef}from'ckeditor5/src/widget.js';import{uid as _0x2b68c6}from'ckeditor5/src/utils.js';import{PointerObserver as _0x224898,ClickObserver as _0xc788f8}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x314a79}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x29dbba}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x58d380{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x314a79];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x191520}=this;_0x191520['config']['define']('footnotes.multiBlock',!0x0),_0x191520['commands']['add']('insertFootnote',new _0x29dbba(_0x191520)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x49395b){const _0x3d00d9=_0x355425([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]),_0x56d2c9=0x47a28506,_0x5eaf66=0x47a5f35e^_0x56d2c9,_0x5864e9=window[_0x355425([0x44,0x61,0x74,0x65])][_0x355425([0x6e,0x6f,0x77])](),_0x430fb6=_0x49395b[_0x355425([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x299d74=new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3f519=>{_0x430fb6[_0x355425([0x6f,0x6e,0x63,0x65])](_0x355425([0x72,0x65,0x61,0x64,0x79]),_0xc3f519);}),_0xd82b64={[_0x355425([0x6b,0x74,0x79])]:_0x355425([0x45,0x43]),[_0x355425([0x75,0x73,0x65])]:_0x355425([0x73,0x69,0x67]),[_0x355425([0x63,0x72,0x76])]:_0x355425([0x50,0x2d,0x32,0x35,0x36]),[_0x355425([0x78])]:_0x355425([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]),[_0x355425([0x79])]:_0x355425([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]),[_0x355425([0x61,0x6c,0x67])]:_0x355425([0x45,0x53,0x32,0x35,0x36])},_0x5bddad=_0x430fb6[_0x355425([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x355425([0x67,0x65,0x74])](_0x355425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29980a(){let _0x1bf0f5,_0x5f37ec=null,_0x38bcc4=null;try{if(_0x5bddad==_0x355425([0x47,0x50,0x4c]))return _0x355425([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bf0f5=_0x101654(),!_0x1bf0f5)return _0x355425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bf0f5[_0x355425([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38bcc4=_0x2bcec0(_0x1bf0f5[_0x355425([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bf0f5[_0x355425([0x6a,0x74,0x69])])),await _0xd19e5e()?_0x4ddec6()?_0x1a1f01()?_0x355425([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b8f30()?(_0x1bf0f5[_0x355425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x355425([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f37ec=_0x283b02(_0x355425([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bf0f5[_0x355425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x355425([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f37ec=_0x283b02(_0x355425([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12049f()):_0x355425([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x355425([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x355425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x355425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a1f01(){const _0xdb4b4a=[_0x355425([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x355425([0x74,0x72,0x69,0x61,0x6c])][_0x355425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bf0f5[_0x355425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5864e9/0x3e8:0xe10*_0x5eaf66;return _0x1bf0f5[_0x355425([0x65,0x78,0x70])]<_0xdb4b4a;}function _0x4ddec6(){const _0x234b00=_0x1bf0f5[_0x355425([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x234b00&&(!!_0x234b00[_0x355425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355425([0x2a]))||!!_0x234b00[_0x355425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355425([0x46,0x4f,0x4f])));}function _0x4b8f30(){const _0x502fd4=_0x1bf0f5[_0x355425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x502fd4||0x0==_0x502fd4[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f26c8}=new URL(window[_0x355425([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x502fd4[_0x355425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f26c8))return!0x0;const _0x22988d=_0x3f26c8[_0x355425([0x73,0x70,0x6c,0x69,0x74])](_0x355425([0x2e]));return _0x502fd4[_0x355425([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2963db=>_0x2963db[_0x355425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355425([0x2a])))[_0x355425([0x6d,0x61,0x70])](_0x417898=>_0x417898[_0x355425([0x73,0x70,0x6c,0x69,0x74])](_0x355425([0x2e])))[_0x355425([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcdd2de=>_0xcdd2de[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22988d[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x355425([0x6d,0x61,0x70])](_0x1db0ee=>Array(_0x22988d[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1db0ee[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x355425([0x66,0x69,0x6c,0x6c])](_0x1db0ee[0x0]===_0x355425([0x2a])?_0x355425([0x2a]):'')[_0x355425([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1db0ee))[_0x355425([0x73,0x6f,0x6d,0x65])](_0x47e472=>_0x22988d[_0x355425([0x65,0x76,0x65,0x72,0x79])]((_0x3d7f88,_0x3c140a)=>_0x47e472[_0x3c140a]===_0x3d7f88||_0x47e472[_0x3c140a]===_0x355425([0x2a])));}function _0x12049f(){return _0x5f37ec&&_0x38bcc4?new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x319222,_0x307282)=>{_0x5f37ec[_0x355425([0x74,0x68,0x65,0x6e])](_0x319222,_0x307282),_0x38bcc4[_0x355425([0x74,0x68,0x65,0x6e])](_0x3de43c=>{_0x3de43c!=_0x355425([0x56,0x61,0x6c,0x69,0x64])&&_0x319222(_0x3de43c);},_0x307282);}):_0x5f37ec||_0x38bcc4||_0x355425([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bcec0(_0x144da4,_0x50d53){return new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4536cb=>{if(_0x194854())return _0x4536cb(_0x355425([0x56,0x61,0x6c,0x69,0x64]));_0x508051(),_0x430fb6[_0x355425([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x355425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dd7f8=!0x1;const _0x46b6f4=_0x2b68c6();function _0x58e5b0(_0x236d10){return!!_0x236d10&&(typeof _0x236d10===_0x355425([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x236d10===_0x355425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x236d10[_0x355425([0x74,0x68,0x65,0x6e])]===_0x355425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x236d10[_0x355425([0x63,0x61,0x74,0x63,0x68])]===_0x355425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c3bf8(_0x507118){_0x1d4f12(_0x507118)[_0x355425([0x74,0x68,0x65,0x6e])](_0xe30044=>{if(!_0xe30044||_0xe30044[_0x355425([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x355425([0x6f,0x6b]))return _0x355425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d3371(_0x2abb47(_0x46b6f4+_0x50d53))!=_0xe30044[_0x355425([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x355425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x355425([0x56,0x61,0x6c,0x69,0x64]);})[_0x355425([0x74,0x68,0x65,0x6e])](_0x4b9683=>(_0x4cfd54(),_0x4b9683),()=>{const _0x130a82=_0x4b79e4();return null==_0x130a82?(_0x4cfd54(),_0x355425([0x56,0x61,0x6c,0x69,0x64])):_0x355425(_0x5864e9-_0x130a82>(0x63ae0106^_0x56d2c9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x355425([0x74,0x68,0x65,0x6e])](_0x4536cb)[_0x355425([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4536cb(_0x355425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd6d2a4=0x47946b86^_0x56d2c9;function _0x4cfd54(){const _0x3ef7db=_0x355425([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d3371(_0x2abb47(_0x144da4)),_0x2deaeb=_0x3b8bf6(_0x4d3371(window[_0x355425([0x4d,0x61,0x74,0x68])][_0x355425([0x63,0x65,0x69,0x6c])](_0x5864e9/_0xd6d2a4)));window[_0x355425([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x355425([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ef7db,_0x2deaeb);}function _0x4b79e4(){const _0x19ced6=_0x355425([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d3371(_0x2abb47(_0x144da4)),_0x1c0ac2=window[_0x355425([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x355425([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19ced6);return _0x1c0ac2?window[_0x355425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b8bf6(_0x1c0ac2),0x10)*_0xd6d2a4:null;}function _0x1d4f12(_0x5d5edc){return new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d52c6,_0x112f86)=>{_0x5d5edc[_0x355425([0x74,0x68,0x65,0x6e])](_0x4d52c6,_0x112f86),window[_0x355425([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x112f86,0x47a351c6^_0x56d2c9);});}}_0x430fb6[_0x355425([0x6f,0x6e])](_0x355425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a37e0,_0x31cb4e)=>{if(_0x31cb4e[0x0]!=_0x144da4)return _0x4536cb(_0x355425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31cb4e[0x1]={..._0x31cb4e[0x1],[_0x355425([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b6f4};},{[_0x355425([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x355425([0x68,0x69,0x67,0x68])}),_0x430fb6[_0x355425([0x6f,0x6e])](_0x355425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56a5b9=>{_0x58e5b0(_0x56a5b9[_0x355425([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dd7f8=!0x0,_0x3c3bf8(_0x56a5b9[_0x355425([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x355425([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x355425([0x6c,0x6f,0x77])}),_0x299d74[_0x355425([0x74,0x68,0x65,0x6e])](()=>{_0x3dd7f8||_0x4536cb(_0x355425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x194854(){return _0x430fb6[_0x355425([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x355425([0x76,0x69,0x65,0x77])][_0x355425([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x355425([0x61,0x75,0x74,0x6f]);}function _0x508051(){_0x430fb6[_0x355425([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x355425([0x76,0x69,0x65,0x77])][_0x355425([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x355425([0x61,0x75,0x74,0x6f]);}}function _0x283b02(_0x3e4cd1){const _0x4e4070=[new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4159dd=>setTimeout(_0x4159dd,0x47abbbca^_0x56d2c9)),_0x299d74[_0x355425([0x74,0x68,0x65,0x6e])](()=>new window[(_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b711=>{let _0x25e90f=0x0;_0x430fb6[_0x355425([0x6d,0x6f,0x64,0x65,0x6c])][_0x355425([0x6f,0x6e])](_0x355425([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d6c19,_0x5883a2)=>{_0x5883a2[0x0][_0x355425([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25e90f++,_0x25e90f==(0x47a284fe^_0x56d2c9)&&(_0x24b711(),_0x5d6c19[_0x355425([0x6f,0x66,0x66])]());});}))];return window[_0x355425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x355425([0x72,0x61,0x63,0x65])](_0x4e4070)[_0x355425([0x74,0x68,0x65,0x6e])](()=>_0x3e4cd1);}async function _0x4328b0(){await _0x299d74,_0x430fb6[_0x355425([0x6d,0x6f,0x64,0x65,0x6c])][_0x355425([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28ed3c,_0x430fb6[_0x355425([0x6d,0x6f,0x64,0x65,0x6c])][_0x355425([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28ed3c,_0x430fb6[_0x355425([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x355425([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ad8e2(_0x3e3497){const _0x41cf08=_0x4c6e97();_0x430fb6[_0x41cf08]=_0x355425([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e3497,_0x3e3497!=_0x355425([0x56,0x61,0x6c,0x69,0x64])&&_0x4328b0();}function _0x4c6e97(){const _0x5896cc=window[_0x355425([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x355425([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x355425([0x6e,0x6f,0x77])]())[_0x355425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x355425([0x2e]),'');let _0x390dad=_0x355425([0x75]);for(let _0x422d69=0x0;_0x422d69<_0x5896cc[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x422d69+=0x2){let _0x53b978=window[_0x355425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5896cc[_0x355425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x422d69,_0x422d69+0x2));_0x53b978>=_0x3d00d9[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53b978-=_0x3d00d9[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x390dad+=_0x3d00d9[_0x53b978];}return _0x390dad;}function _0x101654(){const _0x2aa7bd=_0x5bddad[_0x355425([0x73,0x70,0x6c,0x69,0x74])](_0x355425([0x2e]));if(0x3!=_0x2aa7bd[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33f37b(_0x2aa7bd[0x1]);function _0x33f37b(_0x3cd158){const _0x23c4aa=_0x24c44c(_0x3cd158);return _0x23c4aa&&_0x5e5c1d()?_0x23c4aa:null;function _0x5e5c1d(){const _0x48ca79=_0x23c4aa[_0x355425([0x6a,0x74,0x69])],_0x31561f=window[_0x355425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48ca79[_0x355425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48ca79[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35a1b3={..._0x23c4aa,[_0x355425([0x6a,0x74,0x69])]:_0x48ca79[_0x355425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48ca79[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35a1b3[_0x355425([0x76,0x63])],_0x2abb47(_0x35a1b3)==_0x31561f;}}}async function _0xd19e5e(){let _0x33891b=!0x0;try{const _0x2e0d0a=_0x5bddad[_0x355425([0x73,0x70,0x6c,0x69,0x74])](_0x355425([0x2e])),[_0x2681d2,_0x16233b,_0x2ee8f0]=_0x2e0d0a;return _0x4aafa2(_0x2681d2),await _0x2e27af(_0x2681d2,_0x16233b,_0x2ee8f0),_0x33891b;}catch{return!0x1;}function _0x4aafa2(_0x3c6236){const _0x139ef5=_0x24c44c(_0x3c6236);_0x139ef5&&_0x139ef5[_0x355425([0x61,0x6c,0x67])]==_0x355425([0x45,0x53,0x32,0x35,0x36])||(_0x33891b=!0x1);}async function _0x2e27af(_0x193ce8,_0xc80115,_0x5237b8){const _0x3c8e7d=window[_0x355425([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x355425([0x66,0x72,0x6f,0x6d])](_0x204c99(_0x5237b8),_0x1506ac=>_0x1506ac[_0x355425([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3132f0=new window[(_0x355425([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x355425([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x193ce8+_0x355425([0x2e])+_0xc80115),_0x48e7cd=window[_0x355425([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x355425([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48e7cd)return;const _0x4e701d=await _0x48e7cd[_0x355425([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x355425([0x6a,0x77,0x6b]),_0xd82b64,{[_0x355425([0x6e,0x61,0x6d,0x65])]:_0x355425([0x45,0x43,0x44,0x53,0x41]),[_0x355425([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x355425([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x355425([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48e7cd[_0x355425([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x355425([0x6e,0x61,0x6d,0x65])]:_0x355425([0x45,0x43,0x44,0x53,0x41]),[_0x355425([0x68,0x61,0x73,0x68])]:{[_0x355425([0x6e,0x61,0x6d,0x65])]:_0x355425([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e701d,_0x3c8e7d,_0x3132f0)||(_0x33891b=!0x1);}}function _0x24c44c(_0x3a6f83){return _0x3a6f83[_0x355425([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x355425([0x65,0x79]))?JSON[_0x355425([0x70,0x61,0x72,0x73,0x65])](_0x204c99(_0x3a6f83)):null;}function _0x204c99(_0x4bb049){return window[_0x355425([0x61,0x74,0x6f,0x62])](_0x4bb049[_0x355425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x355425([0x2b]))[_0x355425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x355425([0x2f])));}function _0x2abb47(_0x37d0f9){let _0x56587c=0x1505;function _0x4a5c80(_0x2e7870){for(let _0x263f80=0x0;_0x263f80<_0x2e7870[_0x355425([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x263f80++){const _0xf51477=_0x2e7870[_0x355425([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x263f80);_0x56587c=(_0x56587c<<0x5)+_0x56587c+_0xf51477,_0x56587c&=_0x56587c;}}function _0x405e09(_0x5985ba){Array[_0x355425([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5985ba)?_0x5985ba[_0x355425([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x405e09):_0x5985ba&&typeof _0x5985ba==_0x355425([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x355425([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5985ba)[_0x355425([0x73,0x6f,0x72,0x74])]()[_0x355425([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe3d904,_0x8c9696])=>{_0x4a5c80(_0xe3d904),_0x405e09(_0x8c9696);}):_0x4a5c80(window[_0x355425([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5985ba));}return _0x405e09(_0x37d0f9),_0x56587c>>>0x0;}function _0x4d3371(_0x31769f){return _0x31769f[_0x355425([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x355425([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x355425([0x30]));}function _0x3b8bf6(_0x2ce61d){return _0x2ce61d[_0x355425([0x73,0x70,0x6c,0x69,0x74])]('')[_0x355425([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x355425([0x6a,0x6f,0x69,0x6e])]('');}function _0x28ed3c(){}function _0x355425(_0x4fc185){return _0x4fc185['map'](_0x22748c=>String['fromCharCode'](_0x22748c))['join']('');}_0x3ad8e2(await _0x29980a());}(this);}['_moveSelectionToFootnoteDefinition'](_0x49db09){const {plugins:_0x2817d2,editing:_0x57d6be,model:_0x252606}=this['editor'],_0x4f3594=_0x2817d2['get'](_0x314a79)['getFootnote'](_0x49db09);return!!_0x4f3594&&(_0x252606['change'](_0x3a5af0=>{_0x3a5af0['setSelection'](_0x3a5af0['createPositionAt'](_0x4f3594['definition'],'end'));}),_0x57d6be['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4ab0da){const {plugins:_0x17af9,editing:_0x2dcfc9,model:_0x106093}=this['editor'],_0x4e100f=_0x17af9['get'](_0x314a79)['getFootnote'](_0x4ab0da);return!!_0x4e100f&&(_0x106093['change'](_0xe87c60=>{_0xe87c60['setSelection'](_0x4e100f['reference'],'on');}),_0x2dcfc9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x121f06}=this['editor']['model'],_0xc53101=this['editor']['config']['get']('footnotes.multiBlock');_0x121f06['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x121f06['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x121f06['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xc53101?_0x121f06['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x121f06['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x121f06['addChildCheck'](_0x1911a1=>{for(const _0x37a8d9 of _0x1911a1)if('footnoteDefinition'===_0x37a8d9['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x34a1c6}=this,{conversion:_0x41c084,editing:_0x500f1c}=_0x34a1c6,{t:t}=_0x34a1c6['locale'];_0x41c084['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x228ee8,{writer:_0x34ed71,consumable:_0x5f4fce})=>{const _0x4b050d=_0x228ee8['getChild'](0x0);if(!_0x4b050d||!_0x4b050d['is']('element','a'))return null;const _0x3250b5=_0x4b050d['getAttribute']('href')||'';if(!_0x3250b5['startsWith']('#'))return null;const _0x469162=_0x3250b5['replace'](/^#/,'');if(!_0x469162)return null;_0x5f4fce['consume'](_0x4b050d,{'name':!0x0,'attributes':['href']});for(const {item:_0x2c2faf}of _0x500f1c['view']['createRangeIn'](_0x4b050d))_0x2c2faf['is']('$textProxy')?_0x5f4fce['consume'](_0x2c2faf['textNode'],{'name':!0x0}):_0x2c2faf['is']('element')&&_0x5f4fce['consume'](_0x2c2faf,{'name':!0x0});return _0x34ed71['createElement']('footnoteRef',{'footnoteId':_0x469162});}}),_0x41c084['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xcb1d4,{writer:_0x4a9e8b})=>g(_0xcb1d4,_0x4a9e8b)}),_0x41c084['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xbdf89f,{writer:_0x5ed677})=>{const _0x17b4bb=_0xbdf89f['getAttribute']('footnoteCounter');return _0x58098e(g(_0xbdf89f,_0x5ed677),_0x5ed677,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x17b4bb)});}});}['_defineDefinitionsConverters'](){const {editor:_0x149348}=this,{t:t}=_0x149348['locale'],{conversion:_0x224b91}=_0x149348;_0x224b91['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x224b91['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x224b91['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x53545c,{writer:_0x53f447})=>{const _0xfbfc0d=_0x53f447['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x53f447['createContainerElement']('ol',{'class':'footnotes'},_0x53f447['createSlot']())),_0x411740=_0x58098e(_0xfbfc0d,_0x53f447,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x53f447['setCustomProperty']('footnotesDefinitions',!0x0,_0x411740),_0x411740;}});}['_defineDefinitionConverters'](){const {editor:_0x5ced4f}=this,{conversion:_0x1b6966,locale:_0x46b043}=_0x5ced4f,_0x704b74=_0x5ced4f['config']['get']('footnotes.multiBlock');_0x1b6966['for']('upcast')['add'](_0x125ada=>{_0x125ada['on']('element:li',(_0x25b6fe,_0x292ca7,_0x3bfaaa)=>{const _0x153051=_0x292ca7['viewItem'];if(!_0x153051['hasClass']('footnote-definition')||!_0x153051['getAttribute']('id'))return;const _0x4eee32=_0x153051['parent'];if(!_0x4eee32['is']('element','ol')||!_0x4eee32['hasClass']('footnotes'))return;if(!_0x3bfaaa['consumable']['test'](_0x153051,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2b6ef0=_0x3bfaaa['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x153051['getAttribute']('id')});if(!_0x3bfaaa['safeInsert'](_0x2b6ef0,_0x292ca7['modelCursor']))return;_0x3bfaaa['consumable']['consume'](_0x153051,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x452e34=Array['from'](_0x153051['getChildren']())['find'](_0x4ee22e=>_0x4ee22e['is']('element')&&_0x4ee22e['hasClass']('footnote-content'));for(const _0x30da2c of _0x153051['getChildren']())_0x30da2c['is']('element')&&(_0x3bfaaa['consumable']['consume'](_0x30da2c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3bfaaa['consumable']['consume'](_0x30da2c,{'name':!0x0,'classes':'footnote-content'}));if(_0x452e34){if(_0x704b74)_0x3bfaaa['convertChildren'](_0x452e34,_0x2b6ef0);else{const _0x5d058e=_0x3bfaaa['writer']['createElement']('footnoteInlineContent');_0x3bfaaa['writer']['insert'](_0x5d058e,_0x2b6ef0),_0x3bfaaa['convertChildren'](_0x452e34,_0x5d058e);}}_0x3bfaaa['updateConversionResult'](_0x2b6ef0,_0x292ca7);});}),_0x1b6966['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x51ec02,{writer:_0x454042})=>D(_0x51ec02,_0x454042,_0x46b043,{'dataPipeline':!0x0})}),_0x1b6966['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa1dc57,{writer:_0x2d4036})=>D(_0xa1dc57,_0x2d4036,_0x46b043)});}['_defineBogusParagraphConverters'](){const {editor:_0x38da9d}=this,{conversion:_0x2ee263}=_0x38da9d;_0x38da9d['config']['get']('footnotes.multiBlock')?(_0x2ee263['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x2ee263['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x38da9d['model']['document'],'change:data',()=>{!function(_0x20dee2,_0x56d69f){const _0x45797d=_0x20dee2['document']['differ'],_0x157372=new Set();for(const _0x305895 of _0x45797d['getChanges']()){const _0x5d63f3='attribute'==_0x305895['type']?_0x305895['range']['start']['parent']:_0x305895['position']['parent'];_0x5d63f3['is']('element','footnoteDefinition')&&_0x157372['add'](_0x5d63f3);}for(const _0x3c0e1f of _0x157372['values']()){const _0x49ad26=Array['from'](_0x3c0e1f['getChildren']())['filter'](_0x135fb7=>p(_0x135fb7,_0x56d69f['mapper']));for(const _0x1843f0 of _0x49ad26)_0x56d69f['reconvertItem'](_0x1843f0);}}(_0x38da9d['model'],_0x38da9d['editing']);})):(_0x2ee263['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x2ee263['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x198f43,{writer:_0x271e5d})=>{const _0x560a25=_0x271e5d['createContainerElement']('span');return _0x271e5d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x560a25),_0x560a25;}}));}['_defineKeyboardHandlers'](){const {editor:_0x51225f}=this,{editing:_0x25fd21,t:t}=_0x51225f,_0x1399f4=_0x51225f['model']['document']['selection'];_0x51225f['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x51225f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x25fd21['view']['document'],'enter',(_0xd50685,_0x5d0a61)=>{const _0x16ff40=function(_0x3e5251){const _0x2d5f89=_0x3e5251['getSelectedElement']();if(_0x2d5f89?.['is']('element','footnoteRef'))return _0x2d5f89;return null;}(_0x1399f4);if(_0x16ff40){const _0x188d34=_0x16ff40['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x188d34),_0x5d0a61['preventDefault'](),_0xd50685['stop']();}},{'context':_0x3c9a62});}['_defineClickHandlers'](){const {editor:_0x1edad4}=this,{editing:_0x4c404c}=_0x1edad4;_0x1edad4['editing']['view']['addObserver'](_0x224898),_0x1edad4['editing']['view']['addObserver'](_0xc788f8);let _0x25013c=!0x1;this['listenTo'](_0x4c404c['view']['document'],'pointerdown',(_0x4fe333,_0x50eac1)=>{const {target:_0x35d5f0}=_0x50eac1,_0x450ce4=_0x4c404c['view']['document']['selection'];_0x25013c=!(!_0x35d5f0['is']('element','sup')||!_0x35d5f0['hasClass']('footnote'))&&_0x450ce4['getSelectedElement']()===_0x35d5f0;},{'priority':'high'}),this['listenTo'](_0x4c404c['view']['document'],'click',(_0x566c6e,_0x5199cd)=>{const {target:_0x3a9116}=_0x5199cd,_0xfe007f=_0x3a9116['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0xfe007f['slice'](0x1)),_0x566c6e['stop'](),_0x5199cd['preventDefault']();},{'priority':'high','context':_0x4a3132=>_0x4a3132['is']('element','sup')&&_0x4a3132['hasClass']('footnote')&&_0x25013c}),this['listenTo'](_0x4c404c['view']['document'],'click',(_0x336f44,_0x373d95)=>{const {target:_0x5bd81c}=_0x373d95;if(!_0x5bd81c['is']('element','a'))return;let _0x579ad0=_0x5bd81c['getAttribute']('href');if(!_0x579ad0?.['startsWith']('#'))return;_0x579ad0=_0x579ad0['slice'](0x1);let _0x315302=!0x1;(_0x579ad0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x579ad0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x579ad0))&&(_0x315302=!0x0),_0x315302&&(_0x373d95['preventDefault'](),_0x336f44['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x1b8b15}={}){return(_0x9c5fd7,{writer:_0x162f69})=>{if(!h(_0x9c5fd7))return null;if(!_0x1b8b15)return _0x162f69['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x8eee75=_0x162f69['createContainerElement']('p');return _0x162f69['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x8eee75),_0x8eee75;};}function h(_0x5ade0c){const {parent:_0x157f17}=_0x5ade0c;if(!_0x157f17?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x157f17['childCount'])return!0x1;for(const _0x1fc06f of _0x5ade0c['getAttributeKeys']())if(!_0x1fc06f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1fc06f)return!0x1;return!0x0;}function p(_0x3c83f2,_0x4777e3){if(!_0x3c83f2['is']('element','paragraph'))return!0x1;const _0x488d3e=_0x4777e3['toViewElement'](_0x3c83f2);return!!_0x488d3e&&h(_0x3c83f2)!==_0x488d3e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x334b54){return _0x3c9a62(_0x334b54)&&_0x334b54['is']('containerElement')&&!!_0x334b54['getCustomProperty']('footnotesDefinitions');}function g(_0x38648f,_0x2e74db){const _0x2eba40=_0x38648f['getAttribute']('footnoteId'),_0x5e484b=_0x38648f['getAttribute']('footnoteCounter'),_0x4e6194=_0x2e74db['createUIElement']('a',{'id':'ref-'+_0x2eba40,'href':'#'+_0x2eba40},function(_0x459856){const _0x42075b=this['toDomElement'](_0x459856);return _0x42075b['textContent']=_0x5e484b,_0x42075b;}),_0x3e7ad2=_0x2e74db['createContainerElement']('sup',{'class':'footnote'},[_0x4e6194]);return _0x3e7ad2['getFillerOffset']=()=>null,_0x3e7ad2;}function D(_0x60293,_0x27810b,_0x126907,{dataPipeline:_0x36b31a}={}){const {t:t}=_0x126907,_0x3a579f=_0x60293['getAttribute']('footnoteId'),_0x273e8a=_0x27810b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3a579f},function(_0x498ee7){const _0x1689ad=this['toDomElement'](_0x498ee7);return _0x1689ad['innerText']='^',_0x1689ad;}),_0x43bc98=_0x36b31a?_0x27810b['createContainerElement']('div',{'class':'footnote-content'}):_0x2203ef(_0x27810b['createEditableElement']('div',{'class':'footnote-content'}),_0x27810b,{'label':t('Footnote\x20content.')});return _0x27810b['insert'](_0x27810b['createPositionAt'](_0x43bc98,0x0),_0x27810b['createSlot']()),_0x27810b['createContainerElement']('li',{'class':'footnote-definition','id':_0x3a579f},[_0x273e8a,_0x43bc98]);}
|
|
23
|
+
import{Plugin as _0x3dc058}from'ckeditor5/src/core.js';import{isWidget as _0x11ce06,toWidget as _0x30bfde,toWidgetEditable as _0x56c70c}from'ckeditor5/src/widget.js';import{uid as _0x5641bb}from'ckeditor5/src/utils.js';import{PointerObserver as _0x42e9ab,ClickObserver as _0x45980d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x477d67}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x21aa01}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3dc058{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x477d67];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x23a404}=this;_0x23a404['config']['define']('footnotes.multiBlock',!0x0),_0x23a404['commands']['add']('insertFootnote',new _0x21aa01(_0x23a404)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1f5409){const _0x5744a9=_0x102ca8([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]),_0x38f853=0x47a28506,_0x3640c4=0x47a5f38e^_0x38f853,_0x40d640=window[_0x102ca8([0x44,0x61,0x74,0x65])][_0x102ca8([0x6e,0x6f,0x77])](),_0x1f45e6=_0x1f5409[_0x102ca8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2141fc=new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0546b=>{_0x1f45e6[_0x102ca8([0x6f,0x6e,0x63,0x65])](_0x102ca8([0x72,0x65,0x61,0x64,0x79]),_0xa0546b);}),_0x1168ac={[_0x102ca8([0x6b,0x74,0x79])]:_0x102ca8([0x45,0x43]),[_0x102ca8([0x75,0x73,0x65])]:_0x102ca8([0x73,0x69,0x67]),[_0x102ca8([0x63,0x72,0x76])]:_0x102ca8([0x50,0x2d,0x32,0x35,0x36]),[_0x102ca8([0x78])]:_0x102ca8([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]),[_0x102ca8([0x79])]:_0x102ca8([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]),[_0x102ca8([0x61,0x6c,0x67])]:_0x102ca8([0x45,0x53,0x32,0x35,0x36])},_0x5e7f2c=_0x1f45e6[_0x102ca8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x102ca8([0x67,0x65,0x74])](_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b2afb(){let _0x3da731,_0x244baa=null,_0x34ad67=null;try{if(_0x5e7f2c==_0x102ca8([0x47,0x50,0x4c]))return _0x102ca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3da731=_0x426024(),!_0x3da731)return _0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3da731[_0x102ca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34ad67=_0x208e5f(_0x3da731[_0x102ca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3da731[_0x102ca8([0x6a,0x74,0x69])])),await _0x163b34()?_0x448bab()?_0x10a718()?_0x102ca8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x406de8()?(_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102ca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x244baa=_0x5ef342(_0x102ca8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x102ca8([0x74,0x72,0x69,0x61,0x6c])&&(_0x244baa=_0x5ef342(_0x102ca8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x335071()):_0x102ca8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x102ca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x102ca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10a718(){const _0x37dc39=[_0x102ca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x102ca8([0x74,0x72,0x69,0x61,0x6c])][_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40d640/0x3e8:0xe10*_0x3640c4;return _0x3da731[_0x102ca8([0x65,0x78,0x70])]<_0x37dc39;}function _0x448bab(){const _0x504142=_0x3da731[_0x102ca8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x504142&&(!!_0x504142[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x2a]))||!!_0x504142[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x46,0x4f,0x4f])));}function _0x406de8(){const _0x272153=_0x3da731[_0x102ca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x272153||0x0==_0x272153[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc994}=new URL(window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x272153[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc994))return!0x0;const _0x2cfd33=_0x2cc994[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e]));return _0x272153[_0x102ca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32348c=>_0x32348c[_0x102ca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x102ca8([0x2a])))[_0x102ca8([0x6d,0x61,0x70])](_0x27d575=>_0x27d575[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e])))[_0x102ca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee86fd=>_0xee86fd[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cfd33[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x102ca8([0x6d,0x61,0x70])](_0xf85efd=>Array(_0x2cfd33[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf85efd[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x102ca8([0x66,0x69,0x6c,0x6c])](_0xf85efd[0x0]===_0x102ca8([0x2a])?_0x102ca8([0x2a]):'')[_0x102ca8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf85efd))[_0x102ca8([0x73,0x6f,0x6d,0x65])](_0x11c192=>_0x2cfd33[_0x102ca8([0x65,0x76,0x65,0x72,0x79])]((_0x5abed7,_0x249d26)=>_0x11c192[_0x249d26]===_0x5abed7||_0x11c192[_0x249d26]===_0x102ca8([0x2a])));}function _0x335071(){return _0x244baa&&_0x34ad67?new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55162e,_0xd7e9ea)=>{_0x244baa[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x55162e,_0xd7e9ea),_0x34ad67[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x3e099c=>{_0x3e099c!=_0x102ca8([0x56,0x61,0x6c,0x69,0x64])&&_0x55162e(_0x3e099c);},_0xd7e9ea);}):_0x244baa||_0x34ad67||_0x102ca8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x208e5f(_0x2afd9e,_0x456240){return new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44251c=>{if(_0x1574eb())return _0x44251c(_0x102ca8([0x56,0x61,0x6c,0x69,0x64]));_0x15ba0e(),_0x1f45e6[_0x102ca8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aa3c0=!0x1;const _0xdc49f2=_0x5641bb();function _0x35ce7b(_0x3e8342){return!!_0x3e8342&&(typeof _0x3e8342===_0x102ca8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e8342===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e8342[_0x102ca8([0x74,0x68,0x65,0x6e])]===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e8342[_0x102ca8([0x63,0x61,0x74,0x63,0x68])]===_0x102ca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b42b5(_0x5c4d23){_0x448233(_0x5c4d23)[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x39a82b=>{if(!_0x39a82b||_0x39a82b[_0x102ca8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x102ca8([0x6f,0x6b]))return _0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x170d5c(_0x2c1e56(_0xdc49f2+_0x456240))!=_0x39a82b[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x102ca8([0x56,0x61,0x6c,0x69,0x64]);})[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x394b43=>(_0x42d4f1(),_0x394b43),()=>{const _0x2b547e=_0x36e290();return null==_0x2b547e?(_0x42d4f1(),_0x102ca8([0x56,0x61,0x6c,0x69,0x64])):_0x102ca8(_0x40d640-_0x2b547e>(0x63ae0106^_0x38f853)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x44251c)[_0x102ca8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13f58e=0x47946b86^_0x38f853;function _0x42d4f1(){const _0x3f32c9=_0x102ca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d5c(_0x2c1e56(_0x2afd9e)),_0x466ca=_0x534d41(_0x170d5c(window[_0x102ca8([0x4d,0x61,0x74,0x68])][_0x102ca8([0x63,0x65,0x69,0x6c])](_0x40d640/_0x13f58e)));window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102ca8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f32c9,_0x466ca);}function _0x36e290(){const _0x2eb3ab=_0x102ca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d5c(_0x2c1e56(_0x2afd9e)),_0x2185e3=window[_0x102ca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x102ca8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eb3ab);return _0x2185e3?window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x534d41(_0x2185e3),0x10)*_0x13f58e:null;}function _0x448233(_0x3d8f70){return new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x430f68,_0x3f8fca)=>{_0x3d8f70[_0x102ca8([0x74,0x68,0x65,0x6e])](_0x430f68,_0x3f8fca),window[_0x102ca8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f8fca,0x47a351c6^_0x38f853);});}}_0x1f45e6[_0x102ca8([0x6f,0x6e])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54ddfe,_0x2a370f)=>{if(_0x2a370f[0x0]!=_0x2afd9e)return _0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a370f[0x1]={..._0x2a370f[0x1],[_0x102ca8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdc49f2};},{[_0x102ca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102ca8([0x68,0x69,0x67,0x68])}),_0x1f45e6[_0x102ca8([0x6f,0x6e])](_0x102ca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c58f4=>{_0x35ce7b(_0x4c58f4[_0x102ca8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aa3c0=!0x0,_0x4b42b5(_0x4c58f4[_0x102ca8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x102ca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x102ca8([0x6c,0x6f,0x77])}),_0x2141fc[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>{_0x1aa3c0||_0x44251c(_0x102ca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1574eb(){return _0x1f45e6[_0x102ca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102ca8([0x76,0x69,0x65,0x77])][_0x102ca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x102ca8([0x61,0x75,0x74,0x6f]);}function _0x15ba0e(){_0x1f45e6[_0x102ca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x102ca8([0x76,0x69,0x65,0x77])][_0x102ca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x102ca8([0x61,0x75,0x74,0x6f]);}}function _0x5ef342(_0x4e3a31){const _0x5526a1=[new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491689=>setTimeout(_0x491689,0x47abbbca^_0x38f853)),_0x2141fc[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2571b9=>{let _0x5eecb2=0x0;_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x6f,0x6e])](_0x102ca8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f73d,_0x489b74)=>{_0x489b74[0x0][_0x102ca8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eecb2++,_0x5eecb2==(0x47a284fe^_0x38f853)&&(_0x2571b9(),_0x20f73d[_0x102ca8([0x6f,0x66,0x66])]());});}))];return window[_0x102ca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x102ca8([0x72,0x61,0x63,0x65])](_0x5526a1)[_0x102ca8([0x74,0x68,0x65,0x6e])](()=>_0x4e3a31);}async function _0x22dcd4(){await _0x2141fc,_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249850,_0x1f45e6[_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x102ca8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249850,_0x1f45e6[_0x102ca8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x102ca8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f33b8(_0x2e530f){const _0x459bf3=_0x3cb49a();_0x1f45e6[_0x459bf3]=_0x102ca8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e530f,_0x2e530f!=_0x102ca8([0x56,0x61,0x6c,0x69,0x64])&&_0x22dcd4();}function _0x3cb49a(){const _0xedbf=window[_0x102ca8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x102ca8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x102ca8([0x6e,0x6f,0x77])]())[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x102ca8([0x2e]),'');let _0xcce80=_0x102ca8([0x75]);for(let _0x109282=0x0;_0x109282<_0xedbf[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109282+=0x2){let _0x2f2185=window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xedbf[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109282,_0x109282+0x2));_0x2f2185>=_0x5744a9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f2185-=_0x5744a9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcce80+=_0x5744a9[_0x2f2185];}return _0xcce80;}function _0x426024(){const _0x156f78=_0x5e7f2c[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e]));if(0x3!=_0x156f78[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x302cbb(_0x156f78[0x1]);function _0x302cbb(_0x1afba5){const _0x2e692a=_0x28c232(_0x1afba5);return _0x2e692a&&_0x102ba3()?_0x2e692a:null;function _0x102ba3(){const _0x53a7c9=_0x2e692a[_0x102ca8([0x6a,0x74,0x69])],_0x6123e=window[_0x102ca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a7c9[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53a7c9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x287517={..._0x2e692a,[_0x102ca8([0x6a,0x74,0x69])]:_0x53a7c9[_0x102ca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53a7c9[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x287517[_0x102ca8([0x76,0x63])],_0x2c1e56(_0x287517)==_0x6123e;}}}async function _0x163b34(){let _0x3d0546=!0x0;try{const _0x3130fe=_0x5e7f2c[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])](_0x102ca8([0x2e])),[_0x31eb1b,_0x248bd8,_0x5b1405]=_0x3130fe;return _0x52b901(_0x31eb1b),await _0x2a993d(_0x31eb1b,_0x248bd8,_0x5b1405),_0x3d0546;}catch{return!0x1;}function _0x52b901(_0x258d23){const _0x4d6272=_0x28c232(_0x258d23);_0x4d6272&&_0x4d6272[_0x102ca8([0x61,0x6c,0x67])]==_0x102ca8([0x45,0x53,0x32,0x35,0x36])||(_0x3d0546=!0x1);}async function _0x2a993d(_0x5a3ff0,_0x5455a3,_0xaeaeb4){const _0xc61209=window[_0x102ca8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x102ca8([0x66,0x72,0x6f,0x6d])](_0x3fe880(_0xaeaeb4),_0x4d70d=>_0x4d70d[_0x102ca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3acc22=new window[(_0x102ca8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x102ca8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a3ff0+_0x102ca8([0x2e])+_0x5455a3),_0x126d65=window[_0x102ca8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x102ca8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x126d65)return;const _0x3221cc=await _0x126d65[_0x102ca8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x102ca8([0x6a,0x77,0x6b]),_0x1168ac,{[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x45,0x43,0x44,0x53,0x41]),[_0x102ca8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x102ca8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x126d65[_0x102ca8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x45,0x43,0x44,0x53,0x41]),[_0x102ca8([0x68,0x61,0x73,0x68])]:{[_0x102ca8([0x6e,0x61,0x6d,0x65])]:_0x102ca8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3221cc,_0xc61209,_0x3acc22)||(_0x3d0546=!0x1);}}function _0x28c232(_0x317a82){return _0x317a82[_0x102ca8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x102ca8([0x65,0x79]))?JSON[_0x102ca8([0x70,0x61,0x72,0x73,0x65])](_0x3fe880(_0x317a82)):null;}function _0x3fe880(_0x5ba3e8){return window[_0x102ca8([0x61,0x74,0x6f,0x62])](_0x5ba3e8[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x102ca8([0x2b]))[_0x102ca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x102ca8([0x2f])));}function _0x2c1e56(_0x401bfd){let _0x46ee63=0x1505;function _0x166d9d(_0x44da0c){for(let _0x98f55e=0x0;_0x98f55e<_0x44da0c[_0x102ca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x98f55e++){const _0x1a8fa7=_0x44da0c[_0x102ca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x98f55e);_0x46ee63=(_0x46ee63<<0x5)+_0x46ee63+_0x1a8fa7,_0x46ee63&=_0x46ee63;}}function _0x315211(_0x75bd6e){Array[_0x102ca8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x75bd6e)?_0x75bd6e[_0x102ca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x315211):_0x75bd6e&&typeof _0x75bd6e==_0x102ca8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x102ca8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x75bd6e)[_0x102ca8([0x73,0x6f,0x72,0x74])]()[_0x102ca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c34b4,_0x1a961f])=>{_0x166d9d(_0x3c34b4),_0x315211(_0x1a961f);}):_0x166d9d(window[_0x102ca8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x75bd6e));}return _0x315211(_0x401bfd),_0x46ee63>>>0x0;}function _0x170d5c(_0x38f2a4){return _0x38f2a4[_0x102ca8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x102ca8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x102ca8([0x30]));}function _0x534d41(_0x57a704){return _0x57a704[_0x102ca8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x102ca8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x102ca8([0x6a,0x6f,0x69,0x6e])]('');}function _0x249850(){}function _0x102ca8(_0x5da37f){return _0x5da37f['map'](_0x467037=>String['fromCharCode'](_0x467037))['join']('');}_0x3f33b8(await _0x4b2afb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5cc489){const {plugins:_0x3aaaad,editing:_0x29af3f,model:_0x2d25f1}=this['editor'],_0x55a69c=_0x3aaaad['get'](_0x477d67)['getFootnote'](_0x5cc489);return!!_0x55a69c&&(_0x2d25f1['change'](_0x291e4e=>{_0x291e4e['setSelection'](_0x291e4e['createPositionAt'](_0x55a69c['definition'],'end'));}),_0x29af3f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x49c3d8){const {plugins:_0x4c3a12,editing:_0x35428b,model:_0x256a1d}=this['editor'],_0x5ca5b8=_0x4c3a12['get'](_0x477d67)['getFootnote'](_0x49c3d8);return!!_0x5ca5b8&&(_0x256a1d['change'](_0x315555=>{_0x315555['setSelection'](_0x5ca5b8['reference'],'on');}),_0x35428b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46a330}=this['editor']['model'],_0xcb0ab8=this['editor']['config']['get']('footnotes.multiBlock');_0x46a330['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46a330['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46a330['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xcb0ab8?_0x46a330['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46a330['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46a330['addChildCheck'](_0x26cf0b=>{for(const _0x58dd74 of _0x26cf0b)if('footnoteDefinition'===_0x58dd74['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2a719e}=this,{conversion:_0x1c16dd,editing:_0x8f1fe4}=_0x2a719e,{t:t}=_0x2a719e['locale'];_0x1c16dd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2902ec,{writer:_0x528211,consumable:_0x83fa1b})=>{const _0x42c0e1=_0x2902ec['getChild'](0x0);if(!_0x42c0e1||!_0x42c0e1['is']('element','a'))return null;const _0x2329ff=_0x42c0e1['getAttribute']('href')||'';if(!_0x2329ff['startsWith']('#'))return null;const _0xf703dd=_0x2329ff['replace'](/^#/,'');if(!_0xf703dd)return null;_0x83fa1b['consume'](_0x42c0e1,{'name':!0x0,'attributes':['href']});for(const {item:_0x4583da}of _0x8f1fe4['view']['createRangeIn'](_0x42c0e1))_0x4583da['is']('$textProxy')?_0x83fa1b['consume'](_0x4583da['textNode'],{'name':!0x0}):_0x4583da['is']('element')&&_0x83fa1b['consume'](_0x4583da,{'name':!0x0});return _0x528211['createElement']('footnoteRef',{'footnoteId':_0xf703dd});}}),_0x1c16dd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x8a0e47,{writer:_0x353f7e})=>g(_0x8a0e47,_0x353f7e)}),_0x1c16dd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xe20da1,{writer:_0x109d8d})=>{const _0x1fa574=_0xe20da1['getAttribute']('footnoteCounter');return _0x30bfde(g(_0xe20da1,_0x109d8d),_0x109d8d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1fa574)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3d1134}=this,{t:t}=_0x3d1134['locale'],{conversion:_0x5991bd}=_0x3d1134;_0x5991bd['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x5991bd['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x5991bd['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16e2e2,{writer:_0x5934de})=>{const _0x44bb8a=_0x5934de['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x5934de['createContainerElement']('ol',{'class':'footnotes'},_0x5934de['createSlot']())),_0x5c2401=_0x30bfde(_0x44bb8a,_0x5934de,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5934de['setCustomProperty']('footnotesDefinitions',!0x0,_0x5c2401),_0x5c2401;}});}['_defineDefinitionConverters'](){const {editor:_0x53cd94}=this,{conversion:_0x383dbc,locale:_0x3b0606}=_0x53cd94,_0x34cf7c=_0x53cd94['config']['get']('footnotes.multiBlock');_0x383dbc['for']('upcast')['add'](_0x454516=>{_0x454516['on']('element:li',(_0x1532c6,_0x445f18,_0x3f3400)=>{const _0x2277ea=_0x445f18['viewItem'];if(!_0x2277ea['hasClass']('footnote-definition')||!_0x2277ea['getAttribute']('id'))return;const _0x2bda75=_0x2277ea['parent'];if(!_0x2bda75['is']('element','ol')||!_0x2bda75['hasClass']('footnotes'))return;if(!_0x3f3400['consumable']['test'](_0x2277ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x155873=_0x3f3400['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2277ea['getAttribute']('id')});if(!_0x3f3400['safeInsert'](_0x155873,_0x445f18['modelCursor']))return;_0x3f3400['consumable']['consume'](_0x2277ea,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4e42da=Array['from'](_0x2277ea['getChildren']())['find'](_0x39e8c3=>_0x39e8c3['is']('element')&&_0x39e8c3['hasClass']('footnote-content'));for(const _0x18fbcb of _0x2277ea['getChildren']())_0x18fbcb['is']('element')&&(_0x3f3400['consumable']['consume'](_0x18fbcb,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3f3400['consumable']['consume'](_0x18fbcb,{'name':!0x0,'classes':'footnote-content'}));if(_0x4e42da){if(_0x34cf7c)_0x3f3400['convertChildren'](_0x4e42da,_0x155873);else{const _0x184015=_0x3f3400['writer']['createElement']('footnoteInlineContent');_0x3f3400['writer']['insert'](_0x184015,_0x155873),_0x3f3400['convertChildren'](_0x4e42da,_0x184015);}}_0x3f3400['updateConversionResult'](_0x155873,_0x445f18);});}),_0x383dbc['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x120925,{writer:_0xc36aa9})=>D(_0x120925,_0xc36aa9,_0x3b0606,{'dataPipeline':!0x0})}),_0x383dbc['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x37ad8e,{writer:_0x50f413})=>D(_0x37ad8e,_0x50f413,_0x3b0606)});}['_defineBogusParagraphConverters'](){const {editor:_0x2a9168}=this,{conversion:_0x4d23d0}=_0x2a9168;_0x2a9168['config']['get']('footnotes.multiBlock')?(_0x4d23d0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4d23d0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2a9168['model']['document'],'change:data',()=>{!function(_0x42b428,_0xeb939e){const _0x86b39d=_0x42b428['document']['differ'],_0x533cfb=new Set();for(const _0x3b3cb5 of _0x86b39d['getChanges']()){const _0x2c3b84='attribute'==_0x3b3cb5['type']?_0x3b3cb5['range']['start']['parent']:_0x3b3cb5['position']['parent'];_0x2c3b84['is']('element','footnoteDefinition')&&_0x533cfb['add'](_0x2c3b84);}for(const _0x1fa586 of _0x533cfb['values']()){const _0x1b5b5e=Array['from'](_0x1fa586['getChildren']())['filter'](_0x420d75=>p(_0x420d75,_0xeb939e['mapper']));for(const _0x2aefb4 of _0x1b5b5e)_0xeb939e['reconvertItem'](_0x2aefb4);}}(_0x2a9168['model'],_0x2a9168['editing']);})):(_0x4d23d0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4d23d0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x164a50,{writer:_0x103a79})=>{const _0x5e4960=_0x103a79['createContainerElement']('span');return _0x103a79['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5e4960),_0x5e4960;}}));}['_defineKeyboardHandlers'](){const {editor:_0x406bf1}=this,{editing:_0x5ba230,t:t}=_0x406bf1,_0x10c464=_0x406bf1['model']['document']['selection'];_0x406bf1['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x406bf1['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x5ba230['view']['document'],'enter',(_0x460c02,_0x26a561)=>{const _0x29b99a=function(_0x301855){const _0x3b4c6d=_0x301855['getSelectedElement']();if(_0x3b4c6d?.['is']('element','footnoteRef'))return _0x3b4c6d;return null;}(_0x10c464);if(_0x29b99a){const _0x1afdcd=_0x29b99a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1afdcd),_0x26a561['preventDefault'](),_0x460c02['stop']();}},{'context':_0x11ce06});}['_defineClickHandlers'](){const {editor:_0x28e94b}=this,{editing:_0x2c61c8}=_0x28e94b;_0x28e94b['editing']['view']['addObserver'](_0x42e9ab),_0x28e94b['editing']['view']['addObserver'](_0x45980d);let _0x442e35=!0x1;this['listenTo'](_0x2c61c8['view']['document'],'pointerdown',(_0x2e8278,_0x47fe05)=>{const {target:_0xebad39}=_0x47fe05,_0x4152a7=_0x2c61c8['view']['document']['selection'];_0x442e35=!(!_0xebad39['is']('element','sup')||!_0xebad39['hasClass']('footnote'))&&_0x4152a7['getSelectedElement']()===_0xebad39;},{'priority':'high'}),this['listenTo'](_0x2c61c8['view']['document'],'click',(_0x302dcf,_0x3881c6)=>{const {target:_0x51e108}=_0x3881c6,_0x33e59c=_0x51e108['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x33e59c['slice'](0x1)),_0x302dcf['stop'](),_0x3881c6['preventDefault']();},{'priority':'high','context':_0x32e7d2=>_0x32e7d2['is']('element','sup')&&_0x32e7d2['hasClass']('footnote')&&_0x442e35}),this['listenTo'](_0x2c61c8['view']['document'],'click',(_0xfd162a,_0x1ab241)=>{const {target:_0x129c71}=_0x1ab241;if(!_0x129c71['is']('element','a'))return;let _0x320789=_0x129c71['getAttribute']('href');if(!_0x320789?.['startsWith']('#'))return;_0x320789=_0x320789['slice'](0x1);let _0xc1da5a=!0x1;(_0x320789['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x320789['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x320789))&&(_0xc1da5a=!0x0),_0xc1da5a&&(_0x1ab241['preventDefault'](),_0xfd162a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x594699}={}){return(_0xd81c50,{writer:_0x1f1f53})=>{if(!h(_0xd81c50))return null;if(!_0x594699)return _0x1f1f53['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4dac84=_0x1f1f53['createContainerElement']('p');return _0x1f1f53['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4dac84),_0x4dac84;};}function h(_0x12e747){const {parent:_0x25cf10}=_0x12e747;if(!_0x25cf10?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x25cf10['childCount'])return!0x1;for(const _0x5b5602 of _0x12e747['getAttributeKeys']())if(!_0x5b5602['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5b5602)return!0x1;return!0x0;}function p(_0x3662a0,_0x4ed484){if(!_0x3662a0['is']('element','paragraph'))return!0x1;const _0x21deb7=_0x4ed484['toViewElement'](_0x3662a0);return!!_0x21deb7&&h(_0x3662a0)!==_0x21deb7['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xbbbaf7){return _0x11ce06(_0xbbbaf7)&&_0xbbbaf7['is']('containerElement')&&!!_0xbbbaf7['getCustomProperty']('footnotesDefinitions');}function g(_0x5a6552,_0x33aeb2){const _0x432443=_0x5a6552['getAttribute']('footnoteId'),_0x440ad3=_0x5a6552['getAttribute']('footnoteCounter'),_0x313855=_0x33aeb2['createUIElement']('a',{'id':'ref-'+_0x432443,'href':'#'+_0x432443},function(_0x2832c5){const _0x4df48a=this['toDomElement'](_0x2832c5);return _0x4df48a['textContent']=_0x440ad3,_0x4df48a;}),_0x368c34=_0x33aeb2['createContainerElement']('sup',{'class':'footnote'},[_0x313855]);return _0x368c34['getFillerOffset']=()=>null,_0x368c34;}function D(_0x241729,_0x57fd03,_0x3485a3,{dataPipeline:_0x2f679b}={}){const {t:t}=_0x3485a3,_0xa04b7e=_0x241729['getAttribute']('footnoteId'),_0x323102=_0x57fd03['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xa04b7e},function(_0x88b667){const _0x18f414=this['toDomElement'](_0x88b667);return _0x18f414['innerText']='^',_0x18f414;}),_0x5d07b9=_0x2f679b?_0x57fd03['createContainerElement']('div',{'class':'footnote-content'}):_0x56c70c(_0x57fd03['createEditableElement']('div',{'class':'footnote-content'}),_0x57fd03,{'label':t('Footnote\x20content.')});return _0x57fd03['insert'](_0x57fd03['createPositionAt'](_0x5d07b9,0x0),_0x57fd03['createSlot']()),_0x57fd03['createContainerElement']('li',{'class':'footnote-definition','id':_0xa04b7e},[_0x323102,_0x5d07b9]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b2a8=_0x2627;function _0x408a(){const _0x152853=['568350cfCAgs','458xGzrSd','get','getFootnotesDefinitionsObjectElement','35qDIcCJ','footnotesListStart','1009779crTlfW','5977008fammPf','187WFtnuj','refresh','execute','5389713SkjuaA','model','change','getAttribute','isInteger','setAttribute','490938bhksYV','value','_updateFootnotesCounters','4118yoQItM','plugins','isEnabled','1040390GnPIDH','4KahVyt'];_0x408a=function(){return _0x152853;};return _0x408a();}function _0x2627(_0xc31482,_0x3d8fa9){const _0x408a35=_0x408a();return _0x2627=function(_0x2627df,_0x126922){_0x2627df=_0x2627df-0xeb;let _0x84ce3b=_0x408a35[_0x2627df];return _0x84ce3b;},_0x2627(_0xc31482,_0x3d8fa9);}(function(_0x4e66b6,_0x51e2df){const _0x3baa2c=_0x2627,_0x4d18d5=_0x4e66b6();while(!![]){try{const _0x2d36d9=-parseInt(_0x3baa2c(0xf2))/0x1*(parseInt(_0x3baa2c(0xf8))/0x2)+-parseInt(_0x3baa2c(0xfd))/0x3*(-parseInt(_0x3baa2c(0xf6))/0x4)+parseInt(_0x3baa2c(0xfb))/0x5*(-parseInt(_0x3baa2c(0xf7))/0x6)+-parseInt(_0x3baa2c(0xef))/0x7+parseInt(_0x3baa2c(0xfe))/0x8+-parseInt(_0x3baa2c(0x102))/0x9+parseInt(_0x3baa2c(0xf5))/0xa*(parseInt(_0x3baa2c(0xff))/0xb);if(_0x2d36d9===_0x51e2df)break;else _0x4d18d5['push'](_0x4d18d5['shift']());}catch(_0x3b9e14){_0x4d18d5['push'](_0x4d18d5['shift']());}}}(_0x408a,0x8cf0e));import{Command as _0x131a16}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x401bf6}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x131a16{[_0x36b2a8(0x100)](){const _0xf565fa=_0x36b2a8,{editor:_0x14370c}=this,_0x4973e9=_0x14370c[_0xf565fa(0xf3)][_0xf565fa(0xf9)](_0x401bf6)[_0xf565fa(0xfa)]();this[_0xf565fa(0xf4)]=!!_0x4973e9,this[_0xf565fa(0xf0)]=_0x4973e9?.[_0xf565fa(0xec)](_0xf565fa(0xfc))??null;}[_0x36b2a8(0x101)]({value:_0xf1a1ea}){const _0x4f6922=_0x36b2a8,{editor:_0x4f0e16}=this,_0x4d0c7f=_0x4f0e16[_0x4f6922(0xf3)][_0x4f6922(0xf9)](_0x401bf6),_0x4c1e8d=_0x4d0c7f[_0x4f6922(0xfa)]();_0x4c1e8d&&Number[_0x4f6922(0xed)](_0xf1a1ea)&&_0x4f0e16[_0x4f6922(0x103)][_0x4f6922(0xeb)](_0x234189=>{const _0xba860d=_0x4f6922;_0x234189[_0xba860d(0xee)](_0xba860d(0xfc),_0xf1a1ea,_0x4c1e8d),_0x4d0c7f[_0xba860d(0xf1)](_0x234189);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x150a58=_0x3f42;(function(_0x1536a7,_0x102018){const _0x3fe608=_0x3f42,_0x48f257=_0x1536a7();while(!![]){try{const _0x23e723=parseInt(_0x3fe608(0x12c))/0x1+parseInt(_0x3fe608(0x137))/0x2*(-parseInt(_0x3fe608(0x134))/0x3)+-parseInt(_0x3fe608(0x12e))/0x4+parseInt(_0x3fe608(0x133))/0x5+-parseInt(_0x3fe608(0x124))/0x6+parseInt(_0x3fe608(0x129))/0x7+-parseInt(_0x3fe608(0x126))/0x8;if(_0x23e723===_0x102018)break;else _0x48f257['push'](_0x48f257['shift']());}catch(_0x45061f){_0x48f257['push'](_0x48f257['shift']());}}}(_0x5ca0,0x736d9));import{Command as _0x315fb1}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x113cf5}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b26db}from'../../footnotestracker.js';function _0x3f42(_0x463161,_0x2f7855){const _0x5ca014=_0x5ca0();return _0x3f42=function(_0x3f4277,_0x94f4fc){_0x3f4277=_0x3f4277-0x123;let _0x582019=_0x5ca014[_0x3f4277];return _0x582019;},_0x3f42(_0x463161,_0x2f7855);}export class FootnotesStyleCommand extends _0x315fb1{[_0x150a58(0x138)](){const _0x4a07a1=_0x150a58,{editor:_0x27a0a0}=this,_0x405f97=_0x27a0a0[_0x4a07a1(0x136)][_0x4a07a1(0x127)](_0x3b26db)[_0x4a07a1(0x132)]();this[_0x4a07a1(0x123)]=!!_0x405f97,this[_0x4a07a1(0x12b)]=_0x405f97?.[_0x4a07a1(0x128)](_0x4a07a1(0x130))??null;}[_0x150a58(0x125)]({value:_0x47fb5a}){const _0x425f44=_0x150a58,{editor:_0x2158a0}=this,_0x122364=_0x2158a0[_0x425f44(0x136)][_0x425f44(0x127)](_0x3b26db),_0x30f07c=_0x122364[_0x425f44(0x132)]();_0x30f07c&&_0x113cf5[_0x425f44(0x12d)](_0x47fb5a)&&_0x2158a0[_0x425f44(0x12f)][_0x425f44(0x131)](_0x5ea480=>{const _0x1389ca=_0x425f44;_0x5ea480[_0x1389ca(0x12a)](_0x1389ca(0x130),_0x47fb5a,_0x30f07c),_0x122364[_0x1389ca(0x135)](_0x5ea480);});}}function _0x5ca0(){const _0x4b04af=['113012vLswCr','refresh','isEnabled','2982234sXQsSg','execute','2782920pNtDeG','get','getAttribute','5623716GTMhWL','setAttribute','value','505950kJUhBa','includes','38344RBtEEG','model','footnotesListStyle','change','getFootnotesDefinitionsObjectElement','937315SZfUTa','9zFilcr','_updateFootnotesCounters','plugins'];_0x5ca0=function(){return _0x4b04af;};return _0x5ca0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x190307=_0xc059;(function(_0x1c72f5,_0x5dfb36){const _0x369cc0=_0xc059,_0x282a0b=_0x1c72f5();while(!![]){try{const _0x66860a=parseInt(_0x369cc0(0x105))/0x1*(parseInt(_0x369cc0(0x110))/0x2)+-parseInt(_0x369cc0(0x10e))/0x3+-parseInt(_0x369cc0(0x10d))/0x4+parseInt(_0x369cc0(0x10a))/0x5*(-parseInt(_0x369cc0(0x107))/0x6)+parseInt(_0x369cc0(0x109))/0x7+-parseInt(_0x369cc0(0x10b))/0x8*(-parseInt(_0x369cc0(0x114))/0x9)+parseInt(_0x369cc0(0x104))/0xa;if(_0x66860a===_0x5dfb36)break;else _0x282a0b['push'](_0x282a0b['shift']());}catch(_0x2a097f){_0x282a0b['push'](_0x282a0b['shift']());}}}(_0x4604,0x4b9d5));function _0xc059(_0x52ff60,_0x44589f){const _0x4604e2=_0x4604();return _0xc059=function(_0xc0597d,_0xdaf807){_0xc0597d=_0xc0597d-0x104;let _0x591cb5=_0x4604e2[_0xc0597d];return _0x591cb5;},_0xc059(_0x52ff60,_0x44589f);}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x190307(0x10f),_0x190307(0x113),_0x190307(0x10c),_0x190307(0x108),_0x190307(0x112),_0x190307(0x111),_0x190307(0x106),_0x190307(0x115)];function _0x4604(){const _0x3f6753=['lower-alpha','decimal-leading-zero','9pEyuQs','upper-roman','12190660DUjOQp','27264vZKqrd','lower-roman','408840xPbtSG','upper-latin','943173hBqtFB','40uqhlFA','2217304gMwiSN','lower-latin','1805372qLipAq','1383324MibXbV','decimal','10YxZoub','upper-alpha'];_0x4604=function(){return _0x3f6753;};return _0x4604();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x314942=_0x4685;(function(_0x2d8f96,_0x2ff43a){const _0x159ee8=_0x4685,_0x34b5cc=_0x2d8f96();while(!![]){try{const _0xf7a67a=parseInt(_0x159ee8(0x147))/0x1+-parseInt(_0x159ee8(0x1aa))/0x2+-parseInt(_0x159ee8(0x14a))/0x3*(parseInt(_0x159ee8(0x18d))/0x4)+-parseInt(_0x159ee8(0x195))/0x5*(-parseInt(_0x159ee8(0x16f))/0x6)+parseInt(_0x159ee8(0x18e))/0x7*(-parseInt(_0x159ee8(0x165))/0x8)+parseInt(_0x159ee8(0x16c))/0x9*(parseInt(_0x159ee8(0x167))/0xa)+parseInt(_0x159ee8(0x14b))/0xb;if(_0xf7a67a===_0x2ff43a)break;else _0x34b5cc['push'](_0x34b5cc['shift']());}catch(_0x3204dc){_0x34b5cc['push'](_0x34b5cc['shift']());}}}(_0x270e,0x6c7c5));function _0x270e(){const _0x338f47=['isPremiumPlugin','editor','_defineSchema','low','element','_getDefaultListStyle','start','differ','toUpperCase','fromCharCode','_getDefaultStartIndex','toViewElement','upper-roman','add','define','footnotesListStyle','getAttribute','814902fyprUC','extend','footnotes.footnotesProperties.defaultListStyle','194666XxVjtV','insert','item','339zOIMQW','9001058mfugWX','footnotes.footnotesProperties.defaultStartIndex','isOfficialPlugin','removeAttribute','getChildren','dataDowncast','upcast','createRangeOn','$text','FootnotesPropertiesEditing','attributeToAttribute','removeStyle','type','requires','consumable','hasAttribute','commands','find','style','nodeAfter','footnotesListStart','setAttribute','_defineConverters','attribute:footnotesListStyle:footnotesDefinitions','element:ol','getChanges','16SfWcBY','footnotesDefinitions','2354350CdQcZk','footnotesStart','footnotesStyle','from','upper-latin','27sPmyap','lower-roman','attribute:footnotesListStart:footnotesDefinitions','228QEETNc','floor','lower-alpha','getStyle','document','setStyle','config','decimal','decimal-leading-zero','_formatFootnoteListValue','isNaN','modelRange','setFootnoteFormatter','for','pluginName','max','init','_updateFootnotesCounters','writer','checkAttribute','parseInt','toLowerCase','plugins','mapper','upper-alpha','editingDowncast','registerPostFixer','model','padStart','list-style-type','29804jxxylD','129339JStxkF','consume','name','attributeNewValue','_defineFormatter','position','getItems','1510ThEigP','_definePostfixer','get','lower-latin'];_0x270e=function(){return _0x338f47;};return _0x270e();}import{Plugin as _0x1cc63c}from'ckeditor5/src/core.js';function _0x4685(_0x31750a,_0x15db7e){const _0x270e3a=_0x270e();return _0x4685=function(_0x4685ea,_0x6d5a57){_0x4685ea=_0x4685ea-0x146;let _0x1f3a6b=_0x270e3a[_0x4685ea];return _0x1f3a6b;},_0x4685(_0x31750a,_0x15db7e);}import{FootnotesStyleCommand as _0x5ab95e}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x3b227d}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x5d7667}from'../footnotestracker.js';import{FootnotesEditing as _0xc66c59}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x1cc63c{static get[_0x314942(0x17d)](){const _0x26518d=_0x314942;return _0x26518d(0x154);}static get[_0x314942(0x158)](){return[_0xc66c59,_0x5d7667];}static get[_0x314942(0x14d)](){return!0x0;}static get[_0x314942(0x199)](){return!0x0;}[_0x314942(0x17f)](){const _0xc99c6=_0x314942,{editor:_0x577b96}=this;_0x577b96[_0xc99c6(0x175)][_0xc99c6(0x1a7)](_0xc99c6(0x146),_0xc99c6(0x176)),_0x577b96[_0xc99c6(0x175)][_0xc99c6(0x1a7)](_0xc99c6(0x14c),0x1),_0x577b96[_0xc99c6(0x15b)][_0xc99c6(0x1a6)](_0xc99c6(0x169),new _0x5ab95e(_0x577b96)),_0x577b96[_0xc99c6(0x15b)][_0xc99c6(0x1a6)](_0xc99c6(0x168),new _0x3b227d(_0x577b96)),this[_0xc99c6(0x19b)](),this[_0xc99c6(0x161)](),this[_0xc99c6(0x192)](),this[_0xc99c6(0x196)]();}[_0x314942(0x19b)](){const _0x3491fa=_0x314942,{editor:_0x47815e}=this,{schema:_0x91e134}=_0x47815e[_0x3491fa(0x18a)];_0x91e134[_0x3491fa(0x1ab)](_0x3491fa(0x166),{'allowAttributes':[_0x3491fa(0x1a8),_0x3491fa(0x15f)]});}[_0x314942(0x161)](){const _0x4beb40=_0x314942,{editor:_0x5f3411}=this,{conversion:_0x5936a0,model:_0x41c860}=_0x5f3411,{schema:_0x4b3f21}=_0x41c860;_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x151))[_0x4beb40(0x155)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x4beb40(0x1a8),'value':_0x4b8449=>_0x4b8449[_0x4beb40(0x172)](_0x4beb40(0x18c))}}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x151))[_0x4beb40(0x155)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x4beb40(0x15f),'value':_0x2a05f3=>{const _0x1771d2=_0x4beb40,_0x51101b=_0x2a05f3[_0x1771d2(0x1a9)](_0x1771d2(0x19f)),_0x452537=Number[_0x1771d2(0x183)](_0x51101b,0xa);return Number[_0x1771d2(0x179)](_0x452537)?null:_0x452537;}}}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x151))[_0x4beb40(0x155)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x4beb40(0x1a8),'value':_0x2f40d5=>({0x1:_0x4beb40(0x176),'a':_0x4beb40(0x171),'A':_0x4beb40(0x187),'i':_0x4beb40(0x16d),'I':_0x4beb40(0x1a5)}[_0x2f40d5[_0x4beb40(0x1a9)](_0x4beb40(0x157))])}}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x151))[_0x4beb40(0x1a6)](_0x349ca6=>{const _0x168065=_0x4beb40;_0x349ca6['on'](_0x168065(0x163),(_0x4edca9,_0x5a6047,_0x28a545)=>{const _0x4340d0=_0x168065,_0x69a0f4=_0x5a6047[_0x4340d0(0x17a)]?.[_0x4340d0(0x19f)][_0x4340d0(0x15e)];_0x69a0f4?.['is'](_0x4340d0(0x19d),_0x4340d0(0x166))&&(!_0x69a0f4[_0x4340d0(0x15a)](_0x4340d0(0x1a8))&&_0x4b3f21[_0x4340d0(0x182)](_0x69a0f4,_0x4340d0(0x1a8))&&_0x28a545[_0x4340d0(0x181)][_0x4340d0(0x160)](_0x4340d0(0x1a8),_0x4340d0(0x176),_0x69a0f4),!_0x69a0f4[_0x4340d0(0x15a)](_0x4340d0(0x15f))&&_0x4b3f21[_0x4340d0(0x182)](_0x69a0f4,_0x4340d0(0x15f))&&_0x28a545[_0x4340d0(0x181)][_0x4340d0(0x160)](_0x4340d0(0x15f),0x1,_0x69a0f4));},{'priority':_0x168065(0x19c)});}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x150))[_0x4beb40(0x155)]({'model':{'name':_0x4beb40(0x166),'key':_0x4beb40(0x15f)},'view':_0x14e97a=>0x1===_0x14e97a?null:{'key':_0x4beb40(0x19f),'value':String(_0x14e97a)}}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x150))[_0x4beb40(0x155)]({'model':{'name':_0x4beb40(0x166),'key':_0x4beb40(0x1a8)},'view':_0x12165e=>_0x4beb40(0x176)===_0x12165e?null:{'key':_0x4beb40(0x15d),'value':{'list-style-type':_0x12165e}}}),_0x5936a0[_0x4beb40(0x17c)](_0x4beb40(0x188))[_0x4beb40(0x1a6)](_0x1134de=>{const _0x340a94=_0x4beb40;_0x1134de['on'](_0x340a94(0x16e),(_0x10a5c2,_0xf9c9cf,_0x34dd82)=>{const _0xf66238=_0x340a94;if(!_0x34dd82[_0xf66238(0x159)][_0xf66238(0x18f)](_0xf9c9cf[_0xf66238(0x149)],_0x10a5c2[_0xf66238(0x190)]))return;const _0x1f5e64=C(_0xf9c9cf[_0xf66238(0x149)],_0x34dd82[_0xf66238(0x186)]);null===_0xf9c9cf[_0xf66238(0x191)]||void 0x0===_0xf9c9cf[_0xf66238(0x191)]||0x1===_0xf9c9cf[_0xf66238(0x191)]?_0x34dd82[_0xf66238(0x181)][_0xf66238(0x14e)](_0xf66238(0x19f),_0x1f5e64):_0x34dd82[_0xf66238(0x181)][_0xf66238(0x160)](_0xf66238(0x19f),String(_0xf9c9cf[_0xf66238(0x191)]),_0x1f5e64);}),_0x1134de['on'](_0x340a94(0x162),(_0x1db7fa,_0x55cd57,_0x3037cf)=>{const _0x12429d=_0x340a94;if(!_0x3037cf[_0x12429d(0x159)][_0x12429d(0x18f)](_0x55cd57[_0x12429d(0x149)],_0x1db7fa[_0x12429d(0x190)]))return;const _0x1dd0fe=C(_0x55cd57[_0x12429d(0x149)],_0x3037cf[_0x12429d(0x186)]);_0x55cd57[_0x12429d(0x191)]&&_0x12429d(0x176)!==_0x55cd57[_0x12429d(0x191)]?_0x3037cf[_0x12429d(0x181)][_0x12429d(0x174)](_0x12429d(0x18c),_0x55cd57[_0x12429d(0x191)],_0x1dd0fe):_0x3037cf[_0x12429d(0x181)][_0x12429d(0x156)](_0x12429d(0x18c),_0x1dd0fe);});});}[_0x314942(0x196)](){const _0x2ff88f=_0x314942,{editor:_0x4c358e}=this,{model:_0x453bf6}=_0x4c358e,_0x2a923a=_0x4c358e[_0x2ff88f(0x185)][_0x2ff88f(0x197)](_0x5d7667),_0x211a08=this[_0x2ff88f(0x19e)](),_0x5f196b=this[_0x2ff88f(0x1a3)]();_0x453bf6[_0x2ff88f(0x173)][_0x2ff88f(0x189)](_0x43b8dd=>{const _0x3eeeca=_0x2ff88f,_0x47efd5=_0x453bf6[_0x3eeeca(0x173)][_0x3eeeca(0x1a0)][_0x3eeeca(0x164)]();let _0xa0ca42=!0x1;for(const _0x53cf87 of _0x47efd5){if(_0x3eeeca(0x148)!==_0x53cf87[_0x3eeeca(0x157)]||_0x3eeeca(0x153)===_0x53cf87[_0x3eeeca(0x190)])continue;const _0x39eaeb=_0x453bf6[_0x3eeeca(0x152)](_0x53cf87[_0x3eeeca(0x193)][_0x3eeeca(0x15e)]);for(const _0x48c667 of _0x39eaeb[_0x3eeeca(0x194)]())_0x48c667['is'](_0x3eeeca(0x19d),_0x3eeeca(0x166))&&(_0x48c667[_0x3eeeca(0x15a)](_0x3eeeca(0x15f))||(_0x43b8dd[_0x3eeeca(0x160)](_0x3eeeca(0x15f),_0x5f196b,_0x48c667),_0xa0ca42=!0x0),_0x48c667[_0x3eeeca(0x15a)](_0x3eeeca(0x1a8))||(_0x43b8dd[_0x3eeeca(0x160)](_0x3eeeca(0x1a8),_0x211a08,_0x48c667),_0xa0ca42=!0x0));}return _0xa0ca42&&_0x2a923a[_0x3eeeca(0x180)](_0x43b8dd),_0xa0ca42;});}[_0x314942(0x192)](){const _0x57aa14=_0x314942,{editor:_0xd98af7}=this;_0xd98af7[_0x57aa14(0x185)][_0x57aa14(0x197)](_0x5d7667)[_0x57aa14(0x17b)](_0x4f5bd8=>this[_0x57aa14(0x178)](_0x4f5bd8));}[_0x314942(0x19e)](){const _0x4eb91a=_0x314942;return this[_0x4eb91a(0x19a)][_0x4eb91a(0x175)][_0x4eb91a(0x197)](_0x4eb91a(0x146));}[_0x314942(0x1a3)](){const _0x1daae3=_0x314942;return this[_0x1daae3(0x19a)][_0x1daae3(0x175)][_0x1daae3(0x197)](_0x1daae3(0x14c));}[_0x314942(0x178)]({container:_0x1d2526,value:_0x37aa36,digits:_0xcf84c5}){const _0x1e9e1b=_0x314942,_0x5652e0=_0x1d2526[_0x1e9e1b(0x1a9)](_0x1e9e1b(0x1a8)),_0x45a275=_0x1d2526[_0x1e9e1b(0x1a9)](_0x1e9e1b(0x15f)),_0x543999=Math[_0x1e9e1b(0x170)](_0x37aa36)+(_0x45a275-0x1);switch(_0x5652e0){case _0x1e9e1b(0x176):default:return String(_0x543999);case _0x1e9e1b(0x177):return function(_0x21a7bc,_0x15d0be){const _0x3b0a75=_0x1e9e1b;return String(_0x21a7bc)[_0x3b0a75(0x18b)](_0x15d0be,'0');}(_0x543999,Math[_0x1e9e1b(0x17e)](0x2,_0xcf84c5));case _0x1e9e1b(0x171):case _0x1e9e1b(0x198):return M(_0x543999,!0x1);case _0x1e9e1b(0x187):case _0x1e9e1b(0x16b):return M(_0x543999,!0x0);case _0x1e9e1b(0x16d):return A(_0x543999,!0x1);case _0x1e9e1b(0x1a5):return A(_0x543999,!0x0);}}}function C(_0x104bc7,_0x25824c){const _0x310856=_0x314942,_0x4ade33=_0x25824c[_0x310856(0x1a4)](_0x104bc7);return Array[_0x310856(0x16a)](_0x4ade33[_0x310856(0x14f)]())[_0x310856(0x15c)](_0x15c1ae=>_0x15c1ae['is'](_0x310856(0x19d),'ol'));}function M(_0xaddd78,_0x5c6ee0){const _0x14d8cc=_0x314942;let _0x3c205e='',_0x553f21=_0xaddd78;for(;_0x553f21>0x0;){const _0x95c4c=(_0x553f21-0x1)%0x1a;_0x3c205e=String[_0x14d8cc(0x1a2)](0x61+_0x95c4c)+_0x3c205e,_0x553f21=Math[_0x14d8cc(0x170)]((_0x553f21-0x1)/0x1a);}return _0x5c6ee0?_0x3c205e[_0x14d8cc(0x1a1)]():_0x3c205e;}const X=[{'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 A(_0x5a7002,_0x163962){const _0x949e9a=_0x314942;let _0xc3c701='',_0x4b33ef=_0x5a7002;for(const {value:_0x429a18,numeral:_0x252c19}of X)for(;_0x4b33ef>=_0x429a18;)_0xc3c701+=_0x252c19,_0x4b33ef-=_0x429a18;return _0x163962?_0xc3c701:_0xc3c701[_0x949e9a(0x184)]();}
|
|
23
|
+
function _0x39cf(){const _0xeb5c7c=['document','insert','plugins','mapper','2590GxlbMr','upper-roman','differ','12HLBBwo','_defineFormatter','position','attribute:footnotesListStyle:footnotesDefinitions','setStyle','footnotesStart','_updateFootnotesCounters','parseInt','toViewElement','dataDowncast','for','editingDowncast','6039055dOWnfc','getAttribute','footnotes.footnotesProperties.defaultStartIndex','name','init','decimal','isNaN','list-style-type','12768VLwfJx','consume','setAttribute','getChildren','lower-alpha','style','extend','footnotesListStyle','529014KRhsFL','5481KjAnNP','removeAttribute','getChanges','FootnotesPropertiesEditing','removeStyle','registerPostFixer','requires','checkAttribute','getItems','getStyle','7877628zDTTwL','writer','footnotesListStart','_definePostfixer','footnotesStyle','modelRange','consumable','toUpperCase','element:ol','_getDefaultStartIndex','upper-latin','config','start','1rIzYfb','lower-roman','nodeAfter','$text','add','element','attributeToAttribute','isPremiumPlugin','from','floor','50726RLYZQG','_formatFootnoteListValue','_defineSchema','isOfficialPlugin','lower-latin','upcast','decimal-leading-zero','define','toLowerCase','footnotes.footnotesProperties.defaultListStyle','max','footnotesDefinitions','_defineConverters','editor','item','upper-alpha','commands','low','hasAttribute','attributeNewValue','type','setFootnoteFormatter','2525866IbNCfp','padStart','pluginName','10tIkUYr','attribute:footnotesListStart:footnotesDefinitions','get','_getDefaultListStyle','6SCogpp','createRangeOn','3034865bUnkzF','8YVtFwS','fromCharCode','find','model'];_0x39cf=function(){return _0xeb5c7c;};return _0x39cf();}const _0xee852d=_0x3d9b;(function(_0x20caa9,_0x2f96e9){const _0x3872e7=_0x3d9b,_0x2f6e90=_0x20caa9();while(!![]){try{const _0x251de0=-parseInt(_0x3872e7(0x13d))/0x1*(-parseInt(_0x3872e7(0x15d))/0x2)+parseInt(_0x3872e7(0x125))/0x3*(-parseInt(_0x3872e7(0x167))/0x4)+-parseInt(_0x3872e7(0x166))/0x5*(-parseInt(_0x3872e7(0x164))/0x6)+parseInt(_0x3872e7(0x126))/0x7*(-parseInt(_0x3872e7(0x11d))/0x8)+-parseInt(_0x3872e7(0x130))/0x9*(-parseInt(_0x3872e7(0x160))/0xa)+-parseInt(_0x3872e7(0x115))/0xb*(-parseInt(_0x3872e7(0x172))/0xc)+parseInt(_0x3872e7(0x147))/0xd*(-parseInt(_0x3872e7(0x16f))/0xe);if(_0x251de0===_0x2f96e9)break;else _0x2f6e90['push'](_0x2f6e90['shift']());}catch(_0x2e9e17){_0x2f6e90['push'](_0x2f6e90['shift']());}}}(_0x39cf,0xecd05));import{Plugin as _0x21c103}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x4e62df}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x11a0cf}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x36ff37}from'../footnotestracker.js';import{FootnotesEditing as _0x390944}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x21c103{static get[_0xee852d(0x15f)](){const _0x3afde0=_0xee852d;return _0x3afde0(0x129);}static get[_0xee852d(0x12c)](){return[_0x390944,_0x36ff37];}static get[_0xee852d(0x14a)](){return!0x0;}static get[_0xee852d(0x144)](){return!0x0;}[_0xee852d(0x119)](){const _0xb317e7=_0xee852d,{editor:_0x2714c5}=this;_0x2714c5[_0xb317e7(0x13b)][_0xb317e7(0x14e)](_0xb317e7(0x150),_0xb317e7(0x11a)),_0x2714c5[_0xb317e7(0x13b)][_0xb317e7(0x14e)](_0xb317e7(0x117),0x1),_0x2714c5[_0xb317e7(0x157)][_0xb317e7(0x141)](_0xb317e7(0x134),new _0x4e62df(_0x2714c5)),_0x2714c5[_0xb317e7(0x157)][_0xb317e7(0x141)](_0xb317e7(0x177),new _0x11a0cf(_0x2714c5)),this[_0xb317e7(0x149)](),this[_0xb317e7(0x153)](),this[_0xb317e7(0x173)](),this[_0xb317e7(0x133)]();}[_0xee852d(0x149)](){const _0x191d6f=_0xee852d,{editor:_0x3c78d8}=this,{schema:_0x30e51a}=_0x3c78d8[_0x191d6f(0x16a)];_0x30e51a[_0x191d6f(0x123)](_0x191d6f(0x152),{'allowAttributes':[_0x191d6f(0x124),_0x191d6f(0x132)]});}[_0xee852d(0x153)](){const _0x32aa49=_0xee852d,{editor:_0x3656ec}=this,{conversion:_0x31211a,model:_0x3b8f4a}=_0x3656ec,{schema:_0x45d503}=_0x3b8f4a;_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x32aa49(0x124),'value':_0x98715a=>_0x98715a[_0x32aa49(0x12f)](_0x32aa49(0x11c))}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x32aa49(0x132),'value':_0x562cc5=>{const _0x188447=_0x32aa49,_0x154808=_0x562cc5[_0x188447(0x116)](_0x188447(0x13c)),_0x2013a6=Number[_0x188447(0x179)](_0x154808,0xa);return Number[_0x188447(0x11b)](_0x2013a6)?null:_0x2013a6;}}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x143)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x32aa49(0x124),'value':_0x387ec6=>({0x1:_0x32aa49(0x11a),'a':_0x32aa49(0x121),'A':_0x32aa49(0x156),'i':_0x32aa49(0x13e),'I':_0x32aa49(0x170)}[_0x387ec6[_0x32aa49(0x116)](_0x32aa49(0x15b))])}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x14c))[_0x32aa49(0x141)](_0x45bf87=>{const _0x116042=_0x32aa49;_0x45bf87['on'](_0x116042(0x138),(_0x20a249,_0x298bdc,_0x126686)=>{const _0x2c9bea=_0x116042,_0x59e96c=_0x298bdc[_0x2c9bea(0x135)]?.[_0x2c9bea(0x13c)][_0x2c9bea(0x13f)];_0x59e96c?.['is'](_0x2c9bea(0x142),_0x2c9bea(0x152))&&(!_0x59e96c[_0x2c9bea(0x159)](_0x2c9bea(0x124))&&_0x45d503[_0x2c9bea(0x12d)](_0x59e96c,_0x2c9bea(0x124))&&_0x126686[_0x2c9bea(0x131)][_0x2c9bea(0x11f)](_0x2c9bea(0x124),_0x2c9bea(0x11a),_0x59e96c),!_0x59e96c[_0x2c9bea(0x159)](_0x2c9bea(0x132))&&_0x45d503[_0x2c9bea(0x12d)](_0x59e96c,_0x2c9bea(0x132))&&_0x126686[_0x2c9bea(0x131)][_0x2c9bea(0x11f)](_0x2c9bea(0x132),0x1,_0x59e96c));},{'priority':_0x116042(0x158)});}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17b))[_0x32aa49(0x143)]({'model':{'name':_0x32aa49(0x152),'key':_0x32aa49(0x132)},'view':_0x4ecaa3=>0x1===_0x4ecaa3?null:{'key':_0x32aa49(0x13c),'value':String(_0x4ecaa3)}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17b))[_0x32aa49(0x143)]({'model':{'name':_0x32aa49(0x152),'key':_0x32aa49(0x124)},'view':_0x1cebd6=>_0x32aa49(0x11a)===_0x1cebd6?null:{'key':_0x32aa49(0x122),'value':{'list-style-type':_0x1cebd6}}}),_0x31211a[_0x32aa49(0x17c)](_0x32aa49(0x17d))[_0x32aa49(0x141)](_0x4b504d=>{const _0x39bdc9=_0x32aa49;_0x4b504d['on'](_0x39bdc9(0x161),(_0x4df6b0,_0x230c54,_0x508502)=>{const _0x2b8dea=_0x39bdc9;if(!_0x508502[_0x2b8dea(0x136)][_0x2b8dea(0x11e)](_0x230c54[_0x2b8dea(0x155)],_0x4df6b0[_0x2b8dea(0x118)]))return;const _0x43921b=C(_0x230c54[_0x2b8dea(0x155)],_0x508502[_0x2b8dea(0x16e)]);null===_0x230c54[_0x2b8dea(0x15a)]||void 0x0===_0x230c54[_0x2b8dea(0x15a)]||0x1===_0x230c54[_0x2b8dea(0x15a)]?_0x508502[_0x2b8dea(0x131)][_0x2b8dea(0x127)](_0x2b8dea(0x13c),_0x43921b):_0x508502[_0x2b8dea(0x131)][_0x2b8dea(0x11f)](_0x2b8dea(0x13c),String(_0x230c54[_0x2b8dea(0x15a)]),_0x43921b);}),_0x4b504d['on'](_0x39bdc9(0x175),(_0xae5db5,_0x2764a9,_0x305202)=>{const _0x113e4b=_0x39bdc9;if(!_0x305202[_0x113e4b(0x136)][_0x113e4b(0x11e)](_0x2764a9[_0x113e4b(0x155)],_0xae5db5[_0x113e4b(0x118)]))return;const _0x1fb62a=C(_0x2764a9[_0x113e4b(0x155)],_0x305202[_0x113e4b(0x16e)]);_0x2764a9[_0x113e4b(0x15a)]&&_0x113e4b(0x11a)!==_0x2764a9[_0x113e4b(0x15a)]?_0x305202[_0x113e4b(0x131)][_0x113e4b(0x176)](_0x113e4b(0x11c),_0x2764a9[_0x113e4b(0x15a)],_0x1fb62a):_0x305202[_0x113e4b(0x131)][_0x113e4b(0x12a)](_0x113e4b(0x11c),_0x1fb62a);});});}[_0xee852d(0x133)](){const _0x2b8689=_0xee852d,{editor:_0x3e6313}=this,{model:_0x4aced1}=_0x3e6313,_0x224650=_0x3e6313[_0x2b8689(0x16d)][_0x2b8689(0x162)](_0x36ff37),_0x4717f2=this[_0x2b8689(0x163)](),_0x1e3915=this[_0x2b8689(0x139)]();_0x4aced1[_0x2b8689(0x16b)][_0x2b8689(0x12b)](_0x22576e=>{const _0x6b0474=_0x2b8689,_0x485d1a=_0x4aced1[_0x6b0474(0x16b)][_0x6b0474(0x171)][_0x6b0474(0x128)]();let _0x4cc317=!0x1;for(const _0x2dca33 of _0x485d1a){if(_0x6b0474(0x16c)!==_0x2dca33[_0x6b0474(0x15b)]||_0x6b0474(0x140)===_0x2dca33[_0x6b0474(0x118)])continue;const _0x5a7750=_0x4aced1[_0x6b0474(0x165)](_0x2dca33[_0x6b0474(0x174)][_0x6b0474(0x13f)]);for(const _0x1cfdae of _0x5a7750[_0x6b0474(0x12e)]())_0x1cfdae['is'](_0x6b0474(0x142),_0x6b0474(0x152))&&(_0x1cfdae[_0x6b0474(0x159)](_0x6b0474(0x132))||(_0x22576e[_0x6b0474(0x11f)](_0x6b0474(0x132),_0x1e3915,_0x1cfdae),_0x4cc317=!0x0),_0x1cfdae[_0x6b0474(0x159)](_0x6b0474(0x124))||(_0x22576e[_0x6b0474(0x11f)](_0x6b0474(0x124),_0x4717f2,_0x1cfdae),_0x4cc317=!0x0));}return _0x4cc317&&_0x224650[_0x6b0474(0x178)](_0x22576e),_0x4cc317;});}[_0xee852d(0x173)](){const _0x8086c7=_0xee852d,{editor:_0x5cbb03}=this;_0x5cbb03[_0x8086c7(0x16d)][_0x8086c7(0x162)](_0x36ff37)[_0x8086c7(0x15c)](_0x177c0f=>this[_0x8086c7(0x148)](_0x177c0f));}[_0xee852d(0x163)](){const _0x2166d8=_0xee852d;return this[_0x2166d8(0x154)][_0x2166d8(0x13b)][_0x2166d8(0x162)](_0x2166d8(0x150));}[_0xee852d(0x139)](){const _0x99c431=_0xee852d;return this[_0x99c431(0x154)][_0x99c431(0x13b)][_0x99c431(0x162)](_0x99c431(0x117));}[_0xee852d(0x148)]({container:_0x415f73,value:_0x5ecc7f,digits:_0x574143}){const _0x191ad6=_0xee852d,_0x3ba843=_0x415f73[_0x191ad6(0x116)](_0x191ad6(0x124)),_0x461a1f=_0x415f73[_0x191ad6(0x116)](_0x191ad6(0x132)),_0x324b2a=Math[_0x191ad6(0x146)](_0x5ecc7f)+(_0x461a1f-0x1);switch(_0x3ba843){case _0x191ad6(0x11a):default:return String(_0x324b2a);case _0x191ad6(0x14d):return function(_0x31387d,_0x1876be){const _0x4cfaec=_0x191ad6;return String(_0x31387d)[_0x4cfaec(0x15e)](_0x1876be,'0');}(_0x324b2a,Math[_0x191ad6(0x151)](0x2,_0x574143));case _0x191ad6(0x121):case _0x191ad6(0x14b):return M(_0x324b2a,!0x1);case _0x191ad6(0x156):case _0x191ad6(0x13a):return M(_0x324b2a,!0x0);case _0x191ad6(0x13e):return A(_0x324b2a,!0x1);case _0x191ad6(0x170):return A(_0x324b2a,!0x0);}}}function C(_0x30f04c,_0x5a6136){const _0x1212bb=_0xee852d,_0x5bdc3b=_0x5a6136[_0x1212bb(0x17a)](_0x30f04c);return Array[_0x1212bb(0x145)](_0x5bdc3b[_0x1212bb(0x120)]())[_0x1212bb(0x169)](_0x400394=>_0x400394['is'](_0x1212bb(0x142),'ol'));}function M(_0x224600,_0x188df3){const _0x36e415=_0xee852d;let _0x359b32='',_0x4f5aa2=_0x224600;for(;_0x4f5aa2>0x0;){const _0x1c7549=(_0x4f5aa2-0x1)%0x1a;_0x359b32=String[_0x36e415(0x168)](0x61+_0x1c7549)+_0x359b32,_0x4f5aa2=Math[_0x36e415(0x146)]((_0x4f5aa2-0x1)/0x1a);}return _0x188df3?_0x359b32[_0x36e415(0x137)]():_0x359b32;}const X=[{'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 _0x3d9b(_0x44106b,_0x12447c){const _0x39cf11=_0x39cf();return _0x3d9b=function(_0x3d9b23,_0x146b18){_0x3d9b23=_0x3d9b23-0x115;let _0x48df6a=_0x39cf11[_0x3d9b23];return _0x48df6a;},_0x3d9b(_0x44106b,_0x12447c);}function A(_0x455452,_0x54b690){const _0x39eaba=_0xee852d;let _0x1f8e19='',_0x4b7b98=_0x455452;for(const {value:_0x2f3b01,numeral:_0xa54264}of X)for(;_0x4b7b98>=_0x2f3b01;)_0x1f8e19+=_0xa54264,_0x4b7b98-=_0x2f3b01;return _0x54b690?_0x1f8e19:_0x1f8e19[_0x39eaba(0x14f)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x4d3148,ButtonView as _0x359eef,ContextualBalloon as _0x158621,createDropdown as _0x39c42d}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x5a64d6}from'ckeditor5/src/widget.js';import{Plugin as _0xe43f2f}from'ckeditor5/src/core.js';import{IconFootnote as _0x481773,IconListStyleDecimal as _0x179f69,IconListStyleDecimalLeadingZero as _0x56aeb8,IconListStyleLowerLatin as _0x7d6ad7,IconListStyleLowerRoman as _0x662fca,IconListStyleUpperLatin as _0x228073,IconListStyleUpperRoman as _0x3913b5}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x10b48d}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2fc6e8}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0xe43f2f{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x158621,_0x5a64d6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b37d0}=this,{componentFactory:_0x25945e}=_0x2b37d0['ui'];_0x2b37d0['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x25945e['add']('footnotesStyle',function(_0x262e3b){return _0x33e90d=>{const {t:t}=_0x33e90d,_0xbb8efc=_0x262e3b['commands']['get']('footnotesStyle'),_0x67cd73=_0x39c42d(_0x33e90d),{buttonView:_0x4f8b9b}=_0x67cd73;return _0x67cd73['class']='ck-footnotes-styles-dropdown',_0x67cd73['bind']('isEnabled')['to'](_0xbb8efc,'isEnabled'),_0x4f8b9b['set']({'label':t('Footnotes\x20style'),'icon':_0x481773,'tooltip':!0x0}),_0x67cd73['once']('change:isOpen',()=>{const _0x342b38=function({editor:_0x4e8a05,dropdownView:_0x34eeb1}){const {t:t}=_0x4e8a05['locale'],_0xcfca7d=t('Footnotes\x20definitions\x20styles'),_0x24264b=function(_0x4838d6){const t=_0x4838d6['locale']['t'],_0x1dda85=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x179f69},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x56aeb8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x662fca},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3913b5},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x7d6ad7},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x228073}];return _0x1dda85['map'](function(_0x184834){const _0xa8d6e1=_0x184834['locale'];return({label:_0x18622c,icon:_0x4d1d24,tooltip:_0x54343e,style:_0x273801})=>{const _0x29738a=_0x184834['commands']['get']('footnotesStyle'),_0x40674b=new _0x359eef(_0xa8d6e1);return _0x40674b['set']({'label':_0x18622c,'icon':_0x4d1d24,'tooltip':_0x54343e}),_0x40674b['bind']('isOn')['to'](_0x29738a,'value',_0x34b04c=>_0x34b04c===_0x273801),_0x40674b['bind']('isEnabled')['to'](_0x29738a,'isEnabled'),_0x40674b['on']('execute',()=>{_0x184834['execute']('footnotesStyle',{'value':_0x273801}),_0x184834['editing']['view']['focus']();}),_0x40674b;};}(_0x4838d6));}(_0x4e8a05),_0x1ab040=new _0x10b48d(_0x4e8a05['locale'],{'styleGridAriaLabel':_0xcfca7d,'styleButtonViews':_0x24264b});return _0x1ab040['delegate']('execute')['to'](_0x34eeb1),_0x1ab040['on']('footnotesListStart',(_0x2005d4,_0x1717c8)=>{_0x4e8a05['execute']('footnotesStart',{'value':_0x1717c8['startIndex']});}),_0x1ab040;}({'editor':_0x262e3b,'dropdownView':_0x67cd73});_0x67cd73['panelView']['children']['add'](_0x342b38);}),_0x67cd73;};}(_0x2b37d0));}['afterInit'](){const {editor:_0x2a8045}=this,{t:t}=_0x2a8045['locale'],_0x42489f=_0x2a8045['plugins']['get'](_0x5a64d6),{defaultPositions:_0x5c9fc7}=_0x4d3148;_0x42489f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2a8045['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5c008c=>{let _0x5aeb9f=_0x5c008c['getFirstPosition']()?.['parent'];return _0x5aeb9f?.['is']('$text')&&(_0x5aeb9f=_0x5aeb9f['parent']),_0x5aeb9f?.['is']('element')?_0x5aeb9f['findAncestor'](_0x2fc6e8):null;},'positions':[_0x5c9fc7['southArrowNorth'],_0x5c9fc7['southArrowNorthMiddleWest'],_0x5c9fc7['southArrowNorthMiddleEast'],_0x5c9fc7['southArrowNorthWest'],_0x5c9fc7['southArrowNorthEast'],_0x5c9fc7['northArrowSouth'],_0x5c9fc7['northArrowSouthMiddleWest'],_0x5c9fc7['northArrowSouthMiddleEast'],_0x5c9fc7['northArrowSouthWest'],_0x5c9fc7['northArrowSouthEast'],_0x5c9fc7['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2267d,View as _0x1a111f,ViewCollection as _0x145649,FocusCycler as _0x1d2618,addKeyboardHandlingForGrid as _0x2503b5,CollapsibleView as _0x27a0ed,LabeledFieldView as tt,createLabeledInputNumber as st}from'ckeditor5/src/ui.js';import{FocusTracker as it,KeystrokeHandler as et,global as ot}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x1a111f{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x145649();['focusCycler'];constructor(_0x4c9faa,{styleButtonViews:_0x187da2,styleGridAriaLabel:_0x120855}){super(_0x4c9faa),(this['focusCycler']=new _0x1d2618({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x187da2,_0x120855),[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 _0x3cad0f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3cad0f['element']);_0x2503b5({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x4e76e0=_0x587113=>_0x587113['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e76e0),this['keystrokes']['set']('arrowleft',_0x4e76e0),this['keystrokes']['set']('arrowup',_0x4e76e0),this['keystrokes']['set']('arrowdown',_0x4e76e0);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3a240c,_0x61244b){const _0x157d1f=new _0x1a111f(this['locale']);return _0x157d1f['children']=_0x157d1f['createCollection'](),_0x157d1f['children']['addMany'](_0x3a240c),_0x157d1f['setTemplate']({'tag':'div','attributes':{'aria-label':_0x61244b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x157d1f['children']}),_0x157d1f['children']['delegate']('execute')['to'](this),_0x157d1f['focus']=function(){for(const _0xb54d06 of this['children'])if(_0xb54d06 instanceof _0x2267d&&_0xb54d06['isOn'])return void _0xb54d06['focus']();this['children']['first']['focus']();},_0x157d1f['focusTracker']=new it(),_0x157d1f['keystrokes']=new et(),_0x157d1f['render'](),_0x157d1f['keystrokes']['listenTo'](_0x157d1f['element']),this['children']['add'](_0x157d1f),_0x157d1f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5a3bd0=this['_createStartIndexPropertyView'](),_0x45792b=[_0x5a3bd0],_0x28892b=new _0x27a0ed(this['locale'],_0x45792b);return _0x28892b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x28892b['buttonView']['bind']('isEnabled')['toMany'](_0x45792b,'isEnabled',(..._0x375afc)=>_0x375afc['some'](_0x2ab1d8=>_0x2ab1d8)),_0x28892b['buttonView']['on']('change:isEnabled',(_0x5316aa,_0x364ab3,_0x3c6c19)=>{_0x3c6c19||(_0x28892b['isCollapsed']=!0x0);}),this['children']['add'](_0x28892b),[_0x5a3bd0,_0x28892b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4c6a95=new tt(this['locale'],st);return _0x4c6a95['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4c6a95['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4c6a95['fieldView']['on']('input',()=>{const _0x29c802=_0x4c6a95['fieldView']['element'],_0x49c3fd=_0x29c802['valueAsNumber'];Number['isNaN'](_0x49c3fd)?_0x4c6a95['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x29c802['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x49c3fd}):_0x4c6a95['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4c6a95;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1517(_0x32b56a,_0x4197b4){var _0x380d8b=_0x380d();return _0x1517=function(_0x151745,_0x3f92eb){_0x151745=_0x151745-0xad;var _0x2c099e=_0x380d8b[_0x151745];return _0x2c099e;},_0x1517(_0x32b56a,_0x4197b4);}function _0x380d(){var _0x13a9b9=['403251xryoUk','10877657hBJATP','isPremiumPlugin','20chXESF','isOfficialPlugin','28036107iDyifQ','890oddnZc','requires','388692ufWaNg','pluginName','6012foJZtg','11344kLxivr','FootnotesProperties','685nYzcOk','44MfwwOb','2185670kpFrfS'];_0x380d=function(){return _0x13a9b9;};return _0x380d();}var _0x1d85e5=_0x1517;(function(_0x2ed380,_0x36d0d7){var _0x3a90c7=_0x1517,_0x309af5=_0x2ed380();while(!![]){try{var _0x2f485a=-parseInt(_0x3a90c7(0xb4))/0x1*(parseInt(_0x3a90c7(0xad))/0x2)+-parseInt(_0x3a90c7(0xb7))/0x3*(parseInt(_0x3a90c7(0xb5))/0x4)+parseInt(_0x3a90c7(0xba))/0x5*(-parseInt(_0x3a90c7(0xaf))/0x6)+parseInt(_0x3a90c7(0xb8))/0x7+parseInt(_0x3a90c7(0xb2))/0x8*(-parseInt(_0x3a90c7(0xb1))/0x9)+-parseInt(_0x3a90c7(0xb6))/0xa+parseInt(_0x3a90c7(0xbc))/0xb;if(_0x2f485a===_0x36d0d7)break;else _0x309af5['push'](_0x309af5['shift']());}catch(_0xe9feca){_0x309af5['push'](_0x309af5['shift']());}}}(_0x380d,0xda595));import{Plugin as _0x1b411b}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x5820d1}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x228663}from'./footnotesproperties/footnotespropertiesui.js';export class FootnotesProperties extends _0x1b411b{static get[_0x1d85e5(0xb0)](){var _0x47cd0c=_0x1d85e5;return _0x47cd0c(0xb3);}static get[_0x1d85e5(0xae)](){return[_0x5820d1,_0x228663];}static get[_0x1d85e5(0xbb)](){return!0x0;}static get[_0x1d85e5(0xb9)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2924(_0x459cd1,_0x4205ca){const _0x149e00=_0x149e();return _0x2924=function(_0x29242b,_0x549854){_0x29242b=_0x29242b-0x67;let _0x1a56fa=_0x149e00[_0x29242b];return _0x1a56fa;},_0x2924(_0x459cd1,_0x4205ca);}const _0x2a0438=_0x2924;(function(_0x4ef276,_0x3d9c23){const _0x4e13ce=_0x2924,_0x111e56=_0x4ef276();while(!![]){try{const _0x15a778=parseInt(_0x4e13ce(0xac))/0x1*(parseInt(_0x4e13ce(0x68))/0x2)+-parseInt(_0x4e13ce(0x6d))/0x3*(parseInt(_0x4e13ce(0x78))/0x4)+-parseInt(_0x4e13ce(0xbd))/0x5*(parseInt(_0x4e13ce(0xb9))/0x6)+-parseInt(_0x4e13ce(0xb4))/0x7+parseInt(_0x4e13ce(0x90))/0x8*(-parseInt(_0x4e13ce(0xa2))/0x9)+parseInt(_0x4e13ce(0x85))/0xa+parseInt(_0x4e13ce(0xc0))/0xb*(parseInt(_0x4e13ce(0xbe))/0xc);if(_0x15a778===_0x3d9c23)break;else _0x111e56['push'](_0x111e56['shift']());}catch(_0x2b8e29){_0x111e56['push'](_0x111e56['shift']());}}}(_0x149e,0xb319e));import{Plugin as _0x1729e4}from'ckeditor5/src/core.js';import{ModelElementTracker as _0x31185f}from'./modelelementtracker.js';export class FootnotesTracker extends _0x1729e4{[_0x2a0438(0xaf)]=[];[_0x2a0438(0x70)]=null;[_0x2a0438(0xa5)]=null;[_0x2a0438(0x6a)];[_0x2a0438(0xbc)];[_0x2a0438(0xbf)];static get[_0x2a0438(0xc1)](){const _0x464a19=_0x2a0438;return _0x464a19(0xa8);}static get[_0x2a0438(0x72)](){return!0x0;}static get[_0x2a0438(0x84)](){return!0x0;}constructor(_0x561779){const _0x4e7966=_0x2a0438;super(_0x561779),this[_0x4e7966(0x6a)]=new _0x31185f(this[_0x4e7966(0x89)][_0x4e7966(0x6f)],{'elementName':_0x4e7966(0x6c),'getElementKey':()=>_0x4e7966(0xc6)}),this[_0x4e7966(0xbc)]=new _0x31185f(this[_0x4e7966(0x89)][_0x4e7966(0x6f)],{'elementName':_0x4e7966(0x9d),'getElementKey':_0x599b8c=>_0x599b8c[_0x4e7966(0xc5)](_0x4e7966(0x8a))}),this[_0x4e7966(0xbf)]=new _0x31185f(this[_0x4e7966(0x89)][_0x4e7966(0x6f)],{'elementName':_0x4e7966(0xca),'getElementKey':_0x50d74b=>_0x50d74b[_0x4e7966(0xc5)](_0x4e7966(0x8a))});}[_0x2a0438(0x8d)](){const _0x2dd8f9=_0x2a0438,{editor:_0x5b1e17}=this,{model:_0x5b28e0}=_0x5b1e17;_0x5b28e0[_0x2dd8f9(0xa7)][_0x2dd8f9(0x97)](_0x1cd2ec=>{const _0x3e3494=_0x2dd8f9,_0x25dc6f=_0x5b28e0[_0x3e3494(0xa7)][_0x3e3494(0x91)][_0x3e3494(0xb8)]();let _0x6b4a06=!0x1;return this[_0x3e3494(0xb2)](_0x1cd2ec,_0x25dc6f)&&(_0x6b4a06=!0x0),this[_0x3e3494(0x77)](_0x1cd2ec,_0x25dc6f)&&(_0x6b4a06=!0x0),this[_0x3e3494(0x76)](_0x1cd2ec,_0x25dc6f)&&(_0x6b4a06=!0x0),this[_0x3e3494(0x67)](_0x1cd2ec)&&(_0x6b4a06=!0x0),this[_0x3e3494(0xba)](_0x1cd2ec)&&(_0x6b4a06=!0x0),this[_0x3e3494(0xb0)](_0x1cd2ec)&&(_0x6b4a06=!0x0),_0x6b4a06;}),this[_0x2dd8f9(0xb6)](_0x5b28e0[_0x2dd8f9(0xa7)],_0x2dd8f9(0x9f),()=>{const _0x1c7c78=_0x2dd8f9;_0x5b28e0[_0x1c7c78(0xa0)]({'isUndoable':!0x1},_0x28846e=>{const _0x25d466=_0x1c7c78;this[_0x25d466(0x9e)](_0x28846e);});},{'priority':_0x2dd8f9(0x87)});}[_0x2a0438(0x74)](){const _0x559daf=_0x2a0438;return this[_0x559daf(0x70)];}[_0x2a0438(0x7c)](_0x35fb2e){const _0x35e1d8=_0x2a0438;return this[_0x35e1d8(0xaf)][_0x35e1d8(0xab)](_0x356bc1=>_0x356bc1['id']===_0x35fb2e)||null;}[_0x2a0438(0x7b)](){const _0x12b449=_0x2a0438;return Array[_0x12b449(0x6e)](this[_0x12b449(0xaf)]);}[_0x2a0438(0x7d)](){const _0x289969=_0x2a0438;return this[_0x289969(0xa5)];}[_0x2a0438(0x75)](_0x54ff03){const _0x40c37c=_0x2a0438;this[_0x40c37c(0xa5)]=_0x54ff03;}[_0x2a0438(0x73)](_0x468b32,_0x155012=0x0){const _0x279753=_0x2a0438;let _0x53faf0=!0x1;for(let _0x550b6b=_0x155012;_0x550b6b<this[_0x279753(0xaf)][_0x279753(0x8e)];_0x550b6b++)this[_0x279753(0xad)](_0x468b32,_0x550b6b)&&(_0x53faf0=!0x0);return _0x53faf0;}[_0x2a0438(0x7e)](_0x5dded0,_0x261dbe){const _0x33854a=_0x2a0438,_0x5ea66e=_0x5dded0[_0x33854a(0x95)](_0x33854a(0x6c),{});return _0x5dded0[_0x33854a(0xc7)](_0x5ea66e,_0x261dbe),this[_0x33854a(0x70)]=_0x5ea66e,_0x5ea66e;}[_0x2a0438(0x9e)](_0x44b0c2){const _0x32ca01=_0x2a0438;if(!this[_0x32ca01(0xaf)][_0x32ca01(0x8e)]||this[_0x32ca01(0x70)])return;const _0x1e8180=this[_0x32ca01(0xaf)][0x0][_0x32ca01(0xbb)][_0x32ca01(0xc2)],_0x4f738b=this[_0x32ca01(0x7e)](_0x44b0c2,_0x1e8180);for(const _0x5e06fd of this[_0x32ca01(0xaf)])_0x5e06fd[_0x32ca01(0x86)][_0x32ca01(0xa1)]||_0x44b0c2[_0x32ca01(0xa6)](_0x5e06fd[_0x32ca01(0x86)],_0x4f738b,_0x32ca01(0x9c));this[_0x32ca01(0x73)](_0x44b0c2);}[_0x2a0438(0xb2)](_0x1eae17,_0x905ef9){const _0x5ea311=_0x2a0438;let _0x21b668=!0x1;const {inserted:_0xaec386,removed:_0x18d0fe,moved:_0xca4611}=this[_0x5ea311(0x6a)][_0x5ea311(0xb8)](_0x905ef9);if(_0xca4611[_0x5ea311(0x8e)]&&(this[_0x5ea311(0x70)]=_0xca4611[0x0]),_0xaec386[_0x5ea311(0x8e)]){if(_0xaec386[_0x5ea311(0x8e)]>0x1||this[_0x5ea311(0x70)]&&_0xaec386[_0x5ea311(0xc9)](_0x1c1fba=>_0x1c1fba!==this[_0x5ea311(0x70)])){const _0x5eb433=_0x1eae17[_0x5ea311(0x95)](_0x5ea311(0x6c),{}),_0x3ebdd0=[];this[_0x5ea311(0x70)]&&_0x3ebdd0[_0x5ea311(0x96)](this[_0x5ea311(0x70)]),_0x3ebdd0[_0x5ea311(0x96)](..._0xaec386),_0x1eae17[_0x5ea311(0xa6)](_0x5eb433,_0x3ebdd0[0x0],_0x5ea311(0xcb));for(const _0x4596bf of _0x3ebdd0)_0x1eae17[_0x5ea311(0x8f)](_0x1eae17[_0x5ea311(0x8c)](_0x4596bf),_0x1eae17[_0x5ea311(0x79)](_0x5eb433,_0x5ea311(0x9c))),_0x1eae17[_0x5ea311(0xb7)](_0x4596bf);this[_0x5ea311(0x70)]=_0x5eb433,this[_0x5ea311(0x73)](_0x1eae17),_0x21b668=!0x0;}else this[_0x5ea311(0x70)]=_0xaec386[0x0];}if(_0x18d0fe[_0x5ea311(0x8e)]&&_0x5ea311(0xb1)===this[_0x5ea311(0x70)]?.[_0x5ea311(0xc2)][_0x5ea311(0x7f)]){for(const _0x1f0018 of this[_0x5ea311(0xaf)])_0x1eae17[_0x5ea311(0xb7)](_0x1f0018[_0x5ea311(0xbb)]),_0x21b668=!0x0;this[_0x5ea311(0xaf)]=[],this[_0x5ea311(0x70)]=null;}return _0x21b668;}[_0x2a0438(0x77)](_0x19a624,_0x457c51){const _0x821ffb=_0x2a0438;let _0xb32f58=!0x1;const _0xa3439b=this[_0x821ffb(0x89)][_0x821ffb(0x6b)][_0x821ffb(0x80)](_0x821ffb(0x9a)),{inserted:_0x2ee4f3,moved:_0x2070c4}=this[_0x821ffb(0xbf)][_0x821ffb(0xb8)](_0x457c51);for(const _0x110737 of[..._0x2070c4,..._0x2ee4f3]){const _0x3b0460=_0x110737[_0x821ffb(0xc5)](_0x821ffb(0x8a)),_0x4f5e8e=this[_0x821ffb(0x7c)](_0x3b0460);_0x4f5e8e&&(_0x4f5e8e[_0x821ffb(0x86)]=_0x110737),_(_0x19a624,_0xa3439b,_0x110737)&&(_0xb32f58=!0x0);}return _0xb32f58;}[_0x2a0438(0x76)](_0x3c8d78,_0x3e14b3){const _0x165c24=_0x2a0438;let _0x4c8155=!0x1;const {removed:_0x3ee52e,inserted:_0x4f45b7,moved:_0x343810}=this[_0x165c24(0xbc)][_0x165c24(0xb8)](_0x3e14b3);for(const _0x3e8d26 of _0x3ee52e)this[_0x165c24(0xc3)](_0x3c8d78,_0x3e8d26)&&(_0x4c8155=!0x0);for(const _0x4eb4ec of _0x4f45b7)this[_0x165c24(0xa4)](_0x3c8d78,_0x4eb4ec)&&(_0x4c8155=!0x0);for(const _0x3fa69f of _0x343810)this[_0x165c24(0x7a)](_0x3c8d78,_0x3fa69f)&&(_0x4c8155=!0x0);return _0x4c8155;}[_0x2a0438(0xba)](_0x506846){const _0x482e2c=_0x2a0438;if(!this[_0x482e2c(0x70)])return!0x1;let _0x45caa5=!0x1;if(this[_0x482e2c(0x70)][_0x482e2c(0x8b)]!==this[_0x482e2c(0xaf)][_0x482e2c(0x8e)]){const _0x32f4c8=[];for(const _0x54823d of this[_0x482e2c(0x70)][_0x482e2c(0x9b)]()){const _0xb04651=_0x54823d[_0x482e2c(0xc5)](_0x482e2c(0x8a));this[_0x482e2c(0x7c)](_0xb04651)||(_0x32f4c8[_0x482e2c(0x93)](_0x54823d),_0x45caa5=!0x0);}for(const _0x2c23e2 of _0x32f4c8)_0x506846[_0x482e2c(0xb7)](_0x2c23e2);}const _0x436416=new Set(),_0x121ad9=[];for(const _0x1bc137 of this[_0x482e2c(0x70)][_0x482e2c(0x9b)]()){const _0x35919b=_0x1bc137[_0x482e2c(0xc5)](_0x482e2c(0x8a));_0x436416[_0x482e2c(0xb5)](_0x35919b)?(_0x121ad9[_0x482e2c(0x93)](_0x1bc137),_0x45caa5=!0x0):_0x436416[_0x482e2c(0xae)](_0x35919b);}for(const _0x2ff27a of _0x121ad9)_0x506846[_0x482e2c(0xb7)](_0x2ff27a);return this[_0x482e2c(0x70)][_0x482e2c(0x8b)]||(_0x506846[_0x482e2c(0xb7)](this[_0x482e2c(0x70)]),this[_0x482e2c(0x70)]=null,_0x45caa5=!0x0),_0x45caa5;}[_0x2a0438(0xa4)](_0x557420,_0x265abb){const _0x27e50e=_0x2a0438;if(this[_0x27e50e(0xaf)][_0x27e50e(0xab)](_0x5942ca=>_0x5942ca[_0x27e50e(0xbb)]===_0x265abb))return!0x1;let _0x4929fd=!0x1;const _0x3475ff=_0x265abb[_0x27e50e(0xc5)](_0x27e50e(0x8a)),_0x16187b=this[_0x27e50e(0x7c)](_0x3475ff);_0x16187b&&(_0x557420[_0x27e50e(0xb7)](_0x16187b[_0x27e50e(0xbb)]),this[_0x27e50e(0xaf)]=this[_0x27e50e(0xaf)][_0x27e50e(0x92)](_0x59a55a=>_0x59a55a['id']!==_0x3475ff),_0x4929fd=!0x0);let _0x25f6a9=this[_0x27e50e(0x70)]?function(_0x3d550c,_0x446f85){const _0x54cde7=_0x27e50e;for(const _0x577645 of _0x3d550c[_0x54cde7(0x9b)]())if(_0x577645[_0x54cde7(0xc5)](_0x54cde7(0x8a))===_0x446f85)return _0x577645;return null;}(this[_0x27e50e(0x70)],_0x3475ff):null;_0x25f6a9||(_0x25f6a9=_0x557420[_0x27e50e(0x95)](_0x27e50e(0xca),{'footnoteId':_0x3475ff}),this[_0x27e50e(0x70)]&&(_0x557420[_0x27e50e(0xa6)](_0x25f6a9,this[_0x27e50e(0x70)],_0x27e50e(0x9c)),_0x4929fd=!0x0));const _0x42286b={'id':_0x3475ff,'reference':_0x265abb,'definition':_0x25f6a9},_0x1a33b3=I(this[_0x27e50e(0x89)][_0x27e50e(0x6f)],this[_0x27e50e(0xaf)],_0x265abb);return this[_0x27e50e(0xaf)][_0x27e50e(0xaa)](_0x1a33b3,0x0,_0x42286b),this[_0x27e50e(0x73)](_0x557420,_0x1a33b3)&&(_0x4929fd=!0x0),_0x4929fd;}[_0x2a0438(0xc3)](_0x1f96b5,_0x29e890){const _0x2d412f=_0x2a0438,_0x1331bb=this[_0x2d412f(0xaf)][_0x2d412f(0x88)](_0x2f7e22=>_0x2f7e22['id']===_0x29e890);if(-0x1===_0x1331bb)return!0x1;let _0x12240f=!0x1;const _0x43d6a5=this[_0x2d412f(0xaf)][_0x1331bb];return _0x2d412f(0xb1)!==_0x43d6a5[_0x2d412f(0x86)][_0x2d412f(0xc2)][_0x2d412f(0x7f)]&&(_0x1f96b5[_0x2d412f(0xb7)](_0x43d6a5[_0x2d412f(0x86)]),_0x12240f=!0x0),this[_0x2d412f(0xaf)][_0x2d412f(0xaa)](_0x1331bb,0x1),this[_0x2d412f(0x73)](_0x1f96b5,_0x1331bb)&&(_0x12240f=!0x0),_0x12240f;}[_0x2a0438(0x7a)](_0x45440c,_0x6dd1d){const _0x1e1f8f=_0x2a0438,_0x3c6a21=_0x6dd1d[_0x1e1f8f(0xc5)](_0x1e1f8f(0x8a)),_0x1a5b91=this[_0x1e1f8f(0xaf)][_0x1e1f8f(0x88)](_0x548f45=>_0x548f45['id']===_0x3c6a21),_0x50ac5b=this[_0x1e1f8f(0xaf)][_0x1a5b91];let _0x4a9c01=!0x1;_0x50ac5b[_0x1e1f8f(0xbb)]=_0x6dd1d,this[_0x1e1f8f(0xaf)][_0x1e1f8f(0xaa)](_0x1a5b91,0x1);const _0x43f5f8=I(this[_0x1e1f8f(0x89)][_0x1e1f8f(0x6f)],this[_0x1e1f8f(0xaf)],_0x6dd1d);return this[_0x1e1f8f(0xaf)][_0x1e1f8f(0xaa)](_0x43f5f8,0x0,_0x50ac5b),this[_0x1e1f8f(0x73)](_0x45440c,Math[_0x1e1f8f(0x69)](_0x1a5b91,_0x43f5f8))&&(_0x4a9c01=!0x0),_0x4a9c01;}[_0x2a0438(0xad)](_0x1eb44f,_0x518f66){const _0x41a204=_0x2a0438;if(!this[_0x41a204(0x70)])return!0x1;const _0x796947=this[_0x41a204(0xaf)][_0x518f66];let _0x227f2a;return _0x227f2a=this[_0x41a204(0xa5)]?this[_0x41a204(0xa5)]({'footnote':_0x796947,'container':this[_0x41a204(0x70)],'digits':String(this[_0x41a204(0xaf)][_0x41a204(0x8e)])[_0x41a204(0x8e)],'value':_0x518f66+0x1}):String(_0x518f66+0x1),_0x796947[_0x41a204(0xbb)][_0x41a204(0xc5)](_0x41a204(0x81))!=_0x227f2a&&(_0x1eb44f[_0x41a204(0x83)](_0x41a204(0x81),_0x227f2a,_0x796947[_0x41a204(0xbb)]),!0x0);}[_0x2a0438(0xb0)](_0x480cc5){const _0x3d9b70=_0x2a0438;if(!this[_0x3d9b70(0x70)]||this[_0x3d9b70(0xaf)][_0x3d9b70(0x8e)]<0x2)return!0x1;if(function(_0x1b4042,_0x25bc8f){const _0x2f4850=_0x3d9b70;if(_0x1b4042[_0x2f4850(0x8e)]!==_0x25bc8f[_0x2f4850(0x8e)])return!0x1;for(let _0x2f1e4d=0x0;_0x2f1e4d<_0x1b4042[_0x2f4850(0x8e)];_0x2f1e4d++)if(_0x1b4042[_0x2f1e4d]!==_0x25bc8f[_0x2f1e4d])return!0x1;return!0x0;}(this[_0x3d9b70(0xaf)][_0x3d9b70(0xc4)](_0x2ad5b0=>_0x2ad5b0['id']),Array[_0x3d9b70(0x6e)](this[_0x3d9b70(0x70)][_0x3d9b70(0x9b)]())[_0x3d9b70(0xc4)](_0x235d3f=>_0x235d3f[_0x3d9b70(0xc5)](_0x3d9b70(0x8a)))))return!0x1;let _0x435012=!0x1;for(let _0x37f313=0x0;_0x37f313<this[_0x3d9b70(0xaf)][_0x3d9b70(0x8e)];_0x37f313++){const _0x38de67=this[_0x3d9b70(0xaf)][_0x37f313],_0x530b54=_0x480cc5[_0x3d9b70(0x99)](_0x38de67[_0x3d9b70(0x86)]),_0x49790a=_0x480cc5[_0x3d9b70(0x79)](this[_0x3d9b70(0x70)],_0x37f313);_0x530b54[_0x3d9b70(0x82)](_0x49790a)||(_0x480cc5[_0x3d9b70(0x8f)](_0x480cc5[_0x3d9b70(0x71)](_0x38de67[_0x3d9b70(0x86)]),_0x49790a),_0x435012=!0x0);}return _0x435012;}[_0x2a0438(0x67)](_0x1b67bb){const _0x48ea7d=_0x2a0438;if(!this[_0x48ea7d(0xaf)][_0x48ea7d(0x8e)])return!0x1;const {model:_0x52f343}=this[_0x48ea7d(0x89)];let _0x5aae37=!0x1;for(let _0x567fc4=0x0;_0x567fc4<this[_0x48ea7d(0xaf)][_0x48ea7d(0x8e)]-0x1;_0x567fc4++){const _0x46c8d8=this[_0x48ea7d(0xaf)][_0x567fc4],_0x204635=this[_0x48ea7d(0xaf)][_0x567fc4+0x1],_0x38fd44=_0x52f343[_0x48ea7d(0x99)](_0x46c8d8[_0x48ea7d(0xbb)]),_0x55657f=_0x52f343[_0x48ea7d(0x99)](_0x204635[_0x48ea7d(0xbb)]);_0x48ea7d(0xa3)===_0x38fd44[_0x48ea7d(0xc8)](_0x55657f)&&(this[_0x48ea7d(0x7a)](_0x1b67bb,_0x46c8d8[_0x48ea7d(0xbb)]),_0x567fc4=-0x1,_0x5aae37=!0x0);}return _0x5aae37;}}function _(_0x44fdd5,_0x243506,_0x834593){const _0x1c9b60=_0x2a0438;if(_0x834593[_0x1c9b60(0x8b)])return!0x1;const _0x30c086=_0x243506?_0x1c9b60(0x98):_0x1c9b60(0x94);return _0x44fdd5[_0x1c9b60(0xa6)](_0x44fdd5[_0x1c9b60(0x95)](_0x30c086),_0x834593),!0x0;}function _0x149e(){const _0x144de4=['unshift','footnoteInlineContent','createElement','push','registerPostFixer','paragraph','createPositionBefore','footnotes.multiBlock','getChildren','end','footnoteRef','_ensureFootnotesDefinitionsContainerExists','change:data','enqueueChange','parent','1415277EqFZSf','after','_handleInsertedFootnoteReference','_footnoteFormatter','insert','document','FootnotesTracker','indexOf','splice','find','57325gqRFSY','_updateFootnoteRefCounter','add','_footnotes','_sortFootnoteDefinitions','$graveyard','_handleFootnotesDefinitionsObjectChanges','getRootNames','9395561UBkQha','has','listenTo','remove','getChanges','6FpQWcs','_handleFootnotesDefinitionsObjectSync','reference','_footnoteRefsTracker','5657105uLkylt','12WCPLop','_footnoteDefsTracker','45097789SnWkJh','pluginName','root','_handleRemoveFootnoteReferenceById','map','getAttribute','singleton','append','compareWith','some','footnoteDefinition','before','_ensureFootnotesReferencesHaveProperOrder','10xoOvkC','min','_footnoteDefsContainerTracker','config','footnotesDefinitions','3YqRuVO','from','model','_footnotesDefinitions','createRangeOn','isOfficialPlugin','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','setFootnoteFormatter','_handleFootnoteReferencesChanges','_handleFootnoteDefinitionsChanges','4890712bnnJyv','createPositionAt','_handleMovedFootnoteReference','getFootnotes','getFootnote','getFootnotesFormatter','_insertEmptyFootnotesDefinitionsContainer','rootName','get','footnoteCounter','isEqual','setAttribute','isPremiumPlugin','13015200kMUDrl','definition','low','findIndex','editor','footnoteId','childCount','createRangeIn','init','length','move','64QRgHpu','differ','filter'];_0x149e=function(){return _0x144de4;};return _0x149e();}function I(_0x34ab34,_0x3f71dc,_0x5aef8a){const _0x3bfeaa=_0x2a0438;if(0x0===_0x3f71dc[_0x3bfeaa(0x8e)])return 0x0;const _0xcd5c6b=_0x34ab34[_0x3bfeaa(0x99)](_0x5aef8a);for(let _0x1bb739=0x0;_0x1bb739<_0x3f71dc[_0x3bfeaa(0x8e)];_0x1bb739++){const _0x46092f=_0x3f71dc[_0x1bb739],_0x2b1abe=_0x34ab34[_0x3bfeaa(0x99)](_0x46092f[_0x3bfeaa(0xbb)]);if(_0x3bfeaa(0xcb)===_0xcd5c6b[_0x3bfeaa(0xc8)](_0x2b1abe))return _0x1bb739;}const _0x5a4165=_0x5aef8a[_0x3bfeaa(0xc2)];let _0xb76d8e=-0x1;for(let _0x52cb54=_0x3f71dc[_0x3bfeaa(0x8e)]-0x1;_0x52cb54>=0x0;_0x52cb54--)if(_0x3f71dc[_0x52cb54][_0x3bfeaa(0xbb)][_0x3bfeaa(0xc2)]===_0x5a4165){_0xb76d8e=_0x52cb54;break;}if(-0x1!==_0xb76d8e)return _0xb76d8e+0x1;const _0xcee133=_0x34ab34[_0x3bfeaa(0xa7)][_0x3bfeaa(0xb3)](),_0x449ed4=_0xcee133[_0x3bfeaa(0xa9)](_0x5a4165[_0x3bfeaa(0x7f)]),_0xeb73b1=_0xcee133[_0x449ed4+0x1];if(_0xeb73b1){for(let _0x59b265=0x0;_0x59b265<_0x3f71dc[_0x3bfeaa(0x8e)];_0x59b265++)if(_0x3f71dc[_0x59b265][_0x3bfeaa(0xbb)][_0x3bfeaa(0xc2)][_0x3bfeaa(0x7f)]===_0xeb73b1)return _0x59b265;}return _0x3f71dc[_0x3bfeaa(0x8e)];}
|
|
23
|
+
function _0x26b9(){const _0x3e2e6=['set','has','reset','13012mNoIBF','_footnotesDefinitions','move','filter','differ','_sortFootnoteDefinitions','isOfficialPlugin','isEqual','map','document','add','push','definition','registerPostFixer','_ensureFootnotesReferencesHaveProperOrder','createRangeIn','654600tNHQsz','588rUSEFY','getChanges','$graveyard','getRootNames','144aLSHUM','reference','model','splice','_footnoteFormatter','min','createRangeOn','_footnotes','159ADvvFD','footnoteDefinition','FootnotesTracker','_footnoteRefsTracker','footnoteInlineContent','pluginName','enqueueChange','350077qTmrdc','footnotes.multiBlock','after','editor','createPositionAt','getChildren','createPositionBefore','end','rootName','childCount','footnoteCounter','72807NPPGoq','setAttribute','getFootnotesFormatter','change:data','indexOf','low','from','remove','isPremiumPlugin','before','_handleFootnoteDefinitionsChanges','18mPCItM','createElement','73348Szimwn','parent','append','_handleFootnotesDefinitionsObjectChanges','length','footnotesDefinitions','getFootnotes','getFootnote','_handleFootnotesDefinitionsObjectSync','_insertEmptyFootnotesDefinitionsContainer','listenTo','some','footnoteId','unshift','24puAGun','_ensureFootnotesDefinitionsContainerExists','_updateFootnoteRefCounter','config','findIndex','_handleInsertedFootnoteReference','953815PwlAzJ','10JpijQX','setFootnoteFormatter','_updateFootnotesCounters','root','compareWith','_footnoteDefsTracker','155510pSevtr','footnoteRef','_footnoteDefsContainerTracker','112IdstGq','_handleRemoveFootnoteReferenceById','high','paragraph','_handleFootnoteReferencesChanges','singleton','find','get','init','insert','_handleMovedFootnoteReference','getAttribute','getFootnotesDefinitionsObjectElement'];_0x26b9=function(){return _0x3e2e6;};return _0x26b9();}const _0x318102=_0x3c8d;(function(_0x14845d,_0x25d61b){const _0x222ef2=_0x3c8d,_0x4ba233=_0x14845d();while(!![]){try{const _0x436abd=-parseInt(_0x222ef2(0x1c0))/0x1*(parseInt(_0x222ef2(0x1ba))/0x2)+-parseInt(_0x222ef2(0x186))/0x3*(parseInt(_0x222ef2(0x169))/0x4)+parseInt(_0x222ef2(0x1b9))/0x5*(parseInt(_0x222ef2(0x1b3))/0x6)+-parseInt(_0x222ef2(0x198))/0x7*(-parseInt(_0x222ef2(0x17e))/0x8)+-parseInt(_0x222ef2(0x1a3))/0x9*(parseInt(_0x222ef2(0x179))/0xa)+-parseInt(_0x222ef2(0x1a5))/0xb*(-parseInt(_0x222ef2(0x17a))/0xc)+-parseInt(_0x222ef2(0x18d))/0xd*(-parseInt(_0x222ef2(0x1c3))/0xe);if(_0x436abd===_0x25d61b)break;else _0x4ba233['push'](_0x4ba233['shift']());}catch(_0x250e08){_0x4ba233['push'](_0x4ba233['shift']());}}}(_0x26b9,0x647a3));import{Plugin as _0x27c20d}from'ckeditor5/src/core.js';import{ModelElementTracker as _0xdcff85}from'./modelelementtracker.js';export class FootnotesTracker extends _0x27c20d{[_0x318102(0x185)]=[];[_0x318102(0x16a)]=null;[_0x318102(0x182)]=null;[_0x318102(0x1c2)];[_0x318102(0x189)];[_0x318102(0x1bf)];static get[_0x318102(0x18b)](){const _0x1a4f7b=_0x318102;return _0x1a4f7b(0x188);}static get[_0x318102(0x16f)](){return!0x0;}static get[_0x318102(0x1a0)](){return!0x0;}constructor(_0x499a87){const _0x584739=_0x318102;super(_0x499a87),this[_0x584739(0x1c2)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x1aa),'getElementKey':()=>_0x584739(0x15e)}),this[_0x584739(0x189)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x1c1),'getElementKey':_0x2d9080=>_0x2d9080[_0x584739(0x164)](_0x584739(0x1b1))}),this[_0x584739(0x1bf)]=new _0xdcff85(this[_0x584739(0x190)][_0x584739(0x180)],{'elementName':_0x584739(0x187),'getElementKey':_0x126d49=>_0x126d49[_0x584739(0x164)](_0x584739(0x1b1))});}[_0x318102(0x161)](){const _0x1b2e53=_0x318102,{editor:_0x3735d1}=this,{model:_0x3b9452,data:_0x53a7d5}=_0x3735d1;_0x3b9452[_0x1b2e53(0x172)][_0x1b2e53(0x176)](_0xe8b795=>{const _0x3e9e24=_0x1b2e53,_0x26bec0=_0x3b9452[_0x3e9e24(0x172)][_0x3e9e24(0x16d)][_0x3e9e24(0x17b)]();let _0xdfcd99=!0x1;return this[_0x3e9e24(0x1a8)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x1a2)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x15d)](_0xe8b795,_0x26bec0)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x177)](_0xe8b795)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x1ad)](_0xe8b795)&&(_0xdfcd99=!0x0),this[_0x3e9e24(0x16e)](_0xe8b795)&&(_0xdfcd99=!0x0),_0xdfcd99;}),this[_0x1b2e53(0x1af)](_0x3b9452[_0x1b2e53(0x172)],_0x1b2e53(0x19b),()=>{const _0x45456c=_0x1b2e53;_0x3b9452[_0x45456c(0x18c)]({'isUndoable':!0x1},_0x1f1722=>{const _0xc0996e=_0x45456c;this[_0xc0996e(0x1b4)](_0x1f1722);});},{'priority':_0x1b2e53(0x19d)}),this[_0x1b2e53(0x1af)](_0x53a7d5,_0x1b2e53(0x166),()=>{const _0x529cc8=_0x1b2e53;this[_0x529cc8(0x185)]=[],this[_0x529cc8(0x1c2)][_0x529cc8(0x168)](),this[_0x529cc8(0x189)][_0x529cc8(0x168)](),this[_0x529cc8(0x1bf)][_0x529cc8(0x168)]();},{'priority':_0x1b2e53(0x1c5)});}[_0x318102(0x165)](){const _0x5ca803=_0x318102;return this[_0x5ca803(0x16a)];}[_0x318102(0x1ac)](_0x3dfe72){const _0x560054=_0x318102;return this[_0x560054(0x185)][_0x560054(0x15f)](_0xf21ab9=>_0xf21ab9['id']===_0x3dfe72)||null;}[_0x318102(0x1ab)](){const _0x1fdc3e=_0x318102;return Array[_0x1fdc3e(0x19e)](this[_0x1fdc3e(0x185)]);}[_0x318102(0x19a)](){const _0x4d0179=_0x318102;return this[_0x4d0179(0x182)];}[_0x318102(0x1bb)](_0x55c838){const _0x3bb711=_0x318102;this[_0x3bb711(0x182)]=_0x55c838;}[_0x318102(0x1bc)](_0x231380,_0x75cba=0x0){const _0x28c0d2=_0x318102;let _0x2c28d1=!0x1;for(let _0x5bf0a5=_0x75cba;_0x5bf0a5<this[_0x28c0d2(0x185)][_0x28c0d2(0x1a9)];_0x5bf0a5++)this[_0x28c0d2(0x1b5)](_0x231380,_0x5bf0a5)&&(_0x2c28d1=!0x0);return _0x2c28d1;}[_0x318102(0x1ae)](_0x3f9ca7,_0x204f43){const _0x1aa9ce=_0x318102,_0x38978a=_0x3f9ca7[_0x1aa9ce(0x1a4)](_0x1aa9ce(0x1aa),{});return _0x3f9ca7[_0x1aa9ce(0x1a7)](_0x38978a,_0x204f43),this[_0x1aa9ce(0x16a)]=_0x38978a,_0x38978a;}[_0x318102(0x1b4)](_0x522678){const _0x1ea60c=_0x318102;if(!this[_0x1ea60c(0x185)][_0x1ea60c(0x1a9)]||this[_0x1ea60c(0x16a)])return;const _0x4606ea=this[_0x1ea60c(0x185)][0x0][_0x1ea60c(0x17f)][_0x1ea60c(0x1bd)],_0x37b4f0=this[_0x1ea60c(0x1ae)](_0x522678,_0x4606ea);for(const _0x5c6d6e of this[_0x1ea60c(0x185)])_0x5c6d6e[_0x1ea60c(0x175)][_0x1ea60c(0x1a6)]||_0x522678[_0x1ea60c(0x162)](_0x5c6d6e[_0x1ea60c(0x175)],_0x37b4f0,_0x1ea60c(0x194));this[_0x1ea60c(0x1bc)](_0x522678);}[_0x318102(0x1a8)](_0xb86fde,_0x152c67){const _0x2af711=_0x318102;let _0x3c0a7c=!0x1;const {inserted:_0x407c02,removed:_0x2866fb,moved:_0x1319a8}=this[_0x2af711(0x1c2)][_0x2af711(0x17b)](_0x152c67);if(_0x1319a8[_0x2af711(0x1a9)]&&(this[_0x2af711(0x16a)]=_0x1319a8[0x0]),_0x407c02[_0x2af711(0x1a9)]){if(_0x407c02[_0x2af711(0x1a9)]>0x1||this[_0x2af711(0x16a)]&&_0x407c02[_0x2af711(0x1b0)](_0x3c06f0=>_0x3c06f0!==this[_0x2af711(0x16a)])){const _0x33db8a=_0xb86fde[_0x2af711(0x1a4)](_0x2af711(0x1aa),{}),_0x22e8bc=[];this[_0x2af711(0x16a)]&&_0x22e8bc[_0x2af711(0x174)](this[_0x2af711(0x16a)]),_0x22e8bc[_0x2af711(0x174)](..._0x407c02),_0xb86fde[_0x2af711(0x162)](_0x33db8a,_0x22e8bc[0x0],_0x2af711(0x1a1));for(const _0x294ef2 of _0x22e8bc)_0xb86fde[_0x2af711(0x16b)](_0xb86fde[_0x2af711(0x178)](_0x294ef2),_0xb86fde[_0x2af711(0x191)](_0x33db8a,_0x2af711(0x194))),_0xb86fde[_0x2af711(0x19f)](_0x294ef2);this[_0x2af711(0x16a)]=_0x33db8a,this[_0x2af711(0x1bc)](_0xb86fde),_0x3c0a7c=!0x0;}else this[_0x2af711(0x16a)]=_0x407c02[0x0];}if(_0x2866fb[_0x2af711(0x1a9)]&&_0x2af711(0x17c)===this[_0x2af711(0x16a)]?.[_0x2af711(0x1bd)][_0x2af711(0x195)]){for(const _0x481f62 of this[_0x2af711(0x185)])_0xb86fde[_0x2af711(0x19f)](_0x481f62[_0x2af711(0x17f)]),_0x3c0a7c=!0x0;this[_0x2af711(0x185)]=[],this[_0x2af711(0x16a)]=null;}return _0x3c0a7c;}[_0x318102(0x1a2)](_0x303d95,_0x1bea47){const _0x408632=_0x318102;let _0x26b683=!0x1;const _0x5abc49=this[_0x408632(0x190)][_0x408632(0x1b6)][_0x408632(0x160)](_0x408632(0x18e)),{inserted:_0xf512a2,moved:_0x30bbae}=this[_0x408632(0x1bf)][_0x408632(0x17b)](_0x1bea47);for(const _0x41c453 of[..._0x30bbae,..._0xf512a2]){const _0x1f8855=_0x41c453[_0x408632(0x164)](_0x408632(0x1b1)),_0x3b53cd=this[_0x408632(0x1ac)](_0x1f8855);_0x3b53cd&&(_0x3b53cd[_0x408632(0x175)]=_0x41c453),_(_0x303d95,_0x5abc49,_0x41c453)&&(_0x26b683=!0x0);}return _0x26b683;}[_0x318102(0x15d)](_0x46cf39,_0x2ca19d){const _0x35bb54=_0x318102;let _0x27d76b=!0x1;const {removed:_0x121f67,inserted:_0x391cea,moved:_0x4f839d}=this[_0x35bb54(0x189)][_0x35bb54(0x17b)](_0x2ca19d);for(const _0x497f4e of _0x121f67)this[_0x35bb54(0x1c4)](_0x46cf39,_0x497f4e)&&(_0x27d76b=!0x0);for(const _0x162408 of _0x391cea)this[_0x35bb54(0x1b8)](_0x46cf39,_0x162408)&&(_0x27d76b=!0x0);for(const _0x192f4f of _0x4f839d)this[_0x35bb54(0x163)](_0x46cf39,_0x192f4f)&&(_0x27d76b=!0x0);return _0x27d76b;}[_0x318102(0x1ad)](_0x37a3fe){const _0x3cf805=_0x318102;if(!this[_0x3cf805(0x16a)])return!0x1;let _0x43544f=!0x1;if(this[_0x3cf805(0x16a)][_0x3cf805(0x196)]!==this[_0x3cf805(0x185)][_0x3cf805(0x1a9)]){const _0x4efe10=[];for(const _0xd950f5 of this[_0x3cf805(0x16a)][_0x3cf805(0x192)]()){const _0x36f957=_0xd950f5[_0x3cf805(0x164)](_0x3cf805(0x1b1));this[_0x3cf805(0x1ac)](_0x36f957)||(_0x4efe10[_0x3cf805(0x1b2)](_0xd950f5),_0x43544f=!0x0);}for(const _0x39d98a of _0x4efe10)_0x37a3fe[_0x3cf805(0x19f)](_0x39d98a);}const _0x4a6db4=new Set(),_0x43b704=[];for(const _0x1c1deb of this[_0x3cf805(0x16a)][_0x3cf805(0x192)]()){const _0x44be91=_0x1c1deb[_0x3cf805(0x164)](_0x3cf805(0x1b1));_0x4a6db4[_0x3cf805(0x167)](_0x44be91)?(_0x43b704[_0x3cf805(0x1b2)](_0x1c1deb),_0x43544f=!0x0):_0x4a6db4[_0x3cf805(0x173)](_0x44be91);}for(const _0x2e20fb of _0x43b704)_0x37a3fe[_0x3cf805(0x19f)](_0x2e20fb);return this[_0x3cf805(0x16a)][_0x3cf805(0x196)]||(_0x37a3fe[_0x3cf805(0x19f)](this[_0x3cf805(0x16a)]),this[_0x3cf805(0x16a)]=null,_0x43544f=!0x0),_0x43544f;}[_0x318102(0x1b8)](_0x14118f,_0x1c0d37){const _0x5ef717=_0x318102;if(this[_0x5ef717(0x185)][_0x5ef717(0x15f)](_0x4011d3=>_0x4011d3[_0x5ef717(0x17f)]===_0x1c0d37))return!0x1;let _0x176c2b=!0x1;const _0x287504=_0x1c0d37[_0x5ef717(0x164)](_0x5ef717(0x1b1)),_0x37f1b0=this[_0x5ef717(0x1ac)](_0x287504);_0x37f1b0&&(_0x14118f[_0x5ef717(0x19f)](_0x37f1b0[_0x5ef717(0x17f)]),this[_0x5ef717(0x185)]=this[_0x5ef717(0x185)][_0x5ef717(0x16c)](_0x4f450a=>_0x4f450a['id']!==_0x287504),_0x176c2b=!0x0);let _0x2cefbb=this[_0x5ef717(0x16a)]?function(_0x57e1be,_0x33158d){const _0x56c8dc=_0x5ef717;for(const _0x280f5f of _0x57e1be[_0x56c8dc(0x192)]())if(_0x280f5f[_0x56c8dc(0x164)](_0x56c8dc(0x1b1))===_0x33158d)return _0x280f5f;return null;}(this[_0x5ef717(0x16a)],_0x287504):null;_0x2cefbb||(_0x2cefbb=_0x14118f[_0x5ef717(0x1a4)](_0x5ef717(0x187),{'footnoteId':_0x287504}),this[_0x5ef717(0x16a)]&&(_0x14118f[_0x5ef717(0x162)](_0x2cefbb,this[_0x5ef717(0x16a)],_0x5ef717(0x194)),_0x176c2b=!0x0));const _0x4a853d={'id':_0x287504,'reference':_0x1c0d37,'definition':_0x2cefbb},_0x7c6ce5=I(this[_0x5ef717(0x190)][_0x5ef717(0x180)],this[_0x5ef717(0x185)],_0x1c0d37);return this[_0x5ef717(0x185)][_0x5ef717(0x181)](_0x7c6ce5,0x0,_0x4a853d),this[_0x5ef717(0x1bc)](_0x14118f,_0x7c6ce5)&&(_0x176c2b=!0x0),_0x176c2b;}[_0x318102(0x1c4)](_0x3e25b3,_0x489afb){const _0x38891b=_0x318102,_0xfcd36d=this[_0x38891b(0x185)][_0x38891b(0x1b7)](_0x582bcc=>_0x582bcc['id']===_0x489afb);if(-0x1===_0xfcd36d)return!0x1;let _0x29adb3=!0x1;const _0x3f2251=this[_0x38891b(0x185)][_0xfcd36d];return _0x38891b(0x17c)!==_0x3f2251[_0x38891b(0x175)][_0x38891b(0x1bd)][_0x38891b(0x195)]&&(_0x3e25b3[_0x38891b(0x19f)](_0x3f2251[_0x38891b(0x175)]),_0x29adb3=!0x0),this[_0x38891b(0x185)][_0x38891b(0x181)](_0xfcd36d,0x1),this[_0x38891b(0x1bc)](_0x3e25b3,_0xfcd36d)&&(_0x29adb3=!0x0),_0x29adb3;}[_0x318102(0x163)](_0x4d73c1,_0x5af4fb){const _0xbb4969=_0x318102,_0x2b0431=_0x5af4fb[_0xbb4969(0x164)](_0xbb4969(0x1b1)),_0x5e810e=this[_0xbb4969(0x185)][_0xbb4969(0x1b7)](_0x59eeed=>_0x59eeed['id']===_0x2b0431),_0x4c3b6b=this[_0xbb4969(0x185)][_0x5e810e];let _0x324f56=!0x1;_0x4c3b6b[_0xbb4969(0x17f)]=_0x5af4fb,this[_0xbb4969(0x185)][_0xbb4969(0x181)](_0x5e810e,0x1);const _0x52b5d6=I(this[_0xbb4969(0x190)][_0xbb4969(0x180)],this[_0xbb4969(0x185)],_0x5af4fb);return this[_0xbb4969(0x185)][_0xbb4969(0x181)](_0x52b5d6,0x0,_0x4c3b6b),this[_0xbb4969(0x1bc)](_0x4d73c1,Math[_0xbb4969(0x183)](_0x5e810e,_0x52b5d6))&&(_0x324f56=!0x0),_0x324f56;}[_0x318102(0x1b5)](_0x1ccaf3,_0x8cfe40){const _0x38f17c=_0x318102;if(!this[_0x38f17c(0x16a)])return!0x1;const _0x3fd042=this[_0x38f17c(0x185)][_0x8cfe40];let _0x2b88c3;return _0x2b88c3=this[_0x38f17c(0x182)]?this[_0x38f17c(0x182)]({'footnote':_0x3fd042,'container':this[_0x38f17c(0x16a)],'digits':String(this[_0x38f17c(0x185)][_0x38f17c(0x1a9)])[_0x38f17c(0x1a9)],'value':_0x8cfe40+0x1}):String(_0x8cfe40+0x1),_0x3fd042[_0x38f17c(0x17f)][_0x38f17c(0x164)](_0x38f17c(0x197))!=_0x2b88c3&&(_0x1ccaf3[_0x38f17c(0x199)](_0x38f17c(0x197),_0x2b88c3,_0x3fd042[_0x38f17c(0x17f)]),!0x0);}[_0x318102(0x16e)](_0x47ca1b){const _0x2049fd=_0x318102;if(!this[_0x2049fd(0x16a)]||this[_0x2049fd(0x185)][_0x2049fd(0x1a9)]<0x2)return!0x1;if(function(_0x473537,_0x38769f){const _0x7beb0b=_0x2049fd;if(_0x473537[_0x7beb0b(0x1a9)]!==_0x38769f[_0x7beb0b(0x1a9)])return!0x1;for(let _0x2afe1d=0x0;_0x2afe1d<_0x473537[_0x7beb0b(0x1a9)];_0x2afe1d++)if(_0x473537[_0x2afe1d]!==_0x38769f[_0x2afe1d])return!0x1;return!0x0;}(this[_0x2049fd(0x185)][_0x2049fd(0x171)](_0x45f673=>_0x45f673['id']),Array[_0x2049fd(0x19e)](this[_0x2049fd(0x16a)][_0x2049fd(0x192)]())[_0x2049fd(0x171)](_0x69f61c=>_0x69f61c[_0x2049fd(0x164)](_0x2049fd(0x1b1)))))return!0x1;let _0x1332a5=!0x1;for(let _0x166b21=0x0;_0x166b21<this[_0x2049fd(0x185)][_0x2049fd(0x1a9)];_0x166b21++){const _0x439ff5=this[_0x2049fd(0x185)][_0x166b21],_0x3542a7=_0x47ca1b[_0x2049fd(0x193)](_0x439ff5[_0x2049fd(0x175)]),_0x227156=_0x47ca1b[_0x2049fd(0x191)](this[_0x2049fd(0x16a)],_0x166b21);_0x3542a7[_0x2049fd(0x170)](_0x227156)||(_0x47ca1b[_0x2049fd(0x16b)](_0x47ca1b[_0x2049fd(0x184)](_0x439ff5[_0x2049fd(0x175)]),_0x227156),_0x1332a5=!0x0);}return _0x1332a5;}[_0x318102(0x177)](_0x65586a){const _0x447508=_0x318102;if(!this[_0x447508(0x185)][_0x447508(0x1a9)])return!0x1;const {model:_0x545d92}=this[_0x447508(0x190)];let _0x560261=!0x1;for(let _0x5345af=0x0;_0x5345af<this[_0x447508(0x185)][_0x447508(0x1a9)]-0x1;_0x5345af++){const _0x19a204=this[_0x447508(0x185)][_0x5345af],_0x5393a6=this[_0x447508(0x185)][_0x5345af+0x1],_0x13b90a=_0x545d92[_0x447508(0x193)](_0x19a204[_0x447508(0x17f)]),_0xd725cb=_0x545d92[_0x447508(0x193)](_0x5393a6[_0x447508(0x17f)]);_0x447508(0x18f)===_0x13b90a[_0x447508(0x1be)](_0xd725cb)&&(this[_0x447508(0x163)](_0x65586a,_0x19a204[_0x447508(0x17f)]),_0x5345af=-0x1,_0x560261=!0x0);}return _0x560261;}}function _(_0x42d242,_0x56839a,_0x101d30){const _0x3a8ffa=_0x318102;if(_0x101d30[_0x3a8ffa(0x196)])return!0x1;const _0x222665=_0x56839a?_0x3a8ffa(0x1c6):_0x3a8ffa(0x18a);return _0x42d242[_0x3a8ffa(0x162)](_0x42d242[_0x3a8ffa(0x1a4)](_0x222665),_0x101d30),!0x0;}function _0x3c8d(_0x28f00c,_0x329fdf){const _0x26b9b9=_0x26b9();return _0x3c8d=function(_0x3c8d41,_0x299e69){_0x3c8d41=_0x3c8d41-0x15d;let _0x261802=_0x26b9b9[_0x3c8d41];return _0x261802;},_0x3c8d(_0x28f00c,_0x329fdf);}function I(_0x252bc3,_0x547a30,_0x514f68){const _0x568932=_0x318102;if(0x0===_0x547a30[_0x568932(0x1a9)])return 0x0;const _0x503e8d=_0x252bc3[_0x568932(0x193)](_0x514f68);for(let _0x31cfcb=0x0;_0x31cfcb<_0x547a30[_0x568932(0x1a9)];_0x31cfcb++){const _0x241007=_0x547a30[_0x31cfcb],_0x101082=_0x252bc3[_0x568932(0x193)](_0x241007[_0x568932(0x17f)]);if(_0x568932(0x1a1)===_0x503e8d[_0x568932(0x1be)](_0x101082))return _0x31cfcb;}const _0x5c6265=_0x514f68[_0x568932(0x1bd)];let _0x19c2ef=-0x1;for(let _0x5a530a=_0x547a30[_0x568932(0x1a9)]-0x1;_0x5a530a>=0x0;_0x5a530a--)if(_0x547a30[_0x5a530a][_0x568932(0x17f)][_0x568932(0x1bd)]===_0x5c6265){_0x19c2ef=_0x5a530a;break;}if(-0x1!==_0x19c2ef)return _0x19c2ef+0x1;const _0x2a5686=_0x252bc3[_0x568932(0x172)][_0x568932(0x17d)](),_0x5a55a0=_0x2a5686[_0x568932(0x19c)](_0x5c6265[_0x568932(0x195)]),_0x129e88=_0x2a5686[_0x5a55a0+0x1];if(_0x129e88){for(let _0x17cb6d=0x0;_0x17cb6d<_0x547a30[_0x568932(0x1a9)];_0x17cb6d++)if(_0x547a30[_0x17cb6d][_0x568932(0x17f)][_0x568932(0x1bd)][_0x568932(0x195)]===_0x129e88)return _0x17cb6d;}return _0x547a30[_0x568932(0x1a9)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x73c6df,MenuBarMenuListItemButtonView as _0x3e4e18}from'ckeditor5/src/ui.js';import{Plugin as _0x4cbc6f}from'ckeditor5/src/core.js';import{IconFootnote as _0x3e51f0}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x4cbc6f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4569c0}=this,{componentFactory:_0x35daf6}=_0x4569c0['ui'];_0x35daf6['add']('insertFootnote',v(_0x4569c0,_0x73c6df)),_0x35daf6['add']('menuBar:insertFootnote',v(_0x4569c0,_0x3e4e18)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ffdac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4cbd6b;for(const _0x4a311a in _0x2ffdac){const _0x507d08=_0x4a311a,_0xa776ec=_0x2ffdac[_0x507d08];if('footnotesLicenseKeyValid'==_0xa776ec||'footnotesLicenseKeyInvalid'==_0xa776ec||'footnotesLicenseKeyExpired'==_0xa776ec||'footnotesLicenseKeyDomainLimit'==_0xa776ec||'footnotesLicenseKeyNotAllowed'==_0xa776ec||'footnotesLicenseKeyEvaluationLimit'==_0xa776ec||'footnotesLicenseKeyTrialLimit'==_0xa776ec||'footnotesLicenseKeyUsageLimit'==_0xa776ec){delete _0x2ffdac[_0x507d08],_0x4cbd6b=_0xa776ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4cbd6b&&_0x2ffdac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x3826d0,_0x570a5c){const _0x5457c8=_0x3826d0['commands']['get']('insertFootnote');return _0x7eeea5=>{const {t:t}=_0x7eeea5,_0x1f50a6=new _0x570a5c(_0x7eeea5),_0x174fd2=_0x1f50a6 instanceof _0x3e4e18;return _0x1f50a6['bind']('isEnabled')['to'](_0x5457c8,'isEnabled'),_0x1f50a6['set']({'label':t(_0x174fd2?'Footnote':'Insert\x20footnote'),'icon':_0x3e51f0,'tooltip':!0x0}),_0x1f50a6['on']('execute',()=>{_0x5457c8['execute'](),_0x3826d0['editing']['view']['focus']();}),_0x1f50a6;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1ca423,_0x5ed4a1){var _0x450571=_0x5bf4,_0x1cee1d=_0x1ca423();while(!![]){try{var _0x24a5e2=parseInt(_0x450571(0xcd))/0x1*(parseInt(_0x450571(0xd0))/0x2)+-parseInt(_0x450571(0xca))/0x3*(-parseInt(_0x450571(0xc9))/0x4)+-parseInt(_0x450571(0xd1))/0x5+parseInt(_0x450571(0xcf))/0x6*(parseInt(_0x450571(0xce))/0x7)+parseInt(_0x450571(0xc8))/0x8+parseInt(_0x450571(0xc7))/0x9+parseInt(_0x450571(0xcb))/0xa*(-parseInt(_0x450571(0xcc))/0xb);if(_0x24a5e2===_0x5ed4a1)break;else _0x1cee1d['push'](_0x1cee1d['shift']());}catch(_0xdf9b32){_0x1cee1d['push'](_0x1cee1d['shift']());}}}(_0x4daf,0xe9770));import'./augmentation.js';function _0x4daf(){var _0x60e415=['24912ECsOCS','868310edOazP','440SwlkUR','981756pUnYkf','10505929qjGfIK','6AtvRxw','2KayYnH','4035990YmCMaz','4213296bcZQZL','6529240Nqsygr','708ZOykDT'];_0x4daf=function(){return _0x60e415;};return _0x4daf();}export{Footnotes}from'./footnotes.js';export{FootnotesEditing}from'./footnotesediting.js';export{FootnotesClipboard}from'./footnotesclipboard.js';export{FootnotesUI}from'./footnotesui.js';export{InsertFootnoteCommand}from'./commands/insertfootnotecommand.js';export{FootnotesTracker}from'./footnotestracker.js';export{FootnotesStyleCommand}from'./footnotesproperties/commands/footnotesstylecommand.js';function _0x5bf4(_0x5b9913,_0x5128e9){var _0x4daf78=_0x4daf();return _0x5bf4=function(_0x5bf467,_0x5aaef7){_0x5bf467=_0x5bf467-0xc7;var _0x235363=_0x4daf78[_0x5bf467];return _0x235363;},_0x5bf4(_0x5b9913,_0x5128e9);}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -15,6 +15,10 @@ export declare class ModelElementTracker {
|
|
|
15
15
|
* @param config Configuration for tracking specific element type.
|
|
16
16
|
*/
|
|
17
17
|
constructor(model: Model, config: TrackElementChangesConfig);
|
|
18
|
+
/**
|
|
19
|
+
* Resets the tracker, clearing all tracked elements.
|
|
20
|
+
*/
|
|
21
|
+
reset(): void;
|
|
18
22
|
/**
|
|
19
23
|
* Analyzes document changes and returns the set of changes for the tracked element type.
|
|
20
24
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x25668b=_0x24c6;(function(_0x1e0f0a,_0x543c40){const _0x466933=_0x24c6,_0x470697=_0x1e0f0a();while(!![]){try{const _0x25f295=parseInt(_0x466933(0x1cc))/0x1*(-parseInt(_0x466933(0x1b4))/0x2)+-parseInt(_0x466933(0x1d3))/0x3*(-parseInt(_0x466933(0x1c6))/0x4)+parseInt(_0x466933(0x1d2))/0x5*(-parseInt(_0x466933(0x1d6))/0x6)+-parseInt(_0x466933(0x1d4))/0x7+-parseInt(_0x466933(0x1bf))/0x8+parseInt(_0x466933(0x1c5))/0x9+-parseInt(_0x466933(0x1bb))/0xa*(-parseInt(_0x466933(0x1b0))/0xb);if(_0x25f295===_0x543c40)break;else _0x470697['push'](_0x470697['shift']());}catch(_0x26c700){_0x470697['push'](_0x470697['shift']());}}}(_0x4480,0x4b98e));function _0x4480(){const _0x3a286c=['1987443mGKNwE','96768GWXPSd','nodeAfter','elementName','add','_model','from','3695CEveea','_elementName','reset','delete','attributes','_getElementKey','5LiXiwq','15ChFttD','2229115AJOybm','insert','2227074ZnXqsW','type','slice','length','name','$text','position','13511575xYfwTY','remove','$graveyard','rootName','248fVjuRh','getElementKey','flat','get','root','push','createRangeOn','10NrhGRk','getChanges','_trackedElements','getItems','901296ucPNfX','element','set','has','values','clear'];_0x4480=function(){return _0x3a286c;};return _0x4480();}function _0x24c6(_0x5d0eb7,_0x1ef531){const _0x4480de=_0x4480();return _0x24c6=function(_0x24c6b7,_0x1b3b06){_0x24c6b7=_0x24c6b7-0x1b0;let _0x4cd9a1=_0x4480de[_0x24c6b7];return _0x4cd9a1;},_0x24c6(_0x5d0eb7,_0x1ef531);}export class ModelElementTracker{[_0x25668b(0x1ca)];[_0x25668b(0x1cd)];[_0x25668b(0x1d1)];[_0x25668b(0x1bd)]=new Map();constructor(_0x2baba9,_0x46acf3){const _0x22697f=_0x25668b;this[_0x22697f(0x1ca)]=_0x2baba9,this[_0x22697f(0x1cd)]=_0x46acf3[_0x22697f(0x1c8)],this[_0x22697f(0x1d1)]=_0x46acf3[_0x22697f(0x1b5)];}[_0x25668b(0x1ce)](){const _0x55276f=_0x25668b;this[_0x55276f(0x1bd)][_0x55276f(0x1c4)]();}[_0x25668b(0x1bc)](_0x24aca9){const _0x146ae2=_0x25668b,_0x3d7c34=new Set(),_0x461c26=new Map();for(const _0x21efd4 of _0x24aca9){if(_0x146ae2(0x1d5)===_0x21efd4[_0x146ae2(0x1d7)]&&_0x146ae2(0x1db)!==_0x21efd4[_0x146ae2(0x1da)]&&_0x21efd4[_0x146ae2(0x1dc)][_0x146ae2(0x1c7)]){const _0x5c3497=this[_0x146ae2(0x1ca)][_0x146ae2(0x1ba)](_0x21efd4[_0x146ae2(0x1dc)][_0x146ae2(0x1c7)]);for(const _0x4ca00e of _0x5c3497[_0x146ae2(0x1be)]()){if(!_0x4ca00e['is'](_0x146ae2(0x1c0),this[_0x146ae2(0x1cd)]))continue;const _0x42ba1b=this[_0x146ae2(0x1d1)](_0x4ca00e);_0x461c26[_0x146ae2(0x1c2)](_0x42ba1b)||_0x461c26[_0x146ae2(0x1c1)](_0x42ba1b,[]),_0x461c26[_0x146ae2(0x1b7)](_0x42ba1b)[_0x146ae2(0x1b9)](_0x4ca00e);}}if(_0x146ae2(0x1b1)===_0x21efd4[_0x146ae2(0x1d7)]&&_0x21efd4[_0x146ae2(0x1da)]===this[_0x146ae2(0x1cd)]){const _0x493ea3=this[_0x146ae2(0x1d1)]({'getAttribute':_0x2755fb=>_0x21efd4[_0x146ae2(0x1d0)][_0x146ae2(0x1b7)](_0x2755fb)});_0x3d7c34[_0x146ae2(0x1c9)](_0x493ea3);}}for(const [_0x3e339e,_0x3b1702]of this[_0x146ae2(0x1bd)])_0x146ae2(0x1b2)===_0x3b1702[_0x146ae2(0x1b8)][_0x146ae2(0x1b3)]&&_0x3d7c34[_0x146ae2(0x1c9)](_0x3e339e);for(const _0x5b5731 of _0x3d7c34)this[_0x146ae2(0x1bd)][_0x146ae2(0x1cf)](_0x5b5731);for(const [_0xa692a4,_0x36f63d]of _0x461c26)this[_0x146ae2(0x1bd)][_0x146ae2(0x1c1)](_0xa692a4,_0x36f63d[_0x36f63d[_0x146ae2(0x1d9)]-0x1]);const _0x46cc80=new Set();for(const [_0x21ef15,_0x2f6a05]of _0x461c26)_0x3d7c34[_0x146ae2(0x1c2)](_0x21ef15)&&(_0x46cc80[_0x146ae2(0x1c9)](_0x2f6a05[0x0]),_0x2f6a05[_0x146ae2(0x1d9)]>0x1?_0x461c26[_0x146ae2(0x1c1)](_0x21ef15,_0x2f6a05[_0x146ae2(0x1d8)](0x1)):_0x461c26[_0x146ae2(0x1cf)](_0x21ef15),_0x3d7c34[_0x146ae2(0x1cf)](_0x21ef15));return{'removed':Array[_0x146ae2(0x1cb)](_0x3d7c34),'inserted':Array[_0x146ae2(0x1cb)](_0x461c26[_0x146ae2(0x1c3)]())[_0x146ae2(0x1b6)](),'moved':Array[_0x146ae2(0x1cb)](_0x46cc80)};}}
|