@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251027.0 → 0.0.0-nightly-20251029.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/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x7f6a27,Command as _0x1849a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x41f154,isWidget as _0x40e19a,toWidgetEditable as _0x4da06a,WidgetToolbarRepository as _0x850f85}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x124e5b,logWarning as _0xa045ad,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xe15985,ClickObserver as _0x14ca82}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2cf428}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3de1ec,ButtonView as _0x285e75,View as _0x1c8606,ViewCollection as _0x573d1f,FocusCycler as _0x59a5b9,addKeyboardHandlingForGrid as _0x48ec16,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x16c286,BalloonPanelView as _0x5e807c,createDropdown as _0x45bc8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2a043f,IconListStyleDecimal as _0x4a05ec,IconListStyleDecimalLeadingZero as _0x401dfc,IconListStyleLowerRoman as _0x3bdc31,IconListStyleUpperRoman as _0x5491ae,IconListStyleLowerLatin as _0x57ead2,IconListStyleUpperLatin as _0x57e61b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2e9efb,_0xffa8dc){this['_model']=_0x2e9efb,this['_elementName']=_0xffa8dc['elementName'],this['_getElementKey']=_0xffa8dc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2abec4){const _0x2cfb91=new Set(),_0x557eb6=new Map();for(const _0x3e96f1 of _0x2abec4){if('insert'===_0x3e96f1['type']&&'$text'!==_0x3e96f1['name']&&_0x3e96f1['position']['nodeAfter']){const _0x292fe9=this['_model']['createRangeOn'](_0x3e96f1['position']['nodeAfter']);for(const _0xe4b28f of _0x292fe9['getItems']()){if(!_0xe4b28f['is']('element',this['_elementName']))continue;const _0x388957=this['_getElementKey'](_0xe4b28f);_0x557eb6['has'](_0x388957)||_0x557eb6['set'](_0x388957,[]),_0x557eb6['get'](_0x388957)['push'](_0xe4b28f);}}if('remove'===_0x3e96f1['type']&&_0x3e96f1['name']===this['_elementName']){const _0x26db27=this['_getElementKey']({'getAttribute':_0xa579e4=>_0x3e96f1['attributes']['get'](_0xa579e4)});_0x2cfb91['add'](_0x26db27);}}for(const [_0x5d9693,_0x239c57]of this['_trackedElements'])'$graveyard'===_0x239c57['root']['rootName']&&_0x2cfb91['add'](_0x5d9693);for(const _0x11a971 of _0x2cfb91)this['_trackedElements']['delete'](_0x11a971);for(const [_0x36fb93,_0x463857]of _0x557eb6)this['_trackedElements']['set'](_0x36fb93,_0x463857[_0x463857['length']-0x1]);const _0xc2c6a8=new Set();for(const [_0x2bb343,_0x57351e]of _0x557eb6)_0x2cfb91['has'](_0x2bb343)&&(_0xc2c6a8['add'](_0x57351e[0x0]),_0x57351e['length']>0x1?_0x557eb6['set'](_0x2bb343,_0x57351e['slice'](0x1)):_0x557eb6['delete'](_0x2bb343),_0x2cfb91['delete'](_0x2bb343));return{'removed':Array['from'](_0x2cfb91),'inserted':Array['from'](_0x557eb6['values']())['flat'](),'moved':Array['from'](_0xc2c6a8)};}}class c extends _0x7f6a27{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1adc6){super(_0xd1adc6),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x438acf=>_0x438acf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x57cb1d=>_0x57cb1d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x48593e}=this,{model:_0x3d9440,data:_0x7b8f47}=_0x48593e;_0x3d9440['document']['registerPostFixer'](_0x508ed6=>{const _0x3397dd=_0x3d9440['document']['differ']['getChanges']();let _0x588d99=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteReferencesChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x508ed6)&&(_0x588d99=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x508ed6)&&(_0x588d99=!0x0),this['_sortFootnoteDefinitions'](_0x508ed6)&&(_0x588d99=!0x0),_0x588d99;}),this['listenTo'](_0x3d9440['document'],'change:data',()=>{_0x3d9440['enqueueChange']({'isUndoable':!0x1},_0x30f937=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x30f937);});},{'priority':'low'}),this['listenTo'](_0x7b8f47,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5988c7){return this['_footnotes']['find'](_0x4c9743=>_0x4c9743['id']===_0x5988c7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5eee85){this['_footnoteFormatter']=_0x5eee85;}['_updateFootnotesCounters'](_0x4febee,_0x209cdf=0x0){let _0x20db5f=!0x1;for(let _0x380932=_0x209cdf;_0x380932<this['_footnotes']['length'];_0x380932++)this['_updateFootnoteRefCounter'](_0x4febee,_0x380932)&&(_0x20db5f=!0x0);return _0x20db5f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10c1bc,_0x400229){const _0x3651bd=_0x10c1bc['createElement']('footnotesDefinitions',{});return _0x10c1bc['append'](_0x3651bd,_0x400229),this['_footnotesDefinitions']=_0x3651bd,_0x3651bd;}['_ensureFootnotesDefinitionsContainerExists'](_0x3b7566){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a6e6d=this['_footnotes'][0x0]['reference']['root'],_0x47d45e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3b7566,_0x4a6e6d);for(const _0x1ae7a0 of this['_footnotes'])_0x1ae7a0['definition']['parent']||_0x3b7566['insert'](_0x1ae7a0['definition'],_0x47d45e,'end');this['_updateFootnotesCounters'](_0x3b7566);}['_handleFootnotesDefinitionsObjectChanges'](_0x115213,_0x374945){let _0x367078=!0x1;const {inserted:_0x45409b,removed:_0x1e269b,moved:_0x434482}=this['_footnoteDefsContainerTracker']['getChanges'](_0x374945);if(_0x434482['length']&&(this['_footnotesDefinitions']=_0x434482[0x0]),_0x45409b['length']){if(_0x45409b['length']>0x1||this['_footnotesDefinitions']&&_0x45409b['some'](_0x9775a0=>_0x9775a0!==this['_footnotesDefinitions'])){const _0xa1439b=_0x115213['createElement']('footnotesDefinitions',{}),_0x72d6e7=[];this['_footnotesDefinitions']&&_0x72d6e7['push'](this['_footnotesDefinitions']),_0x72d6e7['push'](..._0x45409b),_0x115213['insert'](_0xa1439b,_0x72d6e7[0x0],'before');for(const _0x1fa73d of _0x72d6e7)_0x115213['move'](_0x115213['createRangeIn'](_0x1fa73d),_0x115213['createPositionAt'](_0xa1439b,'end')),_0x115213['remove'](_0x1fa73d);this['_footnotesDefinitions']=_0xa1439b,this['_updateFootnotesCounters'](_0x115213),_0x367078=!0x0;}else this['_footnotesDefinitions']=_0x45409b[0x0];}if(_0x1e269b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1701ee of this['_footnotes'])_0x115213['remove'](_0x1701ee['reference']),_0x367078=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x367078;}['_handleFootnoteDefinitionsChanges'](_0x315d75,_0xe3c096){let _0x3a976d=!0x1;const _0x300425=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x190bd4,moved:_0xfa596c}=this['_footnoteDefsTracker']['getChanges'](_0xe3c096);for(const _0x35b223 of[..._0xfa596c,..._0x190bd4]){const _0x3b1c0d=_0x35b223['getAttribute']('footnoteId'),_0x14f148=this['getFootnote'](_0x3b1c0d);_0x14f148&&(_0x14f148['definition']=_0x35b223),_(_0x315d75,_0x300425,_0x35b223)&&(_0x3a976d=!0x0);}return _0x3a976d;}['_handleFootnoteReferencesChanges'](_0x35b3ed,_0x11c2d0){let _0x481d3c=!0x1;const {removed:_0x213813,inserted:_0x8cf6bd,moved:_0x43b464}=this['_footnoteRefsTracker']['getChanges'](_0x11c2d0);for(const _0x441b27 of _0x213813)this['_handleRemoveFootnoteReferenceById'](_0x35b3ed,_0x441b27)&&(_0x481d3c=!0x0);for(const _0x889807 of _0x8cf6bd)this['_handleInsertedFootnoteReference'](_0x35b3ed,_0x889807)&&(_0x481d3c=!0x0);for(const _0x48d102 of _0x43b464)this['_handleMovedFootnoteReference'](_0x35b3ed,_0x48d102)&&(_0x481d3c=!0x0);return _0x481d3c;}['_handleFootnotesDefinitionsObjectSync'](_0x53f392){if(!this['_footnotesDefinitions'])return!0x1;let _0x4d4b3e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3e6871=[];for(const _0x87981 of this['_footnotesDefinitions']['getChildren']()){const _0x37230a=_0x87981['getAttribute']('footnoteId');this['getFootnote'](_0x37230a)||(_0x3e6871['unshift'](_0x87981),_0x4d4b3e=!0x0);}for(const _0x23c637 of _0x3e6871)_0x53f392['remove'](_0x23c637);}const _0x5081b3=new Set(),_0x303096=[];for(const _0x53d776 of this['_footnotesDefinitions']['getChildren']()){const _0x3603e1=_0x53d776['getAttribute']('footnoteId');_0x5081b3['has'](_0x3603e1)?(_0x303096['unshift'](_0x53d776),_0x4d4b3e=!0x0):_0x5081b3['add'](_0x3603e1);}for(const _0x58134f of _0x303096)_0x53f392['remove'](_0x58134f);return this['_footnotesDefinitions']['childCount']||(_0x53f392['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4d4b3e=!0x0),_0x4d4b3e;}['_handleInsertedFootnoteReference'](_0x510f52,_0xf471dc){if(this['_footnotes']['find'](_0x300c4a=>_0x300c4a['reference']===_0xf471dc))return!0x1;let _0xb2c320=!0x1;const _0x222044=_0xf471dc['getAttribute']('footnoteId'),_0x15c7c3=this['getFootnote'](_0x222044);_0x15c7c3&&(_0x510f52['remove'](_0x15c7c3['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x20cd93=>_0x20cd93['id']!==_0x222044),_0xb2c320=!0x0);let _0x4d75ca=this['_footnotesDefinitions']?function(_0x3aa081,_0x387e13){for(const _0x3cd280 of _0x3aa081['getChildren']())if(_0x3cd280['getAttribute']('footnoteId')===_0x387e13)return _0x3cd280;return null;}(this['_footnotesDefinitions'],_0x222044):null;_0x4d75ca||(_0x4d75ca=_0x510f52['createElement']('footnoteDefinition',{'footnoteId':_0x222044}),this['_footnotesDefinitions']&&(_0x510f52['insert'](_0x4d75ca,this['_footnotesDefinitions'],'end'),_0xb2c320=!0x0));const _0x30c62c={'id':_0x222044,'reference':_0xf471dc,'definition':_0x4d75ca},_0x1219ac=I(this['editor']['model'],this['_footnotes'],_0xf471dc);return this['_footnotes']['splice'](_0x1219ac,0x0,_0x30c62c),this['_updateFootnotesCounters'](_0x510f52,_0x1219ac)&&(_0xb2c320=!0x0),_0xb2c320;}['_handleRemoveFootnoteReferenceById'](_0x2f4895,_0x22de45){const _0x12bacc=this['_footnotes']['findIndex'](_0x1d362c=>_0x1d362c['id']===_0x22de45);if(-0x1===_0x12bacc)return!0x1;let _0x2d4a2e=!0x1;const _0x522d97=this['_footnotes'][_0x12bacc];return'$graveyard'!==_0x522d97['definition']['root']['rootName']&&(_0x2f4895['remove'](_0x522d97['definition']),_0x2d4a2e=!0x0),this['_footnotes']['splice'](_0x12bacc,0x1),this['_updateFootnotesCounters'](_0x2f4895,_0x12bacc)&&(_0x2d4a2e=!0x0),_0x2d4a2e;}['_handleMovedFootnoteReference'](_0x364e24,_0x19b8d0){const _0x33b958=_0x19b8d0['getAttribute']('footnoteId'),_0x3248c8=this['_footnotes']['findIndex'](_0xba884e=>_0xba884e['id']===_0x33b958),_0xe57829=this['_footnotes'][_0x3248c8];let _0x4eefa0=!0x1;_0xe57829['reference']=_0x19b8d0,this['_footnotes']['splice'](_0x3248c8,0x1);const _0x4113f6=I(this['editor']['model'],this['_footnotes'],_0x19b8d0);return this['_footnotes']['splice'](_0x4113f6,0x0,_0xe57829),this['_updateFootnotesCounters'](_0x364e24,Math['min'](_0x3248c8,_0x4113f6))&&(_0x4eefa0=!0x0),_0x4eefa0;}['_updateFootnoteRefCounter'](_0x1f443c,_0x1593cb){if(!this['_footnotesDefinitions'])return!0x1;const _0x964d89=this['_footnotes'][_0x1593cb];let _0x11ad63;return _0x11ad63=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x964d89,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1593cb+0x1}):String(_0x1593cb+0x1),_0x964d89['reference']['getAttribute']('footnoteCounter')!=_0x11ad63&&(_0x1f443c['setAttribute']('footnoteCounter',_0x11ad63,_0x964d89['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46fdb4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x343037,_0x3997f7){if(_0x343037['length']!==_0x3997f7['length'])return!0x1;for(let _0x446333=0x0;_0x446333<_0x343037['length'];_0x446333++)if(_0x343037[_0x446333]!==_0x3997f7[_0x446333])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x55fb46=>_0x55fb46['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x56ad12=>_0x56ad12['getAttribute']('footnoteId'))))return!0x1;let _0x238997=!0x1;for(let _0x5507c5=0x0;_0x5507c5<this['_footnotes']['length'];_0x5507c5++){const _0xe517c0=this['_footnotes'][_0x5507c5],_0x48c463=_0x46fdb4['createPositionBefore'](_0xe517c0['definition']),_0x2df215=_0x46fdb4['createPositionAt'](this['_footnotesDefinitions'],_0x5507c5);_0x48c463['isEqual'](_0x2df215)||(_0x46fdb4['move'](_0x46fdb4['createRangeOn'](_0xe517c0['definition']),_0x2df215),_0x238997=!0x0);}return _0x238997;}['_ensureFootnotesReferencesHaveProperOrder'](_0xe9be52){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1056a4}=this['editor'];let _0x4ee147=!0x1;for(let _0x31af11=0x0;_0x31af11<this['_footnotes']['length']-0x1;_0x31af11++){const _0x370ad0=this['_footnotes'][_0x31af11],_0x2ff717=this['_footnotes'][_0x31af11+0x1],_0x274711=_0x1056a4['createPositionBefore'](_0x370ad0['reference']),_0x5846ec=_0x1056a4['createPositionBefore'](_0x2ff717['reference']);'after'===_0x274711['compareWith'](_0x5846ec)&&(this['_handleMovedFootnoteReference'](_0xe9be52,_0x370ad0['reference']),_0x31af11=-0x1,_0x4ee147=!0x0);}return _0x4ee147;}}function _(_0x34fbb0,_0x5eaa09,_0x227666){if(_0x227666['childCount'])return!0x1;const _0x311e9d=_0x5eaa09?'paragraph':'footnoteInlineContent';return _0x34fbb0['insert'](_0x34fbb0['createElement'](_0x311e9d),_0x227666),!0x0;}function I(_0x1e2ede,_0x34167e,_0x372996){if(0x0===_0x34167e['length'])return 0x0;const _0x31ac73=_0x1e2ede['createPositionBefore'](_0x372996);for(let _0x41cefc=0x0;_0x41cefc<_0x34167e['length'];_0x41cefc++){const _0x5914db=_0x34167e[_0x41cefc],_0x3cd6f9=_0x1e2ede['createPositionBefore'](_0x5914db['reference']);if('before'===_0x31ac73['compareWith'](_0x3cd6f9))return _0x41cefc;}const _0x2dece0=_0x372996['root'];let _0x54585d=-0x1;for(let _0x147ce4=_0x34167e['length']-0x1;_0x147ce4>=0x0;_0x147ce4--)if(_0x34167e[_0x147ce4]['reference']['root']===_0x2dece0){_0x54585d=_0x147ce4;break;}if(-0x1!==_0x54585d)return _0x54585d+0x1;const _0x5ee3ce=_0x1e2ede['document']['getRootNames'](),_0x211c31=_0x5ee3ce['indexOf'](_0x2dece0['rootName']),_0xb7adff=_0x5ee3ce[_0x211c31+0x1];if(_0xb7adff){for(let _0x2f1893=0x0;_0x2f1893<_0x34167e['length'];_0x2f1893++)if(_0x34167e[_0x2f1893]['reference']['root']['rootName']===_0xb7adff)return _0x2f1893;}return _0x34167e['length'];}class w extends _0x1849a9{['refresh'](){const _0x10d0ae=this['editor']['model']['document']['selection'],_0x353eb8=this['_getPositionToInsertFootnote'](_0x10d0ae);this['isEnabled']=!!_0x353eb8;}['execute'](_0x46d892){const {editor:_0xe47a4}=this,{model:_0x39486f}=_0xe47a4,{selection:_0x56d3ce}=_0x39486f['document'],_0x36157f=this['_getPositionToInsertFootnote'](_0x56d3ce);if(!_0x36157f)return;const _0xe903c5=_0xe47a4['plugins']['get']('FootnotesEditing'),_0x15af50=_0x46d892?.['footnoteId']??_0x124e5b();!function(_0x4f4215){return'string'==typeof _0x4f4215&&_0x4f4215['length']>0x0&&!/\s/['test'](_0x4f4215)&&!/^\d/['test'](_0x4f4215);}(_0x15af50)?_0xa045ad('insert-footnote-command-executed-with-invalid-id'):(_0x39486f['change'](_0x829327=>{const _0x18b5fc=_0x829327['createElement']('footnoteRef',{'footnoteId':_0x15af50});_0x39486f['insertObject'](_0x18b5fc,_0x36157f,null);}),_0xe903c5['_moveSelectionToFootnoteDefinition'](_0x15af50));}['_getPositionToInsertFootnote'](_0x8450ca){const {model:_0x394624}=this['editor'],{schema:_0x35fc95}=_0x394624,_0x4028ac=_0x8450ca['getFirstRange']();for(const _0x36d657 of _0x4028ac['getItems']())if(_0x35fc95['isBlock'](_0x36d657)||_0x35fc95['isObject'](_0x36d657))return null;const _0x2c89ec=_0x4028ac['end'];return _0x35fc95['checkChild'](_0x2c89ec,'footnoteRef')?_0x2c89ec:null;}}class r extends _0x7f6a27{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a328f}=this;_0x5a328f['config']['define']('footnotes.multiBlock',!0x0),_0x5a328f['commands']['add']('insertFootnote',new w(_0x5a328f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4512cf){const _0x1762e5=_0xe188b7([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]),_0xefc616=0x47a28506,_0x3eb671=0x47a5f266^_0xefc616,_0x5407a9=window[_0xe188b7([0x44,0x61,0x74,0x65])][_0xe188b7([0x6e,0x6f,0x77])](),_0x1d8612=_0x4512cf[_0xe188b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4676e3=new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b83b7=>{_0x1d8612[_0xe188b7([0x6f,0x6e,0x63,0x65])](_0xe188b7([0x72,0x65,0x61,0x64,0x79]),_0x1b83b7);}),_0x1a7c12={[_0xe188b7([0x6b,0x74,0x79])]:_0xe188b7([0x45,0x43]),[_0xe188b7([0x75,0x73,0x65])]:_0xe188b7([0x73,0x69,0x67]),[_0xe188b7([0x63,0x72,0x76])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36]),[_0xe188b7([0x78])]:_0xe188b7([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]),[_0xe188b7([0x79])]:_0xe188b7([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]),[_0xe188b7([0x61,0x6c,0x67])]:_0xe188b7([0x45,0x53,0x32,0x35,0x36])},_0x36fd7d=_0x1d8612[_0xe188b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe188b7([0x67,0x65,0x74])](_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4633a2(){let _0x32f4ee,_0x16dc69=null,_0x5b3c2b=null;try{if(_0x36fd7d==_0xe188b7([0x47,0x50,0x4c]))return _0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32f4ee=_0x1b16c1(),!_0x32f4ee)return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b3c2b=_0x1994b4(_0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32f4ee[_0xe188b7([0x6a,0x74,0x69])])),await _0x4515e0()?_0x3c43d()?_0x117f1f()?_0xe188b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1b43()?(_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2838e7()):_0xe188b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x117f1f(){const _0x49405c=[_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe188b7([0x74,0x72,0x69,0x61,0x6c])][_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5407a9/0x3e8:0xe10*_0x3eb671;return _0x32f4ee[_0xe188b7([0x65,0x78,0x70])]<_0x49405c;}function _0x3c43d(){const _0x43fd1b=_0x32f4ee[_0xe188b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x43fd1b&&(!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a]))||!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x46,0x4f,0x4f])));}function _0x3a1b43(){const _0x4463b0=_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4463b0||0x0==_0x4463b0[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf588a7}=new URL(window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4463b0[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf588a7))return!0x0;const _0x400235=_0xf588a7[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));return _0x4463b0[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x470356=>_0x470356[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a])))[_0xe188b7([0x6d,0x61,0x70])](_0x4be1de=>_0x4be1de[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])))[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182c8e=>_0x182c8e[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x6d,0x61,0x70])](_0x2a4a97=>Array(_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a4a97[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x66,0x69,0x6c,0x6c])](_0x2a4a97[0x0]===_0xe188b7([0x2a])?_0xe188b7([0x2a]):'')[_0xe188b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a4a97))[_0xe188b7([0x73,0x6f,0x6d,0x65])](_0x5208e3=>_0x400235[_0xe188b7([0x65,0x76,0x65,0x72,0x79])]((_0x151654,_0x431f03)=>_0x5208e3[_0x431f03]===_0x151654||_0x5208e3[_0x431f03]===_0xe188b7([0x2a])));}function _0x2838e7(){return _0x16dc69&&_0x5b3c2b?new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137a96,_0x2062a8)=>{_0x16dc69[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x137a96,_0x2062a8),_0x5b3c2b[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x5eaa70=>{_0x5eaa70!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x137a96(_0x5eaa70);},_0x2062a8);}):_0x16dc69||_0x5b3c2b||_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1994b4(_0x4d8b72,_0x83407f){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d92d=>{if(_0x47785c())return _0x55d92d(_0xe188b7([0x56,0x61,0x6c,0x69,0x64]));_0x5d6f2d(),_0x1d8612[_0xe188b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xea9ab8=!0x1;const _0x5385d2=_0x124e5b();function _0x2a06c2(_0xe755b7){return!!_0xe755b7&&(typeof _0xe755b7===_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe755b7===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe755b7[_0xe188b7([0x74,0x68,0x65,0x6e])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe755b7[_0xe188b7([0x63,0x61,0x74,0x63,0x68])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x255d83(_0x54916d){_0x41fa68(_0x54916d)[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x343516=>{if(!_0x343516||_0x343516[_0xe188b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe188b7([0x6f,0x6b]))return _0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x522700(_0x2313a9(_0x5385d2+_0x83407f))!=_0x343516[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0xca3e9f=>(_0x542bd8(),_0xca3e9f),()=>{const _0x4a2700=_0x11eac3();return null==_0x4a2700?(_0x542bd8(),_0xe188b7([0x56,0x61,0x6c,0x69,0x64])):_0xe188b7(_0x5407a9-_0x4a2700>(0x63ae0106^_0xefc616)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x55d92d)[_0xe188b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24a98a=0x47946b86^_0xefc616;function _0x542bd8(){const _0x41e8c1=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x19e850=_0x2babea(_0x522700(window[_0xe188b7([0x4d,0x61,0x74,0x68])][_0xe188b7([0x63,0x65,0x69,0x6c])](_0x5407a9/_0x24a98a)));window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41e8c1,_0x19e850);}function _0x11eac3(){const _0x28aeea=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x51aa44=window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28aeea);return _0x51aa44?window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2babea(_0x51aa44),0x10)*_0x24a98a:null;}function _0x41fa68(_0x1cb25e){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38741d,_0x2fd407)=>{_0x1cb25e[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x38741d,_0x2fd407),window[_0xe188b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fd407,0x47a351c6^_0xefc616);});}}_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a7c5,_0x245462)=>{if(_0x245462[0x0]!=_0x4d8b72)return _0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x245462[0x1]={..._0x245462[0x1],[_0xe188b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5385d2};},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x68,0x69,0x67,0x68])}),_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x409d9a=>{_0x2a06c2(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xea9ab8=!0x0,_0x255d83(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x6c,0x6f,0x77])}),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>{_0xea9ab8||_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47785c(){return _0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe188b7([0x61,0x75,0x74,0x6f]);}function _0x5d6f2d(){_0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe188b7([0x61,0x75,0x74,0x6f]);}}function _0x1475ac(_0x504e12){const _0x22e5ad=[new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325955=>setTimeout(_0x325955,0x47abbbca^_0xefc616)),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb670=>{let _0x3fda7a=0x0;_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x6f,0x6e])](_0xe188b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x274227,_0x2bd07e)=>{_0x2bd07e[0x0][_0xe188b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fda7a++,_0x3fda7a==(0x47a284fe^_0xefc616)&&(_0x5eb670(),_0x274227[_0xe188b7([0x6f,0x66,0x66])]());});}))];return window[_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe188b7([0x72,0x61,0x63,0x65])](_0x22e5ad)[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>_0x504e12);}async function _0x17ac5e(){await _0x4676e3,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429dd3(_0x6f4039){const _0x4e9364=_0x4d80bb();_0x1d8612[_0x4e9364]=_0xe188b7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f4039,_0x6f4039!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x17ac5e();}function _0x4d80bb(){const _0x445557=window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe188b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe188b7([0x6e,0x6f,0x77])]())[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe188b7([0x2e]),'');let _0x2694b7=_0xe188b7([0x75]);for(let _0x5778b7=0x0;_0x5778b7<_0x445557[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5778b7+=0x2){let _0x45fd95=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x445557[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5778b7,_0x5778b7+0x2));_0x45fd95>=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45fd95-=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2694b7+=_0x1762e5[_0x45fd95];}return _0x2694b7;}function _0x1b16c1(){const _0x5449ae=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));if(0x3!=_0x5449ae[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28aef8(_0x5449ae[0x1]);function _0x28aef8(_0x9def7c){const _0x5ef6b8=_0x204473(_0x9def7c);return _0x5ef6b8&&_0x16a2f2()?_0x5ef6b8:null;function _0x16a2f2(){const _0x326ea6=_0x5ef6b8[_0xe188b7([0x6a,0x74,0x69])],_0x48b5bc=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52d088={..._0x5ef6b8,[_0xe188b7([0x6a,0x74,0x69])]:_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52d088[_0xe188b7([0x76,0x63])],_0x2313a9(_0x52d088)==_0x48b5bc;}}}async function _0x4515e0(){let _0x31b1d7=!0x0;try{const _0x4a836d=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])),[_0x5d6c75,_0x221545,_0x3c5d4d]=_0x4a836d;return _0x245787(_0x5d6c75),await _0x22a9f0(_0x5d6c75,_0x221545,_0x3c5d4d),_0x31b1d7;}catch{return!0x1;}function _0x245787(_0x587839){const _0x316d95=_0x204473(_0x587839);_0x316d95&&_0x316d95[_0xe188b7([0x61,0x6c,0x67])]==_0xe188b7([0x45,0x53,0x32,0x35,0x36])||(_0x31b1d7=!0x1);}async function _0x22a9f0(_0x5c6355,_0x562096,_0x16ef9d){const _0x322286=window[_0xe188b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe188b7([0x66,0x72,0x6f,0x6d])](_0x5a6dcd(_0x16ef9d),_0x38d4ef=>_0x38d4ef[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456ff3=new window[(_0xe188b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe188b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c6355+_0xe188b7([0x2e])+_0x562096),_0x5be8d5=window[_0xe188b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe188b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5be8d5)return;const _0x4087ce=await _0x5be8d5[_0xe188b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe188b7([0x6a,0x77,0x6b]),_0x1a7c12,{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5be8d5[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x68,0x61,0x73,0x68])]:{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4087ce,_0x322286,_0x456ff3)||(_0x31b1d7=!0x1);}}function _0x204473(_0x401b18){return _0x401b18[_0xe188b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe188b7([0x65,0x79]))?JSON[_0xe188b7([0x70,0x61,0x72,0x73,0x65])](_0x5a6dcd(_0x401b18)):null;}function _0x5a6dcd(_0x521a30){return window[_0xe188b7([0x61,0x74,0x6f,0x62])](_0x521a30[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe188b7([0x2b]))[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe188b7([0x2f])));}function _0x2313a9(_0x1ef57e){let _0x2c8ca4=0x1505;function _0x51e785(_0x5a2590){for(let _0x5bbe00=0x0;_0x5bbe00<_0x5a2590[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bbe00++){const _0x3f2d5f=_0x5a2590[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bbe00);_0x2c8ca4=(_0x2c8ca4<<0x5)+_0x2c8ca4+_0x3f2d5f,_0x2c8ca4&=_0x2c8ca4;}}function _0x4f724d(_0x139013){Array[_0xe188b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x139013)?_0x139013[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f724d):_0x139013&&typeof _0x139013==_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe188b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x139013)[_0xe188b7([0x73,0x6f,0x72,0x74])]()[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf5ed,_0x4f4be0])=>{_0x51e785(_0x2bf5ed),_0x4f724d(_0x4f4be0);}):_0x51e785(window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x139013));}return _0x4f724d(_0x1ef57e),_0x2c8ca4>>>0x0;}function _0x522700(_0x1c86f7){return _0x1c86f7[_0xe188b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe188b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe188b7([0x30]));}function _0x2babea(_0x10483f){return _0x10483f[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe188b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe188b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x559c6b(){}function _0xe188b7(_0x3cd0a4){return _0x3cd0a4['map'](_0x20d6d=>String['fromCharCode'](_0x20d6d))['join']('');}_0x429dd3(await _0x4633a2());}(this);}['_moveSelectionToFootnoteDefinition'](_0xdebda){const {plugins:_0x3b2d64,editing:_0x32770b,model:_0x3c3e86}=this['editor'],_0x882f2e=_0x3b2d64['get'](c)['getFootnote'](_0xdebda);return!!_0x882f2e&&(_0x3c3e86['change'](_0x10ee9e=>{_0x10ee9e['setSelection'](_0x10ee9e['createPositionAt'](_0x882f2e['definition'],'end'));}),_0x32770b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xdf3bfe){const {plugins:_0x39f1f0,editing:_0x3850dd,model:_0x355723}=this['editor'],_0x5b67b4=_0x39f1f0['get'](c)['getFootnote'](_0xdf3bfe);return!!_0x5b67b4&&(_0x355723['change'](_0x4d6427=>{_0x4d6427['setSelection'](_0x5b67b4['reference'],'on');}),_0x3850dd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x307bbb}=this['editor']['model'],_0x532697=this['editor']['config']['get']('footnotes.multiBlock');_0x307bbb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x307bbb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x307bbb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x532697?_0x307bbb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x307bbb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x307bbb['addChildCheck'](_0x599fef=>{for(const _0x218596 of _0x599fef)if('footnoteDefinition'===_0x218596['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x401bab}=this,{conversion:_0x470c8b,editing:_0x51b66c}=_0x401bab,{t:t}=_0x401bab['locale'];_0x470c8b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4d73d7,{writer:_0xade402,consumable:_0x11235f})=>{const _0x30d71a=_0x4d73d7['getChild'](0x0);if(!_0x30d71a||!_0x30d71a['is']('element','a'))return null;const _0xe45f41=_0x30d71a['getAttribute']('href')||'';if(!_0xe45f41['startsWith']('#'))return null;const _0x659f90=_0xe45f41['replace'](/^#/,'');if(!_0x659f90)return null;_0x11235f['consume'](_0x30d71a,{'name':!0x0,'attributes':['href']});for(const {item:_0x28935a}of _0x51b66c['view']['createRangeIn'](_0x30d71a))_0x28935a['is']('$textProxy')?_0x11235f['consume'](_0x28935a['textNode'],{'name':!0x0}):_0x28935a['is']('element')&&_0x11235f['consume'](_0x28935a,{'name':!0x0});return _0xade402['createElement']('footnoteRef',{'footnoteId':_0x659f90});}}),_0x470c8b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f4322,{writer:_0x13ce93})=>D(_0x3f4322,_0x13ce93)}),_0x470c8b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e68e6,{writer:_0x38eb2b})=>{const _0x516351=_0x3e68e6['getAttribute']('footnoteCounter');return _0x41f154(D(_0x3e68e6,_0x38eb2b),_0x38eb2b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x516351)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c1390}=this,{t:t}=_0x4c1390['locale'],{conversion:_0xbf481}=_0x4c1390;_0xbf481['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xbf481['for']('upcast')['add'](_0x42b2a3=>{_0x42b2a3['on']('element:ol',(_0x4d81da,_0x32f177,_0x25bcc6)=>{const _0x3f17d4=_0x32f177['viewItem'];if(!_0x3f17d4['hasClass']('footnotes-list')||!_0x32f177['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25bcc6['consumable']['consume'](_0x3f17d4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x56a455,modelCursor:_0x495d5a}=_0x25bcc6['convertChildren'](_0x32f177['viewItem'],_0x32f177['modelCursor']);_0x32f177['modelRange']=_0x56a455,_0x32f177['modelCursor']=_0x495d5a;}),_0x42b2a3['on']('element:hr',(_0xc6a319,_0x40234c,_0x40e398)=>{const _0x2a6e80=_0x40234c['viewItem'];_0x2a6e80['hasClass']('footnotes-divider')&&_0x40234c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x40e398['consumable']['consume'](_0x2a6e80,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xbf481['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4940fc,{writer:_0x2eac9f})=>g(_0x2eac9f)}),_0xbf481['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x222093,{writer:_0x361cc6})=>{const _0x15055a=g(_0x361cc6,{'data-footnotes-list-label':t('Footnotes')}),_0x100cc4=_0x41f154(_0x15055a,_0x361cc6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x361cc6['setCustomProperty']('footnotesDefinitions',!0x0,_0x100cc4),_0x100cc4;}});}['_defineDefinitionConverters'](){const {editor:_0x5a60f1}=this,{conversion:_0xc1038c,locale:_0x499db8}=_0x5a60f1,_0x79db12=_0x5a60f1['config']['get']('footnotes.multiBlock');_0xc1038c['for']('upcast')['add'](_0x2c6a4a=>{_0x2c6a4a['on']('element:li',(_0x28146a,_0x5991ea,_0x5b6b88)=>{const _0x21c38c=_0x5991ea['viewItem'];if(!_0x21c38c['hasClass']('footnote-definition')||!_0x21c38c['getAttribute']('id'))return;const _0x4fde5f=_0x21c38c['parent'];if(!_0x4fde5f['is']('element','ol')||!_0x4fde5f['hasClass']('footnotes-list'))return;if(!_0x5b6b88['consumable']['test'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x453964=_0x5b6b88['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x21c38c['getAttribute']('id')});if(!_0x5b6b88['safeInsert'](_0x453964,_0x5991ea['modelCursor']))return;_0x5b6b88['consumable']['consume'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x41ca29=Array['from'](_0x21c38c['getChildren']())['find'](_0x197916=>_0x197916['is']('element')&&_0x197916['hasClass']('footnote-content'));for(const _0x14037f of _0x21c38c['getChildren']())_0x14037f['is']('element')&&(_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-content'}));if(_0x41ca29){if(_0x79db12)_0x5b6b88['convertChildren'](_0x41ca29,_0x453964);else{const _0x4ffbd7=_0x5b6b88['writer']['createElement']('footnoteInlineContent');_0x5b6b88['writer']['insert'](_0x4ffbd7,_0x453964),_0x5b6b88['convertChildren'](_0x41ca29,_0x4ffbd7);}}_0x5b6b88['updateConversionResult'](_0x453964,_0x5991ea);});}),_0xc1038c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ef7fc,{writer:_0x310638})=>v(_0x3ef7fc,_0x310638,_0x499db8,{'dataPipeline':!0x0})}),_0xc1038c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32da8f,{writer:_0x1459e8})=>v(_0x32da8f,_0x1459e8,_0x499db8)});}['_defineBogusParagraphConverters'](){const {editor:_0x4bc253}=this,{conversion:_0x13adc3}=_0x4bc253;_0x4bc253['config']['get']('footnotes.multiBlock')?(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4bc253['model']['document'],'change:data',()=>{!function(_0x890b73,_0x4482d0){const _0x1247d8=_0x890b73['document']['differ'],_0x26ad68=new Set();for(const _0x44fe4a of _0x1247d8['getChanges']()){const _0x14ddec='attribute'==_0x44fe4a['type']?_0x44fe4a['range']['start']['parent']:_0x44fe4a['position']['parent'];_0x14ddec['is']('element','footnoteDefinition')&&_0x26ad68['add'](_0x14ddec);}for(const _0x1e9a5b of _0x26ad68['values']()){const _0x3f6b08=Array['from'](_0x1e9a5b['getChildren']())['filter'](_0x5b13eb=>p(_0x5b13eb,_0x4482d0['mapper']));for(const _0x11ab19 of _0x3f6b08)_0x4482d0['reconvertItem'](_0x11ab19);}}(_0x4bc253['model'],_0x4bc253['editing']);})):(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1638b1,{writer:_0x4bb18f})=>{const _0x3c8eee=_0x4bb18f['createContainerElement']('span');return _0x4bb18f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c8eee),_0x3c8eee;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416996}=this,{editing:_0x54771e,t:t}=_0x416996,_0xe8fb93=_0x416996['model']['document']['selection'];_0x416996['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x416996['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x54771e['view']['document'],'enter',(_0x5d8632,_0x975797)=>{const _0x1f5163=function(_0xb3474a){const _0x1dcb3d=_0xb3474a['getSelectedElement']();if(_0x1dcb3d?.['is']('element','footnoteRef'))return _0x1dcb3d;return null;}(_0xe8fb93);if(_0x1f5163){const _0x670ec2=_0x1f5163['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x670ec2),_0x975797['preventDefault'](),_0x5d8632['stop']();}},{'context':_0x40e19a});}['_defineClickHandlers'](){const {editor:_0x244439}=this,{editing:_0x12a0d2}=_0x244439;_0x244439['editing']['view']['addObserver'](_0xe15985),_0x244439['editing']['view']['addObserver'](_0x14ca82);let _0x21725d=!0x1;this['listenTo'](_0x12a0d2['view']['document'],'pointerdown',(_0x4af1de,_0x870252)=>{const {target:_0x423cd2}=_0x870252,_0x362997=_0x12a0d2['view']['document']['selection'];_0x21725d=!(!_0x423cd2['is']('element','sup')||!_0x423cd2['hasClass']('footnote'))&&_0x362997['getSelectedElement']()===_0x423cd2;},{'priority':'high'}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x338399,_0x57ea17)=>{const {target:_0x219ac5}=_0x57ea17,_0x2f7269=_0x219ac5['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f7269['slice'](0x1)),_0x338399['stop'](),_0x57ea17['preventDefault']();},{'priority':'high','context':_0x53f6bc=>_0x53f6bc['is']('element','sup')&&_0x53f6bc['hasClass']('footnote')&&_0x21725d}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x10b73c,_0x45018c)=>{const {target:_0x1e9214}=_0x45018c;if(!_0x1e9214['is']('element','a'))return;let _0x4e5005=_0x1e9214['getAttribute']('href');if(!_0x4e5005?.['startsWith']('#'))return;_0x4e5005=_0x4e5005['slice'](0x1);let _0x2367ca=!0x1;(_0x4e5005['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4e5005['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4e5005))&&(_0x2367ca=!0x0),_0x2367ca&&(_0x45018c['preventDefault'](),_0x10b73c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x54a5ad}={}){return(_0x535d0e,{writer:_0x365987})=>{if(!h(_0x535d0e))return null;if(!_0x54a5ad)return _0x365987['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x14d836=_0x365987['createContainerElement']('p');return _0x365987['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x14d836),_0x14d836;};}function h(_0x35cb54){const {parent:_0x3d36a9}=_0x35cb54;if(!_0x3d36a9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3d36a9['childCount'])return!0x1;for(const _0x51e9f9 of _0x35cb54['getAttributeKeys']())if(!_0x51e9f9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51e9f9)return!0x1;return!0x0;}function p(_0x56a0c7,_0x3c8fea){if(!_0x56a0c7['is']('element','paragraph'))return!0x1;const _0x27341e=_0x3c8fea['toViewElement'](_0x56a0c7);return!!_0x27341e&&h(_0x56a0c7)!==_0x27341e['is']('element','span');}function J(_0x53d6d9){return _0x40e19a(_0x53d6d9)&&_0x53d6d9['is']('containerElement')&&!!_0x53d6d9['getCustomProperty']('footnotesDefinitions');}function g(_0x517872,_0x43097c={}){const _0x106cd4=_0x517872['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x10777e=_0x517872['createContainerElement']('ol',{'class':'footnotes-list'},_0x517872['createSlot']());return _0x517872['createContainerElement']('div',{'class':'footnotes',..._0x43097c},[_0x106cd4,_0x10777e]);}function D(_0x36e171,_0x3c09a3){const _0x8160be=_0x36e171['getAttribute']('footnoteId'),_0x302c01=_0x36e171['getAttribute']('footnoteCounter'),_0x4ffb11=_0x3c09a3['createUIElement']('a',{'href':'#'+_0x8160be},function(_0x50b174){const _0x46426c=this['toDomElement'](_0x50b174);return _0x46426c['textContent']=_0x302c01,_0x46426c;}),_0x4fbaa0=_0x3c09a3['createContainerElement']('sup',{'id':'ref-'+_0x8160be,'class':'footnote'},[_0x4ffb11]);return _0x4fbaa0['getFillerOffset']=()=>null,_0x4fbaa0;}function v(_0x4e991c,_0x4816c2,_0x38cf70,{dataPipeline:_0x325ec4}={}){const {t:t}=_0x38cf70,_0xeee69e=_0x4e991c['getAttribute']('footnoteId'),_0x3b581d=_0x4816c2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeee69e},function(_0x30b903){const _0x9ad6b5=this['toDomElement'](_0x30b903);return _0x9ad6b5['innerText']='^',_0x9ad6b5;}),_0x35c5b2=_0x325ec4?_0x4816c2['createContainerElement']('div',{'class':'footnote-content'}):_0x4da06a(_0x4816c2['createEditableElement']('div',{'class':'footnote-content'}),_0x4816c2,{'label':t('Footnote\x20content.')});return _0x4816c2['insert'](_0x4816c2['createPositionAt'](_0x35c5b2,0x0),_0x4816c2['createSlot']()),_0x4816c2['createContainerElement']('li',{'class':'footnote-definition','id':_0xeee69e},[_0x3b581d,_0x35c5b2]);}class e extends _0x7f6a27{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2cf428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x17c7df}=this,{plugins:_0xdddf78,model:_0x55ad97}=_0x17c7df,_0x47aa23=_0xdddf78['get'](_0x2cf428),_0x3031fc=_0xdddf78['get'](c);this['listenTo'](_0x47aa23,'outputTransformation',(_0x36cd1c,_0x3fa2b5)=>{const _0x3fa8ee=function(_0x1c0145,_0x56288b){const _0x5203c8=new Set();for(const {item:_0x56491a}of _0x1c0145['createRangeIn'](_0x56288b))_0x56491a['is']('element','footnoteRef')&&_0x5203c8['add'](_0x56491a['getAttribute']('footnoteId'));return Array['from'](_0x5203c8);}(_0x55ad97,_0x3fa2b5['content']);if(!_0x3fa8ee['length'])return;const _0x1dca46=_0x3031fc['getFootnotes'](),_0x2a4f20=_0x3fa8ee['reduce']((_0x1e0eda,_0x4fb78f)=>{const _0x31fb45=_0x1dca46['find'](_0x14a888=>_0x14a888['id']===_0x4fb78f);if(_0x31fb45){const _0x2ac6ad=_0x17c7df['data']['toView'](_0x31fb45['definition'],{'isClipboardPipeline':!0x0}),_0x5a12ab=_0x17c7df['data']['htmlProcessor']['toData'](_0x2ac6ad);_0x1e0eda[_0x31fb45['id']]=_0x5a12ab;}return _0x1e0eda;},Object['create'](null));_0x3fa2b5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2a4f20));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3f2222}=this,{model:_0x378413,plugins:_0x308cc8}=_0x3f2222,{view:_0x40446e}=_0x3f2222['editing'],_0x2e1b54=_0x308cc8['get'](_0x2cf428),_0x3034e2=_0x308cc8['get'](c);let _0x1b7529=null;this['listenTo'](_0x40446e['document'],'clipboardInput',(_0x3fbb12,_0x569d97)=>{const _0x4b6e7b=_0x569d97['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1b7529=_0x4b6e7b?JSON['parse'](_0x4b6e7b):null;}),this['listenTo'](_0x2e1b54,'contentInsertion',(_0x16360a,_0x1f29f1)=>{if(!_0x1b7529)return;const _0x5f1d7d=_0x1f29f1['sourceEditorId']===this['editor']['id'];_0x5f1d7d&&'drop'===_0x1f29f1['method']||_0x378413['change'](_0xa8cbf=>{!function(_0x45c216,_0x73e267){const _0x79d721=[];for(const {item:_0x567593}of _0x45c216['createRangeIn'](_0x73e267))_0x567593['is']('element','footnotesDefinitions')&&_0x79d721['push'](_0x567593);for(const _0x406087 of _0x79d721)_0x45c216['remove'](_0x406087);}(_0xa8cbf,_0x1f29f1['content']);let _0x451d55=_0x3034e2['getFootnotesDefinitionsObjectElement']();if(!_0x451d55){const _0x364503=_0x378413['document']['selection']['getFirstRange']()['root'];_0x451d55=_0x3034e2['_insertEmptyFootnotesDefinitionsContainer'](_0xa8cbf,_0x364503);}const _0x1615ed=function(_0x39a1aa,_0x5b1828,_0x300ceb){const _0x45994c=Object['create'](null);for(const {item:_0x366263}of _0x39a1aa['createRangeIn'](_0x5b1828))if(_0x366263['is']('element','footnoteRef')){const _0x3f70e2=_0x366263['getAttribute']('footnoteId');if(!_0x300ceb(_0x3f70e2))continue;_0x45994c[_0x3f70e2]||(_0x45994c[_0x3f70e2]=_0x124e5b()),_0x39a1aa['setAttribute']('footnoteId',_0x45994c[_0x3f70e2],_0x366263);}return _0x45994c;}(_0xa8cbf,_0x1f29f1['content'],_0x4ec874=>!_0x5f1d7d||null!==_0x3034e2['getFootnote'](_0x4ec874));for(const [_0x27a81d,_0x437bf7]of Object['entries'](_0x1b7529)){const _0x243572=_0x1615ed[_0x27a81d]||_0x27a81d,_0x54adef=_0xa8cbf['createElement']('footnoteDefinition',{'footnoteId':_0x243572}),_0x4ca4a3=_0x3f2222['data']['htmlProcessor']['toView'](_0x437bf7),_0x9d786=_0x3f2222['data']['toModel'](_0x4ca4a3,_0x54adef);_0xa8cbf['append'](_0x9d786,_0x54adef),_0xa8cbf['insert'](_0x54adef,_0x451d55,'end');}_0x1b7529=null;});});}}class i extends _0x7f6a27{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51cb24}=this,{componentFactory:_0x4ab36f}=_0x51cb24['ui'];_0x4ab36f['add']('insertFootnote',x(_0x51cb24,_0x285e75)),_0x4ab36f['add']('menuBar:insertFootnote',x(_0x51cb24,_0x3de1ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13b1d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e20ae;for(const _0xd548c7 in _0x13b1d3){const _0x1a2de9=_0xd548c7,_0x45b9ea=_0x13b1d3[_0x1a2de9];if('footnotesLicenseKeyValid'==_0x45b9ea||'footnotesLicenseKeyInvalid'==_0x45b9ea||'footnotesLicenseKeyExpired'==_0x45b9ea||'footnotesLicenseKeyDomainLimit'==_0x45b9ea||'footnotesLicenseKeyNotAllowed'==_0x45b9ea||'footnotesLicenseKeyEvaluationLimit'==_0x45b9ea||'footnotesLicenseKeyTrialLimit'==_0x45b9ea||'footnotesLicenseKeyUsageLimit'==_0x45b9ea){delete _0x13b1d3[_0x1a2de9],_0x1e20ae=_0x45b9ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x273210,_0x336f94){const _0x5f2f28=_0x273210['commands']['get']('insertFootnote');return _0x4e8cbb=>{const {t:t}=_0x4e8cbb,_0x3734f2=new _0x336f94(_0x4e8cbb),_0x2fade6=_0x3734f2 instanceof _0x3de1ec;return _0x3734f2['bind']('isEnabled')['to'](_0x5f2f28,'isEnabled'),_0x3734f2['set']({'label':t(_0x2fade6?'Footnote':'Insert\x20footnote'),'icon':_0x2a043f,'tooltip':!0x0}),_0x3734f2['on']('execute',()=>{_0x5f2f28['execute'](),_0x273210['editing']['view']['focus']();}),_0x3734f2;};}class nt extends _0x7f6a27{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x1849a9{['refresh'](){const {editor:_0x34052c}=this,_0x4ce5f3=_0x34052c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ce5f3,this['value']=_0x4ce5f3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x58d4f3}){const {editor:_0x4efd7d}=this,_0x1b0e36=_0x4efd7d['plugins']['get'](c),_0x5326cf=_0x1b0e36['getFootnotesDefinitionsObjectElement']();_0x5326cf&&Q['includes'](_0x58d4f3)&&_0x4efd7d['model']['change'](_0x58d17e=>{_0x58d17e['setAttribute']('footnotesListStyle',_0x58d4f3,_0x5326cf),_0x1b0e36['_updateFootnotesCounters'](_0x58d17e);});}}class b extends _0x1849a9{['refresh'](){const {editor:_0x5f408e}=this,_0x13e702=_0x5f408e['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13e702,this['value']=_0x13e702?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9644e2}){const {editor:_0x4c68f2}=this,_0x33bb4d=_0x4c68f2['plugins']['get'](c),_0x1709bc=_0x33bb4d['getFootnotesDefinitionsObjectElement']();_0x1709bc&&Number['isInteger'](_0x9644e2)&&_0x4c68f2['model']['change'](_0x1e7387=>{_0x1e7387['setAttribute']('footnotesListStart',_0x9644e2,_0x1709bc),_0x33bb4d['_updateFootnotesCounters'](_0x1e7387);});}}class P extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c0f75}=this;_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2c0f75['commands']['add']('footnotesStyle',new S(_0x2c0f75)),_0x2c0f75['commands']['add']('footnotesStart',new b(_0x2c0f75)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2561a3}=this,{schema:_0x5c175f}=_0x2561a3['model'];_0x5c175f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x412757}=this,{conversion:_0x7a78e5,model:_0x240179}=_0x412757,{schema:_0x3c1131}=_0x240179;_0x7a78e5['for']('upcast')['add'](_0x5d675c=>{_0x5d675c['on']('element:ol',(_0x363ce2,_0x5598c1,_0x12d1e5)=>{const _0x16eaf4=_0x5598c1['viewItem'],_0x370664=_0x5598c1['modelCursor']?.['parent'];_0x16eaf4['hasClass']('footnotes-list')&&_0x370664?.['is']('element','footnotesDefinitions')&&(function(_0x51be2d,_0x4313c1,_0x5b2811,_0x39681c){if(!_0x39681c['checkAttribute'](_0x4313c1,'footnotesListStart'))return;let _0x21aab2=0x1;const _0x5242d1=_0x5b2811['consumable']['consume'](_0x51be2d,{'attributes':'start'});if(_0x5242d1){const _0x407198=Number['parseInt'](_0x51be2d['getAttribute']('start'),0xa);Number['isNaN'](_0x407198)||(_0x21aab2=_0x407198);}!_0x5242d1&&_0x4313c1['hasAttribute']('footnotesListStart')||_0x5b2811['writer']['setAttribute']('footnotesListStart',_0x21aab2,_0x4313c1);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131),function(_0x111a80,_0xfe5c99,_0x4e9918,_0x10c3dc){if(!_0x10c3dc['checkAttribute'](_0xfe5c99,'footnotesListStyle'))return;let _0x5e08ab='decimal',_0x4fc76b=!0x1;if(_0x4e9918['consumable']['consume'](_0x111a80,{'attributes':'type'})){const _0x129b5a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x111a80['getAttribute']('type')];_0x129b5a&&(_0x5e08ab=_0x129b5a),_0x4fc76b=!0x0;}_0x4e9918['consumable']['consume'](_0x111a80,{'styles':'list-style-type'})&&(_0x5e08ab=_0x111a80['getStyle']('list-style-type'),_0x4fc76b=!0x0),!_0x4fc76b&&_0xfe5c99['hasAttribute']('footnotesListStyle')||_0x4e9918['writer']['setAttribute']('footnotesListStyle',_0x5e08ab,_0xfe5c99);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131));});}),_0x7a78e5['for']('downcast')['add'](_0x1a489f=>{_0x1a489f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1d3df6,_0x298898,_0x41bbb4)=>{if(!_0x41bbb4['consumable']['consume'](_0x298898['item'],_0x1d3df6['name']))return;const _0x2fa8ff=C(_0x298898['item'],_0x41bbb4['mapper']),{attributeNewValue:_0x59070e}=_0x298898;null==_0x59070e||0x1===_0x59070e?_0x41bbb4['writer']['removeAttribute']('start',_0x2fa8ff):_0x41bbb4['writer']['setAttribute']('start',String(_0x59070e),_0x2fa8ff);}),_0x1a489f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c826,_0x1b0db8,_0x14f5f5)=>{if(!_0x14f5f5['consumable']['consume'](_0x1b0db8['item'],_0x29c826['name']))return;const _0x1fb197=C(_0x1b0db8['item'],_0x14f5f5['mapper']),{attributeNewValue:_0xd1fd5d}=_0x1b0db8;_0xd1fd5d&&'decimal'!==_0xd1fd5d?_0x14f5f5['writer']['setStyle']('list-style-type',_0xd1fd5d,_0x1fb197):_0x14f5f5['writer']['removeStyle']('list-style-type',_0x1fb197);});});}['_definePostfixer'](){const {editor:_0x2f4e33}=this,{model:_0xb570a3}=_0x2f4e33,_0xb4dbd7=_0x2f4e33['plugins']['get'](c),_0x5b1368=this['_getDefaultListStyle'](),_0x579d70=this['_getDefaultStartIndex']();_0xb570a3['document']['registerPostFixer'](_0x4ff28b=>{const _0x1af146=_0xb570a3['document']['differ']['getChanges']();let _0x1742c6=!0x1;for(const _0x4f20f3 of _0x1af146){if('insert'!==_0x4f20f3['type']||'$text'===_0x4f20f3['name'])continue;const _0x32b967=_0xb570a3['createRangeOn'](_0x4f20f3['position']['nodeAfter']);for(const _0x1e9928 of _0x32b967['getItems']())_0x1e9928['is']('element','footnotesDefinitions')&&(!_0x1e9928['hasAttribute']('footnotesListStart')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStart')&&(_0x4ff28b['setAttribute']('footnotesListStart',_0x579d70,_0x1e9928),_0x1742c6=!0x0),!_0x1e9928['hasAttribute']('footnotesListStyle')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStyle')&&(_0x4ff28b['setAttribute']('footnotesListStyle',_0x5b1368,_0x1e9928),_0x1742c6=!0x0));}return _0x1742c6&&_0xb4dbd7['_updateFootnotesCounters'](_0x4ff28b),_0x1742c6;});}['_defineFormatter'](){const {editor:_0x2e1a07}=this;_0x2e1a07['plugins']['get'](c)['setFootnoteFormatter'](_0x23971d=>this['_formatFootnoteListValue'](_0x23971d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x11a0c5,value:_0x36221b,digits:_0x2a1230}){const _0x40e481=_0x11a0c5['getAttribute']('footnotesListStyle'),_0x442639=_0x11a0c5['getAttribute']('footnotesListStart'),_0x2a3237=Math['floor'](_0x36221b)+(_0x442639??0x1)-0x1;switch(_0x40e481){case'decimal-leading-zero':return function(_0xeeea4,_0x48a873){return String(_0xeeea4)['padStart'](_0x48a873,'0');}(_0x2a3237,Math['max'](0x2,_0x2a1230));case'lower-alpha':case'lower-latin':return M(_0x2a3237,!0x1);case'upper-alpha':case'upper-latin':return M(_0x2a3237,!0x0);case'lower-roman':return V(_0x2a3237,!0x1);case'upper-roman':return V(_0x2a3237,!0x0);default:return String(_0x2a3237);}}}function C(_0x589422,_0xd1100b){const _0x19ccf5=_0xd1100b['toViewElement'](_0x589422);return Array['from'](_0x19ccf5['getChildren']())['find'](_0x407055=>_0x407055['is']('element','ol')&&_0x407055['hasClass']('footnotes-list'));}function M(_0x47aff0,_0x2435e5){let _0x29cc9e='',_0x284670=_0x47aff0;for(;_0x284670>0x0;){const _0x14c8fd=(_0x284670-0x1)%0x1a;_0x29cc9e=String['fromCharCode'](0x61+_0x14c8fd)+_0x29cc9e,_0x284670=Math['floor']((_0x284670-0x1)/0x1a);}return _0x2435e5?_0x29cc9e['toUpperCase']():_0x29cc9e;}const N=[{'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 V(_0x838b19,_0x969cef){let _0x3cb70f='',_0x33b00a=_0x838b19;for(const {value:_0x1acb94,numeral:_0x1c6394}of N)for(;_0x33b00a>=_0x1acb94;)_0x3cb70f+=_0x1c6394,_0x33b00a-=_0x1acb94;return _0x969cef?_0x3cb70f:_0x3cb70f['toLowerCase']();}class H extends _0x1c8606{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x573d1f();['focusCycler'];constructor(_0x321127,{styleButtonViews:_0x5c2c15,styleGridAriaLabel:_0x26d030}){super(_0x321127),(this['focusCycler']=new _0x59a5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5c2c15,_0x26d030),[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 _0x20e66d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x20e66d['element']);_0x48ec16({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x49a498=_0x1e964a=>_0x1e964a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49a498),this['keystrokes']['set']('arrowleft',_0x49a498),this['keystrokes']['set']('arrowup',_0x49a498),this['keystrokes']['set']('arrowdown',_0x49a498);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x160945,_0x1a9bf7){const _0x3dcd2d=new _0x1c8606(this['locale']);return _0x3dcd2d['children']=_0x3dcd2d['createCollection'](),_0x3dcd2d['children']['addMany'](_0x160945),_0x3dcd2d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a9bf7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3dcd2d['children']}),_0x3dcd2d['children']['delegate']('execute')['to'](this),_0x3dcd2d['focus']=function(){for(const _0x1756e8 of this['children'])if(_0x1756e8 instanceof _0x285e75&&_0x1756e8['isOn'])return void _0x1756e8['focus']();this['children']['first']['focus']();},_0x3dcd2d['focusTracker']=new et(),_0x3dcd2d['keystrokes']=new ot(),_0x3dcd2d['render'](),_0x3dcd2d['keystrokes']['listenTo'](_0x3dcd2d['element']),this['children']['add'](_0x3dcd2d),_0x3dcd2d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35fd95=this['_createStartIndexPropertyView'](),_0x309fad=[_0x35fd95],_0x34a2bd=new tt(this['locale'],_0x309fad);return _0x34a2bd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x34a2bd['buttonView']['bind']('isEnabled')['toMany'](_0x309fad,'isEnabled',(..._0x2661d4)=>_0x2661d4['some'](_0x539f3b=>_0x539f3b)),_0x34a2bd['buttonView']['on']('change:isEnabled',(_0x4d26d0,_0x1b6278,_0x41edb2)=>{_0x41edb2||(_0x34a2bd['isCollapsed']=!0x0);}),this['children']['add'](_0x34a2bd),[_0x35fd95,_0x34a2bd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e321d=new st(this['locale'],it);return _0x2e321d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e321d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e321d['fieldView']['on']('input',()=>{const _0x48beca=_0x2e321d['fieldView']['element'],_0x139cc5=_0x48beca['valueAsNumber'];Number['isNaN'](_0x139cc5)?_0x2e321d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48beca['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x139cc5}):_0x2e321d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2e321d;}}class j extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x16c286,_0x850f85];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x334345}=this,{componentFactory:_0x5ce326}=_0x334345['ui'];_0x334345['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce326['add']('footnotesStyle',function(_0x41f9e3){return _0x4a6dcd=>{const {t:t}=_0x4a6dcd,_0x3f6d7c=_0x41f9e3['commands']['get']('footnotesStyle'),_0x5b24f0=_0x45bc8e(_0x4a6dcd),{buttonView:_0x274243}=_0x5b24f0;return _0x5b24f0['class']='ck-footnotes-styles-dropdown',_0x5b24f0['bind']('isEnabled')['to'](_0x3f6d7c,'isEnabled'),_0x274243['set']({'label':t('Footnotes\x20style'),'icon':_0x2a043f,'tooltip':!0x0}),_0x5b24f0['once']('change:isOpen',()=>{const _0x4a0eb9=function({editor:_0x2c053b,dropdownView:_0x224016}){const {t:t}=_0x2c053b['locale'],_0x2d4b23=t('Footnotes\x20definitions\x20styles'),_0x118345=function(_0x51c226){const t=_0x51c226['locale']['t'],_0x3479e3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4a05ec},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x401dfc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3bdc31},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5491ae},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57ead2},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57e61b}];return _0x3479e3['map'](function(_0x4a8339){const _0x491d21=_0x4a8339['locale'];return({label:_0x2455aa,icon:_0x2040a2,tooltip:_0x139fdd,style:_0x48eba6})=>{const _0x132ece=_0x4a8339['commands']['get']('footnotesStyle'),_0x35ae11=new _0x285e75(_0x491d21);return _0x35ae11['set']({'label':_0x2455aa,'icon':_0x2040a2,'tooltip':_0x139fdd}),_0x35ae11['bind']('isOn')['to'](_0x132ece,'value',_0x81d195=>_0x81d195===_0x48eba6),_0x35ae11['bind']('isEnabled')['to'](_0x132ece,'isEnabled'),_0x35ae11['on']('execute',()=>{_0x4a8339['execute']('footnotesStyle',{'value':_0x48eba6}),_0x4a8339['editing']['view']['focus']();}),_0x35ae11;};}(_0x51c226));}(_0x2c053b),_0x224316=new H(_0x2c053b['locale'],{'styleGridAriaLabel':_0x2d4b23,'styleButtonViews':_0x118345});return _0x224316['delegate']('execute')['to'](_0x224016),_0x224316['on']('footnotesListStart',(_0x181ef2,_0x832771)=>{_0x2c053b['execute']('footnotesStart',{'value':_0x832771['startIndex']});}),_0x224316;}({'editor':_0x41f9e3,'dropdownView':_0x5b24f0});_0x5b24f0['panelView']['children']['add'](_0x4a0eb9);}),_0x5b24f0;};}(_0x334345));}['afterInit'](){const {editor:_0x2fde9d}=this,{t:t}=_0x2fde9d['locale'],_0x3f7d16=_0x2fde9d['plugins']['get'](_0x850f85),{defaultPositions:_0x1a6aa2}=_0x5e807c;_0x3f7d16['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2fde9d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x230f8a=>{let _0x3ad18f=_0x230f8a['getFirstPosition']()?.['parent'];return _0x3ad18f?.['is']('$text')&&(_0x3ad18f=_0x3ad18f['parent']),_0x3ad18f?.['is']('element')?_0x3ad18f['findAncestor'](J):null;},'positions':[_0x1a6aa2['southArrowNorth'],_0x1a6aa2['southArrowNorthMiddleWest'],_0x1a6aa2['southArrowNorthMiddleEast'],_0x1a6aa2['southArrowNorthWest'],_0x1a6aa2['southArrowNorthEast'],_0x1a6aa2['northArrowSouth'],_0x1a6aa2['northArrowSouthMiddleWest'],_0x1a6aa2['northArrowSouthMiddleEast'],_0x1a6aa2['northArrowSouthWest'],_0x1a6aa2['northArrowSouthEast'],_0x1a6aa2['viewportStickyNorth']]});}}class lt extends _0x7f6a27{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
23
+ import{Plugin as _0x444ecb,Command as _0x1c23a5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x46f5d8,isWidget as _0x1d4b8b,toWidgetEditable as _0x1c971a,WidgetToolbarRepository as _0x25541c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x144b00,logWarning as _0x177a28,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2ad005,ClickObserver as _0x27612b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1e9339}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x27c539,ButtonView as _0x352d48,View as _0x41d8a0,ViewCollection as _0x41e1e2,FocusCycler as _0x5b8a07,addKeyboardHandlingForGrid as _0x1e9083,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x45a521,BalloonPanelView as _0x13092d,createDropdown as _0x3b703a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1ed261,IconListStyleDecimal as _0x4066d3,IconListStyleDecimalLeadingZero as _0x528aa6,IconListStyleLowerRoman as _0x36fe45,IconListStyleUpperRoman as _0x2d1513,IconListStyleLowerLatin as _0x29c5b5,IconListStyleUpperLatin as _0xde6fb3}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5a5511,_0x4e218b){this['_model']=_0x5a5511,this['_elementName']=_0x4e218b['elementName'],this['_getElementKey']=_0x4e218b['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5dbee4){const _0x54cfd5=new Set(),_0x192965=new Map();for(const _0x58026d of _0x5dbee4){if('insert'===_0x58026d['type']&&'$text'!==_0x58026d['name']&&_0x58026d['position']['nodeAfter']){const _0x7dfc0e=this['_model']['createRangeOn'](_0x58026d['position']['nodeAfter']);for(const _0xdb1125 of _0x7dfc0e['getItems']()){if(!_0xdb1125['is']('element',this['_elementName']))continue;const _0x34cee0=this['_getElementKey'](_0xdb1125);_0x192965['has'](_0x34cee0)||_0x192965['set'](_0x34cee0,[]),_0x192965['get'](_0x34cee0)['push'](_0xdb1125);}}if('remove'===_0x58026d['type']&&_0x58026d['name']===this['_elementName']){const _0x2a2b6e=this['_getElementKey']({'getAttribute':_0x2b991d=>_0x58026d['attributes']['get'](_0x2b991d)});_0x54cfd5['add'](_0x2a2b6e);}}for(const [_0x7a138e,_0x4090a2]of this['_trackedElements'])'$graveyard'===_0x4090a2['root']['rootName']&&_0x54cfd5['add'](_0x7a138e);for(const _0x4182d1 of _0x54cfd5)this['_trackedElements']['delete'](_0x4182d1);for(const [_0x50264e,_0x5a0c89]of _0x192965)this['_trackedElements']['set'](_0x50264e,_0x5a0c89[_0x5a0c89['length']-0x1]);const _0x3d6c40=new Set();for(const [_0x5aece9,_0x473aac]of _0x192965)_0x54cfd5['has'](_0x5aece9)&&(_0x3d6c40['add'](_0x473aac[0x0]),_0x473aac['length']>0x1?_0x192965['set'](_0x5aece9,_0x473aac['slice'](0x1)):_0x192965['delete'](_0x5aece9),_0x54cfd5['delete'](_0x5aece9));return{'removed':Array['from'](_0x54cfd5),'inserted':Array['from'](_0x192965['values']())['flat'](),'moved':Array['from'](_0x3d6c40)};}}class c extends _0x444ecb{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368a9b){super(_0x368a9b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3b5a46=>_0x3b5a46['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x56894b=>_0x56894b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x193b3d}=this,{model:_0x5a852c,data:_0x1c1e33}=_0x193b3d;_0x5a852c['document']['registerPostFixer'](_0x4418d1=>{const _0x52c696=_0x5a852c['document']['differ']['getChanges']();let _0x2ecdd0=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4418d1,_0x52c696)&&(_0x2ecdd0=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4418d1,_0x52c696)&&(_0x2ecdd0=!0x0),this['_handleFootnoteReferencesChanges'](_0x4418d1,_0x52c696)&&(_0x2ecdd0=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4418d1)&&(_0x2ecdd0=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4418d1)&&(_0x2ecdd0=!0x0),this['_sortFootnoteDefinitions'](_0x4418d1)&&(_0x2ecdd0=!0x0),_0x2ecdd0;}),this['listenTo'](_0x5a852c['document'],'change:data',()=>{_0x5a852c['enqueueChange']({'isUndoable':!0x1},_0x6628b8=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x6628b8);});},{'priority':'low'}),this['listenTo'](_0x1c1e33,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x20d27a){return this['_footnotes']['find'](_0x48b37f=>_0x48b37f['id']===_0x20d27a)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x358a36){this['_footnoteFormatter']=_0x358a36;}['_updateFootnotesCounters'](_0x4a3202,_0x125315=0x0){let _0x8c27d8=!0x1;for(let _0x74cc46=_0x125315;_0x74cc46<this['_footnotes']['length'];_0x74cc46++)this['_updateFootnoteRefCounter'](_0x4a3202,_0x74cc46)&&(_0x8c27d8=!0x0);return _0x8c27d8;}['_insertEmptyFootnotesDefinitionsContainer'](_0x291878,_0x5222e0){const _0x33415d=_0x291878['createElement']('footnotesDefinitions',{});return _0x291878['append'](_0x33415d,_0x5222e0),this['_footnotesDefinitions']=_0x33415d,_0x33415d;}['_ensureFootnotesDefinitionsContainerExists'](_0x4c4531){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x587785=this['_footnotes'][0x0]['reference']['root'],_0xb96867=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4c4531,_0x587785);for(const _0x4f3232 of this['_footnotes'])_0x4f3232['definition']['parent']||_0x4c4531['insert'](_0x4f3232['definition'],_0xb96867,'end');this['_updateFootnotesCounters'](_0x4c4531);}['_handleFootnotesDefinitionsObjectChanges'](_0x3d526c,_0xe7d5f6){let _0x248a4d=!0x1;const {inserted:_0x1e099c,removed:_0x5242ca,moved:_0x151454}=this['_footnoteDefsContainerTracker']['getChanges'](_0xe7d5f6);if(_0x151454['length']&&(this['_footnotesDefinitions']=_0x151454[0x0]),_0x1e099c['length']){if(_0x1e099c['length']>0x1||this['_footnotesDefinitions']&&_0x1e099c['some'](_0x1dfe34=>_0x1dfe34!==this['_footnotesDefinitions'])){const _0x1de993=_0x3d526c['createElement']('footnotesDefinitions',{}),_0x350e6e=[];this['_footnotesDefinitions']&&_0x350e6e['push'](this['_footnotesDefinitions']),_0x350e6e['push'](..._0x1e099c),_0x3d526c['insert'](_0x1de993,_0x350e6e[0x0],'before');for(const _0x3a8623 of _0x350e6e)_0x3d526c['move'](_0x3d526c['createRangeIn'](_0x3a8623),_0x3d526c['createPositionAt'](_0x1de993,'end')),_0x3d526c['remove'](_0x3a8623);this['_footnotesDefinitions']=_0x1de993,this['_updateFootnotesCounters'](_0x3d526c),_0x248a4d=!0x0;}else this['_footnotesDefinitions']=_0x1e099c[0x0];}if(_0x5242ca['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x38229b of this['_footnotes'])_0x3d526c['remove'](_0x38229b['reference']),_0x248a4d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x248a4d;}['_handleFootnoteDefinitionsChanges'](_0x5df44f,_0x557f30){let _0x2826d4=!0x1;const _0x16b89c=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x556c2f,moved:_0x25f3c1}=this['_footnoteDefsTracker']['getChanges'](_0x557f30);for(const _0x21287c of[..._0x25f3c1,..._0x556c2f]){const _0x59f99a=_0x21287c['getAttribute']('footnoteId'),_0x2ce4c4=this['getFootnote'](_0x59f99a);_0x2ce4c4&&(_0x2ce4c4['definition']=_0x21287c),_(_0x5df44f,_0x16b89c,_0x21287c)&&(_0x2826d4=!0x0);}return _0x2826d4;}['_handleFootnoteReferencesChanges'](_0x2a810b,_0x286546){let _0x26ab49=!0x1;const {removed:_0x51f1df,inserted:_0x3a0397,moved:_0x53d270}=this['_footnoteRefsTracker']['getChanges'](_0x286546);for(const _0x24e4b5 of _0x51f1df)this['_handleRemoveFootnoteReferenceById'](_0x2a810b,_0x24e4b5)&&(_0x26ab49=!0x0);for(const _0x34cafc of _0x3a0397)this['_handleInsertedFootnoteReference'](_0x2a810b,_0x34cafc)&&(_0x26ab49=!0x0);for(const _0x3a248e of _0x53d270)this['_handleMovedFootnoteReference'](_0x2a810b,_0x3a248e)&&(_0x26ab49=!0x0);return _0x26ab49;}['_handleFootnotesDefinitionsObjectSync'](_0xfcfc0e){if(!this['_footnotesDefinitions'])return!0x1;let _0x3e2dd8=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3225ca=[];for(const _0x2f4ba4 of this['_footnotesDefinitions']['getChildren']()){const _0x38d014=_0x2f4ba4['getAttribute']('footnoteId');this['getFootnote'](_0x38d014)||(_0x3225ca['unshift'](_0x2f4ba4),_0x3e2dd8=!0x0);}for(const _0x40c30e of _0x3225ca)_0xfcfc0e['remove'](_0x40c30e);}const _0x5de5ec=new Set(),_0x2174c0=[];for(const _0x27856c of this['_footnotesDefinitions']['getChildren']()){const _0x2b3d67=_0x27856c['getAttribute']('footnoteId');_0x5de5ec['has'](_0x2b3d67)?(_0x2174c0['unshift'](_0x27856c),_0x3e2dd8=!0x0):_0x5de5ec['add'](_0x2b3d67);}for(const _0x407d1f of _0x2174c0)_0xfcfc0e['remove'](_0x407d1f);return this['_footnotesDefinitions']['childCount']||(_0xfcfc0e['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3e2dd8=!0x0),_0x3e2dd8;}['_handleInsertedFootnoteReference'](_0x2b14c4,_0x4cb94a){if(this['_footnotes']['find'](_0x304fba=>_0x304fba['reference']===_0x4cb94a))return!0x1;let _0xa35e77=!0x1;const _0x25dac0=_0x4cb94a['getAttribute']('footnoteId'),_0x30f4f3=this['_footnotes']['findIndex'](_0x3908b0=>_0x3908b0['id']===_0x25dac0);-0x1!==_0x30f4f3&&(_0x2b14c4['remove'](this['_footnotes'][_0x30f4f3]['reference']),this['_footnotes']['splice'](_0x30f4f3,0x1),_0xa35e77=!0x0);let _0x5b56eb=this['_footnotesDefinitions']?function(_0x31fb28,_0x1fea3c){for(const _0x3a080e of _0x31fb28['getChildren']())if(_0x3a080e['getAttribute']('footnoteId')===_0x1fea3c)return _0x3a080e;return null;}(this['_footnotesDefinitions'],_0x25dac0):null;_0x5b56eb||(_0x5b56eb=_0x2b14c4['createElement']('footnoteDefinition',{'footnoteId':_0x25dac0}),this['_footnotesDefinitions']&&(_0x2b14c4['insert'](_0x5b56eb,this['_footnotesDefinitions'],'end'),_0xa35e77=!0x0));const _0x28d299={'id':_0x25dac0,'reference':_0x4cb94a,'definition':_0x5b56eb},_0x138c74=I(this['editor']['model'],this['_footnotes'],_0x4cb94a);this['_footnotes']['splice'](_0x138c74,0x0,_0x28d299);let _0x408be3=_0x138c74;return-0x1!==_0x30f4f3&&(_0x408be3=Math['min'](_0x138c74,_0x30f4f3)),this['_updateFootnotesCounters'](_0x2b14c4,_0x408be3)&&(_0xa35e77=!0x0),_0xa35e77;}['_handleRemoveFootnoteReferenceById'](_0xcc9724,_0x33200e){const _0x39a2a9=this['_footnotes']['findIndex'](_0x58797d=>_0x58797d['id']===_0x33200e);if(-0x1===_0x39a2a9)return!0x1;let _0x25e7f0=!0x1;const _0x397ffd=this['_footnotes'][_0x39a2a9];return'$graveyard'!==_0x397ffd['definition']['root']['rootName']&&(_0xcc9724['remove'](_0x397ffd['definition']),_0x25e7f0=!0x0),this['_footnotes']['splice'](_0x39a2a9,0x1),this['_updateFootnotesCounters'](_0xcc9724,_0x39a2a9)&&(_0x25e7f0=!0x0),_0x25e7f0;}['_handleMovedFootnoteReference'](_0x30aba6,_0x5a0b87){const _0xf7c063=_0x5a0b87['getAttribute']('footnoteId'),_0x821b7c=this['_footnotes']['findIndex'](_0x1be221=>_0x1be221['id']===_0xf7c063),_0x1c6d3d=this['_footnotes'][_0x821b7c];let _0xed33f3=!0x1;_0x1c6d3d['reference']=_0x5a0b87,this['_footnotes']['splice'](_0x821b7c,0x1);const _0xd8f42b=I(this['editor']['model'],this['_footnotes'],_0x5a0b87);return this['_footnotes']['splice'](_0xd8f42b,0x0,_0x1c6d3d),this['_updateFootnotesCounters'](_0x30aba6,Math['min'](_0x821b7c,_0xd8f42b))&&(_0xed33f3=!0x0),_0xed33f3;}['_updateFootnoteRefCounter'](_0x2c6fe3,_0x44f882){if(!this['_footnotesDefinitions'])return!0x1;const _0x5a07a3=this['_footnotes'][_0x44f882];let _0x230c31;return _0x230c31=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5a07a3,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x44f882+0x1}):String(_0x44f882+0x1),_0x5a07a3['reference']['getAttribute']('footnoteCounter')!=_0x230c31&&(_0x2c6fe3['setAttribute']('footnoteCounter',_0x230c31,_0x5a07a3['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3ea45c){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x8ae8af,_0x21ee13){if(_0x8ae8af['length']!==_0x21ee13['length'])return!0x1;for(let _0x25882f=0x0;_0x25882f<_0x8ae8af['length'];_0x25882f++)if(_0x8ae8af[_0x25882f]!==_0x21ee13[_0x25882f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x37cef8=>_0x37cef8['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x441d01=>_0x441d01['getAttribute']('footnoteId'))))return!0x1;let _0x3a5085=!0x1;for(let _0x333e3b=0x0;_0x333e3b<this['_footnotes']['length'];_0x333e3b++){const _0x169644=this['_footnotes'][_0x333e3b],_0x3627b2=_0x3ea45c['createPositionBefore'](_0x169644['definition']),_0x2df2c9=_0x3ea45c['createPositionAt'](this['_footnotesDefinitions'],_0x333e3b);_0x3627b2['isEqual'](_0x2df2c9)||(_0x3ea45c['move'](_0x3ea45c['createRangeOn'](_0x169644['definition']),_0x2df2c9),_0x3a5085=!0x0);}return _0x3a5085;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4bef04){if(!this['_footnotes']['length'])return!0x1;const {model:_0xc24b0b}=this['editor'];let _0x5f3495=!0x1;for(let _0x5a58b3=0x0;_0x5a58b3<this['_footnotes']['length']-0x1;_0x5a58b3++){const _0x525749=this['_footnotes'][_0x5a58b3],_0xecdfa3=this['_footnotes'][_0x5a58b3+0x1],_0x595112=_0xc24b0b['createPositionBefore'](_0x525749['reference']),_0x290403=_0xc24b0b['createPositionBefore'](_0xecdfa3['reference']);'after'===_0x595112['compareWith'](_0x290403)&&(this['_handleMovedFootnoteReference'](_0x4bef04,_0x525749['reference']),_0x5a58b3=-0x1,_0x5f3495=!0x0);}return _0x5f3495;}}function _(_0x3c27bb,_0x381fb5,_0x1945b7){if(_0x1945b7['childCount'])return!0x1;const _0x26d0f4=_0x381fb5?'paragraph':'footnoteInlineContent';return _0x3c27bb['insert'](_0x3c27bb['createElement'](_0x26d0f4),_0x1945b7),!0x0;}function I(_0x4510ff,_0x376282,_0x11060b){if(0x0===_0x376282['length'])return 0x0;const _0x4c04cd=_0x4510ff['createPositionBefore'](_0x11060b);for(let _0x20d7f1=0x0;_0x20d7f1<_0x376282['length'];_0x20d7f1++){const _0x3e235c=_0x376282[_0x20d7f1],_0x2efa2b=_0x4510ff['createPositionBefore'](_0x3e235c['reference']);if('before'===_0x4c04cd['compareWith'](_0x2efa2b))return _0x20d7f1;}const _0x440047=_0x11060b['root'];let _0x979cb4=-0x1;for(let _0x5b6027=_0x376282['length']-0x1;_0x5b6027>=0x0;_0x5b6027--)if(_0x376282[_0x5b6027]['reference']['root']===_0x440047){_0x979cb4=_0x5b6027;break;}if(-0x1!==_0x979cb4)return _0x979cb4+0x1;const _0x1d6e10=_0x4510ff['document']['getRootNames'](),_0x404f57=_0x1d6e10['indexOf'](_0x440047['rootName']),_0x233475=_0x1d6e10[_0x404f57+0x1];if(_0x233475){for(let _0x543b36=0x0;_0x543b36<_0x376282['length'];_0x543b36++)if(_0x376282[_0x543b36]['reference']['root']['rootName']===_0x233475)return _0x543b36;}return _0x376282['length'];}class w extends _0x1c23a5{['refresh'](){const _0x52d852=this['editor']['model']['document']['selection'],_0x53fb33=this['_getPositionToInsertFootnote'](_0x52d852);this['isEnabled']=!!_0x53fb33;}['execute'](_0x531b9b){const {editor:_0xe252ca}=this,{model:_0x3d6b07}=_0xe252ca,{selection:_0x498e8f}=_0x3d6b07['document'],_0x2914b3=this['_getPositionToInsertFootnote'](_0x498e8f);if(!_0x2914b3)return;const _0x4db96e=_0xe252ca['plugins']['get']('FootnotesEditing'),_0x447e01=_0x531b9b?.['footnoteId']??_0x144b00();!function(_0x66ece8){return'string'==typeof _0x66ece8&&_0x66ece8['length']>0x0&&!/\s/['test'](_0x66ece8)&&!/^\d/['test'](_0x66ece8);}(_0x447e01)?_0x177a28('insert-footnote-command-executed-with-invalid-id'):(_0x3d6b07['change'](_0x4ec57f=>{const _0x45ee4c=_0x4ec57f['createElement']('footnoteRef',{'footnoteId':_0x447e01});_0x3d6b07['insertObject'](_0x45ee4c,_0x2914b3,null);}),_0x4db96e['_moveSelectionToFootnoteDefinition'](_0x447e01));}['_getPositionToInsertFootnote'](_0x13e623){const {model:_0x451eb1}=this['editor'],{schema:_0x58e039}=_0x451eb1,_0x263620=_0x13e623['getFirstRange']();for(const _0x31afc7 of _0x263620['getItems']())if(_0x58e039['isBlock'](_0x31afc7)||_0x58e039['isObject'](_0x31afc7))return null;const _0x4b64fa=_0x263620['end'];return _0x58e039['checkChild'](_0x4b64fa,'footnoteRef')?_0x4b64fa:null;}}class r extends _0x444ecb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1c58ba}=this;_0x1c58ba['config']['define']('footnotes.multiBlock',!0x0),_0x1c58ba['commands']['add']('insertFootnote',new w(_0x1c58ba)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1ba4d1){const _0x113eb3=_0x18a67f([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]),_0x5306e9=0x47a28506,_0x384740=0x47a5f296^_0x5306e9,_0x402c55=window[_0x18a67f([0x44,0x61,0x74,0x65])][_0x18a67f([0x6e,0x6f,0x77])](),_0x1fb57e=_0x1ba4d1[_0x18a67f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa51114=new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eacbd=>{_0x1fb57e[_0x18a67f([0x6f,0x6e,0x63,0x65])](_0x18a67f([0x72,0x65,0x61,0x64,0x79]),_0x1eacbd);}),_0x42424a={[_0x18a67f([0x6b,0x74,0x79])]:_0x18a67f([0x45,0x43]),[_0x18a67f([0x75,0x73,0x65])]:_0x18a67f([0x73,0x69,0x67]),[_0x18a67f([0x63,0x72,0x76])]:_0x18a67f([0x50,0x2d,0x32,0x35,0x36]),[_0x18a67f([0x78])]:_0x18a67f([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]),[_0x18a67f([0x79])]:_0x18a67f([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]),[_0x18a67f([0x61,0x6c,0x67])]:_0x18a67f([0x45,0x53,0x32,0x35,0x36])},_0x857404=_0x1fb57e[_0x18a67f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18a67f([0x67,0x65,0x74])](_0x18a67f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a3e03(){let _0x15dce1,_0x148098=null,_0x44420e=null;try{if(_0x857404==_0x18a67f([0x47,0x50,0x4c]))return _0x18a67f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15dce1=_0x2eeec5(),!_0x15dce1)return _0x18a67f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15dce1[_0x18a67f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44420e=_0x413251(_0x15dce1[_0x18a67f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15dce1[_0x18a67f([0x6a,0x74,0x69])])),await _0x3f9764()?_0x5cf6d6()?_0x39f659()?_0x18a67f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cc39f()?(_0x15dce1[_0x18a67f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18a67f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x148098=_0x5e90d0(_0x18a67f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15dce1[_0x18a67f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18a67f([0x74,0x72,0x69,0x61,0x6c])&&(_0x148098=_0x5e90d0(_0x18a67f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50ac3a()):_0x18a67f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18a67f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18a67f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18a67f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39f659(){const _0x5d15f1=[_0x18a67f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18a67f([0x74,0x72,0x69,0x61,0x6c])][_0x18a67f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15dce1[_0x18a67f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x402c55/0x3e8:0xe10*_0x384740;return _0x15dce1[_0x18a67f([0x65,0x78,0x70])]<_0x5d15f1;}function _0x5cf6d6(){const _0x18604d=_0x15dce1[_0x18a67f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18604d&&(!!_0x18604d[_0x18a67f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a67f([0x2a]))||!!_0x18604d[_0x18a67f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a67f([0x46,0x4f,0x4f])));}function _0x3cc39f(){const _0x156e5=_0x15dce1[_0x18a67f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x156e5||0x0==_0x156e5[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5186dc}=new URL(window[_0x18a67f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x156e5[_0x18a67f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5186dc))return!0x0;const _0x1a5ad7=_0x5186dc[_0x18a67f([0x73,0x70,0x6c,0x69,0x74])](_0x18a67f([0x2e]));return _0x156e5[_0x18a67f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a6d2=>_0x52a6d2[_0x18a67f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a67f([0x2a])))[_0x18a67f([0x6d,0x61,0x70])](_0x78f43d=>_0x78f43d[_0x18a67f([0x73,0x70,0x6c,0x69,0x74])](_0x18a67f([0x2e])))[_0x18a67f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x516e30=>_0x516e30[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a5ad7[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18a67f([0x6d,0x61,0x70])](_0x1d8ca5=>Array(_0x1a5ad7[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d8ca5[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18a67f([0x66,0x69,0x6c,0x6c])](_0x1d8ca5[0x0]===_0x18a67f([0x2a])?_0x18a67f([0x2a]):'')[_0x18a67f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d8ca5))[_0x18a67f([0x73,0x6f,0x6d,0x65])](_0x5e6c34=>_0x1a5ad7[_0x18a67f([0x65,0x76,0x65,0x72,0x79])]((_0xc649a6,_0xb9c2b0)=>_0x5e6c34[_0xb9c2b0]===_0xc649a6||_0x5e6c34[_0xb9c2b0]===_0x18a67f([0x2a])));}function _0x50ac3a(){return _0x148098&&_0x44420e?new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e5387,_0x2b3f81)=>{_0x148098[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x5e5387,_0x2b3f81),_0x44420e[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x470ca7=>{_0x470ca7!=_0x18a67f([0x56,0x61,0x6c,0x69,0x64])&&_0x5e5387(_0x470ca7);},_0x2b3f81);}):_0x148098||_0x44420e||_0x18a67f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x413251(_0x322a78,_0x4a2877){return new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1041ad=>{if(_0x375444())return _0x1041ad(_0x18a67f([0x56,0x61,0x6c,0x69,0x64]));_0x5206b3(),_0x1fb57e[_0x18a67f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18a67f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbb270c=!0x1;const _0x58634a=_0x144b00();function _0x3b5686(_0x25175a){return!!_0x25175a&&(typeof _0x25175a===_0x18a67f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25175a===_0x18a67f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25175a[_0x18a67f([0x74,0x68,0x65,0x6e])]===_0x18a67f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25175a[_0x18a67f([0x63,0x61,0x74,0x63,0x68])]===_0x18a67f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x158031(_0x8418e9){_0x254fb9(_0x8418e9)[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x418b2c=>{if(!_0x418b2c||_0x418b2c[_0x18a67f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18a67f([0x6f,0x6b]))return _0x18a67f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x101567(_0x4ab550(_0x58634a+_0x4a2877))!=_0x418b2c[_0x18a67f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18a67f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18a67f([0x56,0x61,0x6c,0x69,0x64]);})[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x21fb5e=>(_0x2bffe1(),_0x21fb5e),()=>{const _0x171027=_0x447829();return null==_0x171027?(_0x2bffe1(),_0x18a67f([0x56,0x61,0x6c,0x69,0x64])):_0x18a67f(_0x402c55-_0x171027>(0x63ae0106^_0x5306e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x1041ad)[_0x18a67f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1041ad(_0x18a67f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30ec3c=0x47946b86^_0x5306e9;function _0x2bffe1(){const _0x5a3c9d=_0x18a67f([0x6c,0x6c,0x63,0x74,0x2d])+_0x101567(_0x4ab550(_0x322a78)),_0x538d9b=_0x12de32(_0x101567(window[_0x18a67f([0x4d,0x61,0x74,0x68])][_0x18a67f([0x63,0x65,0x69,0x6c])](_0x402c55/_0x30ec3c)));window[_0x18a67f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18a67f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a3c9d,_0x538d9b);}function _0x447829(){const _0x3404c4=_0x18a67f([0x6c,0x6c,0x63,0x74,0x2d])+_0x101567(_0x4ab550(_0x322a78)),_0x4070a9=window[_0x18a67f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18a67f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3404c4);return _0x4070a9?window[_0x18a67f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12de32(_0x4070a9),0x10)*_0x30ec3c:null;}function _0x254fb9(_0x24b1e8){return new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116d58,_0x1c2680)=>{_0x24b1e8[_0x18a67f([0x74,0x68,0x65,0x6e])](_0x116d58,_0x1c2680),window[_0x18a67f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c2680,0x47a351c6^_0x5306e9);});}}_0x1fb57e[_0x18a67f([0x6f,0x6e])](_0x18a67f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25416c,_0x152eba)=>{if(_0x152eba[0x0]!=_0x322a78)return _0x1041ad(_0x18a67f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x152eba[0x1]={..._0x152eba[0x1],[_0x18a67f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58634a};},{[_0x18a67f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18a67f([0x68,0x69,0x67,0x68])}),_0x1fb57e[_0x18a67f([0x6f,0x6e])](_0x18a67f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40cb57=>{_0x3b5686(_0x40cb57[_0x18a67f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbb270c=!0x0,_0x158031(_0x40cb57[_0x18a67f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18a67f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18a67f([0x6c,0x6f,0x77])}),_0xa51114[_0x18a67f([0x74,0x68,0x65,0x6e])](()=>{_0xbb270c||_0x1041ad(_0x18a67f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375444(){return _0x1fb57e[_0x18a67f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18a67f([0x76,0x69,0x65,0x77])][_0x18a67f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18a67f([0x61,0x75,0x74,0x6f]);}function _0x5206b3(){_0x1fb57e[_0x18a67f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18a67f([0x76,0x69,0x65,0x77])][_0x18a67f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18a67f([0x61,0x75,0x74,0x6f]);}}function _0x5e90d0(_0x33213a){const _0x344106=[new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fa7d3=>setTimeout(_0x3fa7d3,0x47abbbca^_0x5306e9)),_0xa51114[_0x18a67f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1be6e4=>{let _0x5673c6=0x0;_0x1fb57e[_0x18a67f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a67f([0x6f,0x6e])](_0x18a67f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x507d62,_0x5b3799)=>{_0x5b3799[0x0][_0x18a67f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5673c6++,_0x5673c6==(0x47a284fe^_0x5306e9)&&(_0x1be6e4(),_0x507d62[_0x18a67f([0x6f,0x66,0x66])]());});}))];return window[_0x18a67f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18a67f([0x72,0x61,0x63,0x65])](_0x344106)[_0x18a67f([0x74,0x68,0x65,0x6e])](()=>_0x33213a);}async function _0x66940d(){await _0xa51114,_0x1fb57e[_0x18a67f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a67f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf7e66e,_0x1fb57e[_0x18a67f([0x6d,0x6f,0x64,0x65,0x6c])][_0x18a67f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf7e66e,_0x1fb57e[_0x18a67f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18a67f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32e22e(_0x96fbd2){const _0x3dc6f8=_0x58c8b7();_0x1fb57e[_0x3dc6f8]=_0x18a67f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x96fbd2,_0x96fbd2!=_0x18a67f([0x56,0x61,0x6c,0x69,0x64])&&_0x66940d();}function _0x58c8b7(){const _0x7bbc22=window[_0x18a67f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18a67f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18a67f([0x6e,0x6f,0x77])]())[_0x18a67f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18a67f([0x2e]),'');let _0x2d2e75=_0x18a67f([0x75]);for(let _0x3f9e9d=0x0;_0x3f9e9d<_0x7bbc22[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f9e9d+=0x2){let _0x31b98c=window[_0x18a67f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7bbc22[_0x18a67f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f9e9d,_0x3f9e9d+0x2));_0x31b98c>=_0x113eb3[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31b98c-=_0x113eb3[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d2e75+=_0x113eb3[_0x31b98c];}return _0x2d2e75;}function _0x2eeec5(){const _0x105b67=_0x857404[_0x18a67f([0x73,0x70,0x6c,0x69,0x74])](_0x18a67f([0x2e]));if(0x3!=_0x105b67[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bbc01(_0x105b67[0x1]);function _0x3bbc01(_0x356fe2){const _0x346046=_0x1210c3(_0x356fe2);return _0x346046&&_0x5888fe()?_0x346046:null;function _0x5888fe(){const _0x253c34=_0x346046[_0x18a67f([0x6a,0x74,0x69])],_0x1d09a7=window[_0x18a67f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x253c34[_0x18a67f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253c34[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15a67f={..._0x346046,[_0x18a67f([0x6a,0x74,0x69])]:_0x253c34[_0x18a67f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x253c34[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15a67f[_0x18a67f([0x76,0x63])],_0x4ab550(_0x15a67f)==_0x1d09a7;}}}async function _0x3f9764(){let _0x5c899a=!0x0;try{const _0xf8f11d=_0x857404[_0x18a67f([0x73,0x70,0x6c,0x69,0x74])](_0x18a67f([0x2e])),[_0x21d7fa,_0x51cf35,_0x5823d9]=_0xf8f11d;return _0x1f56fd(_0x21d7fa),await _0x1fc1c9(_0x21d7fa,_0x51cf35,_0x5823d9),_0x5c899a;}catch{return!0x1;}function _0x1f56fd(_0x1be125){const _0x33f02c=_0x1210c3(_0x1be125);_0x33f02c&&_0x33f02c[_0x18a67f([0x61,0x6c,0x67])]==_0x18a67f([0x45,0x53,0x32,0x35,0x36])||(_0x5c899a=!0x1);}async function _0x1fc1c9(_0x97212b,_0x1628e9,_0x525816){const _0x43a4d1=window[_0x18a67f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18a67f([0x66,0x72,0x6f,0x6d])](_0xff0fc0(_0x525816),_0x29aae3=>_0x29aae3[_0x18a67f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b9284=new window[(_0x18a67f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18a67f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x97212b+_0x18a67f([0x2e])+_0x1628e9),_0x29a93d=window[_0x18a67f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18a67f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29a93d)return;const _0x12c0b2=await _0x29a93d[_0x18a67f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18a67f([0x6a,0x77,0x6b]),_0x42424a,{[_0x18a67f([0x6e,0x61,0x6d,0x65])]:_0x18a67f([0x45,0x43,0x44,0x53,0x41]),[_0x18a67f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18a67f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18a67f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29a93d[_0x18a67f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18a67f([0x6e,0x61,0x6d,0x65])]:_0x18a67f([0x45,0x43,0x44,0x53,0x41]),[_0x18a67f([0x68,0x61,0x73,0x68])]:{[_0x18a67f([0x6e,0x61,0x6d,0x65])]:_0x18a67f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12c0b2,_0x43a4d1,_0x4b9284)||(_0x5c899a=!0x1);}}function _0x1210c3(_0x46864a){return _0x46864a[_0x18a67f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18a67f([0x65,0x79]))?JSON[_0x18a67f([0x70,0x61,0x72,0x73,0x65])](_0xff0fc0(_0x46864a)):null;}function _0xff0fc0(_0x23f5aa){return window[_0x18a67f([0x61,0x74,0x6f,0x62])](_0x23f5aa[_0x18a67f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18a67f([0x2b]))[_0x18a67f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18a67f([0x2f])));}function _0x4ab550(_0x1e41e7){let _0x38ae7e=0x1505;function _0x76f401(_0x2d2c4a){for(let _0x55cd39=0x0;_0x55cd39<_0x2d2c4a[_0x18a67f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55cd39++){const _0x5c4c36=_0x2d2c4a[_0x18a67f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55cd39);_0x38ae7e=(_0x38ae7e<<0x5)+_0x38ae7e+_0x5c4c36,_0x38ae7e&=_0x38ae7e;}}function _0x446644(_0x322d7e){Array[_0x18a67f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x322d7e)?_0x322d7e[_0x18a67f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x446644):_0x322d7e&&typeof _0x322d7e==_0x18a67f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18a67f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x322d7e)[_0x18a67f([0x73,0x6f,0x72,0x74])]()[_0x18a67f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ae86c,_0x3fdf76])=>{_0x76f401(_0x5ae86c),_0x446644(_0x3fdf76);}):_0x76f401(window[_0x18a67f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x322d7e));}return _0x446644(_0x1e41e7),_0x38ae7e>>>0x0;}function _0x101567(_0x5b4665){return _0x5b4665[_0x18a67f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18a67f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18a67f([0x30]));}function _0x12de32(_0x48bc41){return _0x48bc41[_0x18a67f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18a67f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18a67f([0x6a,0x6f,0x69,0x6e])]('');}function _0xf7e66e(){}function _0x18a67f(_0x582300){return _0x582300['map'](_0x521caf=>String['fromCharCode'](_0x521caf))['join']('');}_0x32e22e(await _0x4a3e03());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4e7c02){const {plugins:_0x4c25ab,editing:_0x4d3c76,model:_0x4aa5c7}=this['editor'],_0x2ede3e=_0x4c25ab['get'](c)['getFootnote'](_0x4e7c02);return!!_0x2ede3e&&(_0x4aa5c7['change'](_0x2fcb9e=>{_0x2fcb9e['setSelection'](_0x2fcb9e['createPositionAt'](_0x2ede3e['definition'],'end'));}),_0x4d3c76['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4be436){const {plugins:_0x583b28,editing:_0x44039e,model:_0x551016}=this['editor'],_0x1dcbcf=_0x583b28['get'](c)['getFootnote'](_0x4be436);return!!_0x1dcbcf&&(_0x551016['change'](_0x9fcb6d=>{_0x9fcb6d['setSelection'](_0x1dcbcf['reference'],'on');}),_0x44039e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56f5ac}=this['editor']['model'],_0x28fba3=this['editor']['config']['get']('footnotes.multiBlock');_0x56f5ac['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56f5ac['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56f5ac['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x28fba3?_0x56f5ac['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56f5ac['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56f5ac['addChildCheck'](_0x4eb9c9=>{for(const _0x14e7ac of _0x4eb9c9)if('footnoteDefinition'===_0x14e7ac['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x55ef4e}=this,{conversion:_0x4c1e1d,editing:_0xd45f93}=_0x55ef4e,{t:t}=_0x55ef4e['locale'];_0x4c1e1d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x376d18,{writer:_0x184d4d,consumable:_0x2722fd})=>{const _0x599c9b=_0x376d18['getChild'](0x0);if(!_0x599c9b||!_0x599c9b['is']('element','a'))return null;const _0x1a0806=_0x599c9b['getAttribute']('href')||'';if(!_0x1a0806['startsWith']('#'))return null;const _0x4dda31=_0x1a0806['replace'](/^#/,'');if(!_0x4dda31)return null;_0x2722fd['consume'](_0x599c9b,{'name':!0x0,'attributes':['href']});for(const {item:_0x320bd9}of _0xd45f93['view']['createRangeIn'](_0x599c9b))_0x320bd9['is']('$textProxy')?_0x2722fd['consume'](_0x320bd9['textNode'],{'name':!0x0}):_0x320bd9['is']('element')&&_0x2722fd['consume'](_0x320bd9,{'name':!0x0});return _0x184d4d['createElement']('footnoteRef',{'footnoteId':_0x4dda31});}}),_0x4c1e1d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4c2729,{writer:_0x5c595e})=>D(_0x4c2729,_0x5c595e)}),_0x4c1e1d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x383811,{writer:_0x56ae54})=>{const _0x41c03f=_0x383811['getAttribute']('footnoteCounter');return _0x46f5d8(D(_0x383811,_0x56ae54),_0x56ae54,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x41c03f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x31d619}=this,{t:t}=_0x31d619['locale'],{conversion:_0x3fd5c3}=_0x31d619;_0x3fd5c3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3fd5c3['for']('upcast')['add'](_0x3ad72d=>{_0x3ad72d['on']('element:ol',(_0x45bfca,_0x2c78e0,_0x50f825)=>{const _0x1de3a4=_0x2c78e0['viewItem'];if(!_0x1de3a4['hasClass']('footnotes-list')||!_0x2c78e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x50f825['consumable']['consume'](_0x1de3a4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x14a754,modelCursor:_0x42f151}=_0x50f825['convertChildren'](_0x2c78e0['viewItem'],_0x2c78e0['modelCursor']);_0x2c78e0['modelRange']=_0x14a754,_0x2c78e0['modelCursor']=_0x42f151;}),_0x3ad72d['on']('element:hr',(_0x566d9e,_0x187a34,_0x29278e)=>{const _0x96f257=_0x187a34['viewItem'];_0x96f257['hasClass']('footnotes-divider')&&_0x187a34['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x29278e['consumable']['consume'](_0x96f257,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3fd5c3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5ce0d3,{writer:_0x5f3976})=>g(_0x5f3976)}),_0x3fd5c3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x332216,{writer:_0x23baf9})=>{const _0x56bb7a=g(_0x23baf9,{'data-footnotes-list-label':t('Footnotes')}),_0x254afe=_0x46f5d8(_0x56bb7a,_0x23baf9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x23baf9['setCustomProperty']('footnotesDefinitions',!0x0,_0x254afe),_0x254afe;}});}['_defineDefinitionConverters'](){const {editor:_0x4f51da}=this,{conversion:_0x46f665,locale:_0x4edccf}=_0x4f51da,_0x43cd05=_0x4f51da['config']['get']('footnotes.multiBlock');_0x46f665['for']('upcast')['add'](_0x58ae69=>{_0x58ae69['on']('element:li',(_0x7753eb,_0x47361d,_0x4e52a7)=>{const _0x54ef45=_0x47361d['viewItem'];if(!_0x54ef45['hasClass']('footnote-definition')||!_0x54ef45['getAttribute']('id'))return;const _0x56ef14=_0x54ef45['parent'];if(!_0x56ef14['is']('element','ol')||!_0x56ef14['hasClass']('footnotes-list'))return;if(!_0x4e52a7['consumable']['test'](_0x54ef45,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xfcc46b=_0x4e52a7['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54ef45['getAttribute']('id')});if(!_0x4e52a7['safeInsert'](_0xfcc46b,_0x47361d['modelCursor']))return;_0x4e52a7['consumable']['consume'](_0x54ef45,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1de8b5=Array['from'](_0x54ef45['getChildren']())['find'](_0xc5ce23=>_0xc5ce23['is']('element')&&_0xc5ce23['hasClass']('footnote-content'));for(const _0x475ca1 of _0x54ef45['getChildren']())_0x475ca1['is']('element')&&(_0x4e52a7['consumable']['consume'](_0x475ca1,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4e52a7['consumable']['consume'](_0x475ca1,{'name':!0x0,'classes':'footnote-content'}));if(_0x1de8b5){if(_0x43cd05)_0x4e52a7['convertChildren'](_0x1de8b5,_0xfcc46b);else{const _0x2c83ba=_0x4e52a7['writer']['createElement']('footnoteInlineContent');_0x4e52a7['writer']['insert'](_0x2c83ba,_0xfcc46b),_0x4e52a7['convertChildren'](_0x1de8b5,_0x2c83ba);}}_0x4e52a7['updateConversionResult'](_0xfcc46b,_0x47361d);});}),_0x46f665['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4b385c,{writer:_0x21a489})=>v(_0x4b385c,_0x21a489,_0x4edccf,{'dataPipeline':!0x0})}),_0x46f665['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb9c2ab,{writer:_0x3cc36b})=>v(_0xb9c2ab,_0x3cc36b,_0x4edccf)});}['_defineBogusParagraphConverters'](){const {editor:_0x1ba0e1}=this,{conversion:_0x1de225}=_0x1ba0e1;_0x1ba0e1['config']['get']('footnotes.multiBlock')?(_0x1de225['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1de225['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1ba0e1['model']['document'],'change:data',()=>{!function(_0x2e987d,_0x43e165){const _0x43a513=_0x2e987d['document']['differ'],_0x3f0a2c=new Set();for(const _0x5be4b6 of _0x43a513['getChanges']()){const _0x44683a='attribute'==_0x5be4b6['type']?_0x5be4b6['range']['start']['parent']:_0x5be4b6['position']['parent'];_0x44683a['is']('element','footnoteDefinition')&&_0x3f0a2c['add'](_0x44683a);}for(const _0x1b7033 of _0x3f0a2c['values']()){const _0x553dd9=Array['from'](_0x1b7033['getChildren']())['filter'](_0x49cdf5=>p(_0x49cdf5,_0x43e165['mapper']));for(const _0x4c4225 of _0x553dd9)_0x43e165['reconvertItem'](_0x4c4225);}}(_0x1ba0e1['model'],_0x1ba0e1['editing']);})):(_0x1de225['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1de225['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1fd271,{writer:_0x205e95})=>{const _0x17f5a6=_0x205e95['createContainerElement']('span');return _0x205e95['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x17f5a6),_0x17f5a6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x47d8ea}=this,{editing:_0x1d2eb4,t:t}=_0x47d8ea,_0x35edea=_0x47d8ea['model']['document']['selection'];_0x47d8ea['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x47d8ea['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x1d2eb4['view']['document'],'enter',(_0xa08900,_0xb45954)=>{const _0x9a99eb=function(_0x47cbf4){const _0x5ad4bd=_0x47cbf4['getSelectedElement']();if(_0x5ad4bd?.['is']('element','footnoteRef'))return _0x5ad4bd;return null;}(_0x35edea);if(_0x9a99eb){const _0x64787d=_0x9a99eb['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x64787d),_0xb45954['preventDefault'](),_0xa08900['stop']();}},{'context':_0x1d4b8b});}['_defineClickHandlers'](){const {editor:_0x45f9eb}=this,{editing:_0x2450aa}=_0x45f9eb;_0x45f9eb['editing']['view']['addObserver'](_0x2ad005),_0x45f9eb['editing']['view']['addObserver'](_0x27612b);let _0x468ad3=!0x1;this['listenTo'](_0x2450aa['view']['document'],'pointerdown',(_0x3dc254,_0x23f5a6)=>{const {target:_0x3939d7}=_0x23f5a6,_0x34c562=_0x2450aa['view']['document']['selection'];_0x468ad3=!!(_0x3939d7['is']('element','a')&&_0x3939d7['parent']?.['is']('element','sup')&&_0x3939d7['parent']['hasClass']('footnote'))&&_0x34c562['getSelectedElement']()===_0x3939d7['parent'];},{'priority':'high'}),this['listenTo'](_0x2450aa['view']['document'],'click',(_0x21ae45,_0x509202)=>{const {target:_0x5b3f28}=_0x509202;if(!_0x5b3f28['is']('element','a'))return;if(_0x5b3f28['parent']?.['is']('element','sup')&&_0x5b3f28['parent']['hasClass']('footnote')&&!_0x468ad3)return void _0x509202['preventDefault']();let _0x242b39=_0x5b3f28['getAttribute']('href');if(!_0x242b39?.['startsWith']('#'))return;_0x242b39=_0x242b39['slice'](0x1);let _0x588a92=!0x1;(_0x242b39['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x242b39['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x242b39))&&(_0x588a92=!0x0),_0x588a92&&(_0x509202['preventDefault'](),_0x21ae45['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x2480ff}={}){return(_0x397ef6,{writer:_0x334be7})=>{if(!h(_0x397ef6))return null;if(!_0x2480ff)return _0x334be7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xadf2b5=_0x334be7['createContainerElement']('p');return _0x334be7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xadf2b5),_0xadf2b5;};}function h(_0x418c22){const {parent:_0x3b2cd6}=_0x418c22;if(!_0x3b2cd6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3b2cd6['childCount'])return!0x1;for(const _0x204de7 of _0x418c22['getAttributeKeys']())if(!_0x204de7['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x204de7)return!0x1;return!0x0;}function p(_0x4de935,_0x33b306){if(!_0x4de935['is']('element','paragraph'))return!0x1;const _0x16cb88=_0x33b306['toViewElement'](_0x4de935);return!!_0x16cb88&&h(_0x4de935)!==_0x16cb88['is']('element','span');}function J(_0x446dc2){return _0x1d4b8b(_0x446dc2)&&_0x446dc2['is']('containerElement')&&!!_0x446dc2['getCustomProperty']('footnotesDefinitions');}function g(_0x955615,_0xa439f1={}){const _0x344306=_0x955615['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x85ac38=_0x955615['createContainerElement']('ol',{'class':'footnotes-list'},_0x955615['createSlot']());return _0x955615['createContainerElement']('div',{'class':'footnotes',..._0xa439f1},[_0x344306,_0x85ac38]);}function D(_0x133c13,_0x1017b1){const _0x2cf8e0=_0x133c13['getAttribute']('footnoteId'),_0x401f5f=_0x133c13['getAttribute']('footnoteCounter'),_0x39e5f9=_0x1017b1['createUIElement']('a',{'href':'#'+_0x2cf8e0},function(_0xb8f0d9){const _0x21d91c=this['toDomElement'](_0xb8f0d9);return _0x21d91c['textContent']=_0x401f5f,_0x21d91c;}),_0xdc89ae=_0x1017b1['createContainerElement']('sup',{'id':'ref-'+_0x2cf8e0,'class':'footnote'},[_0x39e5f9]);return _0xdc89ae['getFillerOffset']=()=>null,_0xdc89ae;}function v(_0x4e8cb6,_0x4a9847,_0x2b3c69,{dataPipeline:_0x3e6028}={}){const {t:t}=_0x2b3c69,_0x4465c8=_0x4e8cb6['getAttribute']('footnoteId'),_0x4d48ab=_0x4a9847['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4465c8},function(_0x409bed){const _0x37585d=this['toDomElement'](_0x409bed);return _0x37585d['innerText']='^',_0x37585d;}),_0x15fdac=_0x3e6028?_0x4a9847['createContainerElement']('div',{'class':'footnote-content'}):_0x1c971a(_0x4a9847['createEditableElement']('div',{'class':'footnote-content'}),_0x4a9847,{'label':t('Footnote\x20content.')});return _0x4a9847['insert'](_0x4a9847['createPositionAt'](_0x15fdac,0x0),_0x4a9847['createSlot']()),_0x4a9847['createContainerElement']('li',{'class':'footnote-definition','id':_0x4465c8},[_0x4d48ab,_0x15fdac]);}class e extends _0x444ecb{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1e9339];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x16faa8}=this,{plugins:_0x538898,model:_0x60f52d}=_0x16faa8,_0x4ecf54=_0x538898['get'](_0x1e9339),_0x1044a2=_0x538898['get'](c);this['listenTo'](_0x4ecf54,'outputTransformation',(_0x459e10,_0x365582)=>{const _0x435c2e=function(_0x31e032,_0x47a3bb){const _0x3c7bd9=new Set();for(const {item:_0x260ca2}of _0x31e032['createRangeIn'](_0x47a3bb))_0x260ca2['is']('element','footnoteRef')&&_0x3c7bd9['add'](_0x260ca2['getAttribute']('footnoteId'));return Array['from'](_0x3c7bd9);}(_0x60f52d,_0x365582['content']);if(!_0x435c2e['length'])return;const _0x16ef34=_0x1044a2['getFootnotes'](),_0x181dc7=_0x435c2e['reduce']((_0x213066,_0x1e91dd)=>{const _0xb260c1=_0x16ef34['find'](_0x26e90f=>_0x26e90f['id']===_0x1e91dd);if(_0xb260c1){const _0x2c0ab3=_0x16faa8['data']['toView'](_0xb260c1['definition'],{'isClipboardPipeline':!0x0}),_0x4dff07=_0x16faa8['data']['htmlProcessor']['toData'](_0x2c0ab3);_0x213066[_0xb260c1['id']]=_0x4dff07;}return _0x213066;},Object['create'](null));_0x365582['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x181dc7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x290a3d}=this,{model:_0x11284c,plugins:_0x1c686e}=_0x290a3d,{view:_0xdab112}=_0x290a3d['editing'],_0x43937f=_0x1c686e['get'](_0x1e9339),_0x1b16a1=_0x1c686e['get'](c);let _0x3534a8=null;this['listenTo'](_0xdab112['document'],'clipboardInput',(_0x2d27ca,_0x33f197)=>{const _0x26dc5d=_0x33f197['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3534a8=_0x26dc5d?JSON['parse'](_0x26dc5d):null;}),this['listenTo'](_0x43937f,'contentInsertion',(_0x2e66ac,_0x3ea4c8)=>{if(!_0x3534a8)return;const _0x1e701d=_0x3ea4c8['sourceEditorId']===this['editor']['id'];_0x1e701d&&'drop'===_0x3ea4c8['method']||_0x11284c['change'](_0x5538f8=>{!function(_0x4acb2c,_0x41807e){const _0x1a4bdf=[];for(const {item:_0xfe4ff1}of _0x4acb2c['createRangeIn'](_0x41807e))_0xfe4ff1['is']('element','footnotesDefinitions')&&_0x1a4bdf['push'](_0xfe4ff1);for(const _0x141ad3 of _0x1a4bdf)_0x4acb2c['remove'](_0x141ad3);}(_0x5538f8,_0x3ea4c8['content']);let _0x384f98=_0x1b16a1['getFootnotesDefinitionsObjectElement']();if(!_0x384f98){const _0x57b76b=_0x11284c['document']['selection']['getFirstRange']()['root'];_0x384f98=_0x1b16a1['_insertEmptyFootnotesDefinitionsContainer'](_0x5538f8,_0x57b76b);}const _0x5c0b93=function(_0x2fe4fd,_0x47d0fc,_0x47da7b){const _0x1d5830=Object['create'](null);for(const {item:_0xccd716}of _0x2fe4fd['createRangeIn'](_0x47d0fc))if(_0xccd716['is']('element','footnoteRef')){const _0x5ea8d3=_0xccd716['getAttribute']('footnoteId');if(!_0x47da7b(_0x5ea8d3))continue;_0x1d5830[_0x5ea8d3]||(_0x1d5830[_0x5ea8d3]=_0x144b00()),_0x2fe4fd['setAttribute']('footnoteId',_0x1d5830[_0x5ea8d3],_0xccd716);}return _0x1d5830;}(_0x5538f8,_0x3ea4c8['content'],_0x4a1cf2=>!_0x1e701d||null!==_0x1b16a1['getFootnote'](_0x4a1cf2));for(const [_0x1ae70a,_0x28a1d3]of Object['entries'](_0x3534a8)){const _0x2bb861=_0x5c0b93[_0x1ae70a]||_0x1ae70a,_0x593f7e=_0x5538f8['createElement']('footnoteDefinition',{'footnoteId':_0x2bb861}),_0x32d413=_0x290a3d['data']['htmlProcessor']['toView'](_0x28a1d3),_0x4e3ce8=_0x290a3d['data']['toModel'](_0x32d413,_0x593f7e);_0x5538f8['append'](_0x4e3ce8,_0x593f7e),_0x5538f8['insert'](_0x593f7e,_0x384f98,'end');}_0x3534a8=null;});});}}class i extends _0x444ecb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x460434}=this,{componentFactory:_0x560e9b}=_0x460434['ui'];_0x560e9b['add']('insertFootnote',x(_0x460434,_0x352d48)),_0x560e9b['add']('menuBar:insertFootnote',x(_0x460434,_0x27c539)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49d140=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d7085;for(const _0x174377 in _0x49d140){const _0xc33909=_0x174377,_0x53e9e1=_0x49d140[_0xc33909];if('footnotesLicenseKeyValid'==_0x53e9e1||'footnotesLicenseKeyInvalid'==_0x53e9e1||'footnotesLicenseKeyExpired'==_0x53e9e1||'footnotesLicenseKeyDomainLimit'==_0x53e9e1||'footnotesLicenseKeyNotAllowed'==_0x53e9e1||'footnotesLicenseKeyEvaluationLimit'==_0x53e9e1||'footnotesLicenseKeyTrialLimit'==_0x53e9e1||'footnotesLicenseKeyUsageLimit'==_0x53e9e1){delete _0x49d140[_0xc33909],_0x1d7085=_0x53e9e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1d7085&&_0x49d140['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1d7085&&_0x49d140['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1d7085&&_0x49d140['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1d7085&&_0x49d140['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1d7085&&_0x49d140['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1d7085&&_0x49d140['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1d7085&&_0x49d140['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x422452,_0x4f96a9){const _0x5f5639=_0x422452['commands']['get']('insertFootnote');return _0x48a014=>{const {t:t}=_0x48a014,_0x17d4f9=new _0x4f96a9(_0x48a014),_0x5f4ea7=_0x17d4f9 instanceof _0x27c539;return _0x17d4f9['bind']('isEnabled')['to'](_0x5f5639,'isEnabled'),_0x17d4f9['set']({'label':t(_0x5f4ea7?'Footnote':'Insert\x20footnote'),'icon':_0x1ed261,'tooltip':!0x0}),_0x17d4f9['on']('execute',()=>{_0x5f5639['execute'](),_0x422452['editing']['view']['focus']();}),_0x17d4f9;};}class nt extends _0x444ecb{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x1c23a5{['refresh'](){const {editor:_0x192435}=this,_0x66cc56=_0x192435['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x66cc56,this['value']=_0x66cc56?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x266a47}){const {editor:_0x26c73d}=this,_0x1f4ed7=_0x26c73d['plugins']['get'](c),_0x50a0e6=_0x1f4ed7['getFootnotesDefinitionsObjectElement']();_0x50a0e6&&Q['includes'](_0x266a47)&&_0x26c73d['model']['change'](_0x218ed0=>{_0x218ed0['setAttribute']('footnotesListStyle',_0x266a47,_0x50a0e6),_0x1f4ed7['_updateFootnotesCounters'](_0x218ed0);});}}class b extends _0x1c23a5{['refresh'](){const {editor:_0xf1310e}=this,_0x3e0a64=_0xf1310e['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3e0a64,this['value']=_0x3e0a64?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1cfd7d}){const {editor:_0x4d7948}=this,_0x647767=_0x4d7948['plugins']['get'](c),_0x390bd7=_0x647767['getFootnotesDefinitionsObjectElement']();_0x390bd7&&Number['isInteger'](_0x1cfd7d)&&_0x4d7948['model']['change'](_0x170a78=>{_0x170a78['setAttribute']('footnotesListStart',_0x1cfd7d,_0x390bd7),_0x647767['_updateFootnotesCounters'](_0x170a78);});}}class P extends _0x444ecb{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7aaf7}=this;_0x7aaf7['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x7aaf7['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x7aaf7['commands']['add']('footnotesStyle',new S(_0x7aaf7)),_0x7aaf7['commands']['add']('footnotesStart',new b(_0x7aaf7)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x268e5d}=this,{schema:_0x5b23ee}=_0x268e5d['model'];_0x5b23ee['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xe1c451}=this,{conversion:_0x158dde,model:_0x352530}=_0xe1c451,{schema:_0x3da76e}=_0x352530;_0x158dde['for']('upcast')['add'](_0x3d2afa=>{_0x3d2afa['on']('element:ol',(_0x35dfa6,_0x40e7c8,_0x15b6a4)=>{const _0x24cdec=_0x40e7c8['viewItem'],_0x20894c=_0x40e7c8['modelCursor']?.['parent'];_0x24cdec['hasClass']('footnotes-list')&&_0x20894c?.['is']('element','footnotesDefinitions')&&(function(_0x48e0df,_0x126d45,_0x49525e,_0xcd8b90){if(!_0xcd8b90['checkAttribute'](_0x126d45,'footnotesListStart'))return;let _0x5a5dd7=0x1;const _0x15c508=_0x49525e['consumable']['consume'](_0x48e0df,{'attributes':'start'});if(_0x15c508){const _0x93eafd=Number['parseInt'](_0x48e0df['getAttribute']('start'),0xa);Number['isNaN'](_0x93eafd)||(_0x5a5dd7=_0x93eafd);}!_0x15c508&&_0x126d45['hasAttribute']('footnotesListStart')||_0x49525e['writer']['setAttribute']('footnotesListStart',_0x5a5dd7,_0x126d45);}(_0x24cdec,_0x20894c,_0x15b6a4,_0x3da76e),function(_0x26c9dd,_0x4c0e0b,_0xc3c80c,_0x44a2e0){if(!_0x44a2e0['checkAttribute'](_0x4c0e0b,'footnotesListStyle'))return;let _0x5d1a48='decimal',_0xa3fc92=!0x1;if(_0xc3c80c['consumable']['consume'](_0x26c9dd,{'attributes':'type'})){const _0x177ed2={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x26c9dd['getAttribute']('type')];_0x177ed2&&(_0x5d1a48=_0x177ed2),_0xa3fc92=!0x0;}_0xc3c80c['consumable']['consume'](_0x26c9dd,{'styles':'list-style-type'})&&(_0x5d1a48=_0x26c9dd['getStyle']('list-style-type'),_0xa3fc92=!0x0),!_0xa3fc92&&_0x4c0e0b['hasAttribute']('footnotesListStyle')||_0xc3c80c['writer']['setAttribute']('footnotesListStyle',_0x5d1a48,_0x4c0e0b);}(_0x24cdec,_0x20894c,_0x15b6a4,_0x3da76e));});}),_0x158dde['for']('downcast')['add'](_0x25295f=>{_0x25295f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x446ddf,_0x13aee2,_0x5b875d)=>{if(!_0x5b875d['consumable']['consume'](_0x13aee2['item'],_0x446ddf['name']))return;const _0x46f318=C(_0x13aee2['item'],_0x5b875d['mapper']),{attributeNewValue:_0x38732e}=_0x13aee2;null==_0x38732e||0x1===_0x38732e?_0x5b875d['writer']['removeAttribute']('start',_0x46f318):_0x5b875d['writer']['setAttribute']('start',String(_0x38732e),_0x46f318);}),_0x25295f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1e631e,_0x520a57,_0x1f97eb)=>{if(!_0x1f97eb['consumable']['consume'](_0x520a57['item'],_0x1e631e['name']))return;const _0x598bb0=C(_0x520a57['item'],_0x1f97eb['mapper']),{attributeNewValue:_0xf7a1a5}=_0x520a57;_0xf7a1a5&&'decimal'!==_0xf7a1a5?_0x1f97eb['writer']['setStyle']('list-style-type',_0xf7a1a5,_0x598bb0):_0x1f97eb['writer']['removeStyle']('list-style-type',_0x598bb0);});});}['_definePostfixer'](){const {editor:_0x4880c1}=this,{model:_0x14cced}=_0x4880c1,_0x373a0c=_0x4880c1['plugins']['get'](c),_0x584772=this['_getDefaultListStyle'](),_0x331019=this['_getDefaultStartIndex']();_0x14cced['document']['registerPostFixer'](_0x201237=>{const _0xc6f95f=_0x14cced['document']['differ']['getChanges']();let _0x49028b=!0x1;for(const _0x2753a0 of _0xc6f95f){if('insert'!==_0x2753a0['type']||'$text'===_0x2753a0['name'])continue;const _0x2368f0=_0x14cced['createRangeOn'](_0x2753a0['position']['nodeAfter']);for(const _0x128174 of _0x2368f0['getItems']())_0x128174['is']('element','footnotesDefinitions')&&(!_0x128174['hasAttribute']('footnotesListStart')&&_0x14cced['schema']['checkAttribute'](_0x128174,'footnotesListStart')&&(_0x201237['setAttribute']('footnotesListStart',_0x331019,_0x128174),_0x49028b=!0x0),!_0x128174['hasAttribute']('footnotesListStyle')&&_0x14cced['schema']['checkAttribute'](_0x128174,'footnotesListStyle')&&(_0x201237['setAttribute']('footnotesListStyle',_0x584772,_0x128174),_0x49028b=!0x0));}return _0x49028b&&_0x373a0c['_updateFootnotesCounters'](_0x201237),_0x49028b;});}['_defineFormatter'](){const {editor:_0xd66bfd}=this;_0xd66bfd['plugins']['get'](c)['setFootnoteFormatter'](_0x1daa65=>this['_formatFootnoteListValue'](_0x1daa65));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2454a2,value:_0xd98382,digits:_0x27ec80}){const _0x1462ce=_0x2454a2['getAttribute']('footnotesListStyle'),_0xda46df=_0x2454a2['getAttribute']('footnotesListStart'),_0x1c41dc=Math['floor'](_0xd98382)+(_0xda46df??0x1)-0x1;switch(_0x1462ce){case'decimal-leading-zero':return function(_0x40a395,_0xa52450){return String(_0x40a395)['padStart'](_0xa52450,'0');}(_0x1c41dc,Math['max'](0x2,_0x27ec80));case'lower-alpha':case'lower-latin':return M(_0x1c41dc,!0x1);case'upper-alpha':case'upper-latin':return M(_0x1c41dc,!0x0);case'lower-roman':return V(_0x1c41dc,!0x1);case'upper-roman':return V(_0x1c41dc,!0x0);default:return String(_0x1c41dc);}}}function C(_0x36ce77,_0x16d9ac){const _0x81b4dd=_0x16d9ac['toViewElement'](_0x36ce77);return Array['from'](_0x81b4dd['getChildren']())['find'](_0x47bc48=>_0x47bc48['is']('element','ol')&&_0x47bc48['hasClass']('footnotes-list'));}function M(_0x56be0d,_0x544a5a){let _0x1770b3='',_0x5a005b=_0x56be0d;for(;_0x5a005b>0x0;){const _0x5cdf42=(_0x5a005b-0x1)%0x1a;_0x1770b3=String['fromCharCode'](0x61+_0x5cdf42)+_0x1770b3,_0x5a005b=Math['floor']((_0x5a005b-0x1)/0x1a);}return _0x544a5a?_0x1770b3['toUpperCase']():_0x1770b3;}const N=[{'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 V(_0x18706f,_0x4b7135){let _0x1b5a36='',_0x4eefbc=_0x18706f;for(const {value:_0x40ce48,numeral:_0x5d22cc}of N)for(;_0x4eefbc>=_0x40ce48;)_0x1b5a36+=_0x5d22cc,_0x4eefbc-=_0x40ce48;return _0x4b7135?_0x1b5a36:_0x1b5a36['toLowerCase']();}class H extends _0x41d8a0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x41e1e2();['focusCycler'];constructor(_0x5cc56e,{styleButtonViews:_0x4399a7,styleGridAriaLabel:_0x3aacab}){super(_0x5cc56e),(this['focusCycler']=new _0x5b8a07({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4399a7,_0x3aacab),[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 _0x239e4d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x239e4d['element']);_0x1e9083({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x1dfb9f=_0x537e3b=>_0x537e3b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1dfb9f),this['keystrokes']['set']('arrowleft',_0x1dfb9f),this['keystrokes']['set']('arrowup',_0x1dfb9f),this['keystrokes']['set']('arrowdown',_0x1dfb9f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3adf2e,_0x5338f8){const _0x5b110c=new _0x41d8a0(this['locale']);return _0x5b110c['children']=_0x5b110c['createCollection'](),_0x5b110c['children']['addMany'](_0x3adf2e),_0x5b110c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5338f8,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5b110c['children']}),_0x5b110c['children']['delegate']('execute')['to'](this),_0x5b110c['focus']=function(){for(const _0x5a16d7 of this['children'])if(_0x5a16d7 instanceof _0x352d48&&_0x5a16d7['isOn'])return void _0x5a16d7['focus']();this['children']['first']['focus']();},_0x5b110c['focusTracker']=new et(),_0x5b110c['keystrokes']=new ot(),_0x5b110c['render'](),_0x5b110c['keystrokes']['listenTo'](_0x5b110c['element']),this['children']['add'](_0x5b110c),_0x5b110c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xa30dff=this['_createStartIndexPropertyView'](),_0x193290=[_0xa30dff],_0x490238=new tt(this['locale'],_0x193290);return _0x490238['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x490238['buttonView']['bind']('isEnabled')['toMany'](_0x193290,'isEnabled',(..._0x3efde9)=>_0x3efde9['some'](_0x54cfe5=>_0x54cfe5)),_0x490238['buttonView']['on']('change:isEnabled',(_0x4aaea4,_0x5d4cc6,_0x233930)=>{_0x233930||(_0x490238['isCollapsed']=!0x0);}),this['children']['add'](_0x490238),[_0xa30dff,_0x490238];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5b504c=new st(this['locale'],it);return _0x5b504c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5b504c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5b504c['fieldView']['on']('input',()=>{const _0x7fd9e7=_0x5b504c['fieldView']['element'],_0x4fae96=_0x7fd9e7['valueAsNumber'];Number['isNaN'](_0x4fae96)?_0x5b504c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x7fd9e7['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4fae96}):_0x5b504c['errorText']=t(_0x4fae96<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5b504c;}}class j extends _0x444ecb{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x45a521,_0x25541c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5dea11}=this,{componentFactory:_0x2cd5c4}=_0x5dea11['ui'];_0x5dea11['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2cd5c4['add']('footnotesStyle',function(_0x3286b7){return _0x28d9e4=>{const {t:t}=_0x28d9e4,_0x1eb477=_0x3286b7['commands']['get']('footnotesStyle'),_0x3cf23a=_0x3b703a(_0x28d9e4),{buttonView:_0x11f861}=_0x3cf23a;return _0x3cf23a['class']='ck-footnotes-styles-dropdown',_0x3cf23a['bind']('isEnabled')['to'](_0x1eb477,'isEnabled'),_0x11f861['set']({'label':t('Footnotes\x20style'),'icon':_0x1ed261,'tooltip':!0x0}),_0x3cf23a['once']('change:isOpen',()=>{const _0x48b469=function({editor:_0x2ca8ac,dropdownView:_0x598e8e}){const {t:t}=_0x2ca8ac['locale'],_0x4fb1a9=t('Footnotes\x20definitions\x20styles'),_0x3e4c97=function(_0x348f98){const t=_0x348f98['locale']['t'],_0x5e9fae=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4066d3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x528aa6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x36fe45},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2d1513},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x29c5b5},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xde6fb3}];return _0x5e9fae['map'](function(_0x442141){const _0x243904=_0x442141['locale'];return({label:_0x4f32de,icon:_0x111800,tooltip:_0xa7edf6,style:_0x1d865e})=>{const _0x2964d8=_0x442141['commands']['get']('footnotesStyle'),_0x5842b3=new _0x352d48(_0x243904);return _0x5842b3['set']({'label':_0x4f32de,'icon':_0x111800,'tooltip':_0xa7edf6}),_0x5842b3['bind']('isOn')['to'](_0x2964d8,'value',_0x50e495=>_0x50e495===_0x1d865e),_0x5842b3['bind']('isEnabled')['to'](_0x2964d8,'isEnabled'),_0x5842b3['on']('execute',()=>{_0x442141['execute']('footnotesStyle',{'value':_0x1d865e}),_0x442141['editing']['view']['focus']();}),_0x5842b3;};}(_0x348f98));}(_0x2ca8ac),_0x95d723=new H(_0x2ca8ac['locale'],{'styleGridAriaLabel':_0x4fb1a9,'styleButtonViews':_0x3e4c97});return _0x95d723['delegate']('execute')['to'](_0x598e8e),_0x95d723['on']('footnotesListStart',(_0x3e809a,_0x41528f)=>{_0x2ca8ac['execute']('footnotesStart',{'value':_0x41528f['startIndex']});}),_0x95d723;}({'editor':_0x3286b7,'dropdownView':_0x3cf23a});_0x3cf23a['panelView']['children']['add'](_0x48b469);}),_0x3cf23a;};}(_0x5dea11));}['afterInit'](){const {editor:_0x29be2d}=this,{t:t}=_0x29be2d['locale'],_0x48d987=_0x29be2d['plugins']['get'](_0x25541c),{defaultPositions:_0x53a4de}=_0x13092d;_0x48d987['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x29be2d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x555c5e=>{let _0x45a96a=_0x555c5e['getFirstPosition']()?.['parent'];return _0x45a96a?.['is']('$text')&&(_0x45a96a=_0x45a96a['parent']),_0x45a96a?.['is']('element')?_0x45a96a['findAncestor'](J):null;},'positions':[_0x53a4de['southArrowNorth'],_0x53a4de['southArrowNorthMiddleWest'],_0x53a4de['southArrowNorthMiddleEast'],_0x53a4de['southArrowNorthWest'],_0x53a4de['southArrowNorthEast'],_0x53a4de['northArrowSouth'],_0x53a4de['northArrowSouthMiddleWest'],_0x53a4de['northArrowSouthMiddleEast'],_0x53a4de['northArrowSouthWest'],_0x53a4de['northArrowSouthEast'],_0x53a4de['viewportStickyNorth']]});}}class lt extends _0x444ecb{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
@@ -3,8 +3,9 @@
3
3
  "Footnotes": "The label of the footnotes toolbar button, title of menu bar button and widget.",
4
4
  "Footnotes properties": "The label of the footnotes properties button placed in the footnotes definitions toolbar.",
5
5
  "Footnotes start at": "The label of the footnotes start index input field in the footnotes properties.",
6
- "Invalid footnotes start index value.": "The error text of the footnotes start index input field in the footnotes properties.",
7
- "Footnotes start index must be greater than 0.": "The error text of the footnotes start index input field in the footnotes properties.",
6
+ "Invalid footnotes start index value.": "The error text of the footnotes' start index input field in the footnotes properties.",
7
+ "Footnotes start index is too large.": "The error text of the footnotes' start index input field in the footnotes properties.",
8
+ "Footnotes start index must be greater than 0.": "The error text of the footnotes' start index input field in the footnotes properties.",
8
9
  "Footnote %0. Press ENTER to jump to footnote definition.": "The label of the footnote reference widget.",
9
10
  "Footnote content.": "The label of the footnote content widget.",
10
11
  "Footnotes definitions styles": "The label of the footnotes definitions styles in dropdown.",
@@ -23,4 +24,4 @@
23
24
  "Toggle the upper–roman footnotes style": "The label of the toggle button for upper-roman footnotes style.",
24
25
  "Toggle the lower–latin footnotes style": "The label of the toggle button for lower-latin footnotes style.",
25
26
  "Toggle the upper–latin footnotes style": "The label of the toggle button for upper-latin footnotes style."
26
- }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251027.0",
3
+ "version": "0.0.0-nightly-20251029.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251027.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251027.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251027.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251027.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251027.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251027.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251027.0",
33
- "ckeditor5": "0.0.0-nightly-20251027.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251029.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251029.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251029.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251029.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251029.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251029.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251029.0",
33
+ "ckeditor5": "0.0.0-nightly-20251029.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15eb57=_0x44a4;(function(_0x1a10a8,_0x29bc3d){const _0x1feeb4=_0x44a4,_0x592c8b=_0x1a10a8();while(!![]){try{const _0x36bf52=-parseInt(_0x1feeb4(0xea))/0x1+parseInt(_0x1feeb4(0x104))/0x2*(-parseInt(_0x1feeb4(0x102))/0x3)+parseInt(_0x1feeb4(0xfa))/0x4+parseInt(_0x1feeb4(0xf0))/0x5+-parseInt(_0x1feeb4(0xef))/0x6*(parseInt(_0x1feeb4(0xfe))/0x7)+parseInt(_0x1feeb4(0xe6))/0x8+parseInt(_0x1feeb4(0xf1))/0x9;if(_0x36bf52===_0x29bc3d)break;else _0x592c8b['push'](_0x592c8b['shift']());}catch(_0xc5725b){_0x592c8b['push'](_0x592c8b['shift']());}}}(_0x483e,0x94bdb));import{logWarning as _0x3ad000,uid as _0x59a302}from'ckeditor5/src/utils.js';function _0x483e(){const _0x4b82ca=['get','length','1097459RtaPqv','execute','isBlock','getItems','_moveSelectionToFootnoteDefinition','916428GSnaOg','5257350phPlGV','4761774TgddVo','footnoteRef','refresh','document','createElement','_getPositionToInsertFootnote','selection','change','isEnabled','2367236FRkhcP','FootnotesEditing','editor','checkChild','49PmXAxl','test','model','plugins','3XFVZrh','footnoteId','1158284nQHLoA','insert-footnote-command-executed-with-invalid-id','getFirstRange','isObject','string','insertObject','9461160OjumyN','end'];_0x483e=function(){return _0x4b82ca;};return _0x483e();}function _0x44a4(_0x581f11,_0xfd7704){const _0x483e3e=_0x483e();return _0x44a4=function(_0x44a441,_0x155e33){_0x44a441=_0x44a441-0xe1;let _0x374ec8=_0x483e3e[_0x44a441];return _0x374ec8;},_0x44a4(_0x581f11,_0xfd7704);}import{Command as _0x6815dd}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x6815dd{[_0x15eb57(0xf3)](){const _0x57c2d6=_0x15eb57,_0x595d5a=this[_0x57c2d6(0xfc)][_0x57c2d6(0x100)][_0x57c2d6(0xf4)][_0x57c2d6(0xf7)],_0x5e89b9=this[_0x57c2d6(0xf6)](_0x595d5a);this[_0x57c2d6(0xf9)]=!!_0x5e89b9;}[_0x15eb57(0xeb)](_0x22e7d0){const _0x5f0127=_0x15eb57,{editor:_0x3701fe}=this,{model:_0x399363}=_0x3701fe,{selection:_0x2360f5}=_0x399363[_0x5f0127(0xf4)],_0x45ea93=this[_0x5f0127(0xf6)](_0x2360f5);if(!_0x45ea93)return;const _0x5dd551=_0x3701fe[_0x5f0127(0x101)][_0x5f0127(0xe8)](_0x5f0127(0xfb)),_0x2d48c7=_0x22e7d0?.[_0x5f0127(0x103)]??_0x59a302();!function(_0x729e42){const _0x24d224=_0x5f0127;return _0x24d224(0xe4)==typeof _0x729e42&&_0x729e42[_0x24d224(0xe9)]>0x0&&!/\s/[_0x24d224(0xff)](_0x729e42)&&!/^\d/[_0x24d224(0xff)](_0x729e42);}(_0x2d48c7)?_0x3ad000(_0x5f0127(0xe1)):(_0x399363[_0x5f0127(0xf8)](_0x505bbd=>{const _0x474781=_0x5f0127,_0x1283e9=_0x505bbd[_0x474781(0xf5)](_0x474781(0xf2),{'footnoteId':_0x2d48c7});_0x399363[_0x474781(0xe5)](_0x1283e9,_0x45ea93,null);}),_0x5dd551[_0x5f0127(0xee)](_0x2d48c7));}[_0x15eb57(0xf6)](_0x565e0f){const _0x197483=_0x15eb57,{model:_0x4f49a7}=this[_0x197483(0xfc)],{schema:_0x4e48b7}=_0x4f49a7,_0x482ea4=_0x565e0f[_0x197483(0xe2)]();for(const _0x1a8c2e of _0x482ea4[_0x197483(0xed)]())if(_0x4e48b7[_0x197483(0xec)](_0x1a8c2e)||_0x4e48b7[_0x197483(0xe3)](_0x1a8c2e))return null;const _0x3140b6=_0x482ea4[_0x197483(0xe7)];return _0x4e48b7[_0x197483(0xfd)](_0x3140b6,_0x197483(0xf2))?_0x3140b6:null;}}
23
+ const _0x5a447f=_0x23a8;function _0x23a8(_0x131309,_0xc3906b){const _0x3e9024=_0x3e90();return _0x23a8=function(_0x23a8cb,_0x1b8052){_0x23a8cb=_0x23a8cb-0xb3;let _0x527b13=_0x3e9024[_0x23a8cb];return _0x527b13;},_0x23a8(_0x131309,_0xc3906b);}(function(_0x2d068a,_0x1d5c89){const _0xca421e=_0x23a8,_0x17bda3=_0x2d068a();while(!![]){try{const _0x212e84=parseInt(_0xca421e(0xca))/0x1*(-parseInt(_0xca421e(0xd7))/0x2)+-parseInt(_0xca421e(0xb8))/0x3*(-parseInt(_0xca421e(0xc2))/0x4)+parseInt(_0xca421e(0xc4))/0x5+-parseInt(_0xca421e(0xc6))/0x6+-parseInt(_0xca421e(0xc9))/0x7+-parseInt(_0xca421e(0xb7))/0x8*(-parseInt(_0xca421e(0xb5))/0x9)+parseInt(_0xca421e(0xc7))/0xa;if(_0x212e84===_0x1d5c89)break;else _0x17bda3['push'](_0x17bda3['shift']());}catch(_0x28ae37){_0x17bda3['push'](_0x17bda3['shift']());}}}(_0x3e90,0x61fff));import{logWarning as _0x10f41c,uid as _0x143fdc}from'ckeditor5/src/utils.js';import{Command as _0x56c289}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x56c289{[_0x5a447f(0xd4)](){const _0x43bc6c=_0x5a447f,_0x36d79e=this[_0x43bc6c(0xc3)][_0x43bc6c(0xbd)][_0x43bc6c(0xd3)][_0x43bc6c(0xbc)],_0x58bb83=this[_0x43bc6c(0xc1)](_0x36d79e);this[_0x43bc6c(0xb4)]=!!_0x58bb83;}[_0x5a447f(0xd5)](_0x5094d5){const _0x2bf7e0=_0x5a447f,{editor:_0x38cb93}=this,{model:_0xb6ced7}=_0x38cb93,{selection:_0x53e66a}=_0xb6ced7[_0x2bf7e0(0xd3)],_0x4de188=this[_0x2bf7e0(0xc1)](_0x53e66a);if(!_0x4de188)return;const _0x573b90=_0x38cb93[_0x2bf7e0(0xb9)][_0x2bf7e0(0xb6)](_0x2bf7e0(0xc8)),_0x2a9c7f=_0x5094d5?.[_0x2bf7e0(0xbb)]??_0x143fdc();!function(_0x12c08f){const _0x58cadf=_0x2bf7e0;return _0x58cadf(0xc5)==typeof _0x12c08f&&_0x12c08f[_0x58cadf(0xbe)]>0x0&&!/\s/[_0x58cadf(0xce)](_0x12c08f)&&!/^\d/[_0x58cadf(0xce)](_0x12c08f);}(_0x2a9c7f)?_0x10f41c(_0x2bf7e0(0xc0)):(_0xb6ced7[_0x2bf7e0(0xcd)](_0x23baba=>{const _0x342923=_0x2bf7e0,_0x438fdd=_0x23baba[_0x342923(0xbf)](_0x342923(0xd1),{'footnoteId':_0x2a9c7f});_0xb6ced7[_0x342923(0xb3)](_0x438fdd,_0x4de188,null);}),_0x573b90[_0x2bf7e0(0xd6)](_0x2a9c7f));}[_0x5a447f(0xc1)](_0x7f5829){const _0x35bef5=_0x5a447f,{model:_0xec838e}=this[_0x35bef5(0xc3)],{schema:_0x1c555c}=_0xec838e,_0x250db1=_0x7f5829[_0x35bef5(0xd2)]();for(const _0x8ffa50 of _0x250db1[_0x35bef5(0xba)]())if(_0x1c555c[_0x35bef5(0xcb)](_0x8ffa50)||_0x1c555c[_0x35bef5(0xcc)](_0x8ffa50))return null;const _0x427582=_0x250db1[_0x35bef5(0xd0)];return _0x1c555c[_0x35bef5(0xcf)](_0x427582,_0x35bef5(0xd1))?_0x427582:null;}}function _0x3e90(){const _0x2c79c4=['insertObject','isEnabled','7127451wftWRA','get','8bLYgyp','405327QfgQCH','plugins','getItems','footnoteId','selection','model','length','createElement','insert-footnote-command-executed-with-invalid-id','_getPositionToInsertFootnote','8oGtnpZ','editor','1015305LPtVJu','string','89766WrQwYv','170000bMoioc','FootnotesEditing','719649UJfRqM','1wglhbJ','isBlock','isObject','change','test','checkChild','end','footnoteRef','getFirstRange','document','refresh','execute','_moveSelectionToFootnoteDefinition','1526086FiNAOs'];_0x3e90=function(){return _0x2c79c4;};return _0x3e90();}
package/src/footnotes.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x33e75f=_0x251f;(function(_0x172288,_0x2412ea){var _0x46cc22=_0x251f,_0x2ed6b9=_0x172288();while(!![]){try{var _0x3fac61=-parseInt(_0x46cc22(0x168))/0x1+-parseInt(_0x46cc22(0x15b))/0x2*(parseInt(_0x46cc22(0x166))/0x3)+parseInt(_0x46cc22(0x15c))/0x4*(-parseInt(_0x46cc22(0x15d))/0x5)+parseInt(_0x46cc22(0x161))/0x6+-parseInt(_0x46cc22(0x165))/0x7+-parseInt(_0x46cc22(0x162))/0x8+parseInt(_0x46cc22(0x15e))/0x9;if(_0x3fac61===_0x2412ea)break;else _0x2ed6b9['push'](_0x2ed6b9['shift']());}catch(_0x22dd36){_0x2ed6b9['push'](_0x2ed6b9['shift']());}}}(_0x4310,0x56da2));function _0x251f(_0x285bff,_0x3337f8){var _0x43100a=_0x4310();return _0x251f=function(_0x251ffd,_0x27451b){_0x251ffd=_0x251ffd-0x15b;var _0x471c26=_0x43100a[_0x251ffd];return _0x471c26;},_0x251f(_0x285bff,_0x3337f8);}import{Plugin as _0x18ffcc}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x506f41}from'./footnotesediting.js';import{FootnotesClipboard as _0x5011e6}from'./footnotesclipboard.js';import{FootnotesUI as _0x5aeb78}from'./footnotesui.js';export class Footnotes extends _0x18ffcc{static get[_0x33e75f(0x164)](){var _0x41c838=_0x33e75f;return _0x41c838(0x167);}static get[_0x33e75f(0x163)](){return[_0x506f41,_0x5011e6,_0x5aeb78];}static get[_0x33e75f(0x160)](){return!0x0;}static get[_0x33e75f(0x15f)](){return!0x0;}}function _0x4310(){var _0x42171a=['4tGcFpd','2814390QVkIYj','22996035AmhBut','isPremiumPlugin','isOfficialPlugin','423306kAusXJ','2579704IEufpj','requires','pluginName','3621443VSMUph','6gJfrAm','Footnotes','300106zAskQU','567124HAGenM'];_0x4310=function(){return _0x42171a;};return _0x4310();}
23
+ function _0x2d0c(_0xbd15cb,_0x45f519){var _0x5b6417=_0x5b64();return _0x2d0c=function(_0x2d0ce3,_0x3e584b){_0x2d0ce3=_0x2d0ce3-0x109;var _0xeb1340=_0x5b6417[_0x2d0ce3];return _0xeb1340;},_0x2d0c(_0xbd15cb,_0x45f519);}function _0x5b64(){var _0x5024a8=['4223272rUjVtL','7ZnXpTS','160746RKKvLX','requires','isPremiumPlugin','5xcFLcm','Footnotes','793408LtgLYg','2228148EGqeJt','9745zvRjrs','isOfficialPlugin','115924CcpOwP','305658KmIfHW','pluginName'];_0x5b64=function(){return _0x5024a8;};return _0x5b64();}var _0x390f71=_0x2d0c;(function(_0x3b23fa,_0x33f2da){var _0x207089=_0x2d0c,_0xeffac9=_0x3b23fa();while(!![]){try{var _0xff4e06=-parseInt(_0x207089(0x10e))/0x1+-parseInt(_0x207089(0x10c))/0x2+-parseInt(_0x207089(0x111))/0x3+-parseInt(_0x207089(0x110))/0x4*(parseInt(_0x207089(0x10a))/0x5)+parseInt(_0x207089(0x115))/0x6+-parseInt(_0x207089(0x114))/0x7*(-parseInt(_0x207089(0x113))/0x8)+parseInt(_0x207089(0x10d))/0x9;if(_0xff4e06===_0x33f2da)break;else _0xeffac9['push'](_0xeffac9['shift']());}catch(_0x19a0c8){_0xeffac9['push'](_0xeffac9['shift']());}}}(_0x5b64,0x40afc));import{Plugin as _0x35a0b1}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x19a8e1}from'./footnotesediting.js';import{FootnotesClipboard as _0x3d5430}from'./footnotesclipboard.js';import{FootnotesUI as _0x4ab0da}from'./footnotesui.js';export class Footnotes extends _0x35a0b1{static get[_0x390f71(0x112)](){var _0x21f4b2=_0x390f71;return _0x21f4b2(0x10b);}static get[_0x390f71(0x116)](){return[_0x19a8e1,_0x3d5430,_0x4ab0da];}static get[_0x390f71(0x10f)](){return!0x0;}static get[_0x390f71(0x109)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4ed8(){const _0x2c8553=['insert','pluginName','parse','getFootnotesDefinitionsObjectElement','data','29205539pitjsi','_insertEmptyFootnotesDefinitionsContainer','toModel','toData','createRangeIn','requires','47838BoNFWK','dataTransfer','getFirstRange','drop','sourceEditorId','element','create','footnoteDefinition','2884021Wjxbgy','2327144amMNCR','append','getFootnotes','_handlePasteFootnotesDefinitions','toView','add','end','method','find','1tnizwg','get','document','422892okTCOx','editing','footnoteId','isOfficialPlugin','8KDxfNc','footnotesDefinitions','getData','application/ckeditor5-footnotes','70oFrLiM','setAttribute','createElement','getAttribute','_defineClipboardIntegration','clipboardInput','isPremiumPlugin','reduce','getFootnote','listenTo','1456695FxdILa','root','stringify','init','_handleCopyFootnotesDefinitions','from','definition','content','htmlProcessor','footnoteRef','setData','change','290zLrAaq','push','359004KJMEHZ','editor','outputTransformation','contentInsertion','FootnotesClipboard','entries','remove','length','selection'];_0x4ed8=function(){return _0x2c8553;};return _0x4ed8();}function _0x3552(_0x429c81,_0x4e3c8a){const _0x4ed814=_0x4ed8();return _0x3552=function(_0x35524b,_0x3428cf){_0x35524b=_0x35524b-0x156;let _0x2d741d=_0x4ed814[_0x35524b];return _0x2d741d;},_0x3552(_0x429c81,_0x4e3c8a);}const _0x686449=_0x3552;(function(_0x226d5d,_0x11bdde){const _0x210465=_0x3552,_0x256566=_0x226d5d();while(!![]){try{const _0x21a015=-parseInt(_0x210465(0x17a))/0x1*(parseInt(_0x210465(0x171))/0x2)+parseInt(_0x210465(0x19d))/0x3+parseInt(_0x210465(0x17d))/0x4+parseInt(_0x210465(0x19b))/0x5*(parseInt(_0x210465(0x168))/0x6)+-parseInt(_0x210465(0x170))/0x7*(parseInt(_0x210465(0x181))/0x8)+parseInt(_0x210465(0x18f))/0x9*(-parseInt(_0x210465(0x185))/0xa)+parseInt(_0x210465(0x162))/0xb;if(_0x21a015===_0x11bdde)break;else _0x256566['push'](_0x256566['shift']());}catch(_0x555c83){_0x256566['push'](_0x256566['shift']());}}}(_0x4ed8,0x9adca));import{Plugin as _0x21d82e}from'ckeditor5/src/core.js';import{uid as _0x14e86f}from'ckeditor5/src/utils.js';import{ClipboardPipeline as _0x320631}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x3cf082}from'./footnotesediting.js';import{FootnotesTracker as _0x3c3504}from'./footnotestracker.js';export class FootnotesClipboard extends _0x21d82e{static get[_0x686449(0x15e)](){const _0x4da7bc=_0x686449;return _0x4da7bc(0x158);}static get[_0x686449(0x167)](){return[_0x3cf082,_0x320631];}static get[_0x686449(0x180)](){return!0x0;}static get[_0x686449(0x18b)](){return!0x0;}[_0x686449(0x192)](){const _0x23f889=_0x686449;this[_0x23f889(0x189)]();}[_0x686449(0x189)](){const _0xba070e=_0x686449;this[_0xba070e(0x193)](),this[_0xba070e(0x174)]();}[_0x686449(0x193)](){const _0x5cdef7=_0x686449,{editor:_0x348d47}=this,{plugins:_0x3e9f2f,model:_0x1dc0b}=_0x348d47,_0x91cf56=_0x3e9f2f[_0x5cdef7(0x17b)](_0x320631),_0x3779c5=_0x3e9f2f[_0x5cdef7(0x17b)](_0x3c3504);this[_0x5cdef7(0x18e)](_0x91cf56,_0x5cdef7(0x156),(_0x73b3ed,_0x143b29)=>{const _0x25e0bf=_0x5cdef7,_0x41196a=function(_0x48c735,_0x4220e1){const _0x43a927=_0x3552,_0x5b6353=new Set();for(const {item:_0x792cf3}of _0x48c735[_0x43a927(0x166)](_0x4220e1))_0x792cf3['is'](_0x43a927(0x16d),_0x43a927(0x198))&&_0x5b6353[_0x43a927(0x176)](_0x792cf3[_0x43a927(0x188)](_0x43a927(0x17f)));return Array[_0x43a927(0x194)](_0x5b6353);}(_0x1dc0b,_0x143b29[_0x25e0bf(0x196)]);if(!_0x41196a[_0x25e0bf(0x15b)])return;const _0x2ee900=_0x3779c5[_0x25e0bf(0x173)](),_0x50d09f=_0x41196a[_0x25e0bf(0x18c)]((_0x521762,_0x12f1f0)=>{const _0x417521=_0x25e0bf,_0x5488a7=_0x2ee900[_0x417521(0x179)](_0x24c346=>_0x24c346['id']===_0x12f1f0);if(_0x5488a7){const _0x546cee=_0x348d47[_0x417521(0x161)][_0x417521(0x175)](_0x5488a7[_0x417521(0x195)],{'isClipboardPipeline':!0x0}),_0x357a48=_0x348d47[_0x417521(0x161)][_0x417521(0x197)][_0x417521(0x165)](_0x546cee);_0x521762[_0x5488a7['id']]=_0x357a48;}return _0x521762;},Object[_0x25e0bf(0x16e)](null));_0x143b29[_0x25e0bf(0x169)][_0x25e0bf(0x199)](_0x25e0bf(0x184),JSON[_0x25e0bf(0x191)](_0x50d09f));});}[_0x686449(0x174)](){const _0x496508=_0x686449,{editor:_0x4395c5}=this,{model:_0x18238f,plugins:_0x469353}=_0x4395c5,{view:_0x261855}=_0x4395c5[_0x496508(0x17e)],_0x30b720=_0x469353[_0x496508(0x17b)](_0x320631),_0x298dc0=_0x469353[_0x496508(0x17b)](_0x3c3504);let _0x3b685b=null;this[_0x496508(0x18e)](_0x261855[_0x496508(0x17c)],_0x496508(0x18a),(_0x494eec,_0x22390b)=>{const _0x5824e6=_0x496508,_0x44f370=_0x22390b[_0x5824e6(0x169)][_0x5824e6(0x183)](_0x5824e6(0x184));_0x3b685b=_0x44f370?JSON[_0x5824e6(0x15f)](_0x44f370):null;}),this[_0x496508(0x18e)](_0x30b720,_0x496508(0x157),(_0x2ca2af,_0x4c21f7)=>{const _0x1b01da=_0x496508;if(!_0x3b685b)return;const _0x1bb5f2=_0x4c21f7[_0x1b01da(0x16c)]===this[_0x1b01da(0x19e)]['id'];_0x1bb5f2&&_0x1b01da(0x16b)===_0x4c21f7[_0x1b01da(0x178)]||_0x18238f[_0x1b01da(0x19a)](_0x18162b=>{const _0x2c7878=_0x1b01da;!function(_0x4155e0,_0x3633ca){const _0xa39339=_0x3552,_0x22f8b5=[];for(const {item:_0x43ac6a}of _0x4155e0[_0xa39339(0x166)](_0x3633ca))_0x43ac6a['is'](_0xa39339(0x16d),_0xa39339(0x182))&&_0x22f8b5[_0xa39339(0x19c)](_0x43ac6a);for(const _0x17d299 of _0x22f8b5)_0x4155e0[_0xa39339(0x15a)](_0x17d299);}(_0x18162b,_0x4c21f7[_0x2c7878(0x196)]);let _0xe6e172=_0x298dc0[_0x2c7878(0x160)]();if(!_0xe6e172){const _0x14e18c=_0x18238f[_0x2c7878(0x17c)][_0x2c7878(0x15c)][_0x2c7878(0x16a)]()[_0x2c7878(0x190)];_0xe6e172=_0x298dc0[_0x2c7878(0x163)](_0x18162b,_0x14e18c);}const _0x25eec7=function(_0x294278,_0xb49361,_0x4513f7){const _0x51597e=_0x2c7878,_0x3ff46b=Object[_0x51597e(0x16e)](null);for(const {item:_0x18d124}of _0x294278[_0x51597e(0x166)](_0xb49361))if(_0x18d124['is'](_0x51597e(0x16d),_0x51597e(0x198))){const _0x32b21d=_0x18d124[_0x51597e(0x188)](_0x51597e(0x17f));if(!_0x4513f7(_0x32b21d))continue;_0x3ff46b[_0x32b21d]||(_0x3ff46b[_0x32b21d]=_0x14e86f()),_0x294278[_0x51597e(0x186)](_0x51597e(0x17f),_0x3ff46b[_0x32b21d],_0x18d124);}return _0x3ff46b;}(_0x18162b,_0x4c21f7[_0x2c7878(0x196)],_0x14ba3b=>!_0x1bb5f2||null!==_0x298dc0[_0x2c7878(0x18d)](_0x14ba3b));for(const [_0x500cfe,_0x1c10b3]of Object[_0x2c7878(0x159)](_0x3b685b)){const _0x2626b3=_0x25eec7[_0x500cfe]||_0x500cfe,_0x5a2015=_0x18162b[_0x2c7878(0x187)](_0x2c7878(0x16f),{'footnoteId':_0x2626b3}),_0x2461b2=_0x4395c5[_0x2c7878(0x161)][_0x2c7878(0x197)][_0x2c7878(0x175)](_0x1c10b3),_0x3dc2bd=_0x4395c5[_0x2c7878(0x161)][_0x2c7878(0x164)](_0x2461b2,_0x5a2015);_0x18162b[_0x2c7878(0x172)](_0x3dc2bd,_0x5a2015),_0x18162b[_0x2c7878(0x15d)](_0x5a2015,_0xe6e172,_0x2c7878(0x177));}_0x3b685b=null;});});}}
23
+ const _0x414002=_0x6fb0;function _0x6fb0(_0x1d110f,_0x747e49){const _0x3bb4a1=_0x3bb4();return _0x6fb0=function(_0x6fb095,_0x17cbf2){_0x6fb095=_0x6fb095-0xf9;let _0x43218b=_0x3bb4a1[_0x6fb095];return _0x43218b;},_0x6fb0(_0x1d110f,_0x747e49);}(function(_0x53277d,_0x15d3c3){const _0x3bd4f1=_0x6fb0,_0x5e2d07=_0x53277d();while(!![]){try{const _0x34c3ac=-parseInt(_0x3bd4f1(0x122))/0x1+parseInt(_0x3bd4f1(0x12a))/0x2*(parseInt(_0x3bd4f1(0x10b))/0x3)+parseInt(_0x3bd4f1(0x132))/0x4+parseInt(_0x3bd4f1(0xff))/0x5*(parseInt(_0x3bd4f1(0x11c))/0x6)+parseInt(_0x3bd4f1(0x10a))/0x7*(-parseInt(_0x3bd4f1(0x111))/0x8)+-parseInt(_0x3bd4f1(0x124))/0x9+parseInt(_0x3bd4f1(0x108))/0xa*(parseInt(_0x3bd4f1(0x120))/0xb);if(_0x34c3ac===_0x15d3c3)break;else _0x5e2d07['push'](_0x5e2d07['shift']());}catch(_0x300ddf){_0x5e2d07['push'](_0x5e2d07['shift']());}}}(_0x3bb4,0x37ece));import{Plugin as _0x11f8a1}from'ckeditor5/src/core.js';import{uid as _0x3b3618}from'ckeditor5/src/utils.js';function _0x3bb4(){const _0x3d730b=['_handleCopyFootnotesDefinitions','add','contentInsertion','clipboardInput','root','140vWaMQX','parse','2207303gSgdxz','517317cVYgpz','_insertEmptyFootnotesDefinitionsContainer','toModel','setAttribute','getFirstRange','sourceEditorId','8RsMrfk','getFootnotes','getData','toData','from','remove','editing','outputTransformation','append','footnotesDefinitions','selection','78wYddrg','isOfficialPlugin','isPremiumPlugin','init','316030QGFhbS','createElement','349281nVkJgu','entries','3447540bEvREZ','content','toView','length','document','create','2VMtrtV','application/ckeditor5-footnotes','listenTo','dataTransfer','change','drop','setData','htmlProcessor','1022592isBupt','push','element','stringify','requires','footnoteId','end','method','pluginName','editor','_defineClipboardIntegration','definition','_handlePasteFootnotesDefinitions','FootnotesClipboard','getFootnotesDefinitionsObjectElement','getAttribute','data','insert','createRangeIn','reduce','footnoteDefinition','find','171705xeJJkD','footnoteRef','getFootnote','get'];_0x3bb4=function(){return _0x3d730b;};return _0x3bb4();}import{ClipboardPipeline as _0x4735ff}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x211d45}from'./footnotesediting.js';import{FootnotesTracker as _0x52d9b3}from'./footnotestracker.js';export class FootnotesClipboard extends _0x11f8a1{static get[_0x414002(0x13a)](){const _0x4ec244=_0x414002;return _0x4ec244(0x13f);}static get[_0x414002(0x136)](){return[_0x211d45,_0x4735ff];}static get[_0x414002(0x11d)](){return!0x0;}static get[_0x414002(0x11e)](){return!0x0;}[_0x414002(0x11f)](){const _0x3a6537=_0x414002;this[_0x3a6537(0x13c)]();}[_0x414002(0x13c)](){const _0x5439aa=_0x414002;this[_0x5439aa(0x103)](),this[_0x5439aa(0x13e)]();}[_0x414002(0x103)](){const _0x56ad77=_0x414002,{editor:_0x278b52}=this,{plugins:_0x13ab73,model:_0x5a0989}=_0x278b52,_0xf21400=_0x13ab73[_0x56ad77(0x102)](_0x4735ff),_0x5c7ad4=_0x13ab73[_0x56ad77(0x102)](_0x52d9b3);this[_0x56ad77(0x12c)](_0xf21400,_0x56ad77(0x118),(_0x55a9ff,_0x28bfd4)=>{const _0x1e5887=_0x56ad77,_0x447694=function(_0x3d2492,_0x3a6da6){const _0x29b948=_0x6fb0,_0x22f0fb=new Set();for(const {item:_0x44ef3d}of _0x3d2492[_0x29b948(0xfb)](_0x3a6da6))_0x44ef3d['is'](_0x29b948(0x134),_0x29b948(0x100))&&_0x22f0fb[_0x29b948(0x104)](_0x44ef3d[_0x29b948(0x141)](_0x29b948(0x137)));return Array[_0x29b948(0x115)](_0x22f0fb);}(_0x5a0989,_0x28bfd4[_0x1e5887(0x125)]);if(!_0x447694[_0x1e5887(0x127)])return;const _0x57fa8f=_0x5c7ad4[_0x1e5887(0x112)](),_0x2bf465=_0x447694[_0x1e5887(0xfc)]((_0x384b5b,_0x2f3798)=>{const _0x11d5cd=_0x1e5887,_0x13b901=_0x57fa8f[_0x11d5cd(0xfe)](_0x24f768=>_0x24f768['id']===_0x2f3798);if(_0x13b901){const _0x18293b=_0x278b52[_0x11d5cd(0xf9)][_0x11d5cd(0x126)](_0x13b901[_0x11d5cd(0x13d)],{'isClipboardPipeline':!0x0}),_0x376550=_0x278b52[_0x11d5cd(0xf9)][_0x11d5cd(0x131)][_0x11d5cd(0x114)](_0x18293b);_0x384b5b[_0x13b901['id']]=_0x376550;}return _0x384b5b;},Object[_0x1e5887(0x129)](null));_0x28bfd4[_0x1e5887(0x12d)][_0x1e5887(0x130)](_0x1e5887(0x12b),JSON[_0x1e5887(0x135)](_0x2bf465));});}[_0x414002(0x13e)](){const _0x5d3945=_0x414002,{editor:_0x4ed1bc}=this,{model:_0x274f48,plugins:_0x5e340b}=_0x4ed1bc,{view:_0x55bce0}=_0x4ed1bc[_0x5d3945(0x117)],_0x24a9be=_0x5e340b[_0x5d3945(0x102)](_0x4735ff),_0xc78a59=_0x5e340b[_0x5d3945(0x102)](_0x52d9b3);let _0x2c4cdd=null;this[_0x5d3945(0x12c)](_0x55bce0[_0x5d3945(0x128)],_0x5d3945(0x106),(_0x3a54e0,_0x4b06d5)=>{const _0x4aaf4b=_0x5d3945,_0x13e72b=_0x4b06d5[_0x4aaf4b(0x12d)][_0x4aaf4b(0x113)](_0x4aaf4b(0x12b));_0x2c4cdd=_0x13e72b?JSON[_0x4aaf4b(0x109)](_0x13e72b):null;}),this[_0x5d3945(0x12c)](_0x24a9be,_0x5d3945(0x105),(_0x385852,_0x185a7e)=>{const _0x569bc9=_0x5d3945;if(!_0x2c4cdd)return;const _0x3dc7b5=_0x185a7e[_0x569bc9(0x110)]===this[_0x569bc9(0x13b)]['id'];_0x3dc7b5&&_0x569bc9(0x12f)===_0x185a7e[_0x569bc9(0x139)]||_0x274f48[_0x569bc9(0x12e)](_0x3b1260=>{const _0x5c5048=_0x569bc9;!function(_0x51c8ed,_0x1839e9){const _0x449f03=_0x6fb0,_0x4d5d80=[];for(const {item:_0x20737e}of _0x51c8ed[_0x449f03(0xfb)](_0x1839e9))_0x20737e['is'](_0x449f03(0x134),_0x449f03(0x11a))&&_0x4d5d80[_0x449f03(0x133)](_0x20737e);for(const _0x32fe39 of _0x4d5d80)_0x51c8ed[_0x449f03(0x116)](_0x32fe39);}(_0x3b1260,_0x185a7e[_0x5c5048(0x125)]);let _0xf28df8=_0xc78a59[_0x5c5048(0x140)]();if(!_0xf28df8){const _0x46b8a3=_0x274f48[_0x5c5048(0x128)][_0x5c5048(0x11b)][_0x5c5048(0x10f)]()[_0x5c5048(0x107)];_0xf28df8=_0xc78a59[_0x5c5048(0x10c)](_0x3b1260,_0x46b8a3);}const _0x49c369=function(_0x5b54d1,_0x4b6a22,_0x38afb3){const _0x4266db=_0x5c5048,_0x1a5aac=Object[_0x4266db(0x129)](null);for(const {item:_0x126ccc}of _0x5b54d1[_0x4266db(0xfb)](_0x4b6a22))if(_0x126ccc['is'](_0x4266db(0x134),_0x4266db(0x100))){const _0x25b703=_0x126ccc[_0x4266db(0x141)](_0x4266db(0x137));if(!_0x38afb3(_0x25b703))continue;_0x1a5aac[_0x25b703]||(_0x1a5aac[_0x25b703]=_0x3b3618()),_0x5b54d1[_0x4266db(0x10e)](_0x4266db(0x137),_0x1a5aac[_0x25b703],_0x126ccc);}return _0x1a5aac;}(_0x3b1260,_0x185a7e[_0x5c5048(0x125)],_0x1c7521=>!_0x3dc7b5||null!==_0xc78a59[_0x5c5048(0x101)](_0x1c7521));for(const [_0x4ff3da,_0x4fabd0]of Object[_0x5c5048(0x123)](_0x2c4cdd)){const _0x3384f2=_0x49c369[_0x4ff3da]||_0x4ff3da,_0x3e9578=_0x3b1260[_0x5c5048(0x121)](_0x5c5048(0xfd),{'footnoteId':_0x3384f2}),_0x487cf1=_0x4ed1bc[_0x5c5048(0xf9)][_0x5c5048(0x131)][_0x5c5048(0x126)](_0x4fabd0),_0x6739bc=_0x4ed1bc[_0x5c5048(0xf9)][_0x5c5048(0x10d)](_0x487cf1,_0x3e9578);_0x3b1260[_0x5c5048(0x119)](_0x6739bc,_0x3e9578),_0x3b1260[_0x5c5048(0xfa)](_0x3e9578,_0xf28df8,_0x5c5048(0x138));}_0x2c4cdd=null;});});}}