@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251021.0 → 0.0.0-nightly-20251022.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.js +1 -1
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x341696}from'ckeditor5/src/core.js';import{isWidget as _0x59ee61,toWidget as _0x19bf78,toWidgetEditable as _0xd3d701}from'ckeditor5/src/widget.js';import{uid as _0x61221e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x20b6c7,ClickObserver as _0x16fd45}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xaf45c0}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1d7b78}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x341696{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xaf45c0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd43403}=this;_0xd43403['config']['define']('footnotes.multiBlock',!0x0),_0xd43403['commands']['add']('insertFootnote',new _0x1d7b78(_0xd43403)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d786c){const _0x4183ff=_0x1d95c9([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]),_0x48d631=0x47a28506,_0x9f48c0=0x47a5f3d6^_0x48d631,_0x21590c=window[_0x1d95c9([0x44,0x61,0x74,0x65])][_0x1d95c9([0x6e,0x6f,0x77])](),_0x22523c=_0x4d786c[_0x1d95c9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10f277=new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x65207a=>{_0x22523c[_0x1d95c9([0x6f,0x6e,0x63,0x65])](_0x1d95c9([0x72,0x65,0x61,0x64,0x79]),_0x65207a);}),_0x2f769e={[_0x1d95c9([0x6b,0x74,0x79])]:_0x1d95c9([0x45,0x43]),[_0x1d95c9([0x75,0x73,0x65])]:_0x1d95c9([0x73,0x69,0x67]),[_0x1d95c9([0x63,0x72,0x76])]:_0x1d95c9([0x50,0x2d,0x32,0x35,0x36]),[_0x1d95c9([0x78])]:_0x1d95c9([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]),[_0x1d95c9([0x79])]:_0x1d95c9([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]),[_0x1d95c9([0x61,0x6c,0x67])]:_0x1d95c9([0x45,0x53,0x32,0x35,0x36])},_0x192346=_0x22523c[_0x1d95c9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d95c9([0x67,0x65,0x74])](_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe02d80(){let _0x458258,_0x3d5d08=null,_0x5d57e2=null;try{if(_0x192346==_0x1d95c9([0x47,0x50,0x4c]))return _0x1d95c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x458258=_0x34807b(),!_0x458258)return _0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x458258[_0x1d95c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d57e2=_0x5b49f0(_0x458258[_0x1d95c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x458258[_0x1d95c9([0x6a,0x74,0x69])])),await _0xf89cd9()?_0x365f8f()?_0x2ce1f1()?_0x1d95c9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cd9ff()?(_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d95c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5d08=_0x403c69(_0x1d95c9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d95c9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d5d08=_0x403c69(_0x1d95c9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e7647()):_0x1d95c9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d95c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d95c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ce1f1(){const _0x71bbf0=[_0x1d95c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d95c9([0x74,0x72,0x69,0x61,0x6c])][_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21590c/0x3e8:0xe10*_0x9f48c0;return _0x458258[_0x1d95c9([0x65,0x78,0x70])]<_0x71bbf0;}function _0x365f8f(){const _0x751560=_0x458258[_0x1d95c9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x751560&&(!!_0x751560[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x2a]))||!!_0x751560[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x46,0x4f,0x4f])));}function _0x4cd9ff(){const _0x4220d3=_0x458258[_0x1d95c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4220d3||0x0==_0x4220d3[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d149f}=new URL(window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4220d3[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d149f))return!0x0;const _0x5d2966=_0x2d149f[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e]));return _0x4220d3[_0x1d95c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17d3ed=>_0x17d3ed[_0x1d95c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d95c9([0x2a])))[_0x1d95c9([0x6d,0x61,0x70])](_0x5d8cf4=>_0x5d8cf4[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e])))[_0x1d95c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cb588=>_0x5cb588[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d2966[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d95c9([0x6d,0x61,0x70])](_0x20b398=>Array(_0x5d2966[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20b398[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d95c9([0x66,0x69,0x6c,0x6c])](_0x20b398[0x0]===_0x1d95c9([0x2a])?_0x1d95c9([0x2a]):'')[_0x1d95c9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20b398))[_0x1d95c9([0x73,0x6f,0x6d,0x65])](_0xbb1c85=>_0x5d2966[_0x1d95c9([0x65,0x76,0x65,0x72,0x79])]((_0xa578a3,_0x273f47)=>_0xbb1c85[_0x273f47]===_0xa578a3||_0xbb1c85[_0x273f47]===_0x1d95c9([0x2a])));}function _0x1e7647(){return _0x3d5d08&&_0x5d57e2?new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d3bb0,_0x9849f7)=>{_0x3d5d08[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x2d3bb0,_0x9849f7),_0x5d57e2[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x4713b0=>{_0x4713b0!=_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3bb0(_0x4713b0);},_0x9849f7);}):_0x3d5d08||_0x5d57e2||_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b49f0(_0x56e0d0,_0x30c26b){return new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ec5a5=>{if(_0x3c3d34())return _0x4ec5a5(_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]));_0x58fc1(),_0x22523c[_0x1d95c9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5eb10c=!0x1;const _0x526336=_0x61221e();function _0x2ab942(_0x57ecf8){return!!_0x57ecf8&&(typeof _0x57ecf8===_0x1d95c9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57ecf8===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57ecf8[_0x1d95c9([0x74,0x68,0x65,0x6e])]===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57ecf8[_0x1d95c9([0x63,0x61,0x74,0x63,0x68])]===_0x1d95c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d87e0(_0x3f061b){_0x40c4ad(_0x3f061b)[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5e6999=>{if(!_0x5e6999||_0x5e6999[_0x1d95c9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d95c9([0x6f,0x6b]))return _0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275a8d(_0x5957da(_0x526336+_0x30c26b))!=_0x5e6999[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d95c9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5bc66e=>(_0x364490(),_0x5bc66e),()=>{const _0xcdce8=_0x3a9212();return null==_0xcdce8?(_0x364490(),_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])):_0x1d95c9(_0x21590c-_0xcdce8>(0x63ae0106^_0x48d631)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x4ec5a5)[_0x1d95c9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x65507c=0x47946b86^_0x48d631;function _0x364490(){const _0x25fc36=_0x1d95c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a8d(_0x5957da(_0x56e0d0)),_0x294b48=_0x44b82f(_0x275a8d(window[_0x1d95c9([0x4d,0x61,0x74,0x68])][_0x1d95c9([0x63,0x65,0x69,0x6c])](_0x21590c/_0x65507c)));window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d95c9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25fc36,_0x294b48);}function _0x3a9212(){const _0x43353e=_0x1d95c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x275a8d(_0x5957da(_0x56e0d0)),_0x444d4a=window[_0x1d95c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d95c9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43353e);return _0x444d4a?window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44b82f(_0x444d4a),0x10)*_0x65507c:null;}function _0x40c4ad(_0x460e00){return new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5908f6,_0x2c6301)=>{_0x460e00[_0x1d95c9([0x74,0x68,0x65,0x6e])](_0x5908f6,_0x2c6301),window[_0x1d95c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c6301,0x47a351c6^_0x48d631);});}}_0x22523c[_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x84fd0d,_0x49787f)=>{if(_0x49787f[0x0]!=_0x56e0d0)return _0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49787f[0x1]={..._0x49787f[0x1],[_0x1d95c9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x526336};},{[_0x1d95c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d95c9([0x68,0x69,0x67,0x68])}),_0x22523c[_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c8542=>{_0x2ab942(_0x1c8542[_0x1d95c9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5eb10c=!0x0,_0x1d87e0(_0x1c8542[_0x1d95c9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d95c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d95c9([0x6c,0x6f,0x77])}),_0x10f277[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>{_0x5eb10c||_0x4ec5a5(_0x1d95c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c3d34(){return _0x22523c[_0x1d95c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d95c9([0x76,0x69,0x65,0x77])][_0x1d95c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d95c9([0x61,0x75,0x74,0x6f]);}function _0x58fc1(){_0x22523c[_0x1d95c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d95c9([0x76,0x69,0x65,0x77])][_0x1d95c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d95c9([0x61,0x75,0x74,0x6f]);}}function _0x403c69(_0xbe2682){const _0x4094dd=[new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb28f7e=>setTimeout(_0xb28f7e,0x47abbbca^_0x48d631)),_0x10f277[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3191=>{let _0x2b4789=0x0;_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x6f,0x6e])](_0x1d95c9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc0c96b,_0x4ebcec)=>{_0x4ebcec[0x0][_0x1d95c9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b4789++,_0x2b4789==(0x47a284fe^_0x48d631)&&(_0x4a3191(),_0xc0c96b[_0x1d95c9([0x6f,0x66,0x66])]());});}))];return window[_0x1d95c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d95c9([0x72,0x61,0x63,0x65])](_0x4094dd)[_0x1d95c9([0x74,0x68,0x65,0x6e])](()=>_0xbe2682);}async function _0x284817(){await _0x10f277,_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0a13,_0x22523c[_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d95c9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0a13,_0x22523c[_0x1d95c9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d95c9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fad28(_0x53a7a8){const _0x551832=_0x20b20a();_0x22523c[_0x551832]=_0x1d95c9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53a7a8,_0x53a7a8!=_0x1d95c9([0x56,0x61,0x6c,0x69,0x64])&&_0x284817();}function _0x20b20a(){const _0x1a58a1=window[_0x1d95c9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d95c9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d95c9([0x6e,0x6f,0x77])]())[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d95c9([0x2e]),'');let _0x18a406=_0x1d95c9([0x75]);for(let _0x239bde=0x0;_0x239bde<_0x1a58a1[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239bde+=0x2){let _0x315f4a=window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a58a1[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x239bde,_0x239bde+0x2));_0x315f4a>=_0x4183ff[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x315f4a-=_0x4183ff[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18a406+=_0x4183ff[_0x315f4a];}return _0x18a406;}function _0x34807b(){const _0xafcd73=_0x192346[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e]));if(0x3!=_0xafcd73[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13f3c5(_0xafcd73[0x1]);function _0x13f3c5(_0xe7d3e6){const _0x1bd855=_0xe06e85(_0xe7d3e6);return _0x1bd855&&_0x9f1252()?_0x1bd855:null;function _0x9f1252(){const _0x41f70e=_0x1bd855[_0x1d95c9([0x6a,0x74,0x69])],_0x2c6d05=window[_0x1d95c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41f70e[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41f70e[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54d11c={..._0x1bd855,[_0x1d95c9([0x6a,0x74,0x69])]:_0x41f70e[_0x1d95c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41f70e[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54d11c[_0x1d95c9([0x76,0x63])],_0x5957da(_0x54d11c)==_0x2c6d05;}}}async function _0xf89cd9(){let _0x5b2681=!0x0;try{const _0x341574=_0x192346[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])](_0x1d95c9([0x2e])),[_0x173e72,_0x12c715,_0x5a3f6b]=_0x341574;return _0x5dd9bb(_0x173e72),await _0x453a4b(_0x173e72,_0x12c715,_0x5a3f6b),_0x5b2681;}catch{return!0x1;}function _0x5dd9bb(_0x1c63f8){const _0x30150e=_0xe06e85(_0x1c63f8);_0x30150e&&_0x30150e[_0x1d95c9([0x61,0x6c,0x67])]==_0x1d95c9([0x45,0x53,0x32,0x35,0x36])||(_0x5b2681=!0x1);}async function _0x453a4b(_0x403d50,_0x1d524b,_0x895902){const _0x325d5a=window[_0x1d95c9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d95c9([0x66,0x72,0x6f,0x6d])](_0x13d9ba(_0x895902),_0x5866f0=>_0x5866f0[_0x1d95c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9acfe0=new window[(_0x1d95c9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d95c9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403d50+_0x1d95c9([0x2e])+_0x1d524b),_0xae6408=window[_0x1d95c9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d95c9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xae6408)return;const _0xb4be3a=await _0xae6408[_0x1d95c9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d95c9([0x6a,0x77,0x6b]),_0x2f769e,{[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x45,0x43,0x44,0x53,0x41]),[_0x1d95c9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d95c9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xae6408[_0x1d95c9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x45,0x43,0x44,0x53,0x41]),[_0x1d95c9([0x68,0x61,0x73,0x68])]:{[_0x1d95c9([0x6e,0x61,0x6d,0x65])]:_0x1d95c9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb4be3a,_0x325d5a,_0x9acfe0)||(_0x5b2681=!0x1);}}function _0xe06e85(_0x1c6a02){return _0x1c6a02[_0x1d95c9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d95c9([0x65,0x79]))?JSON[_0x1d95c9([0x70,0x61,0x72,0x73,0x65])](_0x13d9ba(_0x1c6a02)):null;}function _0x13d9ba(_0x519492){return window[_0x1d95c9([0x61,0x74,0x6f,0x62])](_0x519492[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d95c9([0x2b]))[_0x1d95c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d95c9([0x2f])));}function _0x5957da(_0x4f05aa){let _0x431fb4=0x1505;function _0x30b98e(_0x4c389d){for(let _0x243cd3=0x0;_0x243cd3<_0x4c389d[_0x1d95c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x243cd3++){const _0x34b5a8=_0x4c389d[_0x1d95c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x243cd3);_0x431fb4=(_0x431fb4<<0x5)+_0x431fb4+_0x34b5a8,_0x431fb4&=_0x431fb4;}}function _0x5bbe59(_0x3fc22c){Array[_0x1d95c9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fc22c)?_0x3fc22c[_0x1d95c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bbe59):_0x3fc22c&&typeof _0x3fc22c==_0x1d95c9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d95c9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fc22c)[_0x1d95c9([0x73,0x6f,0x72,0x74])]()[_0x1d95c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37b1e2,_0x1177a6])=>{_0x30b98e(_0x37b1e2),_0x5bbe59(_0x1177a6);}):_0x30b98e(window[_0x1d95c9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fc22c));}return _0x5bbe59(_0x4f05aa),_0x431fb4>>>0x0;}function _0x275a8d(_0x5bd7b2){return _0x5bd7b2[_0x1d95c9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d95c9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d95c9([0x30]));}function _0x44b82f(_0x4155d4){return _0x4155d4[_0x1d95c9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d95c9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d95c9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f0a13(){}function _0x1d95c9(_0x1f6f8b){return _0x1f6f8b['map'](_0x1d2260=>String['fromCharCode'](_0x1d2260))['join']('');}_0x1fad28(await _0xe02d80());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5530b0){const {plugins:_0x531501,editing:_0x43747b,model:_0x307f70}=this['editor'],_0x4a5163=_0x531501['get'](_0xaf45c0)['getFootnote'](_0x5530b0);return!!_0x4a5163&&(_0x307f70['change'](_0x485d94=>{_0x485d94['setSelection'](_0x485d94['createPositionAt'](_0x4a5163['definition'],'end'));}),_0x43747b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x51f7f4){const {plugins:_0x36fa1a,editing:_0x219ac6,model:_0x19df44}=this['editor'],_0x8dfc0a=_0x36fa1a['get'](_0xaf45c0)['getFootnote'](_0x51f7f4);return!!_0x8dfc0a&&(_0x19df44['change'](_0x2e1edd=>{_0x2e1edd['setSelection'](_0x8dfc0a['reference'],'on');}),_0x219ac6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x34389b}=this['editor']['model'],_0x463414=this['editor']['config']['get']('footnotes.multiBlock');_0x34389b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x34389b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x34389b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x463414?_0x34389b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x34389b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x34389b['addChildCheck'](_0x410b99=>{for(const _0x554313 of _0x410b99)if('footnoteDefinition'===_0x554313['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1df739}=this,{conversion:_0x30aab9,editing:_0x4a59c0}=_0x1df739,{t:t}=_0x1df739['locale'];_0x30aab9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x40ad27,{writer:_0xb505e5,consumable:_0x410c34})=>{const _0x36da81=_0x40ad27['getChild'](0x0);if(!_0x36da81||!_0x36da81['is']('element','a'))return null;const _0x1a71b3=_0x36da81['getAttribute']('href')||'';if(!_0x1a71b3['startsWith']('#'))return null;const _0xdb223e=_0x1a71b3['replace'](/^#/,'');if(!_0xdb223e)return null;_0x410c34['consume'](_0x36da81,{'name':!0x0,'attributes':['href']});for(const {item:_0x5a7d47}of _0x4a59c0['view']['createRangeIn'](_0x36da81))_0x5a7d47['is']('$textProxy')?_0x410c34['consume'](_0x5a7d47['textNode'],{'name':!0x0}):_0x5a7d47['is']('element')&&_0x410c34['consume'](_0x5a7d47,{'name':!0x0});return _0xb505e5['createElement']('footnoteRef',{'footnoteId':_0xdb223e});}}),_0x30aab9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b3b37,{writer:_0x15d349})=>g(_0x4b3b37,_0x15d349)}),_0x30aab9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1b40d7,{writer:_0x41030c})=>{const _0x511b6e=_0x1b40d7['getAttribute']('footnoteCounter');return _0x19bf78(g(_0x1b40d7,_0x41030c),_0x41030c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x511b6e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4d479d}=this,{t:t}=_0x4d479d['locale'],{conversion:_0x4372ae}=_0x4d479d;_0x4372ae['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x4372ae['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x4372ae['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2deb52,{writer:_0x5dfdb4})=>{const _0x574061=_0x5dfdb4['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x5dfdb4['createContainerElement']('ol',{'class':'footnotes'},_0x5dfdb4['createSlot']())),_0x4b7e12=_0x19bf78(_0x574061,_0x5dfdb4,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5dfdb4['setCustomProperty']('footnotesDefinitions',!0x0,_0x4b7e12),_0x4b7e12;}});}['_defineDefinitionConverters'](){const {editor:_0x250976}=this,{conversion:_0x310930,locale:_0x2e5331}=_0x250976,_0x38ab6c=_0x250976['config']['get']('footnotes.multiBlock');_0x310930['for']('upcast')['add'](_0x43af2a=>{_0x43af2a['on']('element:li',(_0x22831d,_0x15261f,_0x4f4b9d)=>{const _0x52c249=_0x15261f['viewItem'];if(!_0x52c249['hasClass']('footnote-definition')||!_0x52c249['getAttribute']('id'))return;const _0x5ea6ba=_0x52c249['parent'];if(!_0x5ea6ba['is']('element','ol')||!_0x5ea6ba['hasClass']('footnotes'))return;if(!_0x4f4b9d['consumable']['test'](_0x52c249,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5ee497=_0x4f4b9d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x52c249['getAttribute']('id')});if(!_0x4f4b9d['safeInsert'](_0x5ee497,_0x15261f['modelCursor']))return;_0x4f4b9d['consumable']['consume'](_0x52c249,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59cbe1=Array['from'](_0x52c249['getChildren']())['find'](_0x3b7a9c=>_0x3b7a9c['is']('element')&&_0x3b7a9c['hasClass']('footnote-content'));for(const _0x2704c5 of _0x52c249['getChildren']())_0x2704c5['is']('element')&&(_0x4f4b9d['consumable']['consume'](_0x2704c5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4f4b9d['consumable']['consume'](_0x2704c5,{'name':!0x0,'classes':'footnote-content'}));if(_0x59cbe1){if(_0x38ab6c)_0x4f4b9d['convertChildren'](_0x59cbe1,_0x5ee497);else{const _0x2a9a25=_0x4f4b9d['writer']['createElement']('footnoteInlineContent');_0x4f4b9d['writer']['insert'](_0x2a9a25,_0x5ee497),_0x4f4b9d['convertChildren'](_0x59cbe1,_0x2a9a25);}}_0x4f4b9d['updateConversionResult'](_0x5ee497,_0x15261f);});}),_0x310930['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1bc8eb,{writer:_0x2e18c8})=>D(_0x1bc8eb,_0x2e18c8,_0x2e5331,{'dataPipeline':!0x0})}),_0x310930['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5cc1be,{writer:_0x80f882})=>D(_0x5cc1be,_0x80f882,_0x2e5331)});}['_defineBogusParagraphConverters'](){const {editor:_0x4afc26}=this,{conversion:_0x496de8}=_0x4afc26;_0x4afc26['config']['get']('footnotes.multiBlock')?(_0x496de8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x496de8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4afc26['model']['document'],'change:data',()=>{!function(_0x236932,_0x4077af){const _0x434548=_0x236932['document']['differ'],_0x3bc6cb=new Set();for(const _0x218bfb of _0x434548['getChanges']()){const _0x3320f3='attribute'==_0x218bfb['type']?_0x218bfb['range']['start']['parent']:_0x218bfb['position']['parent'];_0x3320f3['is']('element','footnoteDefinition')&&_0x3bc6cb['add'](_0x3320f3);}for(const _0x5cb00e of _0x3bc6cb['values']()){const _0x5bf00f=Array['from'](_0x5cb00e['getChildren']())['filter'](_0x5cee8a=>p(_0x5cee8a,_0x4077af['mapper']));for(const _0x37b4dd of _0x5bf00f)_0x4077af['reconvertItem'](_0x37b4dd);}}(_0x4afc26['model'],_0x4afc26['editing']);})):(_0x496de8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x496de8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x206873,{writer:_0xb24d76})=>{const _0x54a922=_0xb24d76['createContainerElement']('span');return _0xb24d76['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54a922),_0x54a922;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1db55e}=this,{editing:_0x85d9d2,t:t}=_0x1db55e,_0x537671=_0x1db55e['model']['document']['selection'];_0x1db55e['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x1db55e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x85d9d2['view']['document'],'enter',(_0x5e630b,_0x1cc578)=>{const _0x422d94=function(_0x527d2a){const _0x434632=_0x527d2a['getSelectedElement']();if(_0x434632?.['is']('element','footnoteRef'))return _0x434632;return null;}(_0x537671);if(_0x422d94){const _0x5ea4e6=_0x422d94['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5ea4e6),_0x1cc578['preventDefault'](),_0x5e630b['stop']();}},{'context':_0x59ee61});}['_defineClickHandlers'](){const {editor:_0x894b90}=this,{editing:_0x4f2aaa}=_0x894b90;_0x894b90['editing']['view']['addObserver'](_0x20b6c7),_0x894b90['editing']['view']['addObserver'](_0x16fd45);let _0x2e2e81=!0x1;this['listenTo'](_0x4f2aaa['view']['document'],'pointerdown',(_0x17d5c1,_0x38bf5d)=>{const {target:_0x89a0f}=_0x38bf5d,_0x191df1=_0x4f2aaa['view']['document']['selection'];_0x2e2e81=!(!_0x89a0f['is']('element','sup')||!_0x89a0f['hasClass']('footnote'))&&_0x191df1['getSelectedElement']()===_0x89a0f;},{'priority':'high'}),this['listenTo'](_0x4f2aaa['view']['document'],'click',(_0x5c060d,_0x46ef5e)=>{const {target:_0x1643ee}=_0x46ef5e,_0x2acd59=_0x1643ee['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2acd59['slice'](0x1)),_0x5c060d['stop'](),_0x46ef5e['preventDefault']();},{'priority':'high','context':_0x2ce77a=>_0x2ce77a['is']('element','sup')&&_0x2ce77a['hasClass']('footnote')&&_0x2e2e81}),this['listenTo'](_0x4f2aaa['view']['document'],'click',(_0xd22ae9,_0x2e6e2a)=>{const {target:_0x567ccb}=_0x2e6e2a;if(!_0x567ccb['is']('element','a'))return;let _0x1cbebc=_0x567ccb['getAttribute']('href');if(!_0x1cbebc?.['startsWith']('#'))return;_0x1cbebc=_0x1cbebc['slice'](0x1);let _0x486b76=!0x1;(_0x1cbebc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1cbebc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1cbebc))&&(_0x486b76=!0x0),_0x486b76&&(_0x2e6e2a['preventDefault'](),_0xd22ae9['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x520ab0}={}){return(_0xa41be2,{writer:_0x310ba6})=>{if(!h(_0xa41be2))return null;if(!_0x520ab0)return _0x310ba6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x338bd5=_0x310ba6['createContainerElement']('p');return _0x310ba6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x338bd5),_0x338bd5;};}function h(_0x1654eb){const {parent:_0x176679}=_0x1654eb;if(!_0x176679?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x176679['childCount'])return!0x1;for(const _0x5351a6 of _0x1654eb['getAttributeKeys']())if(!_0x5351a6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5351a6)return!0x1;return!0x0;}function p(_0x4c5621,_0x40a388){if(!_0x4c5621['is']('element','paragraph'))return!0x1;const _0x28d008=_0x40a388['toViewElement'](_0x4c5621);return!!_0x28d008&&h(_0x4c5621)!==_0x28d008['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4bd5e3){return _0x59ee61(_0x4bd5e3)&&_0x4bd5e3['is']('containerElement')&&!!_0x4bd5e3['getCustomProperty']('footnotesDefinitions');}function g(_0x120ce1,_0x3ad316){const _0x206907=_0x120ce1['getAttribute']('footnoteId'),_0x2a125c=_0x120ce1['getAttribute']('footnoteCounter'),_0x500f24=_0x3ad316['createUIElement']('a',{'id':'ref-'+_0x206907,'href':'#'+_0x206907},function(_0xe30ecb){const _0x190306=this['toDomElement'](_0xe30ecb);return _0x190306['textContent']=_0x2a125c,_0x190306;}),_0x2ee38d=_0x3ad316['createContainerElement']('sup',{'class':'footnote'},[_0x500f24]);return _0x2ee38d['getFillerOffset']=()=>null,_0x2ee38d;}function D(_0x2bd31c,_0xd92c1a,_0x3a91cf,{dataPipeline:_0x578bc7}={}){const {t:t}=_0x3a91cf,_0x580583=_0x2bd31c['getAttribute']('footnoteId'),_0x421840=_0xd92c1a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x580583},function(_0x4ee2a8){const _0x23c5c9=this['toDomElement'](_0x4ee2a8);return _0x23c5c9['innerText']='^',_0x23c5c9;}),_0x39cd34=_0x578bc7?_0xd92c1a['createContainerElement']('div',{'class':'footnote-content'}):_0xd3d701(_0xd92c1a['createEditableElement']('div',{'class':'footnote-content'}),_0xd92c1a,{'label':t('Footnote\x20content.')});return _0xd92c1a['insert'](_0xd92c1a['createPositionAt'](_0x39cd34,0x0),_0xd92c1a['createSlot']()),_0xd92c1a['createContainerElement']('li',{'class':'footnote-definition','id':_0x580583},[_0x421840,_0x39cd34]);}
|
|
23
|
+
import{Plugin as _0xf62ce6}from'ckeditor5/src/core.js';import{isWidget as _0x15e380,toWidget as _0x1146aa,toWidgetEditable as _0x29c958}from'ckeditor5/src/widget.js';import{uid as _0x3e3723}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5c1774,ClickObserver as _0x458043}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x6bdfc1}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x42e383}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xf62ce6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x6bdfc1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48f1df}=this;_0x48f1df['config']['define']('footnotes.multiBlock',!0x0),_0x48f1df['commands']['add']('insertFootnote',new _0x42e383(_0x48f1df)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xeadd86){const _0x56996b=_0x49d130([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]),_0x183be3=0x47a28506,_0x29a36d=0x47a5f3ee^_0x183be3,_0x2d9698=window[_0x49d130([0x44,0x61,0x74,0x65])][_0x49d130([0x6e,0x6f,0x77])](),_0x39835d=_0xeadd86[_0x49d130([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x351d34=new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x357b3e=>{_0x39835d[_0x49d130([0x6f,0x6e,0x63,0x65])](_0x49d130([0x72,0x65,0x61,0x64,0x79]),_0x357b3e);}),_0x2c7bf9={[_0x49d130([0x6b,0x74,0x79])]:_0x49d130([0x45,0x43]),[_0x49d130([0x75,0x73,0x65])]:_0x49d130([0x73,0x69,0x67]),[_0x49d130([0x63,0x72,0x76])]:_0x49d130([0x50,0x2d,0x32,0x35,0x36]),[_0x49d130([0x78])]:_0x49d130([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]),[_0x49d130([0x79])]:_0x49d130([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]),[_0x49d130([0x61,0x6c,0x67])]:_0x49d130([0x45,0x53,0x32,0x35,0x36])},_0x2f351d=_0x39835d[_0x49d130([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49d130([0x67,0x65,0x74])](_0x49d130([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xde4a69(){let _0x5d52b5,_0x59720b=null,_0x3e6fcd=null;try{if(_0x2f351d==_0x49d130([0x47,0x50,0x4c]))return _0x49d130([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d52b5=_0x235d67(),!_0x5d52b5)return _0x49d130([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d52b5[_0x49d130([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e6fcd=_0xbe14bd(_0x5d52b5[_0x49d130([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d52b5[_0x49d130([0x6a,0x74,0x69])])),await _0xd46f64()?_0x273f21()?_0x4c1bca()?_0x49d130([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ca39e()?(_0x5d52b5[_0x49d130([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49d130([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59720b=_0xac4d62(_0x49d130([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d52b5[_0x49d130([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49d130([0x74,0x72,0x69,0x61,0x6c])&&(_0x59720b=_0xac4d62(_0x49d130([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a7f81()):_0x49d130([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49d130([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49d130([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49d130([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c1bca(){const _0xc614ed=[_0x49d130([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49d130([0x74,0x72,0x69,0x61,0x6c])][_0x49d130([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d52b5[_0x49d130([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d9698/0x3e8:0xe10*_0x29a36d;return _0x5d52b5[_0x49d130([0x65,0x78,0x70])]<_0xc614ed;}function _0x273f21(){const _0x1f81c4=_0x5d52b5[_0x49d130([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f81c4&&(!!_0x1f81c4[_0x49d130([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49d130([0x2a]))||!!_0x1f81c4[_0x49d130([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49d130([0x46,0x4f,0x4f])));}function _0x4ca39e(){const _0x4cf061=_0x5d52b5[_0x49d130([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cf061||0x0==_0x4cf061[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x472395}=new URL(window[_0x49d130([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cf061[_0x49d130([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472395))return!0x0;const _0x21c6b8=_0x472395[_0x49d130([0x73,0x70,0x6c,0x69,0x74])](_0x49d130([0x2e]));return _0x4cf061[_0x49d130([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3511fe=>_0x3511fe[_0x49d130([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49d130([0x2a])))[_0x49d130([0x6d,0x61,0x70])](_0x50f2d8=>_0x50f2d8[_0x49d130([0x73,0x70,0x6c,0x69,0x74])](_0x49d130([0x2e])))[_0x49d130([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f4a3=>_0x19f4a3[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21c6b8[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49d130([0x6d,0x61,0x70])](_0x2b80fe=>Array(_0x21c6b8[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b80fe[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49d130([0x66,0x69,0x6c,0x6c])](_0x2b80fe[0x0]===_0x49d130([0x2a])?_0x49d130([0x2a]):'')[_0x49d130([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b80fe))[_0x49d130([0x73,0x6f,0x6d,0x65])](_0x17a177=>_0x21c6b8[_0x49d130([0x65,0x76,0x65,0x72,0x79])]((_0x5d3da0,_0x5b85cf)=>_0x17a177[_0x5b85cf]===_0x5d3da0||_0x17a177[_0x5b85cf]===_0x49d130([0x2a])));}function _0x1a7f81(){return _0x59720b&&_0x3e6fcd?new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fd6a8,_0x1c5e2a)=>{_0x59720b[_0x49d130([0x74,0x68,0x65,0x6e])](_0x3fd6a8,_0x1c5e2a),_0x3e6fcd[_0x49d130([0x74,0x68,0x65,0x6e])](_0x17151c=>{_0x17151c!=_0x49d130([0x56,0x61,0x6c,0x69,0x64])&&_0x3fd6a8(_0x17151c);},_0x1c5e2a);}):_0x59720b||_0x3e6fcd||_0x49d130([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbe14bd(_0x16ced2,_0x177c3c){return new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a2437=>{if(_0x56b7e5())return _0x1a2437(_0x49d130([0x56,0x61,0x6c,0x69,0x64]));_0x5e5722(),_0x39835d[_0x49d130([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49d130([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35297f=!0x1;const _0x217e9f=_0x3e3723();function _0x5a99b1(_0x601c0e){return!!_0x601c0e&&(typeof _0x601c0e===_0x49d130([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x601c0e===_0x49d130([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x601c0e[_0x49d130([0x74,0x68,0x65,0x6e])]===_0x49d130([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x601c0e[_0x49d130([0x63,0x61,0x74,0x63,0x68])]===_0x49d130([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4de107(_0x388a85){_0x579b62(_0x388a85)[_0x49d130([0x74,0x68,0x65,0x6e])](_0x4e64b3=>{if(!_0x4e64b3||_0x4e64b3[_0x49d130([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49d130([0x6f,0x6b]))return _0x49d130([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15f7f5(_0x34c705(_0x217e9f+_0x177c3c))!=_0x4e64b3[_0x49d130([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49d130([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49d130([0x56,0x61,0x6c,0x69,0x64]);})[_0x49d130([0x74,0x68,0x65,0x6e])](_0x2b6c75=>(_0x487603(),_0x2b6c75),()=>{const _0x3be037=_0x1d9c2d();return null==_0x3be037?(_0x487603(),_0x49d130([0x56,0x61,0x6c,0x69,0x64])):_0x49d130(_0x2d9698-_0x3be037>(0x63ae0106^_0x183be3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49d130([0x74,0x68,0x65,0x6e])](_0x1a2437)[_0x49d130([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a2437(_0x49d130([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e0882=0x47946b86^_0x183be3;function _0x487603(){const _0x308a93=_0x49d130([0x6c,0x6c,0x63,0x74,0x2d])+_0x15f7f5(_0x34c705(_0x16ced2)),_0x4b8b2f=_0x5a3f58(_0x15f7f5(window[_0x49d130([0x4d,0x61,0x74,0x68])][_0x49d130([0x63,0x65,0x69,0x6c])](_0x2d9698/_0x1e0882)));window[_0x49d130([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49d130([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x308a93,_0x4b8b2f);}function _0x1d9c2d(){const _0x20b73c=_0x49d130([0x6c,0x6c,0x63,0x74,0x2d])+_0x15f7f5(_0x34c705(_0x16ced2)),_0x810d12=window[_0x49d130([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49d130([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20b73c);return _0x810d12?window[_0x49d130([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a3f58(_0x810d12),0x10)*_0x1e0882:null;}function _0x579b62(_0x362cb8){return new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b300b,_0x197227)=>{_0x362cb8[_0x49d130([0x74,0x68,0x65,0x6e])](_0x5b300b,_0x197227),window[_0x49d130([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x197227,0x47a351c6^_0x183be3);});}}_0x39835d[_0x49d130([0x6f,0x6e])](_0x49d130([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e065e,_0x1b76e4)=>{if(_0x1b76e4[0x0]!=_0x16ced2)return _0x1a2437(_0x49d130([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b76e4[0x1]={..._0x1b76e4[0x1],[_0x49d130([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x217e9f};},{[_0x49d130([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49d130([0x68,0x69,0x67,0x68])}),_0x39835d[_0x49d130([0x6f,0x6e])](_0x49d130([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e445a=>{_0x5a99b1(_0x5e445a[_0x49d130([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35297f=!0x0,_0x4de107(_0x5e445a[_0x49d130([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49d130([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49d130([0x6c,0x6f,0x77])}),_0x351d34[_0x49d130([0x74,0x68,0x65,0x6e])](()=>{_0x35297f||_0x1a2437(_0x49d130([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56b7e5(){return _0x39835d[_0x49d130([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49d130([0x76,0x69,0x65,0x77])][_0x49d130([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49d130([0x61,0x75,0x74,0x6f]);}function _0x5e5722(){_0x39835d[_0x49d130([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49d130([0x76,0x69,0x65,0x77])][_0x49d130([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49d130([0x61,0x75,0x74,0x6f]);}}function _0xac4d62(_0x2ad1fa){const _0x5f526f=[new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348078=>setTimeout(_0x348078,0x47abbbca^_0x183be3)),_0x351d34[_0x49d130([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x370484=>{let _0x3a7061=0x0;_0x39835d[_0x49d130([0x6d,0x6f,0x64,0x65,0x6c])][_0x49d130([0x6f,0x6e])](_0x49d130([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33ed50,_0x113fff)=>{_0x113fff[0x0][_0x49d130([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a7061++,_0x3a7061==(0x47a284fe^_0x183be3)&&(_0x370484(),_0x33ed50[_0x49d130([0x6f,0x66,0x66])]());});}))];return window[_0x49d130([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49d130([0x72,0x61,0x63,0x65])](_0x5f526f)[_0x49d130([0x74,0x68,0x65,0x6e])](()=>_0x2ad1fa);}async function _0x1f381f(){await _0x351d34,_0x39835d[_0x49d130([0x6d,0x6f,0x64,0x65,0x6c])][_0x49d130([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3887f9,_0x39835d[_0x49d130([0x6d,0x6f,0x64,0x65,0x6c])][_0x49d130([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3887f9,_0x39835d[_0x49d130([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49d130([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31c174(_0x17f894){const _0x1e5024=_0x26afe7();_0x39835d[_0x1e5024]=_0x49d130([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x17f894,_0x17f894!=_0x49d130([0x56,0x61,0x6c,0x69,0x64])&&_0x1f381f();}function _0x26afe7(){const _0x17a5fb=window[_0x49d130([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49d130([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49d130([0x6e,0x6f,0x77])]())[_0x49d130([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49d130([0x2e]),'');let _0x320a70=_0x49d130([0x75]);for(let _0x3c09b0=0x0;_0x3c09b0<_0x17a5fb[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c09b0+=0x2){let _0x15260c=window[_0x49d130([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17a5fb[_0x49d130([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c09b0,_0x3c09b0+0x2));_0x15260c>=_0x56996b[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15260c-=_0x56996b[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x320a70+=_0x56996b[_0x15260c];}return _0x320a70;}function _0x235d67(){const _0x5b29d6=_0x2f351d[_0x49d130([0x73,0x70,0x6c,0x69,0x74])](_0x49d130([0x2e]));if(0x3!=_0x5b29d6[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26e246(_0x5b29d6[0x1]);function _0x26e246(_0x5ce047){const _0x385dfb=_0x279d1b(_0x5ce047);return _0x385dfb&&_0x3f0dcd()?_0x385dfb:null;function _0x3f0dcd(){const _0x9951ad=_0x385dfb[_0x49d130([0x6a,0x74,0x69])],_0x450ac9=window[_0x49d130([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9951ad[_0x49d130([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9951ad[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f378f={..._0x385dfb,[_0x49d130([0x6a,0x74,0x69])]:_0x9951ad[_0x49d130([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9951ad[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f378f[_0x49d130([0x76,0x63])],_0x34c705(_0x3f378f)==_0x450ac9;}}}async function _0xd46f64(){let _0x4604c9=!0x0;try{const _0x3ee5e3=_0x2f351d[_0x49d130([0x73,0x70,0x6c,0x69,0x74])](_0x49d130([0x2e])),[_0x101140,_0x3c9a7b,_0x3c5b58]=_0x3ee5e3;return _0x1c6625(_0x101140),await _0x43ad63(_0x101140,_0x3c9a7b,_0x3c5b58),_0x4604c9;}catch{return!0x1;}function _0x1c6625(_0x26c819){const _0x4d5f4f=_0x279d1b(_0x26c819);_0x4d5f4f&&_0x4d5f4f[_0x49d130([0x61,0x6c,0x67])]==_0x49d130([0x45,0x53,0x32,0x35,0x36])||(_0x4604c9=!0x1);}async function _0x43ad63(_0x12b0dd,_0x47216e,_0x2d0459){const _0x218fb3=window[_0x49d130([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49d130([0x66,0x72,0x6f,0x6d])](_0x20d7de(_0x2d0459),_0x304d65=>_0x304d65[_0x49d130([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e48b5=new window[(_0x49d130([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49d130([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12b0dd+_0x49d130([0x2e])+_0x47216e),_0x1f2f9b=window[_0x49d130([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49d130([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f2f9b)return;const _0x4a941b=await _0x1f2f9b[_0x49d130([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49d130([0x6a,0x77,0x6b]),_0x2c7bf9,{[_0x49d130([0x6e,0x61,0x6d,0x65])]:_0x49d130([0x45,0x43,0x44,0x53,0x41]),[_0x49d130([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49d130([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49d130([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f2f9b[_0x49d130([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49d130([0x6e,0x61,0x6d,0x65])]:_0x49d130([0x45,0x43,0x44,0x53,0x41]),[_0x49d130([0x68,0x61,0x73,0x68])]:{[_0x49d130([0x6e,0x61,0x6d,0x65])]:_0x49d130([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a941b,_0x218fb3,_0x4e48b5)||(_0x4604c9=!0x1);}}function _0x279d1b(_0x5d4fad){return _0x5d4fad[_0x49d130([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49d130([0x65,0x79]))?JSON[_0x49d130([0x70,0x61,0x72,0x73,0x65])](_0x20d7de(_0x5d4fad)):null;}function _0x20d7de(_0x55d7b3){return window[_0x49d130([0x61,0x74,0x6f,0x62])](_0x55d7b3[_0x49d130([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49d130([0x2b]))[_0x49d130([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49d130([0x2f])));}function _0x34c705(_0x428e49){let _0x438c40=0x1505;function _0x3f4687(_0x35b9ac){for(let _0x57ed54=0x0;_0x57ed54<_0x35b9ac[_0x49d130([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57ed54++){const _0x28af08=_0x35b9ac[_0x49d130([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57ed54);_0x438c40=(_0x438c40<<0x5)+_0x438c40+_0x28af08,_0x438c40&=_0x438c40;}}function _0xa8b2f1(_0x4a2092){Array[_0x49d130([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a2092)?_0x4a2092[_0x49d130([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa8b2f1):_0x4a2092&&typeof _0x4a2092==_0x49d130([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49d130([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a2092)[_0x49d130([0x73,0x6f,0x72,0x74])]()[_0x49d130([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14c034,_0x5a63f5])=>{_0x3f4687(_0x14c034),_0xa8b2f1(_0x5a63f5);}):_0x3f4687(window[_0x49d130([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a2092));}return _0xa8b2f1(_0x428e49),_0x438c40>>>0x0;}function _0x15f7f5(_0x5e6028){return _0x5e6028[_0x49d130([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49d130([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49d130([0x30]));}function _0x5a3f58(_0x14ba44){return _0x14ba44[_0x49d130([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49d130([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49d130([0x6a,0x6f,0x69,0x6e])]('');}function _0x3887f9(){}function _0x49d130(_0x1be083){return _0x1be083['map'](_0x1f837c=>String['fromCharCode'](_0x1f837c))['join']('');}_0x31c174(await _0xde4a69());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1c2ea1){const {plugins:_0x441b25,editing:_0x1f296f,model:_0x44c4c9}=this['editor'],_0x355507=_0x441b25['get'](_0x6bdfc1)['getFootnote'](_0x1c2ea1);return!!_0x355507&&(_0x44c4c9['change'](_0x5b01e3=>{_0x5b01e3['setSelection'](_0x5b01e3['createPositionAt'](_0x355507['definition'],'end'));}),_0x1f296f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x29d2de){const {plugins:_0x3270cc,editing:_0x37e272,model:_0x26e7d1}=this['editor'],_0x5d304f=_0x3270cc['get'](_0x6bdfc1)['getFootnote'](_0x29d2de);return!!_0x5d304f&&(_0x26e7d1['change'](_0x14401f=>{_0x14401f['setSelection'](_0x5d304f['reference'],'on');}),_0x37e272['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1fa85a}=this['editor']['model'],_0x334f81=this['editor']['config']['get']('footnotes.multiBlock');_0x1fa85a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1fa85a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1fa85a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x334f81?_0x1fa85a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1fa85a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1fa85a['addChildCheck'](_0x2d3f91=>{for(const _0x2ec5ab of _0x2d3f91)if('footnoteDefinition'===_0x2ec5ab['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xd16757}=this,{conversion:_0x1e733c,editing:_0x55528d}=_0xd16757,{t:t}=_0xd16757['locale'];_0x1e733c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1f8573,{writer:_0x52913e,consumable:_0x30436f})=>{const _0x450c5d=_0x1f8573['getChild'](0x0);if(!_0x450c5d||!_0x450c5d['is']('element','a'))return null;const _0x4ed89b=_0x450c5d['getAttribute']('href')||'';if(!_0x4ed89b['startsWith']('#'))return null;const _0x5c5e62=_0x4ed89b['replace'](/^#/,'');if(!_0x5c5e62)return null;_0x30436f['consume'](_0x450c5d,{'name':!0x0,'attributes':['href']});for(const {item:_0x4fc032}of _0x55528d['view']['createRangeIn'](_0x450c5d))_0x4fc032['is']('$textProxy')?_0x30436f['consume'](_0x4fc032['textNode'],{'name':!0x0}):_0x4fc032['is']('element')&&_0x30436f['consume'](_0x4fc032,{'name':!0x0});return _0x52913e['createElement']('footnoteRef',{'footnoteId':_0x5c5e62});}}),_0x1e733c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x41bddb,{writer:_0x1b3a50})=>g(_0x41bddb,_0x1b3a50)}),_0x1e733c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x17d045,{writer:_0x1775ab})=>{const _0x12515f=_0x17d045['getAttribute']('footnoteCounter');return _0x1146aa(g(_0x17d045,_0x1775ab),_0x1775ab,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x12515f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x53b8e9}=this,{t:t}=_0x53b8e9['locale'],{conversion:_0x2b3a7f}=_0x53b8e9;_0x2b3a7f['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x2b3a7f['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x2b3a7f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x29cfd5,{writer:_0x24e85a})=>{const _0x5d8cc7=_0x24e85a['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x24e85a['createContainerElement']('ol',{'class':'footnotes'},_0x24e85a['createSlot']())),_0x1671cb=_0x1146aa(_0x5d8cc7,_0x24e85a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x24e85a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1671cb),_0x1671cb;}});}['_defineDefinitionConverters'](){const {editor:_0x40fc66}=this,{conversion:_0x543c00,locale:_0xa3826e}=_0x40fc66,_0x545ac1=_0x40fc66['config']['get']('footnotes.multiBlock');_0x543c00['for']('upcast')['add'](_0x244321=>{_0x244321['on']('element:li',(_0x454379,_0x4d8fb4,_0x4f78dc)=>{const _0x5a6864=_0x4d8fb4['viewItem'];if(!_0x5a6864['hasClass']('footnote-definition')||!_0x5a6864['getAttribute']('id'))return;const _0x360575=_0x5a6864['parent'];if(!_0x360575['is']('element','ol')||!_0x360575['hasClass']('footnotes'))return;if(!_0x4f78dc['consumable']['test'](_0x5a6864,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2653c2=_0x4f78dc['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5a6864['getAttribute']('id')});if(!_0x4f78dc['safeInsert'](_0x2653c2,_0x4d8fb4['modelCursor']))return;_0x4f78dc['consumable']['consume'](_0x5a6864,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4e4dbf=Array['from'](_0x5a6864['getChildren']())['find'](_0xefbce1=>_0xefbce1['is']('element')&&_0xefbce1['hasClass']('footnote-content'));for(const _0x4f616a of _0x5a6864['getChildren']())_0x4f616a['is']('element')&&(_0x4f78dc['consumable']['consume'](_0x4f616a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4f78dc['consumable']['consume'](_0x4f616a,{'name':!0x0,'classes':'footnote-content'}));if(_0x4e4dbf){if(_0x545ac1)_0x4f78dc['convertChildren'](_0x4e4dbf,_0x2653c2);else{const _0x3f3273=_0x4f78dc['writer']['createElement']('footnoteInlineContent');_0x4f78dc['writer']['insert'](_0x3f3273,_0x2653c2),_0x4f78dc['convertChildren'](_0x4e4dbf,_0x3f3273);}}_0x4f78dc['updateConversionResult'](_0x2653c2,_0x4d8fb4);});}),_0x543c00['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42b4fd,{writer:_0x343082})=>D(_0x42b4fd,_0x343082,_0xa3826e,{'dataPipeline':!0x0})}),_0x543c00['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x45d1a5,{writer:_0x17df59})=>D(_0x45d1a5,_0x17df59,_0xa3826e)});}['_defineBogusParagraphConverters'](){const {editor:_0x1b9712}=this,{conversion:_0x54aae5}=_0x1b9712;_0x1b9712['config']['get']('footnotes.multiBlock')?(_0x54aae5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x54aae5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1b9712['model']['document'],'change:data',()=>{!function(_0x48f30b,_0x448317){const _0x4ca8b7=_0x48f30b['document']['differ'],_0x1edd4a=new Set();for(const _0xca6c4c of _0x4ca8b7['getChanges']()){const _0x345a8a='attribute'==_0xca6c4c['type']?_0xca6c4c['range']['start']['parent']:_0xca6c4c['position']['parent'];_0x345a8a['is']('element','footnoteDefinition')&&_0x1edd4a['add'](_0x345a8a);}for(const _0xe2a1c4 of _0x1edd4a['values']()){const _0x1dfe7c=Array['from'](_0xe2a1c4['getChildren']())['filter'](_0x4f1525=>p(_0x4f1525,_0x448317['mapper']));for(const _0x547c5c of _0x1dfe7c)_0x448317['reconvertItem'](_0x547c5c);}}(_0x1b9712['model'],_0x1b9712['editing']);})):(_0x54aae5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x54aae5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x518996,{writer:_0x45c4b3})=>{const _0x27c901=_0x45c4b3['createContainerElement']('span');return _0x45c4b3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27c901),_0x27c901;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1d1889}=this,{editing:_0x38906d,t:t}=_0x1d1889,_0x2d9108=_0x1d1889['model']['document']['selection'];_0x1d1889['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x1d1889['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x38906d['view']['document'],'enter',(_0x2fc5cf,_0x17738a)=>{const _0x5aef3b=function(_0x5ab91e){const _0x36d415=_0x5ab91e['getSelectedElement']();if(_0x36d415?.['is']('element','footnoteRef'))return _0x36d415;return null;}(_0x2d9108);if(_0x5aef3b){const _0x523130=_0x5aef3b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x523130),_0x17738a['preventDefault'](),_0x2fc5cf['stop']();}},{'context':_0x15e380});}['_defineClickHandlers'](){const {editor:_0x5c5eaa}=this,{editing:_0x1305eb}=_0x5c5eaa;_0x5c5eaa['editing']['view']['addObserver'](_0x5c1774),_0x5c5eaa['editing']['view']['addObserver'](_0x458043);let _0x1806d2=!0x1;this['listenTo'](_0x1305eb['view']['document'],'pointerdown',(_0x12422b,_0x70eb0f)=>{const {target:_0x2b8f33}=_0x70eb0f,_0x481832=_0x1305eb['view']['document']['selection'];_0x1806d2=!(!_0x2b8f33['is']('element','sup')||!_0x2b8f33['hasClass']('footnote'))&&_0x481832['getSelectedElement']()===_0x2b8f33;},{'priority':'high'}),this['listenTo'](_0x1305eb['view']['document'],'click',(_0x981050,_0x4011e1)=>{const {target:_0x5d3ce9}=_0x4011e1,_0x2c39cd=_0x5d3ce9['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2c39cd['slice'](0x1)),_0x981050['stop'](),_0x4011e1['preventDefault']();},{'priority':'high','context':_0x4785a8=>_0x4785a8['is']('element','sup')&&_0x4785a8['hasClass']('footnote')&&_0x1806d2}),this['listenTo'](_0x1305eb['view']['document'],'click',(_0x1187de,_0x583f9b)=>{const {target:_0x3dc9f3}=_0x583f9b;if(!_0x3dc9f3['is']('element','a'))return;let _0x26f22b=_0x3dc9f3['getAttribute']('href');if(!_0x26f22b?.['startsWith']('#'))return;_0x26f22b=_0x26f22b['slice'](0x1);let _0x20a4b3=!0x1;(_0x26f22b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x26f22b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x26f22b))&&(_0x20a4b3=!0x0),_0x20a4b3&&(_0x583f9b['preventDefault'](),_0x1187de['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x165d90}={}){return(_0x3ef20a,{writer:_0x4001d4})=>{if(!h(_0x3ef20a))return null;if(!_0x165d90)return _0x4001d4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1fb99=_0x4001d4['createContainerElement']('p');return _0x4001d4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1fb99),_0x1fb99;};}function h(_0x15cb33){const {parent:_0x51dd34}=_0x15cb33;if(!_0x51dd34?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x51dd34['childCount'])return!0x1;for(const _0x111620 of _0x15cb33['getAttributeKeys']())if(!_0x111620['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x111620)return!0x1;return!0x0;}function p(_0x4a82fb,_0x1b484c){if(!_0x4a82fb['is']('element','paragraph'))return!0x1;const _0x6623cf=_0x1b484c['toViewElement'](_0x4a82fb);return!!_0x6623cf&&h(_0x4a82fb)!==_0x6623cf['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1f2b04){return _0x15e380(_0x1f2b04)&&_0x1f2b04['is']('containerElement')&&!!_0x1f2b04['getCustomProperty']('footnotesDefinitions');}function g(_0x5a7e82,_0x2782a4){const _0x1f339d=_0x5a7e82['getAttribute']('footnoteId'),_0x307bf7=_0x5a7e82['getAttribute']('footnoteCounter'),_0x2b08b0=_0x2782a4['createUIElement']('a',{'id':'ref-'+_0x1f339d,'href':'#'+_0x1f339d},function(_0x7c7f4){const _0xedb801=this['toDomElement'](_0x7c7f4);return _0xedb801['textContent']=_0x307bf7,_0xedb801;}),_0x1572e3=_0x2782a4['createContainerElement']('sup',{'class':'footnote'},[_0x2b08b0]);return _0x1572e3['getFillerOffset']=()=>null,_0x1572e3;}function D(_0x405523,_0x13f4c3,_0x593c3f,{dataPipeline:_0x3ff08f}={}){const {t:t}=_0x593c3f,_0x2d9975=_0x405523['getAttribute']('footnoteId'),_0x29ae5f=_0x13f4c3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2d9975},function(_0x444f10){const _0xd61a57=this['toDomElement'](_0x444f10);return _0xd61a57['innerText']='^',_0xd61a57;}),_0x47c82f=_0x3ff08f?_0x13f4c3['createContainerElement']('div',{'class':'footnote-content'}):_0x29c958(_0x13f4c3['createEditableElement']('div',{'class':'footnote-content'}),_0x13f4c3,{'label':t('Footnote\x20content.')});return _0x13f4c3['insert'](_0x13f4c3['createPositionAt'](_0x47c82f,0x0),_0x13f4c3['createSlot']()),_0x13f4c3['createContainerElement']('li',{'class':'footnote-definition','id':_0x2d9975},[_0x29ae5f,_0x47c82f]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x7c03(){const _0x5b0eef=['1102380yaCRKC','45gpnVVR','setAttribute','499816mtVrqO','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','160XMxruN','change','execute','refresh','isInteger','get','52964CIxSQR','getAttribute','741734OuthQT','footnotesListStart','value','model','1795680fzIUjF','isEnabled','394971LVYlfK','plugins','176986aycOYU'];_0x7c03=function(){return _0x5b0eef;};return _0x7c03();}const _0x299a77=_0x3b2a;(function(_0x50c81b,_0x1e935b){const _0x30c864=_0x3b2a,_0x44f156=_0x50c81b();while(!![]){try{const _0x2a7aa1=-parseInt(_0x30c864(0x119))/0x1+parseInt(_0x30c864(0x11b))/0x2+-parseInt(_0x30c864(0x11c))/0x3+-parseInt(_0x30c864(0x111))/0x4*(-parseInt(_0x30c864(0x122))/0x5)+parseInt(_0x30c864(0x117))/0x6+-parseInt(_0x30c864(0x113))/0x7+-parseInt(_0x30c864(0x11f))/0x8*(-parseInt(_0x30c864(0x11d))/0x9);if(_0x2a7aa1===_0x1e935b)break;else _0x44f156['push'](_0x44f156['shift']());}catch(_0x3c4b70){_0x44f156['push'](_0x44f156['shift']());}}}(_0x7c03,0x3e5f5));function _0x3b2a(_0x22085d,_0x3c2eb2){const _0x7c038d=_0x7c03();return _0x3b2a=function(_0x3b2a02,_0x1e7e1b){_0x3b2a02=_0x3b2a02-0x10c;let _0x43995c=_0x7c038d[_0x3b2a02];return _0x43995c;},_0x3b2a(_0x22085d,_0x3c2eb2);}import{Command as _0x429c10}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x4efde9}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x429c10{[_0x299a77(0x10e)](){const _0x227992=_0x299a77,{editor:_0x3f7099}=this,_0x1dee75=_0x3f7099[_0x227992(0x11a)][_0x227992(0x110)](_0x4efde9)[_0x227992(0x121)]();this[_0x227992(0x118)]=!!_0x1dee75,this[_0x227992(0x115)]=_0x1dee75?.[_0x227992(0x112)](_0x227992(0x114))??null;}[_0x299a77(0x10d)]({value:_0x5ec559}){const _0x392a8f=_0x299a77,{editor:_0x6312f3}=this,_0x311a4f=_0x6312f3[_0x392a8f(0x11a)][_0x392a8f(0x110)](_0x4efde9),_0x297005=_0x311a4f[_0x392a8f(0x121)]();_0x297005&&Number[_0x392a8f(0x10f)](_0x5ec559)&&_0x6312f3[_0x392a8f(0x116)][_0x392a8f(0x10c)](_0x35f4de=>{const _0x812452=_0x392a8f;_0x35f4de[_0x812452(0x11e)](_0x812452(0x114),_0x5ec559,_0x297005),_0x311a4f[_0x812452(0x120)](_0x35f4de);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1718(_0x148261,_0x3cc5d6){const _0x4c57e7=_0x4c57();return _0x1718=function(_0x171839,_0x201804){_0x171839=_0x171839-0xf0;let _0xf316e7=_0x4c57e7[_0x171839];return _0xf316e7;},_0x1718(_0x148261,_0x3cc5d6);}const _0x1cb68d=_0x1718;(function(_0x5e9f0c,_0xfeda00){const _0x5a3a16=_0x1718,_0x53063e=_0x5e9f0c();while(!![]){try{const _0x1145eb=-parseInt(_0x5a3a16(0xf0))/0x1*(-parseInt(_0x5a3a16(0xf7))/0x2)+parseInt(_0x5a3a16(0x108))/0x3+parseInt(_0x5a3a16(0xfd))/0x4*(-parseInt(_0x5a3a16(0x101))/0x5)+-parseInt(_0x5a3a16(0x104))/0x6*(-parseInt(_0x5a3a16(0xfe))/0x7)+parseInt(_0x5a3a16(0xf4))/0x8+parseInt(_0x5a3a16(0xfa))/0x9*(-parseInt(_0x5a3a16(0xf5))/0xa)+-parseInt(_0x5a3a16(0x102))/0xb;if(_0x1145eb===_0xfeda00)break;else _0x53063e['push'](_0x53063e['shift']());}catch(_0x4ff95d){_0x53063e['push'](_0x53063e['shift']());}}}(_0x4c57,0xeb0ed));import{Command as _0x46f113}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x4a98a5}from'../footnotespropertiesconfig.js';function _0x4c57(){const _0x4c1192=['9nKLlpx','refresh','includes','365360kKBZeS','7ftCMcG','change','setAttribute','60ajnXVp','19502362hHXMbK','isEnabled','10145292eRnHYv','getFootnotesDefinitionsObjectElement','_updateFootnotesCounters','value','4263456IpzkRY','2LKfjSf','getAttribute','model','footnotesListStyle','4174992CdCBxq','14072370HyknrH','get','1605148IrbhzY','execute','plugins'];_0x4c57=function(){return _0x4c1192;};return _0x4c57();}import{FootnotesTracker as _0x1e22ce}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x46f113{[_0x1cb68d(0xfb)](){const _0x493f49=_0x1cb68d,{editor:_0x1c4af8}=this,_0x5a4da2=_0x1c4af8[_0x493f49(0xf9)][_0x493f49(0xf6)](_0x1e22ce)[_0x493f49(0x105)]();this[_0x493f49(0x103)]=!!_0x5a4da2,this[_0x493f49(0x107)]=_0x5a4da2?.[_0x493f49(0xf1)](_0x493f49(0xf3))??null;}[_0x1cb68d(0xf8)]({value:_0x3c0467}){const _0xb1ed18=_0x1cb68d,{editor:_0x1f7f85}=this,_0x2b04d3=_0x1f7f85[_0xb1ed18(0xf9)][_0xb1ed18(0xf6)](_0x1e22ce),_0x242b7c=_0x2b04d3[_0xb1ed18(0x105)]();_0x242b7c&&_0x4a98a5[_0xb1ed18(0xfc)](_0x3c0467)&&_0x1f7f85[_0xb1ed18(0xf2)][_0xb1ed18(0xff)](_0x305d0b=>{const _0x42ccda=_0xb1ed18;_0x305d0b[_0x42ccda(0x100)](_0x42ccda(0xf3),_0x3c0467,_0x242b7c),_0x2b04d3[_0x42ccda(0x106)](_0x305d0b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3d60(_0x5f0474,_0x5163e9){const _0x5d6bcf=_0x5d6b();return _0x3d60=function(_0x3d6039,_0x33df71){_0x3d6039=_0x3d6039-0x12a;let _0x53d788=_0x5d6bcf[_0x3d6039];return _0x53d788;},_0x3d60(_0x5f0474,_0x5163e9);}const _0x1509c7=_0x3d60;(function(_0x439731,_0x1fcf68){const _0x24d9d1=_0x3d60,_0x22b509=_0x439731();while(!![]){try{const _0x34f7f8=parseInt(_0x24d9d1(0x12b))/0x1+-parseInt(_0x24d9d1(0x13d))/0x2*(parseInt(_0x24d9d1(0x12d))/0x3)+-parseInt(_0x24d9d1(0x137))/0x4*(-parseInt(_0x24d9d1(0x12c))/0x5)+-parseInt(_0x24d9d1(0x12e))/0x6+parseInt(_0x24d9d1(0x136))/0x7*(parseInt(_0x24d9d1(0x134))/0x8)+-parseInt(_0x24d9d1(0x13b))/0x9*(-parseInt(_0x24d9d1(0x131))/0xa)+parseInt(_0x24d9d1(0x12a))/0xb*(parseInt(_0x24d9d1(0x132))/0xc);if(_0x34f7f8===_0x1fcf68)break;else _0x22b509['push'](_0x22b509['shift']());}catch(_0x2f5fbd){_0x22b509['push'](_0x22b509['shift']());}}}(_0x5d6b,0x317b3));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x1509c7(0x12f),_0x1509c7(0x139),_0x1509c7(0x130),_0x1509c7(0x135),_0x1509c7(0x13a),_0x1509c7(0x133),_0x1509c7(0x13c),_0x1509c7(0x138)];function _0x5d6b(){const _0x5c93a0=['349227fTSBLM','1814742fkkzOM','decimal','lower-latin','10sqXhlQ','54156HmbxJg','upper-alpha','4896KxdYJQ','upper-latin','3171yNMZhe','12QBXcWD','upper-roman','decimal-leading-zero','lower-alpha','149652MYnHEr','lower-roman','4HXQXpv','253svqkeE','24744LyWkNl','525905PKvamb'];_0x5d6b=function(){return _0x5c93a0;};return _0x5d6b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x145094=_0x24c6;(function(_0x1ef76c,_0x45ebb1){const _0x2335d8=_0x24c6,_0x2061bd=_0x1ef76c();while(!![]){try{const _0x214d59=-parseInt(_0x2335d8(0x137))/0x1*(parseInt(_0x2335d8(0x168))/0x2)+-parseInt(_0x2335d8(0x14b))/0x3+-parseInt(_0x2335d8(0x11b))/0x4+-parseInt(_0x2335d8(0x124))/0x5*(-parseInt(_0x2335d8(0x11d))/0x6)+parseInt(_0x2335d8(0x156))/0x7+-parseInt(_0x2335d8(0x15c))/0x8*(-parseInt(_0x2335d8(0x12c))/0x9)+-parseInt(_0x2335d8(0x120))/0xa;if(_0x214d59===_0x45ebb1)break;else _0x2061bd['push'](_0x2061bd['shift']());}catch(_0x35ded8){_0x2061bd['push'](_0x2061bd['shift']());}}}(_0x3ccc,0xd9f6d));function _0x24c6(_0x2400d5,_0x180666){const _0x3ccc00=_0x3ccc();return _0x24c6=function(_0x24c63b,_0x1a77da){_0x24c63b=_0x24c63b-0x11a;let _0x2d12ab=_0x3ccc00[_0x24c63b];return _0x2d12ab;},_0x24c6(_0x2400d5,_0x180666);}import{Plugin as _0x3d247d}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x407a69}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x2799cb}from'./commands/footnotesstartcommand.js';function _0x3ccc(){const _0x403bac=['config','footnotes.footnotesProperties.defaultListStyle','647935hFktOn','toUpperCase','start','_formatFootnoteListValue','editingDowncast','_definePostfixer','registerPostFixer','_defineFormatter','9uwsgbH','for','pluginName','upper-alpha','consumable','name','_getDefaultListStyle','commands','style','requires','attributeNewValue','274KwEobu','modelRange','attribute:footnotesListStyle:footnotesDefinitions','floor','getItems','toLowerCase','model','_updateFootnotesCounters','getAttribute','isOfficialPlugin','footnotesListStart','insert','fromCharCode','item','upper-roman','low','setStyle','extend','list-style-type','getStyle','2738478zUWojP','attributeToAttribute','footnotesDefinitions','decimal-leading-zero','createRangeOn','padStart','define','attribute:footnotesListStart:footnotesDefinitions','nodeAfter','_defineSchema','mapper','1120567kajDse','decimal','footnotesListStyle','lower-latin','isPremiumPlugin','FootnotesPropertiesEditing','11312984uazcqu','lower-alpha','position','footnotes.footnotesProperties.defaultStartIndex','_defineConverters','upper-latin','hasAttribute','footnotesStyle','lower-roman','document','max','consume','726DtfxmO','toViewElement','editor','getChildren','plugins','checkAttribute','footnotesStart','writer','from','element','isNaN','$text','setAttribute','init','getChanges','element:ol','dataDowncast','upcast','removeAttribute','setFootnoteFormatter','removeStyle','parseInt','find','_getDefaultStartIndex','1802128FtruCo','differ','78YMkfsg','type','add','9032340fnmAPS','get'];_0x3ccc=function(){return _0x403bac;};return _0x3ccc();}import{FootnotesTracker as _0x34a661}from'../footnotestracker.js';import{FootnotesEditing as _0x409384}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x3d247d{static get[_0x145094(0x12e)](){const _0x1ca060=_0x145094;return _0x1ca060(0x15b);}static get[_0x145094(0x135)](){return[_0x409384,_0x34a661];}static get[_0x145094(0x140)](){return!0x0;}static get[_0x145094(0x15a)](){return!0x0;}[_0x145094(0x175)](){const _0x1a1777=_0x145094,{editor:_0x4848a1}=this;_0x4848a1[_0x1a1777(0x122)][_0x1a1777(0x151)](_0x1a1777(0x123),_0x1a1777(0x157)),_0x4848a1[_0x1a1777(0x122)][_0x1a1777(0x151)](_0x1a1777(0x15f),0x1),_0x4848a1[_0x1a1777(0x133)][_0x1a1777(0x11f)](_0x1a1777(0x163),new _0x407a69(_0x4848a1)),_0x4848a1[_0x1a1777(0x133)][_0x1a1777(0x11f)](_0x1a1777(0x16e),new _0x2799cb(_0x4848a1)),this[_0x1a1777(0x154)](),this[_0x1a1777(0x160)](),this[_0x1a1777(0x12b)](),this[_0x1a1777(0x129)]();}[_0x145094(0x154)](){const _0x224f5e=_0x145094,{editor:_0x135b5e}=this,{schema:_0x5f1dac}=_0x135b5e[_0x224f5e(0x13d)];_0x5f1dac[_0x224f5e(0x148)](_0x224f5e(0x14d),{'allowAttributes':[_0x224f5e(0x158),_0x224f5e(0x141)]});}[_0x145094(0x160)](){const _0x337db8=_0x145094,{editor:_0x403392}=this,{conversion:_0x1a8011,model:_0x4b882b}=_0x403392,{schema:_0x183d81}=_0x4b882b;_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x337db8(0x158),'value':_0x2ce6aa=>_0x2ce6aa[_0x337db8(0x14a)](_0x337db8(0x149))}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x337db8(0x141),'value':_0x42cabc=>{const _0x3531fe=_0x337db8,_0x5f4b89=_0x42cabc[_0x3531fe(0x13f)](_0x3531fe(0x126)),_0x5eb1d1=Number[_0x3531fe(0x17d)](_0x5f4b89,0xa);return Number[_0x3531fe(0x172)](_0x5eb1d1)?null:_0x5eb1d1;}}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x14c)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x337db8(0x158),'value':_0x191adc=>({0x1:_0x337db8(0x157),'a':_0x337db8(0x15d),'A':_0x337db8(0x12f),'i':_0x337db8(0x164),'I':_0x337db8(0x145)}[_0x191adc[_0x337db8(0x13f)](_0x337db8(0x11e))])}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x179))[_0x337db8(0x11f)](_0x5dcb3a=>{const _0x1c9d69=_0x337db8;_0x5dcb3a['on'](_0x1c9d69(0x177),(_0x57ef2f,_0x5c6072,_0x46ae72)=>{const _0x4972f3=_0x1c9d69,_0x21349e=_0x5c6072[_0x4972f3(0x138)]?.[_0x4972f3(0x126)][_0x4972f3(0x153)];_0x21349e?.['is'](_0x4972f3(0x171),_0x4972f3(0x14d))&&(!_0x21349e[_0x4972f3(0x162)](_0x4972f3(0x158))&&_0x183d81[_0x4972f3(0x16d)](_0x21349e,_0x4972f3(0x158))&&_0x46ae72[_0x4972f3(0x16f)][_0x4972f3(0x174)](_0x4972f3(0x158),_0x4972f3(0x157),_0x21349e),!_0x21349e[_0x4972f3(0x162)](_0x4972f3(0x141))&&_0x183d81[_0x4972f3(0x16d)](_0x21349e,_0x4972f3(0x141))&&_0x46ae72[_0x4972f3(0x16f)][_0x4972f3(0x174)](_0x4972f3(0x141),0x1,_0x21349e));},{'priority':_0x1c9d69(0x146)});}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x178))[_0x337db8(0x14c)]({'model':{'name':_0x337db8(0x14d),'key':_0x337db8(0x141)},'view':_0x1d1e35=>0x1===_0x1d1e35?null:{'key':_0x337db8(0x126),'value':String(_0x1d1e35)}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x178))[_0x337db8(0x14c)]({'model':{'name':_0x337db8(0x14d),'key':_0x337db8(0x158)},'view':_0x36d40a=>_0x337db8(0x157)===_0x36d40a?null:{'key':_0x337db8(0x134),'value':{'list-style-type':_0x36d40a}}}),_0x1a8011[_0x337db8(0x12d)](_0x337db8(0x128))[_0x337db8(0x11f)](_0x3e9e04=>{const _0x1282d6=_0x337db8;_0x3e9e04['on'](_0x1282d6(0x152),(_0x3d0d8a,_0x12d93e,_0xf1d388)=>{const _0x3a7382=_0x1282d6;if(!_0xf1d388[_0x3a7382(0x130)][_0x3a7382(0x167)](_0x12d93e[_0x3a7382(0x144)],_0x3d0d8a[_0x3a7382(0x131)]))return;const _0x1c234a=b(_0x12d93e[_0x3a7382(0x144)],_0xf1d388[_0x3a7382(0x155)]);null===_0x12d93e[_0x3a7382(0x136)]||void 0x0===_0x12d93e[_0x3a7382(0x136)]||0x1===_0x12d93e[_0x3a7382(0x136)]?_0xf1d388[_0x3a7382(0x16f)][_0x3a7382(0x17a)](_0x3a7382(0x126),_0x1c234a):_0xf1d388[_0x3a7382(0x16f)][_0x3a7382(0x174)](_0x3a7382(0x126),String(_0x12d93e[_0x3a7382(0x136)]),_0x1c234a);}),_0x3e9e04['on'](_0x1282d6(0x139),(_0x5bc316,_0x5bee0d,_0x3bd190)=>{const _0x30ad37=_0x1282d6;if(!_0x3bd190[_0x30ad37(0x130)][_0x30ad37(0x167)](_0x5bee0d[_0x30ad37(0x144)],_0x5bc316[_0x30ad37(0x131)]))return;const _0x3398c9=b(_0x5bee0d[_0x30ad37(0x144)],_0x3bd190[_0x30ad37(0x155)]);_0x5bee0d[_0x30ad37(0x136)]&&_0x30ad37(0x157)!==_0x5bee0d[_0x30ad37(0x136)]?_0x3bd190[_0x30ad37(0x16f)][_0x30ad37(0x147)](_0x30ad37(0x149),_0x5bee0d[_0x30ad37(0x136)],_0x3398c9):_0x3bd190[_0x30ad37(0x16f)][_0x30ad37(0x17c)](_0x30ad37(0x149),_0x3398c9);});});}[_0x145094(0x129)](){const _0x121589=_0x145094,{editor:_0x4dd07b}=this,{model:_0x298ba6}=_0x4dd07b,_0x36ecba=_0x4dd07b[_0x121589(0x16c)][_0x121589(0x121)](_0x34a661),_0x5bdfa9=this[_0x121589(0x132)](),_0x469b48=this[_0x121589(0x11a)]();_0x298ba6[_0x121589(0x165)][_0x121589(0x12a)](_0x10cb33=>{const _0x4a07f9=_0x121589,_0x375f95=_0x298ba6[_0x4a07f9(0x165)][_0x4a07f9(0x11c)][_0x4a07f9(0x176)]();let _0x167285=!0x1;for(const _0x3236cd of _0x375f95){if(_0x4a07f9(0x142)!==_0x3236cd[_0x4a07f9(0x11e)]||_0x4a07f9(0x173)===_0x3236cd[_0x4a07f9(0x131)])continue;const _0x554e33=_0x298ba6[_0x4a07f9(0x14f)](_0x3236cd[_0x4a07f9(0x15e)][_0x4a07f9(0x153)]);for(const _0x2c2cbc of _0x554e33[_0x4a07f9(0x13b)]())_0x2c2cbc['is'](_0x4a07f9(0x171),_0x4a07f9(0x14d))&&(_0x2c2cbc[_0x4a07f9(0x162)](_0x4a07f9(0x141))||(_0x10cb33[_0x4a07f9(0x174)](_0x4a07f9(0x141),_0x469b48,_0x2c2cbc),_0x167285=!0x0),_0x2c2cbc[_0x4a07f9(0x162)](_0x4a07f9(0x158))||(_0x10cb33[_0x4a07f9(0x174)](_0x4a07f9(0x158),_0x5bdfa9,_0x2c2cbc),_0x167285=!0x0));}return _0x167285&&_0x36ecba[_0x4a07f9(0x13e)](_0x10cb33),_0x167285;});}[_0x145094(0x12b)](){const _0x303d10=_0x145094,{editor:_0x561aae}=this;_0x561aae[_0x303d10(0x16c)][_0x303d10(0x121)](_0x34a661)[_0x303d10(0x17b)](_0x3d8cfb=>this[_0x303d10(0x127)](_0x3d8cfb));}[_0x145094(0x132)](){const _0x246cfe=_0x145094;return this[_0x246cfe(0x16a)][_0x246cfe(0x122)][_0x246cfe(0x121)](_0x246cfe(0x123));}[_0x145094(0x11a)](){const _0x4de266=_0x145094;return this[_0x4de266(0x16a)][_0x4de266(0x122)][_0x4de266(0x121)](_0x4de266(0x15f));}[_0x145094(0x127)]({container:_0xd48bfe,value:_0x58b645,digits:_0x56d9b2}){const _0x1b45b6=_0x145094,_0x5ac34e=_0xd48bfe[_0x1b45b6(0x13f)](_0x1b45b6(0x158)),_0x2b6503=_0xd48bfe[_0x1b45b6(0x13f)](_0x1b45b6(0x141)),_0x3d5a71=Math[_0x1b45b6(0x13a)](_0x58b645)+(_0x2b6503-0x1);switch(_0x5ac34e){case _0x1b45b6(0x157):default:return String(_0x3d5a71);case _0x1b45b6(0x14e):return function(_0x7c891f,_0x516998){const _0x4b7ddc=_0x1b45b6;return String(_0x7c891f)[_0x4b7ddc(0x150)](_0x516998,'0');}(_0x3d5a71,Math[_0x1b45b6(0x166)](0x2,_0x56d9b2));case _0x1b45b6(0x15d):case _0x1b45b6(0x159):return x(_0x3d5a71,!0x1);case _0x1b45b6(0x12f):case _0x1b45b6(0x161):return x(_0x3d5a71,!0x0);case _0x1b45b6(0x164):return M(_0x3d5a71,!0x1);case _0x1b45b6(0x145):return M(_0x3d5a71,!0x0);}}}function b(_0x33c032,_0x1c7f7a){const _0x2c2968=_0x145094,_0xd0b837=_0x1c7f7a[_0x2c2968(0x169)](_0x33c032);return Array[_0x2c2968(0x170)](_0xd0b837[_0x2c2968(0x16b)]())[_0x2c2968(0x17e)](_0x1a0811=>_0x1a0811['is'](_0x2c2968(0x171),'ol'));}function x(_0x56a9f1,_0x2870a7){const _0x49e01c=_0x145094;let _0x1e5f1f='',_0x54c47a=_0x56a9f1;for(;_0x54c47a>0x0;){const _0x237c04=(_0x54c47a-0x1)%0x1a;_0x1e5f1f=String[_0x49e01c(0x143)](0x61+_0x237c04)+_0x1e5f1f,_0x54c47a=Math[_0x49e01c(0x13a)]((_0x54c47a-0x1)/0x1a);}return _0x2870a7?_0x1e5f1f[_0x49e01c(0x125)]():_0x1e5f1f;}const C=[{'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 M(_0x334cad,_0x2ad240){const _0x2f851e=_0x145094;let _0x507b54='',_0x2d7623=_0x334cad;for(const {value:_0x49b989,numeral:_0x4818cd}of C)for(;_0x2d7623>=_0x49b989;)_0x507b54+=_0x4818cd,_0x2d7623-=_0x49b989;return _0x2ad240?_0x507b54:_0x507b54[_0x2f851e(0x13c)]();}
|
|
23
|
+
const _0x6c51f0=_0x3ced;function _0x3ced(_0x3652f8,_0xa5d92){const _0x38d8a5=_0x38d8();return _0x3ced=function(_0x3ced18,_0x35c36f){_0x3ced18=_0x3ced18-0x8a;let _0x194d49=_0x38d8a5[_0x3ced18];return _0x194d49;},_0x3ced(_0x3652f8,_0xa5d92);}function _0x38d8(){const _0x7c205d=['FootnotesPropertiesEditing','footnotesListStyle','footnotesDefinitions','removeAttribute','editingDowncast','commands','insert','isNaN','getAttribute','upcast','floor','toUpperCase','$text','getChildren','model','element:ol','config','getItems','max','footnotesListStart','writer','parseInt','footnotes.footnotesProperties.defaultStartIndex','hasAttribute','1688511pQGunU','toViewElement','upper-roman','2yBFmiM','setAttribute','lower-latin','isOfficialPlugin','attributeToAttribute','requires','_getDefaultStartIndex','find','padStart','208441OvWGMK','mapper','add','476189LicHaE','nodeAfter','_updateFootnotesCounters','consume','_defineSchema','decimal-leading-zero','extend','list-style-type','attribute:footnotesListStart:footnotesDefinitions','708888oWTeDt','removeStyle','footnotesStart','2684410MTTxGD','isPremiumPlugin','name','_getDefaultListStyle','get','low','registerPostFixer','decimal','1849032cypYyT','createRangeOn','_definePostfixer','pluginName','dataDowncast','editor','from','fromCharCode','modelRange','4HsTdin','attribute:footnotesListStyle:footnotesDefinitions','1505250MMWrQY','_defineFormatter','type','element','upper-latin','toLowerCase','differ','style','setFootnoteFormatter','start','init','_formatFootnoteListValue','lower-alpha','66dopPqi','footnotesStyle','lower-roman','getStyle','checkAttribute','_defineConverters','attributeNewValue','consumable','for','setStyle','upper-alpha','define','footnotes.footnotesProperties.defaultListStyle','getChanges','item','position','document','plugins'];_0x38d8=function(){return _0x7c205d;};return _0x38d8();}(function(_0x1e145a,_0x2f0253){const _0x126884=_0x3ced,_0x24a4ac=_0x1e145a();while(!![]){try{const _0x1cc7ae=-parseInt(_0x126884(0xbf))/0x1*(parseInt(_0x126884(0xb6))/0x2)+-parseInt(_0x126884(0xb3))/0x3+-parseInt(_0x126884(0xdf))/0x4*(-parseInt(_0x126884(0xce))/0x5)+parseInt(_0x126884(0xee))/0x6*(parseInt(_0x126884(0xc2))/0x7)+-parseInt(_0x126884(0xcb))/0x8+parseInt(_0x126884(0xd6))/0x9+-parseInt(_0x126884(0xe1))/0xa;if(_0x1cc7ae===_0x2f0253)break;else _0x24a4ac['push'](_0x24a4ac['shift']());}catch(_0x5d1ef0){_0x24a4ac['push'](_0x24a4ac['shift']());}}}(_0x38d8,0x753d5));import{Plugin as _0x4f0e73}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x4cc144}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x300641}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0xd6677f}from'../footnotestracker.js';import{FootnotesEditing as _0x3544cc}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x4f0e73{static get[_0x6c51f0(0xd9)](){const _0x10d34a=_0x6c51f0;return _0x10d34a(0x9b);}static get[_0x6c51f0(0xbb)](){return[_0x3544cc,_0xd6677f];}static get[_0x6c51f0(0xb9)](){return!0x0;}static get[_0x6c51f0(0xcf)](){return!0x0;}[_0x6c51f0(0xeb)](){const _0x47f4f1=_0x6c51f0,{editor:_0x38db7c}=this;_0x38db7c[_0x47f4f1(0xab)][_0x47f4f1(0x94)](_0x47f4f1(0x95),_0x47f4f1(0xd5)),_0x38db7c[_0x47f4f1(0xab)][_0x47f4f1(0x94)](_0x47f4f1(0xb1),0x1),_0x38db7c[_0x47f4f1(0xa0)][_0x47f4f1(0xc1)](_0x47f4f1(0x8a),new _0x4cc144(_0x38db7c)),_0x38db7c[_0x47f4f1(0xa0)][_0x47f4f1(0xc1)](_0x47f4f1(0xcd),new _0x300641(_0x38db7c)),this[_0x47f4f1(0xc6)](),this[_0x47f4f1(0x8e)](),this[_0x47f4f1(0xe2)](),this[_0x47f4f1(0xd8)]();}[_0x6c51f0(0xc6)](){const _0x388647=_0x6c51f0,{editor:_0x204a73}=this,{schema:_0x1ce7f9}=_0x204a73[_0x388647(0xa9)];_0x1ce7f9[_0x388647(0xc8)](_0x388647(0x9d),{'allowAttributes':[_0x388647(0x9c),_0x388647(0xae)]});}[_0x6c51f0(0x8e)](){const _0x574d22=_0x6c51f0,{editor:_0x30f049}=this,{conversion:_0x5287f4,model:_0x1a7cfe}=_0x30f049,{schema:_0x4bc999}=_0x1a7cfe;_0x5287f4[_0x574d22(0x91)](_0x574d22(0xa4))[_0x574d22(0xba)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0x574d22(0x9c),'value':_0x17b15a=>_0x17b15a[_0x574d22(0x8c)](_0x574d22(0xc9))}}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0xa4))[_0x574d22(0xba)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0x574d22(0xae),'value':_0x549c12=>{const _0xe5a00f=_0x574d22,_0x1dc5f1=_0x549c12[_0xe5a00f(0xa3)](_0xe5a00f(0xea)),_0xed594b=Number[_0xe5a00f(0xb0)](_0x1dc5f1,0xa);return Number[_0xe5a00f(0xa2)](_0xed594b)?null:_0xed594b;}}}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0xa4))[_0x574d22(0xba)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0x574d22(0x9c),'value':_0x3a0ab2=>({0x1:_0x574d22(0xd5),'a':_0x574d22(0xed),'A':_0x574d22(0x93),'i':_0x574d22(0x8b),'I':_0x574d22(0xb5)}[_0x3a0ab2[_0x574d22(0xa3)](_0x574d22(0xe3))])}}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0xa4))[_0x574d22(0xc1)](_0x1fd992=>{const _0x1d28cd=_0x574d22;_0x1fd992['on'](_0x1d28cd(0xaa),(_0xb1c352,_0x44ca4e,_0x44ba7c)=>{const _0x12b099=_0x1d28cd,_0x1052c9=_0x44ca4e[_0x12b099(0xde)]?.[_0x12b099(0xea)][_0x12b099(0xc3)];_0x1052c9?.['is'](_0x12b099(0xe4),_0x12b099(0x9d))&&(!_0x1052c9[_0x12b099(0xb2)](_0x12b099(0x9c))&&_0x4bc999[_0x12b099(0x8d)](_0x1052c9,_0x12b099(0x9c))&&_0x44ba7c[_0x12b099(0xaf)][_0x12b099(0xb7)](_0x12b099(0x9c),_0x12b099(0xd5),_0x1052c9),!_0x1052c9[_0x12b099(0xb2)](_0x12b099(0xae))&&_0x4bc999[_0x12b099(0x8d)](_0x1052c9,_0x12b099(0xae))&&_0x44ba7c[_0x12b099(0xaf)][_0x12b099(0xb7)](_0x12b099(0xae),0x1,_0x1052c9));},{'priority':_0x1d28cd(0xd3)});}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0xda))[_0x574d22(0xba)]({'model':{'name':_0x574d22(0x9d),'key':_0x574d22(0xae)},'view':_0x2f138b=>0x1===_0x2f138b?null:{'key':_0x574d22(0xea),'value':String(_0x2f138b)}}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0xda))[_0x574d22(0xba)]({'model':{'name':_0x574d22(0x9d),'key':_0x574d22(0x9c)},'view':_0x20e642=>_0x574d22(0xd5)===_0x20e642?null:{'key':_0x574d22(0xe8),'value':{'list-style-type':_0x20e642}}}),_0x5287f4[_0x574d22(0x91)](_0x574d22(0x9f))[_0x574d22(0xc1)](_0x3ec5b3=>{const _0x2cb4c4=_0x574d22;_0x3ec5b3['on'](_0x2cb4c4(0xca),(_0x139166,_0x49af65,_0x3cfa7d)=>{const _0x32b797=_0x2cb4c4;if(!_0x3cfa7d[_0x32b797(0x90)][_0x32b797(0xc5)](_0x49af65[_0x32b797(0x97)],_0x139166[_0x32b797(0xd0)]))return;const _0x4f5038=C(_0x49af65[_0x32b797(0x97)],_0x3cfa7d[_0x32b797(0xc0)]);null===_0x49af65[_0x32b797(0x8f)]||void 0x0===_0x49af65[_0x32b797(0x8f)]||0x1===_0x49af65[_0x32b797(0x8f)]?_0x3cfa7d[_0x32b797(0xaf)][_0x32b797(0x9e)](_0x32b797(0xea),_0x4f5038):_0x3cfa7d[_0x32b797(0xaf)][_0x32b797(0xb7)](_0x32b797(0xea),String(_0x49af65[_0x32b797(0x8f)]),_0x4f5038);}),_0x3ec5b3['on'](_0x2cb4c4(0xe0),(_0x3b8446,_0x4940a8,_0x503a96)=>{const _0x34904d=_0x2cb4c4;if(!_0x503a96[_0x34904d(0x90)][_0x34904d(0xc5)](_0x4940a8[_0x34904d(0x97)],_0x3b8446[_0x34904d(0xd0)]))return;const _0x29e8be=C(_0x4940a8[_0x34904d(0x97)],_0x503a96[_0x34904d(0xc0)]);_0x4940a8[_0x34904d(0x8f)]&&_0x34904d(0xd5)!==_0x4940a8[_0x34904d(0x8f)]?_0x503a96[_0x34904d(0xaf)][_0x34904d(0x92)](_0x34904d(0xc9),_0x4940a8[_0x34904d(0x8f)],_0x29e8be):_0x503a96[_0x34904d(0xaf)][_0x34904d(0xcc)](_0x34904d(0xc9),_0x29e8be);});});}[_0x6c51f0(0xd8)](){const _0x4755bc=_0x6c51f0,{editor:_0x3d87b8}=this,{model:_0x2d17c1}=_0x3d87b8,_0x558276=_0x3d87b8[_0x4755bc(0x9a)][_0x4755bc(0xd2)](_0xd6677f),_0xcb6152=this[_0x4755bc(0xd1)](),_0x3144e0=this[_0x4755bc(0xbc)]();_0x2d17c1[_0x4755bc(0x99)][_0x4755bc(0xd4)](_0x4af898=>{const _0x5937cb=_0x4755bc,_0xb5d73b=_0x2d17c1[_0x5937cb(0x99)][_0x5937cb(0xe7)][_0x5937cb(0x96)]();let _0x29d060=!0x1;for(const _0x506442 of _0xb5d73b){if(_0x5937cb(0xa1)!==_0x506442[_0x5937cb(0xe3)]||_0x5937cb(0xa7)===_0x506442[_0x5937cb(0xd0)])continue;const _0x5148d8=_0x2d17c1[_0x5937cb(0xd7)](_0x506442[_0x5937cb(0x98)][_0x5937cb(0xc3)]);for(const _0x398ac3 of _0x5148d8[_0x5937cb(0xac)]())_0x398ac3['is'](_0x5937cb(0xe4),_0x5937cb(0x9d))&&(_0x398ac3[_0x5937cb(0xb2)](_0x5937cb(0xae))||(_0x4af898[_0x5937cb(0xb7)](_0x5937cb(0xae),_0x3144e0,_0x398ac3),_0x29d060=!0x0),_0x398ac3[_0x5937cb(0xb2)](_0x5937cb(0x9c))||(_0x4af898[_0x5937cb(0xb7)](_0x5937cb(0x9c),_0xcb6152,_0x398ac3),_0x29d060=!0x0));}return _0x29d060&&_0x558276[_0x5937cb(0xc4)](_0x4af898),_0x29d060;});}[_0x6c51f0(0xe2)](){const _0x503aca=_0x6c51f0,{editor:_0x3de48c}=this;_0x3de48c[_0x503aca(0x9a)][_0x503aca(0xd2)](_0xd6677f)[_0x503aca(0xe9)](_0x1576d1=>this[_0x503aca(0xec)](_0x1576d1));}[_0x6c51f0(0xd1)](){const _0x31b3ae=_0x6c51f0;return this[_0x31b3ae(0xdb)][_0x31b3ae(0xab)][_0x31b3ae(0xd2)](_0x31b3ae(0x95));}[_0x6c51f0(0xbc)](){const _0x3a785f=_0x6c51f0;return this[_0x3a785f(0xdb)][_0x3a785f(0xab)][_0x3a785f(0xd2)](_0x3a785f(0xb1));}[_0x6c51f0(0xec)]({container:_0x3612af,value:_0x3c4290,digits:_0x41b940}){const _0x35e544=_0x6c51f0,_0x425a2c=_0x3612af[_0x35e544(0xa3)](_0x35e544(0x9c)),_0x350ba8=_0x3612af[_0x35e544(0xa3)](_0x35e544(0xae)),_0x4634bf=Math[_0x35e544(0xa5)](_0x3c4290)+(_0x350ba8-0x1);switch(_0x425a2c){case _0x35e544(0xd5):default:return String(_0x4634bf);case _0x35e544(0xc7):return function(_0x264488,_0x4e390d){const _0x15465c=_0x35e544;return String(_0x264488)[_0x15465c(0xbe)](_0x4e390d,'0');}(_0x4634bf,Math[_0x35e544(0xad)](0x2,_0x41b940));case _0x35e544(0xed):case _0x35e544(0xb8):return M(_0x4634bf,!0x1);case _0x35e544(0x93):case _0x35e544(0xe5):return M(_0x4634bf,!0x0);case _0x35e544(0x8b):return A(_0x4634bf,!0x1);case _0x35e544(0xb5):return A(_0x4634bf,!0x0);}}}function C(_0x12f275,_0x53465d){const _0x54feae=_0x6c51f0,_0x16a340=_0x53465d[_0x54feae(0xb4)](_0x12f275);return Array[_0x54feae(0xdc)](_0x16a340[_0x54feae(0xa8)]())[_0x54feae(0xbd)](_0x44486c=>_0x44486c['is'](_0x54feae(0xe4),'ol'));}function M(_0x172007,_0x21af27){const _0x13bc34=_0x6c51f0;let _0x47c005='',_0xa6f1fb=_0x172007;for(;_0xa6f1fb>0x0;){const _0x347e1d=(_0xa6f1fb-0x1)%0x1a;_0x47c005=String[_0x13bc34(0xdd)](0x61+_0x347e1d)+_0x47c005,_0xa6f1fb=Math[_0x13bc34(0xa5)]((_0xa6f1fb-0x1)/0x1a);}return _0x21af27?_0x47c005[_0x13bc34(0xa6)]():_0x47c005;}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(_0xb59ad7,_0xb55b4){const _0x36c420=_0x6c51f0;let _0x1b6b58='',_0x962825=_0xb59ad7;for(const {value:_0x22f8e0,numeral:_0xfa5674}of X)for(;_0x962825>=_0x22f8e0;)_0x1b6b58+=_0xfa5674,_0x962825-=_0x22f8e0;return _0xb55b4?_0x1b6b58:_0x1b6b58[_0x36c420(0xe6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x3f1925,ButtonView as _0xfbf94c,ContextualBalloon as _0x2ee224,createDropdown as _0x305992}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x150e89}from'ckeditor5/src/widget.js';import{Plugin as _0x868dec}from'ckeditor5/src/core.js';import{IconFootnote as _0x3cb6a9,IconListStyleDecimal as _0x545de6,IconListStyleDecimalLeadingZero as _0x557f3d,IconListStyleLowerLatin as _0x5bbfa9,IconListStyleLowerRoman as _0x44cf68,IconListStyleUpperLatin as _0x1d91d1,IconListStyleUpperRoman as _0x28f321}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x20c3e6}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x3e2b52}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x868dec{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2ee224,_0x150e89];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x849375}=this,{componentFactory:_0x283157}=_0x849375['ui'];_0x849375['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x283157['add']('footnotesStyle',function(_0x2924c8){return _0x3cbffb=>{const {t:t}=_0x3cbffb,_0x5dcc70=_0x2924c8['commands']['get']('footnotesStyle'),_0x5a30e0=_0x305992(_0x3cbffb),{buttonView:_0x4fdd68}=_0x5a30e0;return _0x5a30e0['class']='ck-footnotes-styles-dropdown',_0x5a30e0['bind']('isEnabled')['to'](_0x5dcc70,'isEnabled'),_0x4fdd68['set']({'label':t('Footnotes\x20style'),'icon':_0x3cb6a9,'tooltip':!0x0}),_0x5a30e0['once']('change:isOpen',()=>{const _0x2307fc=function({editor:_0x592629,dropdownView:_0x3ac936}){const {t:t}=_0x592629['locale'],_0x402453=t('Footnotes\x20definitions\x20styles'),_0x1d1726=function(_0x4cb681){const t=_0x4cb681['locale']['t'],_0x5390b5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x545de6},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x557f3d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x44cf68},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x28f321},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5bbfa9},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1d91d1}];return _0x5390b5['map'](function(_0xda9482){const _0x2d5b13=_0xda9482['locale'];return({label:_0x17e84d,icon:_0x50aabc,tooltip:_0x5d29a8,style:_0x4f6916})=>{const _0x1bf676=_0xda9482['commands']['get']('footnotesStyle'),_0x36f7a8=new _0xfbf94c(_0x2d5b13);return _0x36f7a8['set']({'label':_0x17e84d,'icon':_0x50aabc,'tooltip':_0x5d29a8}),_0x36f7a8['bind']('isOn')['to'](_0x1bf676,'value',_0x48708a=>_0x48708a===_0x4f6916),_0x36f7a8['bind']('isEnabled')['to'](_0x1bf676,'isEnabled'),_0x36f7a8['on']('execute',()=>{_0xda9482['execute']('footnotesStyle',{'value':_0x4f6916}),_0xda9482['editing']['view']['focus']();}),_0x36f7a8;};}(_0x4cb681));}(_0x592629),_0x3509db=new _0x20c3e6(_0x592629['locale'],{'styleGridAriaLabel':_0x402453,'styleButtonViews':_0x1d1726});return _0x3509db['delegate']('execute')['to'](_0x3ac936),_0x3509db['on']('footnotesListStart',(_0x5e0a12,_0x1f7608)=>{_0x592629['execute']('footnotesStart',{'value':_0x1f7608['startIndex']});}),_0x3509db;}({'editor':_0x2924c8,'dropdownView':_0x5a30e0});_0x5a30e0['panelView']['children']['add'](_0x2307fc);}),_0x5a30e0;};}(_0x849375));}['afterInit'](){const {editor:_0x1cb0a4}=this,{t:t}=_0x1cb0a4['locale'],_0x5a483c=_0x1cb0a4['plugins']['get'](_0x150e89),{defaultPositions:_0x103697}=_0x3f1925;_0x5a483c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1cb0a4['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1cca5d=>{let _0x2fbacf=_0x1cca5d['getFirstPosition']()?.['parent'];return _0x2fbacf?.['is']('$text')&&(_0x2fbacf=_0x2fbacf['parent']),_0x2fbacf?.['is']('element')?_0x2fbacf['findAncestor'](_0x3e2b52):null;},'positions':[_0x103697['southArrowNorth'],_0x103697['southArrowNorthMiddleWest'],_0x103697['southArrowNorthMiddleEast'],_0x103697['southArrowNorthWest'],_0x103697['southArrowNorthEast'],_0x103697['northArrowSouth'],_0x103697['northArrowSouthMiddleWest'],_0x103697['northArrowSouthMiddleEast'],_0x103697['northArrowSouthWest'],_0x103697['northArrowSouthEast'],_0x103697['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1b1332,View as _0x57cb98,ViewCollection as _0x5ce6fe,FocusCycler as _0x37acb4,addKeyboardHandlingForGrid as _0x31c4df,CollapsibleView as _0x3e2007,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 _0x57cb98{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x5ce6fe();['focusCycler'];constructor(_0x580bca,{styleButtonViews:_0x1e6e1b,styleGridAriaLabel:_0x1df12f}){super(_0x580bca),(this['focusCycler']=new _0x37acb4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1e6e1b,_0x1df12f),[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 _0x4b75ee of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4b75ee['element']);_0x31c4df({'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 _0x9edcaa=_0x54368f=>_0x54368f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x9edcaa),this['keystrokes']['set']('arrowleft',_0x9edcaa),this['keystrokes']['set']('arrowup',_0x9edcaa),this['keystrokes']['set']('arrowdown',_0x9edcaa);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x45829a,_0x38c710){const _0x2b4c12=new _0x57cb98(this['locale']);return _0x2b4c12['children']=_0x2b4c12['createCollection'](),_0x2b4c12['children']['addMany'](_0x45829a),_0x2b4c12['setTemplate']({'tag':'div','attributes':{'aria-label':_0x38c710,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2b4c12['children']}),_0x2b4c12['children']['delegate']('execute')['to'](this),_0x2b4c12['focus']=function(){for(const _0x23c6f7 of this['children'])if(_0x23c6f7 instanceof _0x1b1332&&_0x23c6f7['isOn'])return void _0x23c6f7['focus']();this['children']['first']['focus']();},_0x2b4c12['focusTracker']=new it(),_0x2b4c12['keystrokes']=new et(),_0x2b4c12['render'](),_0x2b4c12['keystrokes']['listenTo'](_0x2b4c12['element']),this['children']['add'](_0x2b4c12),_0x2b4c12;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x259f0a=this['_createStartIndexPropertyView'](),_0x36bda3=[_0x259f0a],_0x745483=new _0x3e2007(this['locale'],_0x36bda3);return _0x745483['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x745483['buttonView']['bind']('isEnabled')['toMany'](_0x36bda3,'isEnabled',(..._0x5090a3)=>_0x5090a3['some'](_0x40011d=>_0x40011d)),_0x745483['buttonView']['on']('change:isEnabled',(_0x5197c9,_0xb29a93,_0x15db3e)=>{_0x15db3e||(_0x745483['isCollapsed']=!0x0);}),this['children']['add'](_0x745483),[_0x259f0a,_0x745483];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5dfdd0=new tt(this['locale'],st);return _0x5dfdd0['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5dfdd0['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5dfdd0['fieldView']['on']('input',()=>{const _0x16c045=_0x5dfdd0['fieldView']['element'],_0xf41812=_0x16c045['valueAsNumber'];Number['isNaN'](_0xf41812)?_0x5dfdd0['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x16c045['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf41812}):_0x5dfdd0['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x5dfdd0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x2033ef=_0x1b57;function _0x1b57(_0x453ee6,_0x82beee){var _0x49b221=_0x49b2();return _0x1b57=function(_0x1b576b,_0x27aa19){_0x1b576b=_0x1b576b-0x94;var _0x5a4e23=_0x49b221[_0x1b576b];return _0x5a4e23;},_0x1b57(_0x453ee6,_0x82beee);}(function(_0x56d68b,_0x4eb9b2){var _0x5c011f=_0x1b57,_0x5d95fb=_0x56d68b();while(!![]){try{var _0x2bee52=parseInt(_0x5c011f(0x94))/0x1*(parseInt(_0x5c011f(0x9d))/0x2)+parseInt(_0x5c011f(0x9e))/0x3+parseInt(_0x5c011f(0x9b))/0x4+-parseInt(_0x5c011f(0xa1))/0x5*(-parseInt(_0x5c011f(0x99))/0x6)+parseInt(_0x5c011f(0xa2))/0x7*(-parseInt(_0x5c011f(0x97))/0x8)+-parseInt(_0x5c011f(0x95))/0x9+parseInt(_0x5c011f(0x98))/0xa;if(_0x2bee52===_0x4eb9b2)break;else _0x5d95fb['push'](_0x5d95fb['shift']());}catch(_0x5d21f5){_0x5d95fb['push'](_0x5d95fb['shift']());}}}(_0x49b2,0x36742));import{Plugin as _0x53072d}from'ckeditor5/src/core.js';import{FootnotesPropertiesEditing as _0x21b9b8}from'./footnotesproperties/footnotespropertiesediting.js';import{FootnotesPropertiesUI as _0x5a888c}from'./footnotesproperties/footnotespropertiesui.js';function _0x49b2(){var _0x33cd66=['requires','545bDpDPl','40656igbPtQ','2aetBHp','3685572acziQf','pluginName','472LjiYpR','944260VZUXAR','20538XdOwjO','isPremiumPlugin','843108OVZLWb','isOfficialPlugin','53314DAMyIo','730794YJRrdR','FootnotesProperties'];_0x49b2=function(){return _0x33cd66;};return _0x49b2();}export class FootnotesProperties extends _0x53072d{static get[_0x2033ef(0x96)](){var _0x5a9e04=_0x2033ef;return _0x5a9e04(0x9f);}static get[_0x2033ef(0xa0)](){return[_0x21b9b8,_0x5a888c];}static get[_0x2033ef(0x9c)](){return!0x0;}static get[_0x2033ef(0x9a)](){return!0x0;}}
|
package/src/footnotestracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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)];}
|
|
23
|
+
const _0x5a73d6=_0xb1ff;(function(_0xf450ef,_0x373d8e){const _0x19c888=_0xb1ff,_0x1790a1=_0xf450ef();while(!![]){try{const _0x3147ea=-parseInt(_0x19c888(0xc3))/0x1+parseInt(_0x19c888(0xf9))/0x2*(parseInt(_0x19c888(0x106))/0x3)+-parseInt(_0x19c888(0xdd))/0x4+parseInt(_0x19c888(0x109))/0x5+-parseInt(_0x19c888(0xe1))/0x6*(parseInt(_0x19c888(0xe4))/0x7)+parseInt(_0x19c888(0x125))/0x8+parseInt(_0x19c888(0xc2))/0x9;if(_0x3147ea===_0x373d8e)break;else _0x1790a1['push'](_0x1790a1['shift']());}catch(_0x10c75e){_0x1790a1['push'](_0x1790a1['shift']());}}}(_0x261f,0x24e75));import{Plugin as _0x37ebda}from'ckeditor5/src/core.js';function _0xb1ff(_0x246441,_0x404c64){const _0x261fcc=_0x261f();return _0xb1ff=function(_0xb1ffd4,_0xb94313){_0xb1ffd4=_0xb1ffd4-0xc2;let _0xf73275=_0x261fcc[_0xb1ffd4];return _0xf73275;},_0xb1ff(_0x246441,_0x404c64);}import{ModelElementTracker as _0x1b232f}from'./modelelementtracker.js';export class FootnotesTracker extends _0x37ebda{[_0x5a73d6(0x11d)]=[];[_0x5a73d6(0xcd)]=null;[_0x5a73d6(0x105)]=null;[_0x5a73d6(0xe0)];[_0x5a73d6(0xee)];[_0x5a73d6(0x10c)];static get[_0x5a73d6(0xe6)](){const _0x34d981=_0x5a73d6;return _0x34d981(0xc6);}static get[_0x5a73d6(0xe7)](){return!0x0;}static get[_0x5a73d6(0xf8)](){return!0x0;}constructor(_0x1a0e8f){const _0x128059=_0x5a73d6;super(_0x1a0e8f),this[_0x128059(0xe0)]=new _0x1b232f(this[_0x128059(0x11c)][_0x128059(0x10b)],{'elementName':_0x128059(0xd9),'getElementKey':()=>_0x128059(0x107)}),this[_0x128059(0xee)]=new _0x1b232f(this[_0x128059(0x11c)][_0x128059(0x10b)],{'elementName':_0x128059(0xec),'getElementKey':_0x26dda2=>_0x26dda2[_0x128059(0xfa)](_0x128059(0x10d))}),this[_0x128059(0x10c)]=new _0x1b232f(this[_0x128059(0x11c)][_0x128059(0x10b)],{'elementName':_0x128059(0xef),'getElementKey':_0x48fc11=>_0x48fc11[_0x128059(0xfa)](_0x128059(0x10d))});}[_0x5a73d6(0xd7)](){const _0x566260=_0x5a73d6,{editor:_0x5d7a36}=this,{model:_0x483ea6,data:_0x35ceec}=_0x5d7a36;_0x483ea6[_0x566260(0xdb)][_0x566260(0x114)](_0x4e42cf=>{const _0x310bcf=_0x566260,_0x4c7159=_0x483ea6[_0x310bcf(0xdb)][_0x310bcf(0xce)][_0x310bcf(0x103)]();let _0x187a94=!0x1;return this[_0x310bcf(0xeb)](_0x4e42cf,_0x4c7159)&&(_0x187a94=!0x0),this[_0x310bcf(0x119)](_0x4e42cf,_0x4c7159)&&(_0x187a94=!0x0),this[_0x310bcf(0xda)](_0x4e42cf,_0x4c7159)&&(_0x187a94=!0x0),this[_0x310bcf(0xe3)](_0x4e42cf)&&(_0x187a94=!0x0),this[_0x310bcf(0x11a)](_0x4e42cf)&&(_0x187a94=!0x0),this[_0x310bcf(0x102)](_0x4e42cf)&&(_0x187a94=!0x0),_0x187a94;}),this[_0x566260(0x112)](_0x483ea6[_0x566260(0xdb)],_0x566260(0xfc),()=>{const _0x527d73=_0x566260;_0x483ea6[_0x527d73(0xc8)]({'isUndoable':!0x1},_0x4bfc68=>{const _0x2df743=_0x527d73;this[_0x2df743(0xe9)](_0x4bfc68);});},{'priority':_0x566260(0xde)}),this[_0x566260(0x112)](_0x35ceec,_0x566260(0xd3),()=>{const _0x4c2eb6=_0x566260;this[_0x4c2eb6(0x11d)]=[],this[_0x4c2eb6(0xe0)][_0x4c2eb6(0xd0)](),this[_0x4c2eb6(0xee)][_0x4c2eb6(0xd0)](),this[_0x4c2eb6(0x10c)][_0x4c2eb6(0xd0)]();},{'priority':_0x566260(0x108)});}[_0x5a73d6(0xc9)](){const _0x577ee2=_0x5a73d6;return this[_0x577ee2(0xcd)];}[_0x5a73d6(0xd4)](_0x3223c2){const _0x2b98bb=_0x5a73d6;return this[_0x2b98bb(0x11d)][_0x2b98bb(0xf1)](_0x821967=>_0x821967['id']===_0x3223c2)||null;}[_0x5a73d6(0x11b)](){const _0x22e297=_0x5a73d6;return Array[_0x22e297(0xe5)](this[_0x22e297(0x11d)]);}[_0x5a73d6(0xd2)](){const _0x478a9c=_0x5a73d6;return this[_0x478a9c(0x105)];}[_0x5a73d6(0x104)](_0x50b1c9){const _0x5dd94d=_0x5a73d6;this[_0x5dd94d(0x105)]=_0x50b1c9;}[_0x5a73d6(0xff)](_0x420cce,_0x33f2b5=0x0){const _0x92b04=_0x5a73d6;let _0x41e206=!0x1;for(let _0x5c2fe4=_0x33f2b5;_0x5c2fe4<this[_0x92b04(0x11d)][_0x92b04(0xdc)];_0x5c2fe4++)this[_0x92b04(0xf4)](_0x420cce,_0x5c2fe4)&&(_0x41e206=!0x0);return _0x41e206;}[_0x5a73d6(0xf7)](_0x581579,_0x5815e7){const _0x4e4a5d=_0x5a73d6,_0x107676=_0x581579[_0x4e4a5d(0x122)](_0x4e4a5d(0xd9),{});return _0x581579[_0x4e4a5d(0xfb)](_0x107676,_0x5815e7),this[_0x4e4a5d(0xcd)]=_0x107676,_0x107676;}[_0x5a73d6(0xe9)](_0x51ae29){const _0x5bda9f=_0x5a73d6;if(!this[_0x5bda9f(0x11d)][_0x5bda9f(0xdc)]||this[_0x5bda9f(0xcd)])return;const _0x3fa9cd=this[_0x5bda9f(0x11d)][0x0][_0x5bda9f(0xf2)][_0x5bda9f(0xcf)],_0x16d504=this[_0x5bda9f(0xf7)](_0x51ae29,_0x3fa9cd);for(const _0x1752f7 of this[_0x5bda9f(0x11d)])_0x1752f7[_0x5bda9f(0x121)][_0x5bda9f(0x120)]||_0x51ae29[_0x5bda9f(0xd1)](_0x1752f7[_0x5bda9f(0x121)],_0x16d504,_0x5bda9f(0xd6));this[_0x5bda9f(0xff)](_0x51ae29);}[_0x5a73d6(0xeb)](_0x35fe5b,_0x3d871e){const _0x50964e=_0x5a73d6;let _0x4ae21d=!0x1;const {inserted:_0x3b6084,removed:_0x24eda3,moved:_0x278c2b}=this[_0x50964e(0xe0)][_0x50964e(0x103)](_0x3d871e);if(_0x278c2b[_0x50964e(0xdc)]&&(this[_0x50964e(0xcd)]=_0x278c2b[0x0]),_0x3b6084[_0x50964e(0xdc)]){if(_0x3b6084[_0x50964e(0xdc)]>0x1||this[_0x50964e(0xcd)]&&_0x3b6084[_0x50964e(0xcc)](_0xb4d28=>_0xb4d28!==this[_0x50964e(0xcd)])){const _0x143b95=_0x35fe5b[_0x50964e(0x122)](_0x50964e(0xd9),{}),_0xef75f1=[];this[_0x50964e(0xcd)]&&_0xef75f1[_0x50964e(0x113)](this[_0x50964e(0xcd)]),_0xef75f1[_0x50964e(0x113)](..._0x3b6084),_0x35fe5b[_0x50964e(0xd1)](_0x143b95,_0xef75f1[0x0],_0x50964e(0x10f));for(const _0x435e9c of _0xef75f1)_0x35fe5b[_0x50964e(0xf5)](_0x35fe5b[_0x50964e(0xf3)](_0x435e9c),_0x35fe5b[_0x50964e(0x100)](_0x143b95,_0x50964e(0xd6))),_0x35fe5b[_0x50964e(0x101)](_0x435e9c);this[_0x50964e(0xcd)]=_0x143b95,this[_0x50964e(0xff)](_0x35fe5b),_0x4ae21d=!0x0;}else this[_0x50964e(0xcd)]=_0x3b6084[0x0];}if(_0x24eda3[_0x50964e(0xdc)]&&_0x50964e(0xed)===this[_0x50964e(0xcd)]?.[_0x50964e(0xcf)][_0x50964e(0x10e)]){for(const _0xc0ed61 of this[_0x50964e(0x11d)])_0x35fe5b[_0x50964e(0x101)](_0xc0ed61[_0x50964e(0xf2)]),_0x4ae21d=!0x0;this[_0x50964e(0x11d)]=[],this[_0x50964e(0xcd)]=null;}return _0x4ae21d;}[_0x5a73d6(0x119)](_0x58b231,_0x116b2a){const _0x4c118d=_0x5a73d6;let _0x42508a=!0x1;const _0x49ee94=this[_0x4c118d(0x11c)][_0x4c118d(0x124)][_0x4c118d(0xfd)](_0x4c118d(0x11e)),{inserted:_0x553596,moved:_0x9fac70}=this[_0x4c118d(0x10c)][_0x4c118d(0x103)](_0x116b2a);for(const _0x2fa7bf of[..._0x9fac70,..._0x553596]){const _0x2a7802=_0x2fa7bf[_0x4c118d(0xfa)](_0x4c118d(0x10d)),_0x3546d7=this[_0x4c118d(0xd4)](_0x2a7802);_0x3546d7&&(_0x3546d7[_0x4c118d(0x121)]=_0x2fa7bf),_(_0x58b231,_0x49ee94,_0x2fa7bf)&&(_0x42508a=!0x0);}return _0x42508a;}[_0x5a73d6(0xda)](_0x50f762,_0x2d8bf3){const _0x5ca476=_0x5a73d6;let _0x3d965b=!0x1;const {removed:_0x3d0d6b,inserted:_0x44c92a,moved:_0x572bab}=this[_0x5ca476(0xee)][_0x5ca476(0x103)](_0x2d8bf3);for(const _0x589ae1 of _0x3d0d6b)this[_0x5ca476(0xc4)](_0x50f762,_0x589ae1)&&(_0x3d965b=!0x0);for(const _0x538152 of _0x44c92a)this[_0x5ca476(0x115)](_0x50f762,_0x538152)&&(_0x3d965b=!0x0);for(const _0x5f505c of _0x572bab)this[_0x5ca476(0x111)](_0x50f762,_0x5f505c)&&(_0x3d965b=!0x0);return _0x3d965b;}[_0x5a73d6(0x11a)](_0x148bae){const _0x5abc1e=_0x5a73d6;if(!this[_0x5abc1e(0xcd)])return!0x1;let _0x5343b4=!0x1;if(this[_0x5abc1e(0xcd)][_0x5abc1e(0xc5)]!==this[_0x5abc1e(0x11d)][_0x5abc1e(0xdc)]){const _0x2af899=[];for(const _0x458bc4 of this[_0x5abc1e(0xcd)][_0x5abc1e(0x118)]()){const _0x18774=_0x458bc4[_0x5abc1e(0xfa)](_0x5abc1e(0x10d));this[_0x5abc1e(0xd4)](_0x18774)||(_0x2af899[_0x5abc1e(0xe2)](_0x458bc4),_0x5343b4=!0x0);}for(const _0x2540b6 of _0x2af899)_0x148bae[_0x5abc1e(0x101)](_0x2540b6);}const _0x25aee8=new Set(),_0x1aac98=[];for(const _0x53b1f3 of this[_0x5abc1e(0xcd)][_0x5abc1e(0x118)]()){const _0x5109f8=_0x53b1f3[_0x5abc1e(0xfa)](_0x5abc1e(0x10d));_0x25aee8[_0x5abc1e(0xc7)](_0x5109f8)?(_0x1aac98[_0x5abc1e(0xe2)](_0x53b1f3),_0x5343b4=!0x0):_0x25aee8[_0x5abc1e(0xea)](_0x5109f8);}for(const _0x51b55a of _0x1aac98)_0x148bae[_0x5abc1e(0x101)](_0x51b55a);return this[_0x5abc1e(0xcd)][_0x5abc1e(0xc5)]||(_0x148bae[_0x5abc1e(0x101)](this[_0x5abc1e(0xcd)]),this[_0x5abc1e(0xcd)]=null,_0x5343b4=!0x0),_0x5343b4;}[_0x5a73d6(0x115)](_0x440a1e,_0x70c33c){const _0x34536f=_0x5a73d6;if(this[_0x34536f(0x11d)][_0x34536f(0xf1)](_0x1075c4=>_0x1075c4[_0x34536f(0xf2)]===_0x70c33c))return!0x1;let _0x389340=!0x1;const _0x346c6d=_0x70c33c[_0x34536f(0xfa)](_0x34536f(0x10d)),_0x14f950=this[_0x34536f(0xd4)](_0x346c6d);_0x14f950&&(_0x440a1e[_0x34536f(0x101)](_0x14f950[_0x34536f(0xf2)]),this[_0x34536f(0x11d)]=this[_0x34536f(0x11d)][_0x34536f(0x110)](_0x596328=>_0x596328['id']!==_0x346c6d),_0x389340=!0x0);let _0x516e13=this[_0x34536f(0xcd)]?function(_0x4a3fec,_0x19c100){const _0x2fb557=_0x34536f;for(const _0x2157c0 of _0x4a3fec[_0x2fb557(0x118)]())if(_0x2157c0[_0x2fb557(0xfa)](_0x2fb557(0x10d))===_0x19c100)return _0x2157c0;return null;}(this[_0x34536f(0xcd)],_0x346c6d):null;_0x516e13||(_0x516e13=_0x440a1e[_0x34536f(0x122)](_0x34536f(0xef),{'footnoteId':_0x346c6d}),this[_0x34536f(0xcd)]&&(_0x440a1e[_0x34536f(0xd1)](_0x516e13,this[_0x34536f(0xcd)],_0x34536f(0xd6)),_0x389340=!0x0));const _0x6e0971={'id':_0x346c6d,'reference':_0x70c33c,'definition':_0x516e13},_0x10548a=I(this[_0x34536f(0x11c)][_0x34536f(0x10b)],this[_0x34536f(0x11d)],_0x70c33c);return this[_0x34536f(0x11d)][_0x34536f(0x10a)](_0x10548a,0x0,_0x6e0971),this[_0x34536f(0xff)](_0x440a1e,_0x10548a)&&(_0x389340=!0x0),_0x389340;}[_0x5a73d6(0xc4)](_0xae0a30,_0x35b2b3){const _0x52179c=_0x5a73d6,_0x12e89c=this[_0x52179c(0x11d)][_0x52179c(0xf0)](_0x50b4b3=>_0x50b4b3['id']===_0x35b2b3);if(-0x1===_0x12e89c)return!0x1;let _0x5364da=!0x1;const _0x44c9c5=this[_0x52179c(0x11d)][_0x12e89c];return _0x52179c(0xed)!==_0x44c9c5[_0x52179c(0x121)][_0x52179c(0xcf)][_0x52179c(0x10e)]&&(_0xae0a30[_0x52179c(0x101)](_0x44c9c5[_0x52179c(0x121)]),_0x5364da=!0x0),this[_0x52179c(0x11d)][_0x52179c(0x10a)](_0x12e89c,0x1),this[_0x52179c(0xff)](_0xae0a30,_0x12e89c)&&(_0x5364da=!0x0),_0x5364da;}[_0x5a73d6(0x111)](_0x4457a8,_0xedd7f7){const _0x1b6bc4=_0x5a73d6,_0x503a21=_0xedd7f7[_0x1b6bc4(0xfa)](_0x1b6bc4(0x10d)),_0x284a96=this[_0x1b6bc4(0x11d)][_0x1b6bc4(0xf0)](_0x1c21c9=>_0x1c21c9['id']===_0x503a21),_0xd843a6=this[_0x1b6bc4(0x11d)][_0x284a96];let _0x17cd46=!0x1;_0xd843a6[_0x1b6bc4(0xf2)]=_0xedd7f7,this[_0x1b6bc4(0x11d)][_0x1b6bc4(0x10a)](_0x284a96,0x1);const _0x154925=I(this[_0x1b6bc4(0x11c)][_0x1b6bc4(0x10b)],this[_0x1b6bc4(0x11d)],_0xedd7f7);return this[_0x1b6bc4(0x11d)][_0x1b6bc4(0x10a)](_0x154925,0x0,_0xd843a6),this[_0x1b6bc4(0xff)](_0x4457a8,Math[_0x1b6bc4(0xcb)](_0x284a96,_0x154925))&&(_0x17cd46=!0x0),_0x17cd46;}[_0x5a73d6(0xf4)](_0x53bdd1,_0x3046be){const _0x3db8df=_0x5a73d6;if(!this[_0x3db8df(0xcd)])return!0x1;const _0x285981=this[_0x3db8df(0x11d)][_0x3046be];let _0x1e1399;return _0x1e1399=this[_0x3db8df(0x105)]?this[_0x3db8df(0x105)]({'footnote':_0x285981,'container':this[_0x3db8df(0xcd)],'digits':String(this[_0x3db8df(0x11d)][_0x3db8df(0xdc)])[_0x3db8df(0xdc)],'value':_0x3046be+0x1}):String(_0x3046be+0x1),_0x285981[_0x3db8df(0xf2)][_0x3db8df(0xfa)](_0x3db8df(0xca))!=_0x1e1399&&(_0x53bdd1[_0x3db8df(0xd5)](_0x3db8df(0xca),_0x1e1399,_0x285981[_0x3db8df(0xf2)]),!0x0);}[_0x5a73d6(0x102)](_0x28d055){const _0x5161e8=_0x5a73d6;if(!this[_0x5161e8(0xcd)]||this[_0x5161e8(0x11d)][_0x5161e8(0xdc)]<0x2)return!0x1;if(function(_0x15df49,_0x2805eb){const _0x527e4f=_0x5161e8;if(_0x15df49[_0x527e4f(0xdc)]!==_0x2805eb[_0x527e4f(0xdc)])return!0x1;for(let _0x4fe94c=0x0;_0x4fe94c<_0x15df49[_0x527e4f(0xdc)];_0x4fe94c++)if(_0x15df49[_0x4fe94c]!==_0x2805eb[_0x4fe94c])return!0x1;return!0x0;}(this[_0x5161e8(0x11d)][_0x5161e8(0xd8)](_0x500e7a=>_0x500e7a['id']),Array[_0x5161e8(0xe5)](this[_0x5161e8(0xcd)][_0x5161e8(0x118)]())[_0x5161e8(0xd8)](_0x2c1bac=>_0x2c1bac[_0x5161e8(0xfa)](_0x5161e8(0x10d)))))return!0x1;let _0x34db0c=!0x1;for(let _0x69b8ed=0x0;_0x69b8ed<this[_0x5161e8(0x11d)][_0x5161e8(0xdc)];_0x69b8ed++){const _0x4525df=this[_0x5161e8(0x11d)][_0x69b8ed],_0x3b763e=_0x28d055[_0x5161e8(0xdf)](_0x4525df[_0x5161e8(0x121)]),_0x469eda=_0x28d055[_0x5161e8(0x100)](this[_0x5161e8(0xcd)],_0x69b8ed);_0x3b763e[_0x5161e8(0x117)](_0x469eda)||(_0x28d055[_0x5161e8(0xf5)](_0x28d055[_0x5161e8(0x123)](_0x4525df[_0x5161e8(0x121)]),_0x469eda),_0x34db0c=!0x0);}return _0x34db0c;}[_0x5a73d6(0xe3)](_0x370027){const _0x1d8aef=_0x5a73d6;if(!this[_0x1d8aef(0x11d)][_0x1d8aef(0xdc)])return!0x1;const {model:_0x3dc5fd}=this[_0x1d8aef(0x11c)];let _0x45c8d2=!0x1;for(let _0x232a63=0x0;_0x232a63<this[_0x1d8aef(0x11d)][_0x1d8aef(0xdc)]-0x1;_0x232a63++){const _0x594a93=this[_0x1d8aef(0x11d)][_0x232a63],_0x56873b=this[_0x1d8aef(0x11d)][_0x232a63+0x1],_0x39970a=_0x3dc5fd[_0x1d8aef(0xdf)](_0x594a93[_0x1d8aef(0xf2)]),_0x8a881f=_0x3dc5fd[_0x1d8aef(0xdf)](_0x56873b[_0x1d8aef(0xf2)]);_0x1d8aef(0xf6)===_0x39970a[_0x1d8aef(0x11f)](_0x8a881f)&&(this[_0x1d8aef(0x111)](_0x370027,_0x594a93[_0x1d8aef(0xf2)]),_0x232a63=-0x1,_0x45c8d2=!0x0);}return _0x45c8d2;}}function _0x261f(){const _0x22bfd3=['some','_footnotesDefinitions','differ','root','reset','insert','getFootnotesFormatter','set','getFootnote','setAttribute','end','init','map','footnotesDefinitions','_handleFootnoteReferencesChanges','document','length','595512aNIjDx','low','createPositionBefore','_footnoteDefsContainerTracker','6uzaEhk','unshift','_ensureFootnotesReferencesHaveProperOrder','945315SoqngW','from','pluginName','isOfficialPlugin','paragraph','_ensureFootnotesDefinitionsContainerExists','add','_handleFootnotesDefinitionsObjectChanges','footnoteRef','$graveyard','_footnoteRefsTracker','footnoteDefinition','findIndex','find','reference','createRangeIn','_updateFootnoteRefCounter','move','after','_insertEmptyFootnotesDefinitionsContainer','isPremiumPlugin','33628aYbYZh','getAttribute','append','change:data','get','getRootNames','_updateFootnotesCounters','createPositionAt','remove','_sortFootnoteDefinitions','getChanges','setFootnoteFormatter','_footnoteFormatter','39MfOTJJ','singleton','high','854720mEAddR','splice','model','_footnoteDefsTracker','footnoteId','rootName','before','filter','_handleMovedFootnoteReference','listenTo','push','registerPostFixer','_handleInsertedFootnoteReference','footnoteInlineContent','isEqual','getChildren','_handleFootnoteDefinitionsChanges','_handleFootnotesDefinitionsObjectSync','getFootnotes','editor','_footnotes','footnotes.multiBlock','compareWith','parent','definition','createElement','createRangeOn','config','737984TeMbZD','indexOf','976059trwGna','155145HfhhJd','_handleRemoveFootnoteReferenceById','childCount','FootnotesTracker','has','enqueueChange','getFootnotesDefinitionsObjectElement','footnoteCounter','min'];_0x261f=function(){return _0x22bfd3;};return _0x261f();}function _(_0x290774,_0x5a6a9b,_0x220cdf){const _0x27b920=_0x5a73d6;if(_0x220cdf[_0x27b920(0xc5)])return!0x1;const _0x4a49d7=_0x5a6a9b?_0x27b920(0xe8):_0x27b920(0x116);return _0x290774[_0x27b920(0xd1)](_0x290774[_0x27b920(0x122)](_0x4a49d7),_0x220cdf),!0x0;}function I(_0x338d69,_0x2f02b2,_0x2c1f48){const _0x512f5a=_0x5a73d6;if(0x0===_0x2f02b2[_0x512f5a(0xdc)])return 0x0;const _0x4ddd6c=_0x338d69[_0x512f5a(0xdf)](_0x2c1f48);for(let _0x5ab5e3=0x0;_0x5ab5e3<_0x2f02b2[_0x512f5a(0xdc)];_0x5ab5e3++){const _0x5ba49b=_0x2f02b2[_0x5ab5e3],_0x336234=_0x338d69[_0x512f5a(0xdf)](_0x5ba49b[_0x512f5a(0xf2)]);if(_0x512f5a(0x10f)===_0x4ddd6c[_0x512f5a(0x11f)](_0x336234))return _0x5ab5e3;}const _0x332890=_0x2c1f48[_0x512f5a(0xcf)];let _0x4d39da=-0x1;for(let _0x518a5c=_0x2f02b2[_0x512f5a(0xdc)]-0x1;_0x518a5c>=0x0;_0x518a5c--)if(_0x2f02b2[_0x518a5c][_0x512f5a(0xf2)][_0x512f5a(0xcf)]===_0x332890){_0x4d39da=_0x518a5c;break;}if(-0x1!==_0x4d39da)return _0x4d39da+0x1;const _0x4958bb=_0x338d69[_0x512f5a(0xdb)][_0x512f5a(0xfe)](),_0x58717b=_0x4958bb[_0x512f5a(0x126)](_0x332890[_0x512f5a(0x10e)]),_0x4f5adf=_0x4958bb[_0x58717b+0x1];if(_0x4f5adf){for(let _0x519e8f=0x0;_0x519e8f<_0x2f02b2[_0x512f5a(0xdc)];_0x519e8f++)if(_0x2f02b2[_0x519e8f][_0x512f5a(0xf2)][_0x512f5a(0xcf)][_0x512f5a(0x10e)]===_0x4f5adf)return _0x519e8f;}return _0x2f02b2[_0x512f5a(0xdc)];}
|
package/src/footnotesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x39ee1d,MenuBarMenuListItemButtonView as _0x53b258}from'ckeditor5/src/ui.js';import{Plugin as _0x457022}from'ckeditor5/src/core.js';import{IconFootnote as _0x4a04cb}from'ckeditor5/src/icons.js';import'../theme/footnotes.css';export class FootnotesUI extends _0x457022{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x322935}=this,{componentFactory:_0x5ebb8f}=_0x322935['ui'];_0x5ebb8f['add']('insertFootnote',v(_0x322935,_0x39ee1d)),_0x5ebb8f['add']('menuBar:insertFootnote',v(_0x322935,_0x53b258)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x170883=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bcefa;for(const _0x33431d in _0x170883){const _0xd114c9=_0x33431d,_0x174d14=_0x170883[_0xd114c9];if('footnotesLicenseKeyValid'==_0x174d14||'footnotesLicenseKeyInvalid'==_0x174d14||'footnotesLicenseKeyExpired'==_0x174d14||'footnotesLicenseKeyDomainLimit'==_0x174d14||'footnotesLicenseKeyNotAllowed'==_0x174d14||'footnotesLicenseKeyEvaluationLimit'==_0x174d14||'footnotesLicenseKeyTrialLimit'==_0x174d14||'footnotesLicenseKeyUsageLimit'==_0x174d14){delete _0x170883[_0xd114c9],_0x1bcefa=_0x174d14,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1bcefa&&_0x170883['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1bcefa&&_0x170883['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1bcefa&&_0x170883['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1bcefa&&_0x170883['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1bcefa&&_0x170883['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1bcefa&&_0x170883['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1bcefa&&_0x170883['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function v(_0x506090,_0x433ee5){const _0x38ae51=_0x506090['commands']['get']('insertFootnote');return _0x382a3a=>{const {t:t}=_0x382a3a,_0x35371e=new _0x433ee5(_0x382a3a),_0xdb1e9a=_0x35371e instanceof _0x53b258;return _0x35371e['bind']('isEnabled')['to'](_0x38ae51,'isEnabled'),_0x35371e['set']({'label':t(_0xdb1e9a?'Footnote':'Insert\x20footnote'),'icon':_0x4a04cb,'tooltip':!0x0}),_0x35371e['on']('execute',()=>{_0x38ae51['execute'](),_0x506090['editing']['view']['focus']();}),_0x35371e;};}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x36922c,_0x315d97){var _0x122dae=_0x294c,_0x2ebefc=_0x36922c();while(!![]){try{var _0x2392c5=-parseInt(_0x122dae(0xe7))/0x1*(parseInt(_0x122dae(0xe9))/0x2)+-parseInt(_0x122dae(0xe3))/0x3+-parseInt(_0x122dae(0xe5))/0x4+parseInt(_0x122dae(0xe6))/0x5+-parseInt(_0x122dae(0xe8))/0x6+parseInt(_0x122dae(0xe2))/0x7+parseInt(_0x122dae(0xe1))/0x8*(parseInt(_0x122dae(0xe4))/0x9);if(_0x2392c5===_0x315d97)break;else _0x2ebefc['push'](_0x2ebefc['shift']());}catch(_0xacc673){_0x2ebefc['push'](_0x2ebefc['shift']());}}}(_0x514d,0xd119e));import'./augmentation.js';function _0x514d(){var _0x2588ff=['1cLLBuK','3808662qKoNIz','495836eyUhhd','112656Onfqpe','4108069AfjUJQ','122037ZakROC','981Fggfbg','2753596pnkDtD','1732230uSYhBu'];_0x514d=function(){return _0x2588ff;};return _0x514d();}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 _0x294c(_0x2bf704,_0x3babec){var _0x514dd0=_0x514d();return _0x294c=function(_0x294c22,_0x52e6e2){_0x294c22=_0x294c22-0xe1;var _0x1e223b=_0x514dd0[_0x294c22];return _0x1e223b;},_0x294c(_0x2bf704,_0x3babec);}export{FootnotesStartCommand}from'./footnotesproperties/commands/footnotesstartcommand.js';export{FootnotesPropertiesEditing}from'./footnotesproperties/footnotespropertiesediting.js';export{FootnotesPropertiesUI}from'./footnotesproperties/footnotespropertiesui.js';export{FootnotesProperties}from'./footnotesproperties.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ef0e9=_0x4307;(function(_0x37bb19,_0x276028){const _0x389ca5=_0x4307,_0x3d6a9e=_0x37bb19();while(!![]){try{const _0x44551d=parseInt(_0x389ca5(0xbf))/0x1*(-parseInt(_0x389ca5(0xcf))/0x2)+parseInt(_0x389ca5(0xcd))/0x3+parseInt(_0x389ca5(0xc7))/0x4*(parseInt(_0x389ca5(0xc4))/0x5)+parseInt(_0x389ca5(0xbb))/0x6+parseInt(_0x389ca5(0xc6))/0x7*(parseInt(_0x389ca5(0xc0))/0x8)+-parseInt(_0x389ca5(0xd7))/0x9+-parseInt(_0x389ca5(0xd4))/0xa*(-parseInt(_0x389ca5(0xb8))/0xb);if(_0x44551d===_0x276028)break;else _0x3d6a9e['push'](_0x3d6a9e['shift']());}catch(_0x2d70de){_0x3d6a9e['push'](_0x3d6a9e['shift']());}}}(_0x5b6e,0x385d1));export class ModelElementTracker{[_0x5ef0e9(0xe0)];[_0x5ef0e9(0xdc)];[_0x5ef0e9(0xd6)];[_0x5ef0e9(0xba)]=new Map();constructor(_0xcce127,_0x5b1bc5){const _0x1ad652=_0x5ef0e9;this[_0x1ad652(0xe0)]=_0xcce127,this[_0x1ad652(0xdc)]=_0x5b1bc5[_0x1ad652(0xe1)],this[_0x1ad652(0xd6)]=_0x5b1bc5[_0x1ad652(0xd1)];}[_0x5ef0e9(0xdf)](){const _0x37d5e2=_0x5ef0e9;this[_0x37d5e2(0xba)][_0x37d5e2(0xe3)]();}[_0x5ef0e9(0xe4)](_0xb7c3de){const _0x71769c=_0x5ef0e9,_0xc78877=new Set(),_0x3bbf53=new Map();for(const _0x97c9a2 of _0xb7c3de){if(_0x71769c(0xd5)===_0x97c9a2[_0x71769c(0xc8)]&&_0x71769c(0xc2)!==_0x97c9a2[_0x71769c(0xbc)]&&_0x97c9a2[_0x71769c(0xd9)][_0x71769c(0xc5)]){const _0x555ee8=this[_0x71769c(0xe0)][_0x71769c(0xcb)](_0x97c9a2[_0x71769c(0xd9)][_0x71769c(0xc5)]);for(const _0x2e1b10 of _0x555ee8[_0x71769c(0xd8)]()){if(!_0x2e1b10['is'](_0x71769c(0xc3),this[_0x71769c(0xdc)]))continue;const _0x234af6=this[_0x71769c(0xd6)](_0x2e1b10);_0x3bbf53[_0x71769c(0xc9)](_0x234af6)||_0x3bbf53[_0x71769c(0xdb)](_0x234af6,[]),_0x3bbf53[_0x71769c(0xce)](_0x234af6)[_0x71769c(0xe2)](_0x2e1b10);}}if(_0x71769c(0xdd)===_0x97c9a2[_0x71769c(0xc8)]&&_0x97c9a2[_0x71769c(0xbc)]===this[_0x71769c(0xdc)]){const _0x4ddaa8=this[_0x71769c(0xd6)]({'getAttribute':_0xedbaae=>_0x97c9a2[_0x71769c(0xbd)][_0x71769c(0xce)](_0xedbaae)});_0xc78877[_0x71769c(0xbe)](_0x4ddaa8);}}for(const [_0x511304,_0x1b6c08]of this[_0x71769c(0xba)])_0x71769c(0xb9)===_0x1b6c08[_0x71769c(0xca)][_0x71769c(0xc1)]&&_0xc78877[_0x71769c(0xbe)](_0x511304);for(const _0x141342 of _0xc78877)this[_0x71769c(0xba)][_0x71769c(0xde)](_0x141342);for(const [_0x1a9956,_0x448e78]of _0x3bbf53)this[_0x71769c(0xba)][_0x71769c(0xdb)](_0x1a9956,_0x448e78[_0x448e78[_0x71769c(0xda)]-0x1]);const _0x4c7671=new Set();for(const [_0x584ea6,_0xcfa941]of _0x3bbf53)_0xc78877[_0x71769c(0xc9)](_0x584ea6)&&(_0x4c7671[_0x71769c(0xbe)](_0xcfa941[0x0]),_0xcfa941[_0x71769c(0xda)]>0x1?_0x3bbf53[_0x71769c(0xdb)](_0x584ea6,_0xcfa941[_0x71769c(0xd2)](0x1)):_0x3bbf53[_0x71769c(0xde)](_0x584ea6),_0xc78877[_0x71769c(0xde)](_0x584ea6));return{'removed':Array[_0x71769c(0xcc)](_0xc78877),'inserted':Array[_0x71769c(0xcc)](_0x3bbf53[_0x71769c(0xd3)]())[_0x71769c(0xd0)](),'moved':Array[_0x71769c(0xcc)](_0x4c7671)};}}function _0x4307(_0x4beca4,_0x1c034b){const _0x5b6ee0=_0x5b6e();return _0x4307=function(_0x43079f,_0x2c8a40){_0x43079f=_0x43079f-0xb8;let _0x13c39e=_0x5b6ee0[_0x43079f];return _0x13c39e;},_0x4307(_0x4beca4,_0x1c034b);}function _0x5b6e(){const _0x417d94=['values','230iFSgTi','insert','_getElementKey','3730023GRPayC','getItems','position','length','set','_elementName','remove','delete','reset','_model','elementName','push','clear','getChanges','62887zbdeoN','$graveyard','_trackedElements','1227828dphNSE','name','attributes','add','13GgtLEj','2056qiUSRp','rootName','$text','element','743160CRSGUm','nodeAfter','3094aQYfcD','4yxpXAu','type','has','root','createRangeOn','from','1038456EysWcO','get','46030gENeHh','flat','getElementKey','slice'];_0x5b6e=function(){return _0x417d94;};return _0x5b6e();}
|