@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251102.0 → 0.0.0-nightly-20251104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x455464,Command as _0x55ead5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1a1d9c,isWidget as _0x1899ef,toWidgetEditable as _0xad70b7,WidgetToolbarRepository as _0x4ed730}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x193af1,logWarning as _0x506bf5,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1e3809,ClickObserver as _0x4bd884}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5e02c7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2f467e,ButtonView as _0x3fc837,View as _0x16ec18,ViewCollection as _0x24d7eb,FocusCycler as _0x3fac62,addKeyboardHandlingForGrid as _0x30afc3,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x58e7ed,BalloonPanelView as _0x4f2f53,createDropdown as _0x25312a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x28343b,IconListStyleDecimal as _0x2fe3d9,IconListStyleDecimalLeadingZero as _0xfa77b3,IconListStyleLowerRoman as _0x56fe8c,IconListStyleUpperRoman as _0x2c3adb,IconListStyleLowerLatin as _0x20b999,IconListStyleUpperLatin as _0x4c7353}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5dd4a4,_0x3e2910){this['_model']=_0x5dd4a4,this['_elementName']=_0x3e2910['elementName'],this['_getElementKey']=_0x3e2910['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1db99d){const _0x88cd2=new Set(),_0xdef548=new Map();for(const _0x315e9a of _0x1db99d){if('insert'===_0x315e9a['type']&&'$text'!==_0x315e9a['name']&&_0x315e9a['position']['nodeAfter']){const _0x382697=this['_model']['createRangeOn'](_0x315e9a['position']['nodeAfter']);for(const _0x4f55dd of _0x382697['getItems']()){if(!_0x4f55dd['is']('element',this['_elementName']))continue;const _0x444606=this['_getElementKey'](_0x4f55dd);_0xdef548['has'](_0x444606)||_0xdef548['set'](_0x444606,[]),_0xdef548['get'](_0x444606)['push'](_0x4f55dd);}}if('remove'===_0x315e9a['type']&&_0x315e9a['name']===this['_elementName']){const _0x4d2b7b=this['_getElementKey']({'getAttribute':_0xd6a87b=>_0x315e9a['attributes']['get'](_0xd6a87b)});_0x88cd2['add'](_0x4d2b7b);}}for(const [_0x3e8905,_0x5a9055]of this['_trackedElements'])'$graveyard'===_0x5a9055['root']['rootName']&&_0x88cd2['add'](_0x3e8905);for(const _0x9cf9a7 of _0x88cd2)this['_trackedElements']['delete'](_0x9cf9a7);for(const [_0x37ba7d,_0x17f5f6]of _0xdef548)this['_trackedElements']['set'](_0x37ba7d,_0x17f5f6[_0x17f5f6['length']-0x1]);const _0x57f870=new Set();for(const [_0x23b706,_0x4e0109]of _0xdef548)_0x88cd2['has'](_0x23b706)&&(_0x57f870['add'](_0x4e0109[0x0]),_0x4e0109['length']>0x1?_0xdef548['set'](_0x23b706,_0x4e0109['slice'](0x1)):_0xdef548['delete'](_0x23b706),_0x88cd2['delete'](_0x23b706));return{'removed':Array['from'](_0x88cd2),'inserted':Array['from'](_0xdef548['values']())['flat'](),'moved':Array['from'](_0x57f870)};}}class c extends _0x455464{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17b1e5){super(_0x17b1e5),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5767a5=>_0x5767a5['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x32ea99=>_0x32ea99['getAttribute']('footnoteId')});}['init'](){const {editor:_0x436c20}=this,{model:_0x33ef80,data:_0x2c789f}=_0x436c20;_0x33ef80['document']['registerPostFixer'](_0x583b63=>{const _0x5be11a=_0x33ef80['document']['differ']['getChanges']();let _0x15fad8=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_handleFootnoteReferencesChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x583b63)&&(_0x15fad8=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x583b63)&&(_0x15fad8=!0x0),this['_sortFootnoteDefinitions'](_0x583b63)&&(_0x15fad8=!0x0),_0x15fad8;}),this['listenTo'](_0x33ef80['document'],'change:data',()=>{_0x33ef80['enqueueChange']({'isUndoable':!0x1},_0x129e01=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x129e01);});},{'priority':'low'}),this['listenTo'](_0x2c789f,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1fd8bd){return this['_footnotes']['find'](_0xc6803a=>_0xc6803a['id']===_0x1fd8bd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x13e601){this['_footnoteFormatter']=_0x13e601;}['_updateFootnotesCounters'](_0x3bb88b,_0x382192=0x0){let _0x2fd6ba=!0x1;for(let _0x1c3a4e=_0x382192;_0x1c3a4e<this['_footnotes']['length'];_0x1c3a4e++)this['_updateFootnoteRefCounter'](_0x3bb88b,_0x1c3a4e)&&(_0x2fd6ba=!0x0);return _0x2fd6ba;}['_insertEmptyFootnotesDefinitionsContainer'](_0x346c96,_0x129499){const _0x16d616=_0x346c96['createElement']('footnotesDefinitions',{});return _0x346c96['append'](_0x16d616,_0x129499),this['_footnotesDefinitions']=_0x16d616,_0x16d616;}['_ensureFootnotesDefinitionsContainerExists'](_0x4759e7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x654630=this['_footnotes'][0x0]['reference']['root'],_0x3f31a6=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4759e7,_0x654630);for(const _0x71eca3 of this['_footnotes'])_0x71eca3['definition']['parent']||_0x4759e7['insert'](_0x71eca3['definition'],_0x3f31a6,'end');this['_updateFootnotesCounters'](_0x4759e7);}['_handleFootnotesDefinitionsObjectChanges'](_0x565c86,_0x395871){let _0x4d12d6=!0x1;const {inserted:_0x6e078,removed:_0x590d81,moved:_0x1393fe}=this['_footnoteDefsContainerTracker']['getChanges'](_0x395871);if(_0x1393fe['length']&&(this['_footnotesDefinitions']=_0x1393fe[0x0]),_0x6e078['length']){if(_0x6e078['length']>0x1||this['_footnotesDefinitions']&&_0x6e078['some'](_0x54c72c=>_0x54c72c!==this['_footnotesDefinitions'])){const _0x2f931c=_0x565c86['createElement']('footnotesDefinitions',{}),_0x17a397=[];this['_footnotesDefinitions']&&_0x17a397['push'](this['_footnotesDefinitions']),_0x17a397['push'](..._0x6e078),_0x565c86['insert'](_0x2f931c,_0x17a397[0x0],'before');for(const _0x558056 of _0x17a397)_0x565c86['move'](_0x565c86['createRangeIn'](_0x558056),_0x565c86['createPositionAt'](_0x2f931c,'end')),_0x565c86['remove'](_0x558056);this['_footnotesDefinitions']=_0x2f931c,this['_updateFootnotesCounters'](_0x565c86),_0x4d12d6=!0x0;}else this['_footnotesDefinitions']=_0x6e078[0x0];}if(_0x590d81['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x327c70 of this['_footnotes'])_0x565c86['remove'](_0x327c70['reference']),_0x4d12d6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4d12d6;}['_handleFootnoteDefinitionsChanges'](_0x3fc42e,_0x1fc074){let _0x52bb66=!0x1;const _0x549dd4=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x39a799,moved:_0x4ab14a}=this['_footnoteDefsTracker']['getChanges'](_0x1fc074);for(const _0x4228ca of[..._0x4ab14a,..._0x39a799]){const _0x3827e0=_0x4228ca['getAttribute']('footnoteId'),_0x1322d4=this['getFootnote'](_0x3827e0);_0x1322d4&&(_0x1322d4['definition']=_0x4228ca),_(_0x3fc42e,_0x549dd4,_0x4228ca)&&(_0x52bb66=!0x0);}return _0x52bb66;}['_handleFootnoteReferencesChanges'](_0x2f41bc,_0x526471){let _0x4e8448=!0x1;const {removed:_0x15b4c6,inserted:_0x2cc714,moved:_0x400387}=this['_footnoteRefsTracker']['getChanges'](_0x526471);for(const _0x13ea99 of _0x15b4c6)this['_handleRemoveFootnoteReferenceById'](_0x2f41bc,_0x13ea99)&&(_0x4e8448=!0x0);for(const _0x4e7d2c of _0x2cc714)this['_handleInsertedFootnoteReference'](_0x2f41bc,_0x4e7d2c)&&(_0x4e8448=!0x0);for(const _0x422650 of _0x400387)this['_handleMovedFootnoteReference'](_0x2f41bc,_0x422650)&&(_0x4e8448=!0x0);return _0x4e8448;}['_handleFootnotesDefinitionsObjectSync'](_0x9bce22){if(!this['_footnotesDefinitions'])return!0x1;let _0x2966d0=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2b247c=[];for(const _0x5c5880 of this['_footnotesDefinitions']['getChildren']()){const _0x23d3ea=_0x5c5880['getAttribute']('footnoteId');this['getFootnote'](_0x23d3ea)||(_0x2b247c['unshift'](_0x5c5880),_0x2966d0=!0x0);}for(const _0x3edcc1 of _0x2b247c)_0x9bce22['remove'](_0x3edcc1);}const _0x377b21=new Set(),_0x400c7d=[];for(const _0x21ac01 of this['_footnotesDefinitions']['getChildren']()){const _0x964e62=_0x21ac01['getAttribute']('footnoteId');_0x377b21['has'](_0x964e62)?(_0x400c7d['unshift'](_0x21ac01),_0x2966d0=!0x0):_0x377b21['add'](_0x964e62);}for(const _0x1f1b72 of _0x400c7d)_0x9bce22['remove'](_0x1f1b72);return this['_footnotesDefinitions']['childCount']||(_0x9bce22['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2966d0=!0x0),_0x2966d0;}['_handleInsertedFootnoteReference'](_0x267005,_0x18be13){if(this['_footnotes']['find'](_0x340f5f=>_0x340f5f['reference']===_0x18be13))return!0x1;let _0x7879d=!0x1;const _0x30ea7f=_0x18be13['getAttribute']('footnoteId'),_0x4688ab=this['_footnotes']['findIndex'](_0x5bb9fc=>_0x5bb9fc['id']===_0x30ea7f);-0x1!==_0x4688ab&&(_0x267005['remove'](this['_footnotes'][_0x4688ab]['reference']),this['_footnotes']['splice'](_0x4688ab,0x1),_0x7879d=!0x0);let _0x533164=this['_footnotesDefinitions']?function(_0x269cb8,_0x3777b7){for(const _0x2f5855 of _0x269cb8['getChildren']())if(_0x2f5855['getAttribute']('footnoteId')===_0x3777b7)return _0x2f5855;return null;}(this['_footnotesDefinitions'],_0x30ea7f):null;_0x533164||(_0x533164=_0x267005['createElement']('footnoteDefinition',{'footnoteId':_0x30ea7f}),this['_footnotesDefinitions']&&(_0x267005['insert'](_0x533164,this['_footnotesDefinitions'],'end'),_0x7879d=!0x0));const _0x52c95c={'id':_0x30ea7f,'reference':_0x18be13,'definition':_0x533164},_0x5ac1e7=I(this['editor']['model'],this['_footnotes'],_0x18be13);this['_footnotes']['splice'](_0x5ac1e7,0x0,_0x52c95c);let _0x286eaf=_0x5ac1e7;return-0x1!==_0x4688ab&&(_0x286eaf=Math['min'](_0x5ac1e7,_0x4688ab)),this['_updateFootnotesCounters'](_0x267005,_0x286eaf)&&(_0x7879d=!0x0),_0x7879d;}['_handleRemoveFootnoteReferenceById'](_0x1d4eb3,_0x3e03b3){const _0x4644b7=this['_footnotes']['findIndex'](_0x355138=>_0x355138['id']===_0x3e03b3);if(-0x1===_0x4644b7)return!0x1;let _0x4ea80d=!0x1;const _0x2ddc28=this['_footnotes'][_0x4644b7];return'$graveyard'!==_0x2ddc28['definition']['root']['rootName']&&(_0x1d4eb3['remove'](_0x2ddc28['definition']),_0x4ea80d=!0x0),this['_footnotes']['splice'](_0x4644b7,0x1),this['_updateFootnotesCounters'](_0x1d4eb3,_0x4644b7)&&(_0x4ea80d=!0x0),_0x4ea80d;}['_handleMovedFootnoteReference'](_0xc3dbdb,_0x26a63d){const _0x532f84=_0x26a63d['getAttribute']('footnoteId'),_0x472125=this['_footnotes']['findIndex'](_0x809d26=>_0x809d26['id']===_0x532f84),_0x1cb466=this['_footnotes'][_0x472125];let _0x55117b=!0x1;_0x1cb466['reference']=_0x26a63d,this['_footnotes']['splice'](_0x472125,0x1);const _0x2b626e=I(this['editor']['model'],this['_footnotes'],_0x26a63d);return this['_footnotes']['splice'](_0x2b626e,0x0,_0x1cb466),this['_updateFootnotesCounters'](_0xc3dbdb,Math['min'](_0x472125,_0x2b626e))&&(_0x55117b=!0x0),_0x55117b;}['_updateFootnoteRefCounter'](_0x489b83,_0x3e54ad){if(!this['_footnotesDefinitions'])return!0x1;const _0x2c4878=this['_footnotes'][_0x3e54ad];let _0x19bc36;return _0x19bc36=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2c4878,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3e54ad+0x1}):String(_0x3e54ad+0x1),_0x2c4878['reference']['getAttribute']('footnoteCounter')!=_0x19bc36&&(_0x489b83['setAttribute']('footnoteCounter',_0x19bc36,_0x2c4878['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x276d80){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x17c380,_0x4f6ae5){if(_0x17c380['length']!==_0x4f6ae5['length'])return!0x1;for(let _0x1c2d1b=0x0;_0x1c2d1b<_0x17c380['length'];_0x1c2d1b++)if(_0x17c380[_0x1c2d1b]!==_0x4f6ae5[_0x1c2d1b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x465d1b=>_0x465d1b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x6f709d=>_0x6f709d['getAttribute']('footnoteId'))))return!0x1;let _0x17b944=!0x1;for(let _0x1176cd=0x0;_0x1176cd<this['_footnotes']['length'];_0x1176cd++){const _0x447806=this['_footnotes'][_0x1176cd],_0x2712a4=_0x276d80['createPositionBefore'](_0x447806['definition']),_0x501571=_0x276d80['createPositionAt'](this['_footnotesDefinitions'],_0x1176cd);_0x2712a4['isEqual'](_0x501571)||(_0x276d80['move'](_0x276d80['createRangeOn'](_0x447806['definition']),_0x501571),_0x17b944=!0x0);}return _0x17b944;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3c6a3b){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3047f1}=this['editor'];let _0x285310=!0x1;for(let _0x12c04f=0x0;_0x12c04f<this['_footnotes']['length']-0x1;_0x12c04f++){const _0x4312a2=this['_footnotes'][_0x12c04f],_0x1b0e36=this['_footnotes'][_0x12c04f+0x1],_0x4654f0=_0x3047f1['createPositionBefore'](_0x4312a2['reference']),_0x35bd41=_0x3047f1['createPositionBefore'](_0x1b0e36['reference']);'after'===_0x4654f0['compareWith'](_0x35bd41)&&(this['_handleMovedFootnoteReference'](_0x3c6a3b,_0x4312a2['reference']),_0x12c04f=-0x1,_0x285310=!0x0);}return _0x285310;}}function _(_0x2d0e18,_0x4705cb,_0x2f5c93){if(_0x2f5c93['childCount'])return!0x1;const _0x230218=_0x4705cb?'paragraph':'footnoteInlineContent';return _0x2d0e18['insert'](_0x2d0e18['createElement'](_0x230218),_0x2f5c93),!0x0;}function I(_0x14ffda,_0x3a9904,_0x182b6f){if(0x0===_0x3a9904['length'])return 0x0;const _0x325abd=_0x14ffda['createPositionBefore'](_0x182b6f);for(let _0x1c54fa=0x0;_0x1c54fa<_0x3a9904['length'];_0x1c54fa++){const _0x490519=_0x3a9904[_0x1c54fa],_0x3a8aa4=_0x14ffda['createPositionBefore'](_0x490519['reference']);if('before'===_0x325abd['compareWith'](_0x3a8aa4))return _0x1c54fa;}const _0x55bf47=_0x182b6f['root'];let _0x5ee60f=-0x1;for(let _0x1d4d51=_0x3a9904['length']-0x1;_0x1d4d51>=0x0;_0x1d4d51--)if(_0x3a9904[_0x1d4d51]['reference']['root']===_0x55bf47){_0x5ee60f=_0x1d4d51;break;}if(-0x1!==_0x5ee60f)return _0x5ee60f+0x1;const _0x14d759=_0x14ffda['document']['getRootNames'](),_0x1cb8c0=_0x14d759['indexOf'](_0x55bf47['rootName']),_0x20a3bf=_0x14d759[_0x1cb8c0+0x1];if(_0x20a3bf){for(let _0x232a25=0x0;_0x232a25<_0x3a9904['length'];_0x232a25++)if(_0x3a9904[_0x232a25]['reference']['root']['rootName']===_0x20a3bf)return _0x232a25;}return _0x3a9904['length'];}class w extends _0x55ead5{['refresh'](){const _0x1903b2=this['editor']['model']['document']['selection'],_0xf9d889=this['_getPositionToInsertFootnote'](_0x1903b2);this['isEnabled']=!!_0xf9d889;}['execute'](_0x59ffed){const {editor:_0x6dd101}=this,{model:_0x5e0c86}=_0x6dd101,{selection:_0x427f7d}=_0x5e0c86['document'],_0x2eae69=this['_getPositionToInsertFootnote'](_0x427f7d);if(!_0x2eae69)return;const _0x119c74=_0x6dd101['plugins']['get']('FootnotesEditing'),_0x5b3f14=_0x59ffed?.['footnoteId']??_0x193af1();!function(_0x345a0f){return'string'==typeof _0x345a0f&&_0x345a0f['length']>0x0&&!/\s/['test'](_0x345a0f)&&!/^\d/['test'](_0x345a0f);}(_0x5b3f14)?_0x506bf5('insert-footnote-command-executed-with-invalid-id'):(_0x5e0c86['change'](_0x339efd=>{const _0x792f17=_0x339efd['createElement']('footnoteRef',{'footnoteId':_0x5b3f14});_0x5e0c86['insertObject'](_0x792f17,_0x2eae69,null);}),_0x119c74['_moveSelectionToFootnoteDefinition'](_0x5b3f14));}['_getPositionToInsertFootnote'](_0x29d70a){const {model:_0x42b94c}=this['editor'],{schema:_0x22d32d}=_0x42b94c,_0x850313=_0x29d70a['getFirstRange']();for(const _0xa88d15 of _0x850313['getItems']())if(_0x22d32d['isBlock'](_0xa88d15)||_0x22d32d['isObject'](_0xa88d15))return null;const _0xc4b61=_0x850313['end'];return _0x22d32d['checkChild'](_0xc4b61,'footnoteRef')?_0xc4b61:null;}}class r extends _0x455464{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32259d}=this;_0x32259d['config']['define']('footnotes.multiBlock',!0x0),_0x32259d['commands']['add']('insertFootnote',new w(_0x32259d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x59df0a){const _0x20b26b=_0x49da89([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]),_0x2596a1=0x47a28506,_0x4af3f4=0x47a5f2f6^_0x2596a1,_0x38c8d2=window[_0x49da89([0x44,0x61,0x74,0x65])][_0x49da89([0x6e,0x6f,0x77])](),_0x537bc5=_0x59df0a[_0x49da89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a9025=new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163591=>{_0x537bc5[_0x49da89([0x6f,0x6e,0x63,0x65])](_0x49da89([0x72,0x65,0x61,0x64,0x79]),_0x163591);}),_0x4d3a05={[_0x49da89([0x6b,0x74,0x79])]:_0x49da89([0x45,0x43]),[_0x49da89([0x75,0x73,0x65])]:_0x49da89([0x73,0x69,0x67]),[_0x49da89([0x63,0x72,0x76])]:_0x49da89([0x50,0x2d,0x32,0x35,0x36]),[_0x49da89([0x78])]:_0x49da89([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]),[_0x49da89([0x79])]:_0x49da89([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]),[_0x49da89([0x61,0x6c,0x67])]:_0x49da89([0x45,0x53,0x32,0x35,0x36])},_0x2852d4=_0x537bc5[_0x49da89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49da89([0x67,0x65,0x74])](_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ded3e(){let _0x2acd51,_0x50ebef=null,_0x2f17da=null;try{if(_0x2852d4==_0x49da89([0x47,0x50,0x4c]))return _0x49da89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2acd51=_0x37b1f2(),!_0x2acd51)return _0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2acd51[_0x49da89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f17da=_0x51c96b(_0x2acd51[_0x49da89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2acd51[_0x49da89([0x6a,0x74,0x69])])),await _0x19f371()?_0x537923()?_0x1105c6()?_0x49da89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x596104()?(_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49da89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50ebef=_0x97713e(_0x49da89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49da89([0x74,0x72,0x69,0x61,0x6c])&&(_0x50ebef=_0x97713e(_0x49da89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d9ac7()):_0x49da89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49da89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1105c6(){const _0x40e194=[_0x49da89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49da89([0x74,0x72,0x69,0x61,0x6c])][_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38c8d2/0x3e8:0xe10*_0x4af3f4;return _0x2acd51[_0x49da89([0x65,0x78,0x70])]<_0x40e194;}function _0x537923(){const _0x17573b=_0x2acd51[_0x49da89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17573b&&(!!_0x17573b[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x2a]))||!!_0x17573b[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x46,0x4f,0x4f])));}function _0x596104(){const _0xd3b92f=_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd3b92f||0x0==_0xd3b92f[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55a44e}=new URL(window[_0x49da89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd3b92f[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a44e))return!0x0;const _0x2f804a=_0x55a44e[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e]));return _0xd3b92f[_0x49da89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f094a=>_0x3f094a[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x2a])))[_0x49da89([0x6d,0x61,0x70])](_0x1821e5=>_0x1821e5[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e])))[_0x49da89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x322103=>_0x322103[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f804a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49da89([0x6d,0x61,0x70])](_0x491d60=>Array(_0x2f804a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x491d60[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49da89([0x66,0x69,0x6c,0x6c])](_0x491d60[0x0]===_0x49da89([0x2a])?_0x49da89([0x2a]):'')[_0x49da89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x491d60))[_0x49da89([0x73,0x6f,0x6d,0x65])](_0x26df4d=>_0x2f804a[_0x49da89([0x65,0x76,0x65,0x72,0x79])]((_0x3e1109,_0x3b764a)=>_0x26df4d[_0x3b764a]===_0x3e1109||_0x26df4d[_0x3b764a]===_0x49da89([0x2a])));}function _0x1d9ac7(){return _0x50ebef&&_0x2f17da?new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf3ca,_0x3b98a4)=>{_0x50ebef[_0x49da89([0x74,0x68,0x65,0x6e])](_0x1bf3ca,_0x3b98a4),_0x2f17da[_0x49da89([0x74,0x68,0x65,0x6e])](_0x4f0263=>{_0x4f0263!=_0x49da89([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf3ca(_0x4f0263);},_0x3b98a4);}):_0x50ebef||_0x2f17da||_0x49da89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51c96b(_0x770750,_0x448cda){return new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15f290=>{if(_0x554afb())return _0x15f290(_0x49da89([0x56,0x61,0x6c,0x69,0x64]));_0x3c78ce(),_0x537bc5[_0x49da89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x347250=!0x1;const _0xf8030f=_0x193af1();function _0x57826d(_0x12c5eb){return!!_0x12c5eb&&(typeof _0x12c5eb===_0x49da89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12c5eb===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12c5eb[_0x49da89([0x74,0x68,0x65,0x6e])]===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12c5eb[_0x49da89([0x63,0x61,0x74,0x63,0x68])]===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a9078(_0xee9c6c){_0x1b24c2(_0xee9c6c)[_0x49da89([0x74,0x68,0x65,0x6e])](_0x23c51a=>{if(!_0x23c51a||_0x23c51a[_0x49da89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49da89([0x6f,0x6b]))return _0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5726fc(_0x1ffca4(_0xf8030f+_0x448cda))!=_0x23c51a[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49da89([0x56,0x61,0x6c,0x69,0x64]);})[_0x49da89([0x74,0x68,0x65,0x6e])](_0x4fee06=>(_0x133fc5(),_0x4fee06),()=>{const _0x47a4d3=_0x26feec();return null==_0x47a4d3?(_0x133fc5(),_0x49da89([0x56,0x61,0x6c,0x69,0x64])):_0x49da89(_0x38c8d2-_0x47a4d3>(0x63ae0106^_0x2596a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49da89([0x74,0x68,0x65,0x6e])](_0x15f290)[_0x49da89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x153a35=0x47946b86^_0x2596a1;function _0x133fc5(){const _0x47ef7e=_0x49da89([0x6c,0x6c,0x63,0x74,0x2d])+_0x5726fc(_0x1ffca4(_0x770750)),_0x2c5f7e=_0x4477ec(_0x5726fc(window[_0x49da89([0x4d,0x61,0x74,0x68])][_0x49da89([0x63,0x65,0x69,0x6c])](_0x38c8d2/_0x153a35)));window[_0x49da89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49da89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47ef7e,_0x2c5f7e);}function _0x26feec(){const _0x57afc9=_0x49da89([0x6c,0x6c,0x63,0x74,0x2d])+_0x5726fc(_0x1ffca4(_0x770750)),_0x420cc3=window[_0x49da89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49da89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57afc9);return _0x420cc3?window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4477ec(_0x420cc3),0x10)*_0x153a35:null;}function _0x1b24c2(_0x53de8e){return new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29549d,_0x1eda6c)=>{_0x53de8e[_0x49da89([0x74,0x68,0x65,0x6e])](_0x29549d,_0x1eda6c),window[_0x49da89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1eda6c,0x47a351c6^_0x2596a1);});}}_0x537bc5[_0x49da89([0x6f,0x6e])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x542378,_0xa0600b)=>{if(_0xa0600b[0x0]!=_0x770750)return _0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa0600b[0x1]={..._0xa0600b[0x1],[_0x49da89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf8030f};},{[_0x49da89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49da89([0x68,0x69,0x67,0x68])}),_0x537bc5[_0x49da89([0x6f,0x6e])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ae17b=>{_0x57826d(_0x3ae17b[_0x49da89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x347250=!0x0,_0x5a9078(_0x3ae17b[_0x49da89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49da89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49da89([0x6c,0x6f,0x77])}),_0x1a9025[_0x49da89([0x74,0x68,0x65,0x6e])](()=>{_0x347250||_0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x554afb(){return _0x537bc5[_0x49da89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49da89([0x76,0x69,0x65,0x77])][_0x49da89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49da89([0x61,0x75,0x74,0x6f]);}function _0x3c78ce(){_0x537bc5[_0x49da89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49da89([0x76,0x69,0x65,0x77])][_0x49da89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49da89([0x61,0x75,0x74,0x6f]);}}function _0x97713e(_0x386cd7){const _0x5c9c82=[new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb86f=>setTimeout(_0x1bb86f,0x47abbbca^_0x2596a1)),_0x1a9025[_0x49da89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2199=>{let _0x1fdd7b=0x0;_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x6f,0x6e])](_0x49da89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x458468,_0x57ebe5)=>{_0x57ebe5[0x0][_0x49da89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdd7b++,_0x1fdd7b==(0x47a284fe^_0x2596a1)&&(_0x2f2199(),_0x458468[_0x49da89([0x6f,0x66,0x66])]());});}))];return window[_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49da89([0x72,0x61,0x63,0x65])](_0x5c9c82)[_0x49da89([0x74,0x68,0x65,0x6e])](()=>_0x386cd7);}async function _0x57571c(){await _0x1a9025,_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1abd61,_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1abd61,_0x537bc5[_0x49da89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49da89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5184f6(_0x56b190){const _0x15cbbb=_0x40cc9b();_0x537bc5[_0x15cbbb]=_0x49da89([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56b190,_0x56b190!=_0x49da89([0x56,0x61,0x6c,0x69,0x64])&&_0x57571c();}function _0x40cc9b(){const _0x527a5e=window[_0x49da89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49da89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49da89([0x6e,0x6f,0x77])]())[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49da89([0x2e]),'');let _0x3248ba=_0x49da89([0x75]);for(let _0x40e932=0x0;_0x40e932<_0x527a5e[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e932+=0x2){let _0xda8680=window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x527a5e[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e932,_0x40e932+0x2));_0xda8680>=_0x20b26b[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xda8680-=_0x20b26b[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3248ba+=_0x20b26b[_0xda8680];}return _0x3248ba;}function _0x37b1f2(){const _0x3816c8=_0x2852d4[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e]));if(0x3!=_0x3816c8[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x308292(_0x3816c8[0x1]);function _0x308292(_0xc0d97c){const _0xa2872=_0x16e5f4(_0xc0d97c);return _0xa2872&&_0x5df41c()?_0xa2872:null;function _0x5df41c(){const _0x4ec775=_0xa2872[_0x49da89([0x6a,0x74,0x69])],_0x624045=window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ec775[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ec775[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1084c1={..._0xa2872,[_0x49da89([0x6a,0x74,0x69])]:_0x4ec775[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ec775[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1084c1[_0x49da89([0x76,0x63])],_0x1ffca4(_0x1084c1)==_0x624045;}}}async function _0x19f371(){let _0x1e51cd=!0x0;try{const _0x40f34b=_0x2852d4[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e])),[_0x2b6a7a,_0x2f6dcb,_0x51eb9b]=_0x40f34b;return _0xc5ac4a(_0x2b6a7a),await _0x58bdfb(_0x2b6a7a,_0x2f6dcb,_0x51eb9b),_0x1e51cd;}catch{return!0x1;}function _0xc5ac4a(_0x4c0aae){const _0x2ca878=_0x16e5f4(_0x4c0aae);_0x2ca878&&_0x2ca878[_0x49da89([0x61,0x6c,0x67])]==_0x49da89([0x45,0x53,0x32,0x35,0x36])||(_0x1e51cd=!0x1);}async function _0x58bdfb(_0x1b1b6a,_0x405580,_0x22d2ff){const _0x556af1=window[_0x49da89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49da89([0x66,0x72,0x6f,0x6d])](_0x1d9822(_0x22d2ff),_0x281b86=>_0x281b86[_0x49da89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1028a0=new window[(_0x49da89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49da89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b1b6a+_0x49da89([0x2e])+_0x405580),_0x1566ee=window[_0x49da89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49da89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1566ee)return;const _0x3f897a=await _0x1566ee[_0x49da89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49da89([0x6a,0x77,0x6b]),_0x4d3a05,{[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x45,0x43,0x44,0x53,0x41]),[_0x49da89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49da89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1566ee[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x45,0x43,0x44,0x53,0x41]),[_0x49da89([0x68,0x61,0x73,0x68])]:{[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f897a,_0x556af1,_0x1028a0)||(_0x1e51cd=!0x1);}}function _0x16e5f4(_0x3b4dfd){return _0x3b4dfd[_0x49da89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49da89([0x65,0x79]))?JSON[_0x49da89([0x70,0x61,0x72,0x73,0x65])](_0x1d9822(_0x3b4dfd)):null;}function _0x1d9822(_0x1b692){return window[_0x49da89([0x61,0x74,0x6f,0x62])](_0x1b692[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49da89([0x2b]))[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49da89([0x2f])));}function _0x1ffca4(_0x1cf9c7){let _0x2df3c4=0x1505;function _0x3caa18(_0x19224a){for(let _0x4400f3=0x0;_0x4400f3<_0x19224a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4400f3++){const _0x24b752=_0x19224a[_0x49da89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4400f3);_0x2df3c4=(_0x2df3c4<<0x5)+_0x2df3c4+_0x24b752,_0x2df3c4&=_0x2df3c4;}}function _0x35b17c(_0x100b55){Array[_0x49da89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x100b55)?_0x100b55[_0x49da89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35b17c):_0x100b55&&typeof _0x100b55==_0x49da89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49da89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x100b55)[_0x49da89([0x73,0x6f,0x72,0x74])]()[_0x49da89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1effde,_0x5bb087])=>{_0x3caa18(_0x1effde),_0x35b17c(_0x5bb087);}):_0x3caa18(window[_0x49da89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x100b55));}return _0x35b17c(_0x1cf9c7),_0x2df3c4>>>0x0;}function _0x5726fc(_0x5814fc){return _0x5814fc[_0x49da89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49da89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49da89([0x30]));}function _0x4477ec(_0x12753a){return _0x12753a[_0x49da89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49da89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49da89([0x6a,0x6f,0x69,0x6e])]('');}function _0x1abd61(){}function _0x49da89(_0x43eb1c){return _0x43eb1c['map'](_0x173b01=>String['fromCharCode'](_0x173b01))['join']('');}_0x5184f6(await _0x4ded3e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x454007){const {plugins:_0x28c8e5,editing:_0x1ce1ca,model:_0x3107d5}=this['editor'],_0x544afd=_0x28c8e5['get'](c)['getFootnote'](_0x454007);return!!_0x544afd&&(_0x3107d5['change'](_0x16c088=>{_0x16c088['setSelection'](_0x16c088['createPositionAt'](_0x544afd['definition'],'end'));}),_0x1ce1ca['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xceda4a){const {plugins:_0x20db1f,editing:_0xc8c8f3,model:_0x3d5c07}=this['editor'],_0x296b5e=_0x20db1f['get'](c)['getFootnote'](_0xceda4a);return!!_0x296b5e&&(_0x3d5c07['change'](_0x3ec7cc=>{_0x3ec7cc['setSelection'](_0x296b5e['reference'],'on');}),_0xc8c8f3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2789c4}=this['editor']['model'],_0x53e3d3=this['editor']['config']['get']('footnotes.multiBlock');_0x2789c4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2789c4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2789c4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x53e3d3?_0x2789c4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2789c4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2789c4['addChildCheck'](_0x1a4ab7=>{for(const _0x2e1a1d of _0x1a4ab7)if('footnoteDefinition'===_0x2e1a1d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x344f1b}=this,{conversion:_0x202e94,editing:_0x441ed4}=_0x344f1b,{t:t}=_0x344f1b['locale'];_0x202e94['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xfad577,{writer:_0x5d76ed,consumable:_0x51cec6})=>{const _0x411ff2=_0xfad577['getChild'](0x0);if(!_0x411ff2||!_0x411ff2['is']('element','a'))return null;const _0x2502b3=_0x411ff2['getAttribute']('href')||'';if(!_0x2502b3['startsWith']('#'))return null;const _0x5c8890=_0x2502b3['replace'](/^#/,'');if(!_0x5c8890)return null;_0x51cec6['consume'](_0x411ff2,{'name':!0x0,'attributes':['href']});for(const {item:_0x2bf622}of _0x441ed4['view']['createRangeIn'](_0x411ff2))_0x2bf622['is']('$textProxy')?_0x51cec6['consume'](_0x2bf622['textNode'],{'name':!0x0}):_0x2bf622['is']('element')&&_0x51cec6['consume'](_0x2bf622,{'name':!0x0});return _0x5d76ed['createElement']('footnoteRef',{'footnoteId':_0x5c8890});}}),_0x202e94['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5a8f37,{writer:_0xdef932})=>D(_0x5a8f37,_0xdef932)}),_0x202e94['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15ff6b,{writer:_0x5ac32b})=>{const _0x424c99=_0x15ff6b['getAttribute']('footnoteCounter');return _0x1a1d9c(D(_0x15ff6b,_0x5ac32b),_0x5ac32b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x424c99)});}});}['_defineDefinitionsConverters'](){const {editor:_0x6f6c6a}=this,{t:t}=_0x6f6c6a['locale'],{conversion:_0x52f3c3}=_0x6f6c6a;_0x52f3c3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x52f3c3['for']('upcast')['add'](_0x3713f7=>{_0x3713f7['on']('element:ol',(_0x3030fb,_0x580e22,_0x46c4fd)=>{const _0x595cb3=_0x580e22['viewItem'];if(!_0x595cb3['hasClass']('footnotes-list')||!_0x580e22['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x46c4fd['consumable']['consume'](_0x595cb3,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2548bd,modelCursor:_0x19fe02}=_0x46c4fd['convertChildren'](_0x580e22['viewItem'],_0x580e22['modelCursor']);_0x580e22['modelRange']=_0x2548bd,_0x580e22['modelCursor']=_0x19fe02;}),_0x3713f7['on']('element:hr',(_0x96dcd1,_0x364107,_0x5b2893)=>{const _0x147146=_0x364107['viewItem'];_0x147146['hasClass']('footnotes-divider')&&_0x364107['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5b2893['consumable']['consume'](_0x147146,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x52f3c3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x52bb75,{writer:_0x4921ac})=>g(_0x4921ac)}),_0x52f3c3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38d753,{writer:_0x15b037})=>{const _0xee4a5=g(_0x15b037,{'data-footnotes-list-label':t('Footnotes')}),_0x6ba6cd=_0x1a1d9c(_0xee4a5,_0x15b037,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x15b037['setCustomProperty']('footnotesDefinitions',!0x0,_0x6ba6cd),_0x6ba6cd;}});}['_defineDefinitionConverters'](){const {editor:_0x532eb4}=this,{conversion:_0x2ba379,locale:_0x2bedb2}=_0x532eb4,_0x48aa07=_0x532eb4['config']['get']('footnotes.multiBlock');_0x2ba379['for']('upcast')['add'](_0xb281a2=>{_0xb281a2['on']('element:li',(_0x2bd76c,_0x45017c,_0x276140)=>{const _0x4de82a=_0x45017c['viewItem'];if(!_0x4de82a['hasClass']('footnote-definition')||!_0x4de82a['getAttribute']('id'))return;const _0x22ce0c=_0x4de82a['parent'];if(!_0x22ce0c['is']('element','ol')||!_0x22ce0c['hasClass']('footnotes-list'))return;if(!_0x276140['consumable']['test'](_0x4de82a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4d6079=_0x276140['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4de82a['getAttribute']('id')});if(!_0x276140['safeInsert'](_0x4d6079,_0x45017c['modelCursor']))return;_0x276140['consumable']['consume'](_0x4de82a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34a77b=Array['from'](_0x4de82a['getChildren']())['find'](_0x13e66d=>_0x13e66d['is']('element')&&_0x13e66d['hasClass']('footnote-content'));for(const _0x36660c of _0x4de82a['getChildren']())_0x36660c['is']('element')&&(_0x276140['consumable']['consume'](_0x36660c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x276140['consumable']['consume'](_0x36660c,{'name':!0x0,'classes':'footnote-content'}));if(_0x34a77b){if(_0x48aa07)_0x276140['convertChildren'](_0x34a77b,_0x4d6079);else{const _0x11860f=_0x276140['writer']['createElement']('footnoteInlineContent');_0x276140['writer']['insert'](_0x11860f,_0x4d6079),_0x276140['convertChildren'](_0x34a77b,_0x11860f);}}_0x276140['updateConversionResult'](_0x4d6079,_0x45017c);});}),_0x2ba379['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x26278c,{writer:_0x2076d5})=>v(_0x26278c,_0x2076d5,_0x2bedb2,{'dataPipeline':!0x0})}),_0x2ba379['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3cad68,{writer:_0x4e5adc})=>v(_0x3cad68,_0x4e5adc,_0x2bedb2)});}['_defineBogusParagraphConverters'](){const {editor:_0x37456c}=this,{conversion:_0x2d2e80}=_0x37456c;_0x37456c['config']['get']('footnotes.multiBlock')?(_0x2d2e80['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x2d2e80['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x37456c['model']['document'],'change:data',()=>{!function(_0x35aefc,_0x445365){const _0x541c2e=_0x35aefc['document']['differ'],_0x49d7db=new Set();for(const _0x3d478c of _0x541c2e['getChanges']()){const _0x57627d='attribute'==_0x3d478c['type']?_0x3d478c['range']['start']['parent']:_0x3d478c['position']['parent'];_0x57627d['is']('element','footnoteDefinition')&&_0x49d7db['add'](_0x57627d);}for(const _0x288194 of _0x49d7db['values']()){const _0x56bde6=Array['from'](_0x288194['getChildren']())['filter'](_0x57d6b0=>p(_0x57d6b0,_0x445365['mapper']));for(const _0x2f070a of _0x56bde6)_0x445365['reconvertItem'](_0x2f070a);}}(_0x37456c['model'],_0x37456c['editing']);})):(_0x2d2e80['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x2d2e80['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x359d94,{writer:_0x52e5ba})=>{const _0x46a8cc=_0x52e5ba['createContainerElement']('span');return _0x52e5ba['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x46a8cc),_0x46a8cc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5a1701}=this,{editing:_0x4dea4d,t:t}=_0x5a1701,_0x31c6d1=_0x5a1701['model']['document']['selection'];_0x5a1701['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5a1701['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x4dea4d['view']['document'],'enter',(_0x21a659,_0x4343b4)=>{const _0x4733e8=function(_0x1877e7){const _0x336f60=_0x1877e7['getSelectedElement']();if(_0x336f60?.['is']('element','footnoteRef'))return _0x336f60;return null;}(_0x31c6d1);if(_0x4733e8){const _0x3d2956=_0x4733e8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3d2956),_0x4343b4['preventDefault'](),_0x21a659['stop']();}},{'context':_0x1899ef});}['_defineClickHandlers'](){const {editor:_0x497793}=this,{editing:_0x332ece}=_0x497793;_0x497793['editing']['view']['addObserver'](_0x1e3809),_0x497793['editing']['view']['addObserver'](_0x4bd884);let _0x37ec61=!0x1;this['listenTo'](_0x332ece['view']['document'],'pointerdown',(_0x1a33d0,_0x34079e)=>{const {target:_0x2476f9}=_0x34079e,_0x58918d=_0x332ece['view']['document']['selection'];_0x37ec61=!!(_0x2476f9['is']('element','a')&&_0x2476f9['parent']?.['is']('element','sup')&&_0x2476f9['parent']['hasClass']('footnote'))&&_0x58918d['getSelectedElement']()===_0x2476f9['parent'];},{'priority':'high'}),this['listenTo'](_0x332ece['view']['document'],'click',(_0x242af7,_0x3c6d0c)=>{const {target:_0x1620d1}=_0x3c6d0c;if(!_0x1620d1['is']('element','a'))return;if(_0x1620d1['parent']?.['is']('element','sup')&&_0x1620d1['parent']['hasClass']('footnote')&&!_0x37ec61)return void _0x3c6d0c['preventDefault']();let _0x196547=_0x1620d1['getAttribute']('href');if(!_0x196547?.['startsWith']('#'))return;_0x196547=_0x196547['slice'](0x1);let _0x5d39ec=!0x1;(_0x196547['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x196547['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x196547))&&(_0x5d39ec=!0x0),_0x5d39ec&&(_0x3c6d0c['preventDefault'](),_0x242af7['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x38fc9d}={}){return(_0x40425e,{writer:_0x214ba2})=>{if(!h(_0x40425e))return null;if(!_0x38fc9d)return _0x214ba2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x415ec0=_0x214ba2['createContainerElement']('p');return _0x214ba2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x415ec0),_0x415ec0;};}function h(_0x41c40b){const {parent:_0x3c633b}=_0x41c40b;if(!_0x3c633b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3c633b['childCount'])return!0x1;for(const _0x119945 of _0x41c40b['getAttributeKeys']())if(!_0x119945['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x119945)return!0x1;return!0x0;}function p(_0x1c01e7,_0x1c3b95){if(!_0x1c01e7['is']('element','paragraph'))return!0x1;const _0x1b9284=_0x1c3b95['toViewElement'](_0x1c01e7);return!!_0x1b9284&&h(_0x1c01e7)!==_0x1b9284['is']('element','span');}function J(_0x14d93a){return _0x1899ef(_0x14d93a)&&_0x14d93a['is']('containerElement')&&!!_0x14d93a['getCustomProperty']('footnotesDefinitions');}function g(_0x4e3223,_0x59c4d1={}){const _0x247503=_0x4e3223['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x59e7e4=_0x4e3223['createContainerElement']('ol',{'class':'footnotes-list'},_0x4e3223['createSlot']());return _0x4e3223['createContainerElement']('div',{'class':'footnotes',..._0x59c4d1},[_0x247503,_0x59e7e4]);}function D(_0x2b75a2,_0x928689){const _0x12d75b=_0x2b75a2['getAttribute']('footnoteId'),_0x2b35c8=_0x2b75a2['getAttribute']('footnoteCounter'),_0x2af074=_0x928689['createUIElement']('a',{'href':'#'+_0x12d75b},function(_0x493d33){const _0x23ab2f=this['toDomElement'](_0x493d33);return _0x23ab2f['textContent']=_0x2b35c8,_0x23ab2f;}),_0x1d6842=_0x928689['createContainerElement']('sup',{'id':'ref-'+_0x12d75b,'class':'footnote'},[_0x2af074]);return _0x1d6842['getFillerOffset']=()=>null,_0x1d6842;}function v(_0x15ae83,_0x38290b,_0x168cbf,{dataPipeline:_0x1b8a94}={}){const {t:t}=_0x168cbf,_0x2a6a5d=_0x15ae83['getAttribute']('footnoteId'),_0x1ebc8c=_0x38290b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2a6a5d},function(_0x43c81d){const _0x38eced=this['toDomElement'](_0x43c81d);return _0x38eced['innerText']='^',_0x38eced;}),_0x2beb72=_0x1b8a94?_0x38290b['createContainerElement']('div',{'class':'footnote-content'}):_0xad70b7(_0x38290b['createEditableElement']('div',{'class':'footnote-content'}),_0x38290b,{'label':t('Footnote\x20content.')});return _0x38290b['insert'](_0x38290b['createPositionAt'](_0x2beb72,0x0),_0x38290b['createSlot']()),_0x38290b['createContainerElement']('li',{'class':'footnote-definition','id':_0x2a6a5d},[_0x1ebc8c,_0x2beb72]);}class e extends _0x455464{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5e02c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5e387c}=this,{plugins:_0x3b323d,model:_0x309fcc}=_0x5e387c,_0x55cb53=_0x3b323d['get'](_0x5e02c7),_0x2b3307=_0x3b323d['get'](c);this['listenTo'](_0x55cb53,'outputTransformation',(_0x5a054d,_0x4349c1)=>{const _0x3ccc54=function(_0x176177,_0x3036ca){const _0x159ed7=new Set();for(const {item:_0x101e4d}of _0x176177['createRangeIn'](_0x3036ca))_0x101e4d['is']('element','footnoteRef')&&_0x159ed7['add'](_0x101e4d['getAttribute']('footnoteId'));return Array['from'](_0x159ed7);}(_0x309fcc,_0x4349c1['content']);if(!_0x3ccc54['length'])return;const _0x2c0d2e=_0x2b3307['getFootnotes'](),_0x23be44=_0x3ccc54['reduce']((_0x31f6b5,_0x3294a7)=>{const _0x10eee1=_0x2c0d2e['find'](_0x342ea=>_0x342ea['id']===_0x3294a7);if(_0x10eee1){const _0xa8be3c=_0x5e387c['data']['toView'](_0x10eee1['definition'],{'isClipboardPipeline':!0x0}),_0x58c9ca=_0x5e387c['data']['htmlProcessor']['toData'](_0xa8be3c);_0x31f6b5[_0x10eee1['id']]=_0x58c9ca;}return _0x31f6b5;},Object['create'](null));_0x4349c1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x23be44));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x51bf48}=this,{model:_0x1f8456,plugins:_0x426f91}=_0x51bf48,{view:_0x4ead94}=_0x51bf48['editing'],_0x2392f2=_0x426f91['get'](_0x5e02c7),_0x4c0ca4=_0x426f91['get'](c);let _0x4156a0=null;this['listenTo'](_0x4ead94['document'],'clipboardInput',(_0x6d9bbf,_0x300e39)=>{const _0xb1f6fc=_0x300e39['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4156a0=_0xb1f6fc?JSON['parse'](_0xb1f6fc):null;}),this['listenTo'](_0x2392f2,'contentInsertion',(_0x3d2cc5,_0x278b75)=>{if(!_0x4156a0)return;const _0x5011a9=_0x278b75['sourceEditorId']===this['editor']['id'];_0x5011a9&&'drop'===_0x278b75['method']||_0x1f8456['change'](_0x29d16f=>{!function(_0x246c84,_0x5bba46){const _0x548a3b=[];for(const {item:_0xeafa2b}of _0x246c84['createRangeIn'](_0x5bba46))_0xeafa2b['is']('element','footnotesDefinitions')&&_0x548a3b['push'](_0xeafa2b);for(const _0x1f2538 of _0x548a3b)_0x246c84['remove'](_0x1f2538);}(_0x29d16f,_0x278b75['content']);let _0x43f258=_0x4c0ca4['getFootnotesDefinitionsObjectElement']();if(!_0x43f258){const _0x30f44e=_0x1f8456['document']['selection']['getFirstRange']()['root'];_0x43f258=_0x4c0ca4['_insertEmptyFootnotesDefinitionsContainer'](_0x29d16f,_0x30f44e);}const _0x9324a0=function(_0x1f557a,_0x1e21f9,_0xecd535){const _0x127c73=Object['create'](null);for(const {item:_0x10d0a8}of _0x1f557a['createRangeIn'](_0x1e21f9))if(_0x10d0a8['is']('element','footnoteRef')){const _0x408121=_0x10d0a8['getAttribute']('footnoteId');if(!_0xecd535(_0x408121))continue;_0x127c73[_0x408121]||(_0x127c73[_0x408121]=_0x193af1()),_0x1f557a['setAttribute']('footnoteId',_0x127c73[_0x408121],_0x10d0a8);}return _0x127c73;}(_0x29d16f,_0x278b75['content'],_0x583cb1=>!_0x5011a9||null!==_0x4c0ca4['getFootnote'](_0x583cb1));for(const [_0x42f8b2,_0x388aec]of Object['entries'](_0x4156a0)){const _0x20c0b9=_0x9324a0[_0x42f8b2]||_0x42f8b2,_0x1e2f0e=_0x29d16f['createElement']('footnoteDefinition',{'footnoteId':_0x20c0b9}),_0x2d5440=_0x51bf48['data']['htmlProcessor']['toView'](_0x388aec),_0x1d4590=_0x51bf48['data']['toModel'](_0x2d5440,_0x1e2f0e);_0x29d16f['append'](_0x1d4590,_0x1e2f0e),_0x29d16f['insert'](_0x1e2f0e,_0x43f258,'end');}_0x4156a0=null;});});}}class i extends _0x455464{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x304b7a}=this,{componentFactory:_0x45a535}=_0x304b7a['ui'];_0x45a535['add']('insertFootnote',x(_0x304b7a,_0x3fc837)),_0x45a535['add']('menuBar:insertFootnote',x(_0x304b7a,_0x2f467e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5baff5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23f96c;for(const _0x3ea8bc in _0x5baff5){const _0x47b023=_0x3ea8bc,_0x5f2360=_0x5baff5[_0x47b023];if('footnotesLicenseKeyValid'==_0x5f2360||'footnotesLicenseKeyInvalid'==_0x5f2360||'footnotesLicenseKeyExpired'==_0x5f2360||'footnotesLicenseKeyDomainLimit'==_0x5f2360||'footnotesLicenseKeyNotAllowed'==_0x5f2360||'footnotesLicenseKeyEvaluationLimit'==_0x5f2360||'footnotesLicenseKeyTrialLimit'==_0x5f2360||'footnotesLicenseKeyUsageLimit'==_0x5f2360){delete _0x5baff5[_0x47b023],_0x23f96c=_0x5f2360,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x23f96c&&_0x5baff5['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x23f96c&&_0x5baff5['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x23f96c&&_0x5baff5['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4b689a,_0x4f03d1){const _0x367b3d=_0x4b689a['commands']['get']('insertFootnote');return _0x5d2617=>{const {t:t}=_0x5d2617,_0x29685c=new _0x4f03d1(_0x5d2617),_0x5a1ead=_0x29685c instanceof _0x2f467e;return _0x29685c['bind']('isEnabled')['to'](_0x367b3d,'isEnabled'),_0x29685c['set']({'label':t(_0x5a1ead?'Footnote':'Insert\x20footnote'),'icon':_0x28343b,'tooltip':!0x0}),_0x29685c['on']('execute',()=>{_0x367b3d['execute'](),_0x4b689a['editing']['view']['focus']();}),_0x29685c;};}class nt extends _0x455464{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 _0x55ead5{['refresh'](){const {editor:_0x28391b}=this,_0x4d7799=_0x28391b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4d7799,this['value']=_0x4d7799?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x351290}){const {editor:_0x2cd47e}=this,_0x1fa108=_0x2cd47e['plugins']['get'](c),_0x1a5874=_0x1fa108['getFootnotesDefinitionsObjectElement']();_0x1a5874&&Q['includes'](_0x351290)&&_0x2cd47e['model']['change'](_0x460f38=>{_0x460f38['setAttribute']('footnotesListStyle',_0x351290,_0x1a5874),_0x1fa108['_updateFootnotesCounters'](_0x460f38);});}}class b extends _0x55ead5{['refresh'](){const {editor:_0x80fb4a}=this,_0x3a6a45=_0x80fb4a['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3a6a45,this['value']=_0x3a6a45?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x218e8d}){const {editor:_0x49be99}=this,_0x51af81=_0x49be99['plugins']['get'](c),_0x2d042a=_0x51af81['getFootnotesDefinitionsObjectElement']();_0x2d042a&&Number['isInteger'](_0x218e8d)&&_0x49be99['model']['change'](_0x3a37c6=>{_0x3a37c6['setAttribute']('footnotesListStart',_0x218e8d,_0x2d042a),_0x51af81['_updateFootnotesCounters'](_0x3a37c6);});}}class P extends _0x455464{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4fe198}=this;_0x4fe198['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4fe198['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4fe198['commands']['add']('footnotesStyle',new S(_0x4fe198)),_0x4fe198['commands']['add']('footnotesStart',new b(_0x4fe198)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2b26e3}=this,{schema:_0x579728}=_0x2b26e3['model'];_0x579728['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x27c619}=this,{conversion:_0x4b49cf,model:_0x692f9}=_0x27c619,{schema:_0x58ee29}=_0x692f9;_0x4b49cf['for']('upcast')['add'](_0x4be6e2=>{_0x4be6e2['on']('element:ol',(_0x14e9a6,_0x22196d,_0x1f15b2)=>{const _0x22c64d=_0x22196d['viewItem'],_0x1d58cf=_0x22196d['modelCursor']?.['parent'];_0x22c64d['hasClass']('footnotes-list')&&_0x1d58cf?.['is']('element','footnotesDefinitions')&&(function(_0x579ca6,_0x44b9bc,_0x425611,_0x5a52b4){if(!_0x5a52b4['checkAttribute'](_0x44b9bc,'footnotesListStart'))return;let _0x480120=0x1;const _0x1a3a92=_0x425611['consumable']['consume'](_0x579ca6,{'attributes':'start'});if(_0x1a3a92){const _0x2fd968=Number['parseInt'](_0x579ca6['getAttribute']('start'),0xa);Number['isNaN'](_0x2fd968)||(_0x480120=_0x2fd968);}!_0x1a3a92&&_0x44b9bc['hasAttribute']('footnotesListStart')||_0x425611['writer']['setAttribute']('footnotesListStart',_0x480120,_0x44b9bc);}(_0x22c64d,_0x1d58cf,_0x1f15b2,_0x58ee29),function(_0xed827d,_0x2bc2a2,_0x95ebf5,_0x5393ed){if(!_0x5393ed['checkAttribute'](_0x2bc2a2,'footnotesListStyle'))return;let _0x28cc21='decimal',_0x227096=!0x1;if(_0x95ebf5['consumable']['consume'](_0xed827d,{'attributes':'type'})){const _0x20d4b6={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xed827d['getAttribute']('type')];_0x20d4b6&&(_0x28cc21=_0x20d4b6),_0x227096=!0x0;}_0x95ebf5['consumable']['consume'](_0xed827d,{'styles':'list-style-type'})&&(_0x28cc21=_0xed827d['getStyle']('list-style-type'),_0x227096=!0x0),!_0x227096&&_0x2bc2a2['hasAttribute']('footnotesListStyle')||_0x95ebf5['writer']['setAttribute']('footnotesListStyle',_0x28cc21,_0x2bc2a2);}(_0x22c64d,_0x1d58cf,_0x1f15b2,_0x58ee29));});}),_0x4b49cf['for']('downcast')['add'](_0xe61169=>{_0xe61169['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x46fc1b,_0x113ec9,_0x4f6f6a)=>{if(!_0x4f6f6a['consumable']['consume'](_0x113ec9['item'],_0x46fc1b['name']))return;const _0x540f3a=C(_0x113ec9['item'],_0x4f6f6a['mapper']),{attributeNewValue:_0x383735}=_0x113ec9;null==_0x383735||0x1===_0x383735?_0x4f6f6a['writer']['removeAttribute']('start',_0x540f3a):_0x4f6f6a['writer']['setAttribute']('start',String(_0x383735),_0x540f3a);}),_0xe61169['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x26baae,_0x5cf4a1,_0x19ba4f)=>{if(!_0x19ba4f['consumable']['consume'](_0x5cf4a1['item'],_0x26baae['name']))return;const _0x451274=C(_0x5cf4a1['item'],_0x19ba4f['mapper']),{attributeNewValue:_0x2ba1b6}=_0x5cf4a1;_0x2ba1b6&&'decimal'!==_0x2ba1b6?_0x19ba4f['writer']['setStyle']('list-style-type',_0x2ba1b6,_0x451274):_0x19ba4f['writer']['removeStyle']('list-style-type',_0x451274);});});}['_definePostfixer'](){const {editor:_0x1575c4}=this,{model:_0x197d0a}=_0x1575c4,_0x12a6e6=_0x1575c4['plugins']['get'](c),_0x1c7537=this['_getDefaultListStyle'](),_0x313969=this['_getDefaultStartIndex']();_0x197d0a['document']['registerPostFixer'](_0x20af3f=>{const _0x43c4d3=_0x197d0a['document']['differ']['getChanges']();let _0x5280af=!0x1;for(const _0x6d43df of _0x43c4d3){if('insert'!==_0x6d43df['type']||'$text'===_0x6d43df['name'])continue;const _0xef2448=_0x197d0a['createRangeOn'](_0x6d43df['position']['nodeAfter']);for(const _0x13b21c of _0xef2448['getItems']())_0x13b21c['is']('element','footnotesDefinitions')&&(!_0x13b21c['hasAttribute']('footnotesListStart')&&_0x197d0a['schema']['checkAttribute'](_0x13b21c,'footnotesListStart')&&(_0x20af3f['setAttribute']('footnotesListStart',_0x313969,_0x13b21c),_0x5280af=!0x0),!_0x13b21c['hasAttribute']('footnotesListStyle')&&_0x197d0a['schema']['checkAttribute'](_0x13b21c,'footnotesListStyle')&&(_0x20af3f['setAttribute']('footnotesListStyle',_0x1c7537,_0x13b21c),_0x5280af=!0x0));}return _0x5280af&&_0x12a6e6['_updateFootnotesCounters'](_0x20af3f),_0x5280af;});}['_defineFormatter'](){const {editor:_0x39d07a}=this;_0x39d07a['plugins']['get'](c)['setFootnoteFormatter'](_0x464f48=>this['_formatFootnoteListValue'](_0x464f48));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xd58840,value:_0x4abde3,digits:_0x3b80d6}){const _0x5c50a6=_0xd58840['getAttribute']('footnotesListStyle'),_0x54607a=_0xd58840['getAttribute']('footnotesListStart'),_0x437a89=Math['floor'](_0x4abde3)+(_0x54607a??0x1)-0x1;switch(_0x5c50a6){case'decimal-leading-zero':return function(_0xae279e,_0x4b7602){return String(_0xae279e)['padStart'](_0x4b7602,'0');}(_0x437a89,Math['max'](0x2,_0x3b80d6));case'lower-alpha':case'lower-latin':return M(_0x437a89,!0x1);case'upper-alpha':case'upper-latin':return M(_0x437a89,!0x0);case'lower-roman':return V(_0x437a89,!0x1);case'upper-roman':return V(_0x437a89,!0x0);default:return String(_0x437a89);}}}function C(_0x215d72,_0x47b5e4){const _0x4dce3f=_0x47b5e4['toViewElement'](_0x215d72);return Array['from'](_0x4dce3f['getChildren']())['find'](_0x50ca23=>_0x50ca23['is']('element','ol')&&_0x50ca23['hasClass']('footnotes-list'));}function M(_0xef0c92,_0xee38bd){let _0x325a0b='',_0x526a42=_0xef0c92;for(;_0x526a42>0x0;){const _0x2ce340=(_0x526a42-0x1)%0x1a;_0x325a0b=String['fromCharCode'](0x61+_0x2ce340)+_0x325a0b,_0x526a42=Math['floor']((_0x526a42-0x1)/0x1a);}return _0xee38bd?_0x325a0b['toUpperCase']():_0x325a0b;}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(_0x1bfbd3,_0x33354f){let _0x4c153f='',_0x3d774a=_0x1bfbd3;for(const {value:_0x430577,numeral:_0x3d4a15}of N)for(;_0x3d774a>=_0x430577;)_0x4c153f+=_0x3d4a15,_0x3d774a-=_0x430577;return _0x33354f?_0x4c153f:_0x4c153f['toLowerCase']();}class H extends _0x16ec18{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x24d7eb();['focusCycler'];constructor(_0x4c7092,{styleButtonViews:_0xef1a59,styleGridAriaLabel:_0x21fb29}){super(_0x4c7092),(this['focusCycler']=new _0x3fac62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xef1a59,_0x21fb29),[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 _0x429a4b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x429a4b['element']);_0x30afc3({'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 _0x4449f4=_0x3596ba=>_0x3596ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4449f4),this['keystrokes']['set']('arrowleft',_0x4449f4),this['keystrokes']['set']('arrowup',_0x4449f4),this['keystrokes']['set']('arrowdown',_0x4449f4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x56cd93,_0x1709c0){const _0x4a92ca=new _0x16ec18(this['locale']);return _0x4a92ca['children']=_0x4a92ca['createCollection'](),_0x4a92ca['children']['addMany'](_0x56cd93),_0x4a92ca['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1709c0,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4a92ca['children']}),_0x4a92ca['children']['delegate']('execute')['to'](this),_0x4a92ca['focus']=function(){for(const _0x4355d2 of this['children'])if(_0x4355d2 instanceof _0x3fc837&&_0x4355d2['isOn'])return void _0x4355d2['focus']();this['children']['first']['focus']();},_0x4a92ca['focusTracker']=new et(),_0x4a92ca['keystrokes']=new ot(),_0x4a92ca['render'](),_0x4a92ca['keystrokes']['listenTo'](_0x4a92ca['element']),this['children']['add'](_0x4a92ca),_0x4a92ca;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x534590=this['_createStartIndexPropertyView'](),_0x2f7342=[_0x534590],_0x17c40c=new tt(this['locale'],_0x2f7342);return _0x17c40c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x17c40c['buttonView']['bind']('isEnabled')['toMany'](_0x2f7342,'isEnabled',(..._0x42dc93)=>_0x42dc93['some'](_0x322d2f=>_0x322d2f)),_0x17c40c['buttonView']['on']('change:isEnabled',(_0xcc252b,_0x21917a,_0x58068d)=>{_0x58068d||(_0x17c40c['isCollapsed']=!0x0);}),this['children']['add'](_0x17c40c),[_0x534590,_0x17c40c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2abef5=new st(this['locale'],it);return _0x2abef5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2abef5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2abef5['fieldView']['on']('input',()=>{const _0x24e592=_0x2abef5['fieldView']['element'],_0x2c3fb2=_0x24e592['valueAsNumber'];Number['isNaN'](_0x2c3fb2)?_0x2abef5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x24e592['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2c3fb2}):_0x2abef5['errorText']=t(_0x2c3fb2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2abef5;}}class j extends _0x455464{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x58e7ed,_0x4ed730];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d446b}=this,{componentFactory:_0x3bc900}=_0x4d446b['ui'];_0x4d446b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3bc900['add']('footnotesStyle',function(_0x419c56){return _0x36ad7e=>{const {t:t}=_0x36ad7e,_0x16061b=_0x419c56['commands']['get']('footnotesStyle'),_0x8aae44=_0x25312a(_0x36ad7e),{buttonView:_0x1c791d}=_0x8aae44;return _0x8aae44['class']='ck-footnotes-styles-dropdown',_0x8aae44['bind']('isEnabled')['to'](_0x16061b,'isEnabled'),_0x1c791d['set']({'label':t('Footnotes\x20style'),'icon':_0x28343b,'tooltip':!0x0}),_0x8aae44['once']('change:isOpen',()=>{const _0x521300=function({editor:_0x1cfc8b,dropdownView:_0x584dee}){const {t:t}=_0x1cfc8b['locale'],_0x11dd0c=t('Footnotes\x20definitions\x20styles'),_0x3f746c=function(_0x40f0fb){const t=_0x40f0fb['locale']['t'],_0x43130e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2fe3d9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xfa77b3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x56fe8c},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2c3adb},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x20b999},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4c7353}];return _0x43130e['map'](function(_0x3fd3bb){const _0x554a4f=_0x3fd3bb['locale'];return({label:_0x1f5843,icon:_0xd99f13,tooltip:_0x4ffd21,style:_0x5d782e})=>{const _0x43ee67=_0x3fd3bb['commands']['get']('footnotesStyle'),_0x3430cf=new _0x3fc837(_0x554a4f);return _0x3430cf['set']({'label':_0x1f5843,'icon':_0xd99f13,'tooltip':_0x4ffd21}),_0x3430cf['bind']('isOn')['to'](_0x43ee67,'value',_0x350320=>_0x350320===_0x5d782e),_0x3430cf['bind']('isEnabled')['to'](_0x43ee67,'isEnabled'),_0x3430cf['on']('execute',()=>{_0x3fd3bb['execute']('footnotesStyle',{'value':_0x5d782e}),_0x3fd3bb['editing']['view']['focus']();}),_0x3430cf;};}(_0x40f0fb));}(_0x1cfc8b),_0x297d1c=new H(_0x1cfc8b['locale'],{'styleGridAriaLabel':_0x11dd0c,'styleButtonViews':_0x3f746c});return _0x297d1c['delegate']('execute')['to'](_0x584dee),_0x297d1c['on']('footnotesListStart',(_0x591b4c,_0x1c785b)=>{_0x1cfc8b['execute']('footnotesStart',{'value':_0x1c785b['startIndex']});}),_0x297d1c;}({'editor':_0x419c56,'dropdownView':_0x8aae44});_0x8aae44['panelView']['children']['add'](_0x521300);}),_0x8aae44;};}(_0x4d446b));}['afterInit'](){const {editor:_0x2051ab}=this,{t:t}=_0x2051ab['locale'],_0x2c83e6=_0x2051ab['plugins']['get'](_0x4ed730),{defaultPositions:_0x4b465c}=_0x4f2f53;_0x2c83e6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2051ab['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2a04f6=>{let _0x51a85d=_0x2a04f6['getFirstPosition']()?.['parent'];return _0x51a85d?.['is']('$text')&&(_0x51a85d=_0x51a85d['parent']),_0x51a85d?.['is']('element')?_0x51a85d['findAncestor'](J):null;},'positions':[_0x4b465c['southArrowNorth'],_0x4b465c['southArrowNorthMiddleWest'],_0x4b465c['southArrowNorthMiddleEast'],_0x4b465c['southArrowNorthWest'],_0x4b465c['southArrowNorthEast'],_0x4b465c['northArrowSouth'],_0x4b465c['northArrowSouthMiddleWest'],_0x4b465c['northArrowSouthMiddleEast'],_0x4b465c['northArrowSouthWest'],_0x4b465c['northArrowSouthEast'],_0x4b465c['viewportStickyNorth']]});}}class lt extends _0x455464{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 _0x43bd3c,Command as _0x8bee50}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3aad28,isWidget as _0x14c998,toWidgetEditable as _0x517596,WidgetToolbarRepository as _0x394505}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3d20cc,logWarning as _0x2c2de2,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2376c6,ClickObserver as _0x3b95a1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x13dd51}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3d72d1,ButtonView as _0xede7c4,View as _0x54f983,ViewCollection as _0x470575,FocusCycler as _0x2749b3,addKeyboardHandlingForGrid as _0x3f496a,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x86afc8,BalloonPanelView as _0x22995d,createDropdown as _0x370afd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4f816e,IconListStyleDecimal as _0x14a3ea,IconListStyleDecimalLeadingZero as _0x55064c,IconListStyleLowerRoman as _0x164851,IconListStyleUpperRoman as _0x1d15e8,IconListStyleLowerLatin as _0x2911c6,IconListStyleUpperLatin as _0x5b7a8f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x408ad6,_0x93401c){this['_model']=_0x408ad6,this['_elementName']=_0x93401c['elementName'],this['_getElementKey']=_0x93401c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x34a1e1){const _0x33b3a8=new Set(),_0x2385cb=new Map();for(const _0x426cf4 of _0x34a1e1){if('insert'===_0x426cf4['type']&&'$text'!==_0x426cf4['name']&&_0x426cf4['position']['nodeAfter']){const _0xd61f99=this['_model']['createRangeOn'](_0x426cf4['position']['nodeAfter']);for(const _0xc60b2e of _0xd61f99['getItems']()){if(!_0xc60b2e['is']('element',this['_elementName']))continue;const _0x4c34cd=this['_getElementKey'](_0xc60b2e);_0x2385cb['has'](_0x4c34cd)||_0x2385cb['set'](_0x4c34cd,[]),_0x2385cb['get'](_0x4c34cd)['push'](_0xc60b2e);}}if('remove'===_0x426cf4['type']&&_0x426cf4['name']===this['_elementName']){const _0xac5458=this['_getElementKey']({'getAttribute':_0x29ad=>_0x426cf4['attributes']['get'](_0x29ad)});_0x33b3a8['add'](_0xac5458);}}for(const [_0xba78fd,_0x9700f8]of this['_trackedElements'])'$graveyard'===_0x9700f8['root']['rootName']&&_0x33b3a8['add'](_0xba78fd);for(const _0x1736f6 of _0x33b3a8)this['_trackedElements']['delete'](_0x1736f6);for(const [_0x28b227,_0x5b0b31]of _0x2385cb)this['_trackedElements']['set'](_0x28b227,_0x5b0b31[_0x5b0b31['length']-0x1]);const _0x37b5cc=new Set();for(const [_0x5f18e1,_0x5cdfad]of _0x2385cb)_0x33b3a8['has'](_0x5f18e1)&&(_0x37b5cc['add'](_0x5cdfad[0x0]),_0x5cdfad['length']>0x1?_0x2385cb['set'](_0x5f18e1,_0x5cdfad['slice'](0x1)):_0x2385cb['delete'](_0x5f18e1),_0x33b3a8['delete'](_0x5f18e1));return{'removed':Array['from'](_0x33b3a8),'inserted':Array['from'](_0x2385cb['values']())['flat'](),'moved':Array['from'](_0x37b5cc)};}}class c extends _0x43bd3c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c78){super(_0x5b8c78),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x13d0b4=>_0x13d0b4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3a79f0=>_0x3a79f0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x581c4a}=this,{model:_0x2eb207,data:_0x55289d}=_0x581c4a;_0x2eb207['document']['registerPostFixer'](_0x990669=>{const _0x12fa9f=_0x2eb207['document']['differ']['getChanges']();let _0x1f1d9e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_handleFootnoteReferencesChanges'](_0x990669,_0x12fa9f)&&(_0x1f1d9e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x990669)&&(_0x1f1d9e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x990669)&&(_0x1f1d9e=!0x0),this['_sortFootnoteDefinitions'](_0x990669)&&(_0x1f1d9e=!0x0),_0x1f1d9e;}),this['listenTo'](_0x2eb207['document'],'change:data',()=>{_0x2eb207['enqueueChange']({'isUndoable':!0x1},_0x45f774=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x45f774);});},{'priority':'low'}),this['listenTo'](_0x55289d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3fcaca){return this['_footnotes']['find'](_0x1b67ec=>_0x1b67ec['id']===_0x3fcaca)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x171e3e){this['_footnoteFormatter']=_0x171e3e;}['_updateFootnotesCounters'](_0x491021,_0x4ad6dc=0x0){let _0x3cf39d=!0x1;for(let _0xe1bca7=_0x4ad6dc;_0xe1bca7<this['_footnotes']['length'];_0xe1bca7++)this['_updateFootnoteRefCounter'](_0x491021,_0xe1bca7)&&(_0x3cf39d=!0x0);return _0x3cf39d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5f1f42,_0x56deb3){const _0xf7ade=_0x5f1f42['createElement']('footnotesDefinitions',{});return _0x5f1f42['append'](_0xf7ade,_0x56deb3),this['_footnotesDefinitions']=_0xf7ade,_0xf7ade;}['_ensureFootnotesDefinitionsContainerExists'](_0x250bae){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x679a0c=this['_footnotes'][0x0]['reference']['root'],_0x2924b0=this['_insertEmptyFootnotesDefinitionsContainer'](_0x250bae,_0x679a0c);for(const _0x1d14e1 of this['_footnotes'])_0x1d14e1['definition']['parent']||_0x250bae['insert'](_0x1d14e1['definition'],_0x2924b0,'end');this['_updateFootnotesCounters'](_0x250bae);}['_handleFootnotesDefinitionsObjectChanges'](_0x10156b,_0x9cef2f){let _0x271580=!0x1;const {inserted:_0x4c4590,removed:_0x2df6d0,moved:_0x2c663d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x9cef2f);if(_0x2c663d['length']&&(this['_footnotesDefinitions']=_0x2c663d[0x0]),_0x4c4590['length']){if(_0x4c4590['length']>0x1||this['_footnotesDefinitions']&&_0x4c4590['some'](_0x448d5a=>_0x448d5a!==this['_footnotesDefinitions'])){const _0x11884b=_0x10156b['createElement']('footnotesDefinitions',{}),_0x52cb0a=[];this['_footnotesDefinitions']&&_0x52cb0a['push'](this['_footnotesDefinitions']),_0x52cb0a['push'](..._0x4c4590),_0x10156b['insert'](_0x11884b,_0x52cb0a[0x0],'before');for(const _0xd5b83d of _0x52cb0a)_0x10156b['move'](_0x10156b['createRangeIn'](_0xd5b83d),_0x10156b['createPositionAt'](_0x11884b,'end')),_0x10156b['remove'](_0xd5b83d);this['_footnotesDefinitions']=_0x11884b,this['_updateFootnotesCounters'](_0x10156b),_0x271580=!0x0;}else this['_footnotesDefinitions']=_0x4c4590[0x0];}if(_0x2df6d0['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4d8cc0 of this['_footnotes'])_0x10156b['remove'](_0x4d8cc0['reference']),_0x271580=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x271580;}['_handleFootnoteDefinitionsChanges'](_0x37fc53,_0x1bad45){let _0x46be9f=!0x1;const _0x43c1d2=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5bd7b5,moved:_0x3f9027}=this['_footnoteDefsTracker']['getChanges'](_0x1bad45);for(const _0x41a928 of[..._0x3f9027,..._0x5bd7b5]){const _0x104879=_0x41a928['getAttribute']('footnoteId'),_0x3b3aea=this['getFootnote'](_0x104879);_0x3b3aea&&(_0x3b3aea['definition']=_0x41a928),_(_0x37fc53,_0x43c1d2,_0x41a928)&&(_0x46be9f=!0x0);}return _0x46be9f;}['_handleFootnoteReferencesChanges'](_0x20dfec,_0x1f37dd){let _0x2f8aea=!0x1;const {removed:_0x592da5,inserted:_0x1c4810,moved:_0x19cb35}=this['_footnoteRefsTracker']['getChanges'](_0x1f37dd);for(const _0x7c5f2e of _0x592da5)this['_handleRemoveFootnoteReferenceById'](_0x20dfec,_0x7c5f2e)&&(_0x2f8aea=!0x0);for(const _0x393e6b of _0x1c4810)this['_handleInsertedFootnoteReference'](_0x20dfec,_0x393e6b)&&(_0x2f8aea=!0x0);for(const _0x3aebad of _0x19cb35)this['_handleMovedFootnoteReference'](_0x20dfec,_0x3aebad)&&(_0x2f8aea=!0x0);return _0x2f8aea;}['_handleFootnotesDefinitionsObjectSync'](_0x341dd7){if(!this['_footnotesDefinitions'])return!0x1;let _0x158d7c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4b16de=[];for(const _0x33c5ff of this['_footnotesDefinitions']['getChildren']()){const _0x17ac37=_0x33c5ff['getAttribute']('footnoteId');this['getFootnote'](_0x17ac37)||(_0x4b16de['unshift'](_0x33c5ff),_0x158d7c=!0x0);}for(const _0x10772c of _0x4b16de)_0x341dd7['remove'](_0x10772c);}const _0xd39590=new Set(),_0x1b62c5=[];for(const _0xf71cad of this['_footnotesDefinitions']['getChildren']()){const _0x4d54ee=_0xf71cad['getAttribute']('footnoteId');_0xd39590['has'](_0x4d54ee)?(_0x1b62c5['unshift'](_0xf71cad),_0x158d7c=!0x0):_0xd39590['add'](_0x4d54ee);}for(const _0x57246f of _0x1b62c5)_0x341dd7['remove'](_0x57246f);return this['_footnotesDefinitions']['childCount']||(_0x341dd7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x158d7c=!0x0),_0x158d7c;}['_handleInsertedFootnoteReference'](_0x2460a7,_0x31a186){if(this['_footnotes']['find'](_0x5d468a=>_0x5d468a['reference']===_0x31a186))return!0x1;let _0x43fbbc=!0x1;const _0x398e13=_0x31a186['getAttribute']('footnoteId'),_0x3d5a48=this['_footnotes']['findIndex'](_0x493053=>_0x493053['id']===_0x398e13);-0x1!==_0x3d5a48&&(_0x2460a7['remove'](this['_footnotes'][_0x3d5a48]['reference']),this['_footnotes']['splice'](_0x3d5a48,0x1),_0x43fbbc=!0x0);let _0x2ed01e=this['_footnotesDefinitions']?function(_0x19f27c,_0x5e58ab){for(const _0x2b920c of _0x19f27c['getChildren']())if(_0x2b920c['getAttribute']('footnoteId')===_0x5e58ab)return _0x2b920c;return null;}(this['_footnotesDefinitions'],_0x398e13):null;_0x2ed01e||(_0x2ed01e=_0x2460a7['createElement']('footnoteDefinition',{'footnoteId':_0x398e13}),this['_footnotesDefinitions']&&(_0x2460a7['insert'](_0x2ed01e,this['_footnotesDefinitions'],'end'),_0x43fbbc=!0x0));const _0x37068f={'id':_0x398e13,'reference':_0x31a186,'definition':_0x2ed01e},_0x110c3b=I(this['editor']['model'],this['_footnotes'],_0x31a186);this['_footnotes']['splice'](_0x110c3b,0x0,_0x37068f);let _0x41b7fc=_0x110c3b;return-0x1!==_0x3d5a48&&(_0x41b7fc=Math['min'](_0x110c3b,_0x3d5a48)),this['_updateFootnotesCounters'](_0x2460a7,_0x41b7fc)&&(_0x43fbbc=!0x0),_0x43fbbc;}['_handleRemoveFootnoteReferenceById'](_0x12623,_0x124568){const _0x36ec6f=this['_footnotes']['findIndex'](_0x1d11a6=>_0x1d11a6['id']===_0x124568);if(-0x1===_0x36ec6f)return!0x1;let _0x4c005f=!0x1;const _0x3a34ab=this['_footnotes'][_0x36ec6f];return'$graveyard'!==_0x3a34ab['definition']['root']['rootName']&&(_0x12623['remove'](_0x3a34ab['definition']),_0x4c005f=!0x0),this['_footnotes']['splice'](_0x36ec6f,0x1),this['_updateFootnotesCounters'](_0x12623,_0x36ec6f)&&(_0x4c005f=!0x0),_0x4c005f;}['_handleMovedFootnoteReference'](_0x2b7782,_0x1b68e2){const _0x1f18b8=_0x1b68e2['getAttribute']('footnoteId'),_0x2e2828=this['_footnotes']['findIndex'](_0x21c078=>_0x21c078['id']===_0x1f18b8),_0x59ca68=this['_footnotes'][_0x2e2828];let _0xea281b=!0x1;_0x59ca68['reference']=_0x1b68e2,this['_footnotes']['splice'](_0x2e2828,0x1);const _0x1b12e8=I(this['editor']['model'],this['_footnotes'],_0x1b68e2);return this['_footnotes']['splice'](_0x1b12e8,0x0,_0x59ca68),this['_updateFootnotesCounters'](_0x2b7782,Math['min'](_0x2e2828,_0x1b12e8))&&(_0xea281b=!0x0),_0xea281b;}['_updateFootnoteRefCounter'](_0x347b2f,_0xc0009d){if(!this['_footnotesDefinitions'])return!0x1;const _0x5d0d18=this['_footnotes'][_0xc0009d];let _0x34a988;return _0x34a988=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5d0d18,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc0009d+0x1}):String(_0xc0009d+0x1),_0x5d0d18['reference']['getAttribute']('footnoteCounter')!=_0x34a988&&(_0x347b2f['setAttribute']('footnoteCounter',_0x34a988,_0x5d0d18['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4fa982){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x51b67f,_0x39b631){if(_0x51b67f['length']!==_0x39b631['length'])return!0x1;for(let _0x391d28=0x0;_0x391d28<_0x51b67f['length'];_0x391d28++)if(_0x51b67f[_0x391d28]!==_0x39b631[_0x391d28])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x529a71=>_0x529a71['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x26c85d=>_0x26c85d['getAttribute']('footnoteId'))))return!0x1;let _0x55b1c5=!0x1;for(let _0x131bb9=0x0;_0x131bb9<this['_footnotes']['length'];_0x131bb9++){const _0x4378ab=this['_footnotes'][_0x131bb9],_0x1f4cff=_0x4fa982['createPositionBefore'](_0x4378ab['definition']),_0x3ee755=_0x4fa982['createPositionAt'](this['_footnotesDefinitions'],_0x131bb9);_0x1f4cff['isEqual'](_0x3ee755)||(_0x4fa982['move'](_0x4fa982['createRangeOn'](_0x4378ab['definition']),_0x3ee755),_0x55b1c5=!0x0);}return _0x55b1c5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4e5abf){if(!this['_footnotes']['length'])return!0x1;const {model:_0x570a39}=this['editor'];let _0x47eba5=!0x1;for(let _0x1ea3b9=0x0;_0x1ea3b9<this['_footnotes']['length']-0x1;_0x1ea3b9++){const _0x4c03ff=this['_footnotes'][_0x1ea3b9],_0x10892f=this['_footnotes'][_0x1ea3b9+0x1],_0x5f2840=_0x570a39['createPositionBefore'](_0x4c03ff['reference']),_0x58f42c=_0x570a39['createPositionBefore'](_0x10892f['reference']);'after'===_0x5f2840['compareWith'](_0x58f42c)&&(this['_handleMovedFootnoteReference'](_0x4e5abf,_0x4c03ff['reference']),_0x1ea3b9=-0x1,_0x47eba5=!0x0);}return _0x47eba5;}}function _(_0x556e17,_0xe9b61c,_0x1c3bf9){if(_0x1c3bf9['childCount'])return!0x1;const _0x579b7a=_0xe9b61c?'paragraph':'footnoteInlineContent';return _0x556e17['insert'](_0x556e17['createElement'](_0x579b7a),_0x1c3bf9),!0x0;}function I(_0x22ba3c,_0x246ab3,_0x3155e5){if(0x0===_0x246ab3['length'])return 0x0;const _0x1b0354=_0x22ba3c['createPositionBefore'](_0x3155e5);for(let _0x185638=0x0;_0x185638<_0x246ab3['length'];_0x185638++){const _0x3246d9=_0x246ab3[_0x185638],_0x25fb7b=_0x22ba3c['createPositionBefore'](_0x3246d9['reference']);if('before'===_0x1b0354['compareWith'](_0x25fb7b))return _0x185638;}const _0x2f4dcd=_0x3155e5['root'];let _0x5b1ccb=-0x1;for(let _0x51a48e=_0x246ab3['length']-0x1;_0x51a48e>=0x0;_0x51a48e--)if(_0x246ab3[_0x51a48e]['reference']['root']===_0x2f4dcd){_0x5b1ccb=_0x51a48e;break;}if(-0x1!==_0x5b1ccb)return _0x5b1ccb+0x1;const _0x258a37=_0x22ba3c['document']['getRootNames'](),_0x226ef8=_0x258a37['indexOf'](_0x2f4dcd['rootName']),_0x138073=_0x258a37[_0x226ef8+0x1];if(_0x138073){for(let _0x4ec6d5=0x0;_0x4ec6d5<_0x246ab3['length'];_0x4ec6d5++)if(_0x246ab3[_0x4ec6d5]['reference']['root']['rootName']===_0x138073)return _0x4ec6d5;}return _0x246ab3['length'];}class w extends _0x8bee50{['refresh'](){const _0x3fd821=this['editor']['model']['document']['selection'],_0x40660a=this['_getPositionToInsertFootnote'](_0x3fd821);this['isEnabled']=!!_0x40660a;}['execute'](_0xef721c){const {editor:_0x29492a}=this,{model:_0x4552d5}=_0x29492a,{selection:_0x447159}=_0x4552d5['document'],_0x332d23=this['_getPositionToInsertFootnote'](_0x447159);if(!_0x332d23)return;const _0x50231a=_0x29492a['plugins']['get']('FootnotesEditing'),_0x1aaefc=_0xef721c?.['footnoteId']??_0x3d20cc();!function(_0x3d8cfc){return'string'==typeof _0x3d8cfc&&_0x3d8cfc['length']>0x0&&!/\s/['test'](_0x3d8cfc)&&!/^\d/['test'](_0x3d8cfc);}(_0x1aaefc)?_0x2c2de2('insert-footnote-command-executed-with-invalid-id'):(_0x4552d5['change'](_0x358db3=>{const _0x1f3f6d=_0x358db3['createElement']('footnoteRef',{'footnoteId':_0x1aaefc});_0x4552d5['insertObject'](_0x1f3f6d,_0x332d23,null);}),_0x50231a['_moveSelectionToFootnoteDefinition'](_0x1aaefc));}['_getPositionToInsertFootnote'](_0x5893c9){const {model:_0x456dcd}=this['editor'],{schema:_0x1bb281}=_0x456dcd,_0x1482e9=_0x5893c9['getFirstRange']();for(const _0x3be079 of _0x1482e9['getItems']())if(_0x1bb281['isBlock'](_0x3be079)||_0x1bb281['isObject'](_0x3be079))return null;const _0x2773a4=_0x1482e9['end'];return _0x1bb281['checkChild'](_0x2773a4,'footnoteRef')?_0x2773a4:null;}}class r extends _0x43bd3c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31ee0c}=this;_0x31ee0c['config']['define']('footnotes.multiBlock',!0x0),_0x31ee0c['commands']['add']('insertFootnote',new w(_0x31ee0c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x39de55){const _0x47d690=_0xec59f5([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]),_0x2d727b=0x47a28506,_0xdfc02d=0x47a5fd26^_0x2d727b,_0x2b8ced=window[_0xec59f5([0x44,0x61,0x74,0x65])][_0xec59f5([0x6e,0x6f,0x77])](),_0x35800f=_0x39de55[_0xec59f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0f31=new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416fa8=>{_0x35800f[_0xec59f5([0x6f,0x6e,0x63,0x65])](_0xec59f5([0x72,0x65,0x61,0x64,0x79]),_0x416fa8);}),_0x561778={[_0xec59f5([0x6b,0x74,0x79])]:_0xec59f5([0x45,0x43]),[_0xec59f5([0x75,0x73,0x65])]:_0xec59f5([0x73,0x69,0x67]),[_0xec59f5([0x63,0x72,0x76])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36]),[_0xec59f5([0x78])]:_0xec59f5([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]),[_0xec59f5([0x79])]:_0xec59f5([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]),[_0xec59f5([0x61,0x6c,0x67])]:_0xec59f5([0x45,0x53,0x32,0x35,0x36])},_0x4ef5e8=_0x35800f[_0xec59f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xec59f5([0x67,0x65,0x74])](_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c94ce(){let _0x2b3708,_0x38255f=null,_0x37bb2=null;try{if(_0x4ef5e8==_0xec59f5([0x47,0x50,0x4c]))return _0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b3708=_0x399dd7(),!_0x2b3708)return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37bb2=_0x52cd4b(_0x2b3708[_0xec59f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b3708[_0xec59f5([0x6a,0x74,0x69])])),await _0x16beab()?_0x120700()?_0x1db673()?_0xec59f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e9155()?(_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec59f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x38255f=_0x4b6bf0(_0xec59f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c3106()):_0xec59f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xec59f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db673(){const _0x651554=[_0xec59f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xec59f5([0x74,0x72,0x69,0x61,0x6c])][_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b8ced/0x3e8:0xe10*_0xdfc02d;return _0x2b3708[_0xec59f5([0x65,0x78,0x70])]<_0x651554;}function _0x120700(){const _0x4ab717=_0x2b3708[_0xec59f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ab717&&(!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a]))||!!_0x4ab717[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x46,0x4f,0x4f])));}function _0x4e9155(){const _0x250450=_0x2b3708[_0xec59f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x250450||0x0==_0x250450[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49c216}=new URL(window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x250450[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c216))return!0x0;const _0x5d73cb=_0x49c216[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));return _0x250450[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40a4ef=>_0x40a4ef[_0xec59f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec59f5([0x2a])))[_0xec59f5([0x6d,0x61,0x70])](_0x55ce9c=>_0x55ce9c[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])))[_0xec59f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1782b4=>_0x1782b4[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x6d,0x61,0x70])](_0x977ed=>Array(_0x5d73cb[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x977ed[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec59f5([0x66,0x69,0x6c,0x6c])](_0x977ed[0x0]===_0xec59f5([0x2a])?_0xec59f5([0x2a]):'')[_0xec59f5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x977ed))[_0xec59f5([0x73,0x6f,0x6d,0x65])](_0x2d0eb0=>_0x5d73cb[_0xec59f5([0x65,0x76,0x65,0x72,0x79])]((_0x1792a1,_0x88cc6a)=>_0x2d0eb0[_0x88cc6a]===_0x1792a1||_0x2d0eb0[_0x88cc6a]===_0xec59f5([0x2a])));}function _0x1c3106(){return _0x38255f&&_0x37bb2?new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x467ac2,_0x1397fb)=>{_0x38255f[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x467ac2,_0x1397fb),_0x37bb2[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x1ae25a=>{_0x1ae25a!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x467ac2(_0x1ae25a);},_0x1397fb);}):_0x38255f||_0x37bb2||_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52cd4b(_0x7e6ae3,_0x296d56){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2097df=>{if(_0x452cac())return _0x2097df(_0xec59f5([0x56,0x61,0x6c,0x69,0x64]));_0x107e99(),_0x35800f[_0xec59f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x243287=!0x1;const _0x35df47=_0x3d20cc();function _0x18b578(_0x2a5c41){return!!_0x2a5c41&&(typeof _0x2a5c41===_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a5c41===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a5c41[_0xec59f5([0x74,0x68,0x65,0x6e])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a5c41[_0xec59f5([0x63,0x61,0x74,0x63,0x68])]===_0xec59f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x340afc(_0xf1bdce){_0xc44cc7(_0xf1bdce)[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2017e4=>{if(!_0x2017e4||_0x2017e4[_0xec59f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xec59f5([0x6f,0x6b]))return _0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b37eb(_0x3089ae(_0x35df47+_0x296d56))!=_0x2017e4[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xec59f5([0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x4d2744=>(_0x250ba6(),_0x4d2744),()=>{const _0x4aba16=_0x2b00b8();return null==_0x4aba16?(_0x250ba6(),_0xec59f5([0x56,0x61,0x6c,0x69,0x64])):_0xec59f5(_0x2b8ced-_0x4aba16>(0x63ae0106^_0x2d727b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x2097df)[_0xec59f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x487084=0x47946b86^_0x2d727b;function _0x250ba6(){const _0x14e0b2=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x406b64=_0x1400aa(_0x1b37eb(window[_0xec59f5([0x4d,0x61,0x74,0x68])][_0xec59f5([0x63,0x65,0x69,0x6c])](_0x2b8ced/_0x487084)));window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14e0b2,_0x406b64);}function _0x2b00b8(){const _0x270d5e=_0xec59f5([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b37eb(_0x3089ae(_0x7e6ae3)),_0x348bfa=window[_0xec59f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec59f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270d5e);return _0x348bfa?window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1400aa(_0x348bfa),0x10)*_0x487084:null;}function _0xc44cc7(_0x421e54){return new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e4613,_0x29b5ab)=>{_0x421e54[_0xec59f5([0x74,0x68,0x65,0x6e])](_0x5e4613,_0x29b5ab),window[_0xec59f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29b5ab,0x47a351c6^_0x2d727b);});}}_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb7ca6e,_0x5f543e)=>{if(_0x5f543e[0x0]!=_0x7e6ae3)return _0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f543e[0x1]={..._0x5f543e[0x1],[_0xec59f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35df47};},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x68,0x69,0x67,0x68])}),_0x35800f[_0xec59f5([0x6f,0x6e])](_0xec59f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34c319=>{_0x18b578(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x243287=!0x0,_0x340afc(_0x34c319[_0xec59f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xec59f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec59f5([0x6c,0x6f,0x77])}),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>{_0x243287||_0x2097df(_0xec59f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452cac(){return _0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xec59f5([0x61,0x75,0x74,0x6f]);}function _0x107e99(){_0x35800f[_0xec59f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec59f5([0x76,0x69,0x65,0x77])][_0xec59f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xec59f5([0x61,0x75,0x74,0x6f]);}}function _0x4b6bf0(_0x211118){const _0x59404c=[new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x576e28=>setTimeout(_0x576e28,0x47abbbca^_0x2d727b)),_0x4b0f31[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d3a39=>{let _0x19c7ab=0x0;_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x6f,0x6e])](_0xec59f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34f078,_0x5b6570)=>{_0x5b6570[0x0][_0xec59f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19c7ab++,_0x19c7ab==(0x47a284fe^_0x2d727b)&&(_0x2d3a39(),_0x34f078[_0xec59f5([0x6f,0x66,0x66])]());});}))];return window[_0xec59f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xec59f5([0x72,0x61,0x63,0x65])](_0x59404c)[_0xec59f5([0x74,0x68,0x65,0x6e])](()=>_0x211118);}async function _0x1084bd(){await _0x4b0f31,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c])][_0xec59f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22ef0d,_0x35800f[_0xec59f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xec59f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dce7(_0x3b9e8c){const _0x3b9828=_0x30adb8();_0x35800f[_0x3b9828]=_0xec59f5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b9e8c,_0x3b9e8c!=_0xec59f5([0x56,0x61,0x6c,0x69,0x64])&&_0x1084bd();}function _0x30adb8(){const _0x443a2f=window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xec59f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xec59f5([0x6e,0x6f,0x77])]())[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xec59f5([0x2e]),'');let _0x30a99b=_0xec59f5([0x75]);for(let _0x1b6555=0x0;_0x1b6555<_0x443a2f[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b6555+=0x2){let _0x1f156e=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443a2f[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b6555,_0x1b6555+0x2));_0x1f156e>=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f156e-=_0x47d690[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30a99b+=_0x47d690[_0x1f156e];}return _0x30a99b;}function _0x399dd7(){const _0x1cf61c=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e]));if(0x3!=_0x1cf61c[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27933a(_0x1cf61c[0x1]);function _0x27933a(_0x498dfc){const _0x384c66=_0x50b05a(_0x498dfc);return _0x384c66&&_0x2b5abf()?_0x384c66:null;function _0x2b5abf(){const _0x15d7dd=_0x384c66[_0xec59f5([0x6a,0x74,0x69])],_0x121094=window[_0xec59f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45b6cf={..._0x384c66,[_0xec59f5([0x6a,0x74,0x69])]:_0x15d7dd[_0xec59f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d7dd[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45b6cf[_0xec59f5([0x76,0x63])],_0x3089ae(_0x45b6cf)==_0x121094;}}}async function _0x16beab(){let _0x33343a=!0x0;try{const _0x3892e4=_0x4ef5e8[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])](_0xec59f5([0x2e])),[_0x2ab739,_0x1ad6c1,_0x2d0c7f]=_0x3892e4;return _0x227d22(_0x2ab739),await _0x51d9c6(_0x2ab739,_0x1ad6c1,_0x2d0c7f),_0x33343a;}catch{return!0x1;}function _0x227d22(_0x5cd11d){const _0x3ebb39=_0x50b05a(_0x5cd11d);_0x3ebb39&&_0x3ebb39[_0xec59f5([0x61,0x6c,0x67])]==_0xec59f5([0x45,0x53,0x32,0x35,0x36])||(_0x33343a=!0x1);}async function _0x51d9c6(_0x2ee4c2,_0x5d67be,_0x5600e0){const _0x590903=window[_0xec59f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xec59f5([0x66,0x72,0x6f,0x6d])](_0x52a86c(_0x5600e0),_0x23a1f8=>_0x23a1f8[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2029bf=new window[(_0xec59f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xec59f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee4c2+_0xec59f5([0x2e])+_0x5d67be),_0x10df0e=window[_0xec59f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xec59f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10df0e)return;const _0xf53d08=await _0x10df0e[_0xec59f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xec59f5([0x6a,0x77,0x6b]),_0x561778,{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xec59f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10df0e[_0xec59f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x45,0x43,0x44,0x53,0x41]),[_0xec59f5([0x68,0x61,0x73,0x68])]:{[_0xec59f5([0x6e,0x61,0x6d,0x65])]:_0xec59f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf53d08,_0x590903,_0x2029bf)||(_0x33343a=!0x1);}}function _0x50b05a(_0x4c55cf){return _0x4c55cf[_0xec59f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xec59f5([0x65,0x79]))?JSON[_0xec59f5([0x70,0x61,0x72,0x73,0x65])](_0x52a86c(_0x4c55cf)):null;}function _0x52a86c(_0x6c8de){return window[_0xec59f5([0x61,0x74,0x6f,0x62])](_0x6c8de[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xec59f5([0x2b]))[_0xec59f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xec59f5([0x2f])));}function _0x3089ae(_0x20e012){let _0x35cbcf=0x1505;function _0xc283e9(_0x4cf12d){for(let _0x25f9ed=0x0;_0x25f9ed<_0x4cf12d[_0xec59f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25f9ed++){const _0x210cac=_0x4cf12d[_0xec59f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25f9ed);_0x35cbcf=(_0x35cbcf<<0x5)+_0x35cbcf+_0x210cac,_0x35cbcf&=_0x35cbcf;}}function _0x5c9cb0(_0xb34003){Array[_0xec59f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb34003)?_0xb34003[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c9cb0):_0xb34003&&typeof _0xb34003==_0xec59f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xec59f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb34003)[_0xec59f5([0x73,0x6f,0x72,0x74])]()[_0xec59f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1588b6,_0x4fbb2c])=>{_0xc283e9(_0x1588b6),_0x5c9cb0(_0x4fbb2c);}):_0xc283e9(window[_0xec59f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb34003));}return _0x5c9cb0(_0x20e012),_0x35cbcf>>>0x0;}function _0x1b37eb(_0x19b803){return _0x19b803[_0xec59f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xec59f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xec59f5([0x30]));}function _0x1400aa(_0x26f1ff){return _0x26f1ff[_0xec59f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0xec59f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xec59f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x22ef0d(){}function _0xec59f5(_0x31b966){return _0x31b966['map'](_0x26440b=>String['fromCharCode'](_0x26440b))['join']('');}_0x2dce7(await _0x1c94ce());}(this);}['_moveSelectionToFootnoteDefinition'](_0x601316){const {plugins:_0x5a9b25,editing:_0x31a3ea,model:_0x3cf221}=this['editor'],_0x3fba5b=_0x5a9b25['get'](c)['getFootnote'](_0x601316);return!!_0x3fba5b&&(_0x3cf221['change'](_0x5a1aba=>{_0x5a1aba['setSelection'](_0x5a1aba['createPositionAt'](_0x3fba5b['definition'],'end'));}),_0x31a3ea['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4335a8){const {plugins:_0x38b01e,editing:_0x1c9f90,model:_0x514c0c}=this['editor'],_0x404026=_0x38b01e['get'](c)['getFootnote'](_0x4335a8);return!!_0x404026&&(_0x514c0c['change'](_0x251d42=>{_0x251d42['setSelection'](_0x404026['reference'],'on');}),_0x1c9f90['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x247f21}=this['editor']['model'],_0x47fb18=this['editor']['config']['get']('footnotes.multiBlock');_0x247f21['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x247f21['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x247f21['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x47fb18?_0x247f21['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x247f21['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x247f21['addChildCheck'](_0xd9ba2c=>{for(const _0x545813 of _0xd9ba2c)if('footnoteDefinition'===_0x545813['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x39b2fa}=this,{conversion:_0x4c6143,editing:_0x293033}=_0x39b2fa,{t:t}=_0x39b2fa['locale'];_0x4c6143['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2f5b59,{writer:_0x26d232,consumable:_0x4d25f6})=>{const _0x3361a4=_0x2f5b59['getChild'](0x0);if(!_0x3361a4||!_0x3361a4['is']('element','a'))return null;const _0x59abb9=_0x3361a4['getAttribute']('href')||'';if(!_0x59abb9['startsWith']('#'))return null;const _0x40e707=_0x59abb9['replace'](/^#/,'');if(!_0x40e707)return null;_0x4d25f6['consume'](_0x3361a4,{'name':!0x0,'attributes':['href']});for(const {item:_0x5d75bd}of _0x293033['view']['createRangeIn'](_0x3361a4))_0x5d75bd['is']('$textProxy')?_0x4d25f6['consume'](_0x5d75bd['textNode'],{'name':!0x0}):_0x5d75bd['is']('element')&&_0x4d25f6['consume'](_0x5d75bd,{'name':!0x0});return _0x26d232['createElement']('footnoteRef',{'footnoteId':_0x40e707});}}),_0x4c6143['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e0b81,{writer:_0x236679})=>D(_0x3e0b81,_0x236679)}),_0x4c6143['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2de435,{writer:_0x26ba19})=>{const _0x52894a=_0x2de435['getAttribute']('footnoteCounter');return _0x3aad28(D(_0x2de435,_0x26ba19),_0x26ba19,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x52894a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3de329}=this,{t:t}=_0x3de329['locale'],{conversion:_0x56370a}=_0x3de329;_0x56370a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x56370a['for']('upcast')['add'](_0x9bb43e=>{_0x9bb43e['on']('element:ol',(_0x240b78,_0xcb8c6f,_0x22b5c8)=>{const _0x547e07=_0xcb8c6f['viewItem'];if(!_0x547e07['hasClass']('footnotes-list')||!_0xcb8c6f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x22b5c8['consumable']['consume'](_0x547e07,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x51b4d3,modelCursor:_0x5f1ed0}=_0x22b5c8['convertChildren'](_0xcb8c6f['viewItem'],_0xcb8c6f['modelCursor']);_0xcb8c6f['modelRange']=_0x51b4d3,_0xcb8c6f['modelCursor']=_0x5f1ed0;}),_0x9bb43e['on']('element:hr',(_0x1730ea,_0x40ee46,_0x3fbdf5)=>{const _0x525a91=_0x40ee46['viewItem'];_0x525a91['hasClass']('footnotes-divider')&&_0x40ee46['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbdf5['consumable']['consume'](_0x525a91,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x56370a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a8240,{writer:_0x1b8fdf})=>g(_0x1b8fdf)}),_0x56370a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342777,{writer:_0x304edf})=>{const _0x203d79=g(_0x304edf,{'data-footnotes-list-label':t('Footnotes')}),_0x55d033=_0x3aad28(_0x203d79,_0x304edf,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x304edf['setCustomProperty']('footnotesDefinitions',!0x0,_0x55d033),_0x55d033;}});}['_defineDefinitionConverters'](){const {editor:_0x24f048}=this,{conversion:_0x388b86,locale:_0x39823f}=_0x24f048,_0x30b27a=_0x24f048['config']['get']('footnotes.multiBlock');_0x388b86['for']('upcast')['add'](_0x58da91=>{_0x58da91['on']('element:li',(_0x4427a6,_0x583602,_0x2d8763)=>{const _0x57fe1f=_0x583602['viewItem'];if(!_0x57fe1f['hasClass']('footnote-definition')||!_0x57fe1f['getAttribute']('id'))return;const _0x380c4b=_0x57fe1f['parent'];if(!_0x380c4b['is']('element','ol')||!_0x380c4b['hasClass']('footnotes-list'))return;if(!_0x2d8763['consumable']['test'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1bdb63=_0x2d8763['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x57fe1f['getAttribute']('id')});if(!_0x2d8763['safeInsert'](_0x1bdb63,_0x583602['modelCursor']))return;_0x2d8763['consumable']['consume'](_0x57fe1f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1eec4f=Array['from'](_0x57fe1f['getChildren']())['find'](_0x2457f8=>_0x2457f8['is']('element')&&_0x2457f8['hasClass']('footnote-content'));for(const _0x416644 of _0x57fe1f['getChildren']())_0x416644['is']('element')&&(_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2d8763['consumable']['consume'](_0x416644,{'name':!0x0,'classes':'footnote-content'}));if(_0x1eec4f){if(_0x30b27a)_0x2d8763['convertChildren'](_0x1eec4f,_0x1bdb63);else{const _0x2a6870=_0x2d8763['writer']['createElement']('footnoteInlineContent');_0x2d8763['writer']['insert'](_0x2a6870,_0x1bdb63),_0x2d8763['convertChildren'](_0x1eec4f,_0x2a6870);}}_0x2d8763['updateConversionResult'](_0x1bdb63,_0x583602);});}),_0x388b86['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5ccf3c,{writer:_0x26b340})=>v(_0x5ccf3c,_0x26b340,_0x39823f,{'dataPipeline':!0x0})}),_0x388b86['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3329ff,{writer:_0x3b24f4})=>v(_0x3329ff,_0x3b24f4,_0x39823f)});}['_defineBogusParagraphConverters'](){const {editor:_0x43f6e8}=this,{conversion:_0x4df0b7}=_0x43f6e8;_0x43f6e8['config']['get']('footnotes.multiBlock')?(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x43f6e8['model']['document'],'change:data',()=>{!function(_0x198679,_0x3b69a9){const _0x2b54f4=_0x198679['document']['differ'],_0x1b5072=new Set();for(const _0x1424e9 of _0x2b54f4['getChanges']()){const _0x2ca2da='attribute'==_0x1424e9['type']?_0x1424e9['range']['start']['parent']:_0x1424e9['position']['parent'];_0x2ca2da['is']('element','footnoteDefinition')&&_0x1b5072['add'](_0x2ca2da);}for(const _0x1ad412 of _0x1b5072['values']()){const _0x15a5ea=Array['from'](_0x1ad412['getChildren']())['filter'](_0x4cc864=>p(_0x4cc864,_0x3b69a9['mapper']));for(const _0x9e2a46 of _0x15a5ea)_0x3b69a9['reconvertItem'](_0x9e2a46);}}(_0x43f6e8['model'],_0x43f6e8['editing']);})):(_0x4df0b7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4df0b7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x794793,{writer:_0x2950d3})=>{const _0x35ee23=_0x2950d3['createContainerElement']('span');return _0x2950d3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35ee23),_0x35ee23;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3247b2}=this,{editing:_0x26d928,t:t}=_0x3247b2,_0xde0b68=_0x3247b2['model']['document']['selection'];_0x3247b2['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3247b2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x26d928['view']['document'],'enter',(_0x435c97,_0x5cc0b7)=>{const _0x5d21b7=function(_0x4af3c9){const _0x418cc7=_0x4af3c9['getSelectedElement']();if(_0x418cc7?.['is']('element','footnoteRef'))return _0x418cc7;return null;}(_0xde0b68);if(_0x5d21b7){const _0x200549=_0x5d21b7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x200549),_0x5cc0b7['preventDefault'](),_0x435c97['stop']();}},{'context':_0x14c998});}['_defineClickHandlers'](){const {editor:_0x5c10b1}=this,{editing:_0x3535a0}=_0x5c10b1;_0x5c10b1['editing']['view']['addObserver'](_0x2376c6),_0x5c10b1['editing']['view']['addObserver'](_0x3b95a1);let _0x30d8da=!0x1;this['listenTo'](_0x3535a0['view']['document'],'pointerdown',(_0x1ce1e0,_0x1fa07c)=>{const {target:_0x48145d}=_0x1fa07c,_0x4c4648=_0x3535a0['view']['document']['selection'];_0x30d8da=!!(_0x48145d['is']('element','a')&&_0x48145d['parent']?.['is']('element','sup')&&_0x48145d['parent']['hasClass']('footnote'))&&_0x4c4648['getSelectedElement']()===_0x48145d['parent'];},{'priority':'high'}),this['listenTo'](_0x3535a0['view']['document'],'click',(_0x33dd4e,_0xcaf0a9)=>{const {target:_0x4b0d33}=_0xcaf0a9;if(!_0x4b0d33['is']('element','a'))return;if(_0x4b0d33['parent']?.['is']('element','sup')&&_0x4b0d33['parent']['hasClass']('footnote')&&!_0x30d8da)return void _0xcaf0a9['preventDefault']();let _0x1709ab=_0x4b0d33['getAttribute']('href');if(!_0x1709ab?.['startsWith']('#'))return;_0x1709ab=_0x1709ab['slice'](0x1);let _0x5c1966=!0x1;(_0x1709ab['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1709ab['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1709ab))&&(_0x5c1966=!0x0),_0x5c1966&&(_0xcaf0a9['preventDefault'](),_0x33dd4e['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x3b1b95}={}){return(_0x3f009a,{writer:_0x46a0c2})=>{if(!h(_0x3f009a))return null;if(!_0x3b1b95)return _0x46a0c2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3b0fa4=_0x46a0c2['createContainerElement']('p');return _0x46a0c2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3b0fa4),_0x3b0fa4;};}function h(_0x30f9f1){const {parent:_0x3bfe04}=_0x30f9f1;if(!_0x3bfe04?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3bfe04['childCount'])return!0x1;for(const _0x4a1967 of _0x30f9f1['getAttributeKeys']())if(!_0x4a1967['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a1967)return!0x1;return!0x0;}function p(_0x557090,_0x294c9c){if(!_0x557090['is']('element','paragraph'))return!0x1;const _0x5cd022=_0x294c9c['toViewElement'](_0x557090);return!!_0x5cd022&&h(_0x557090)!==_0x5cd022['is']('element','span');}function J(_0x14dfde){return _0x14c998(_0x14dfde)&&_0x14dfde['is']('containerElement')&&!!_0x14dfde['getCustomProperty']('footnotesDefinitions');}function g(_0x397857,_0x4ba33d={}){const _0x424d3b=_0x397857['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48b04f=_0x397857['createContainerElement']('ol',{'class':'footnotes-list'},_0x397857['createSlot']());return _0x397857['createContainerElement']('div',{'class':'footnotes',..._0x4ba33d},[_0x424d3b,_0x48b04f]);}function D(_0x1919fa,_0x1313d7){const _0x22c1bb=_0x1919fa['getAttribute']('footnoteId'),_0x176e4b=_0x1919fa['getAttribute']('footnoteCounter'),_0x51d6e4=_0x1313d7['createUIElement']('a',{'href':'#'+_0x22c1bb},function(_0xd8b76c){const _0x4eb693=this['toDomElement'](_0xd8b76c);return _0x4eb693['textContent']=_0x176e4b,_0x4eb693;}),_0x1e0d8e=_0x1313d7['createContainerElement']('sup',{'id':'ref-'+_0x22c1bb,'class':'footnote'},[_0x51d6e4]);return _0x1e0d8e['getFillerOffset']=()=>null,_0x1e0d8e;}function v(_0x3e53a2,_0x5a1b91,_0x463675,{dataPipeline:_0x51a96f}={}){const {t:t}=_0x463675,_0x385f71=_0x3e53a2['getAttribute']('footnoteId'),_0x3fc164=_0x5a1b91['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x385f71},function(_0x20f4f9){const _0x4e8f57=this['toDomElement'](_0x20f4f9);return _0x4e8f57['innerText']='^',_0x4e8f57;}),_0xc82c52=_0x51a96f?_0x5a1b91['createContainerElement']('div',{'class':'footnote-content'}):_0x517596(_0x5a1b91['createEditableElement']('div',{'class':'footnote-content'}),_0x5a1b91,{'label':t('Footnote\x20content.')});return _0x5a1b91['insert'](_0x5a1b91['createPositionAt'](_0xc82c52,0x0),_0x5a1b91['createSlot']()),_0x5a1b91['createContainerElement']('li',{'class':'footnote-definition','id':_0x385f71},[_0x3fc164,_0xc82c52]);}class e extends _0x43bd3c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x13dd51];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c77fc}=this,{plugins:_0x4c96be,model:_0x4f4b77}=_0x5c77fc,_0xeb88a2=_0x4c96be['get'](_0x13dd51),_0x59dbc5=_0x4c96be['get'](c);this['listenTo'](_0xeb88a2,'outputTransformation',(_0x2fec4a,_0x2a0998)=>{const _0x333530=function(_0x25741b,_0x3e5830){const _0x5836ef=new Set();for(const {item:_0x18938d}of _0x25741b['createRangeIn'](_0x3e5830))_0x18938d['is']('element','footnoteRef')&&_0x5836ef['add'](_0x18938d['getAttribute']('footnoteId'));return Array['from'](_0x5836ef);}(_0x4f4b77,_0x2a0998['content']);if(!_0x333530['length'])return;const _0x2e6753=_0x59dbc5['getFootnotes'](),_0x4a145a=_0x333530['reduce']((_0xe43faf,_0x385d68)=>{const _0x59bcb6=_0x2e6753['find'](_0x516e7b=>_0x516e7b['id']===_0x385d68);if(_0x59bcb6){const _0x7b5261=_0x5c77fc['data']['toView'](_0x59bcb6['definition'],{'isClipboardPipeline':!0x0}),_0x5c813d=_0x5c77fc['data']['htmlProcessor']['toData'](_0x7b5261);_0xe43faf[_0x59bcb6['id']]=_0x5c813d;}return _0xe43faf;},Object['create'](null));_0x2a0998['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4a145a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x326de6}=this,{model:_0x22a52e,plugins:_0x4bc584}=_0x326de6,{view:_0x24821e}=_0x326de6['editing'],_0x2e77a1=_0x4bc584['get'](_0x13dd51),_0x1974eb=_0x4bc584['get'](c);let _0x5c90c6=null;this['listenTo'](_0x24821e['document'],'clipboardInput',(_0x2fd624,_0x344b0a)=>{const _0x595624=_0x344b0a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5c90c6=_0x595624?JSON['parse'](_0x595624):null;}),this['listenTo'](_0x2e77a1,'contentInsertion',(_0x4efe03,_0x484a99)=>{if(!_0x5c90c6)return;const _0x2e26a5=_0x484a99['sourceEditorId']===this['editor']['id'];_0x2e26a5&&'drop'===_0x484a99['method']||_0x22a52e['change'](_0x3c44c3=>{!function(_0xdbafe7,_0x1090e8){const _0xc90d8e=[];for(const {item:_0x2415fe}of _0xdbafe7['createRangeIn'](_0x1090e8))_0x2415fe['is']('element','footnotesDefinitions')&&_0xc90d8e['push'](_0x2415fe);for(const _0x1a11db of _0xc90d8e)_0xdbafe7['remove'](_0x1a11db);}(_0x3c44c3,_0x484a99['content']);let _0x495103=_0x1974eb['getFootnotesDefinitionsObjectElement']();if(!_0x495103){const _0x1e24d1=_0x22a52e['document']['selection']['getFirstRange']()['root'];_0x495103=_0x1974eb['_insertEmptyFootnotesDefinitionsContainer'](_0x3c44c3,_0x1e24d1);}const _0x36fbfd=function(_0x1d46d1,_0xfaf505,_0x4e1fd0){const _0x19d22c=Object['create'](null);for(const {item:_0x4e76bd}of _0x1d46d1['createRangeIn'](_0xfaf505))if(_0x4e76bd['is']('element','footnoteRef')){const _0x215cf7=_0x4e76bd['getAttribute']('footnoteId');if(!_0x4e1fd0(_0x215cf7))continue;_0x19d22c[_0x215cf7]||(_0x19d22c[_0x215cf7]=_0x3d20cc()),_0x1d46d1['setAttribute']('footnoteId',_0x19d22c[_0x215cf7],_0x4e76bd);}return _0x19d22c;}(_0x3c44c3,_0x484a99['content'],_0x4268cd=>!_0x2e26a5||null!==_0x1974eb['getFootnote'](_0x4268cd));for(const [_0x32338c,_0x6b56e7]of Object['entries'](_0x5c90c6)){const _0x46aa3f=_0x36fbfd[_0x32338c]||_0x32338c,_0x1785ba=_0x3c44c3['createElement']('footnoteDefinition',{'footnoteId':_0x46aa3f}),_0x3a3e14=_0x326de6['data']['htmlProcessor']['toView'](_0x6b56e7),_0x3c3dc1=_0x326de6['data']['toModel'](_0x3a3e14,_0x1785ba);_0x3c44c3['append'](_0x3c3dc1,_0x1785ba),_0x3c44c3['insert'](_0x1785ba,_0x495103,'end');}_0x5c90c6=null;});});}}class i extends _0x43bd3c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cc409}=this,{componentFactory:_0x5b6bbb}=_0x1cc409['ui'];_0x5b6bbb['add']('insertFootnote',x(_0x1cc409,_0xede7c4)),_0x5b6bbb['add']('menuBar:insertFootnote',x(_0x1cc409,_0x3d72d1)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x540c9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2aae18;for(const _0x3b2500 in _0x540c9d){const _0xc7fd5a=_0x3b2500,_0x32582e=_0x540c9d[_0xc7fd5a];if('footnotesLicenseKeyValid'==_0x32582e||'footnotesLicenseKeyInvalid'==_0x32582e||'footnotesLicenseKeyExpired'==_0x32582e||'footnotesLicenseKeyDomainLimit'==_0x32582e||'footnotesLicenseKeyNotAllowed'==_0x32582e||'footnotesLicenseKeyEvaluationLimit'==_0x32582e||'footnotesLicenseKeyTrialLimit'==_0x32582e||'footnotesLicenseKeyUsageLimit'==_0x32582e){delete _0x540c9d[_0xc7fd5a],_0x2aae18=_0x32582e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2aae18&&_0x540c9d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2aae18&&_0x540c9d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2aae18&&_0x540c9d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2aae18&&_0x540c9d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x38258b,_0x46c1cd){const _0x28c0c8=_0x38258b['commands']['get']('insertFootnote');return _0x5706c1=>{const {t:t}=_0x5706c1,_0x41c117=new _0x46c1cd(_0x5706c1),_0x22be4a=_0x41c117 instanceof _0x3d72d1;return _0x41c117['bind']('isEnabled')['to'](_0x28c0c8,'isEnabled'),_0x41c117['set']({'label':t(_0x22be4a?'Footnote':'Insert\x20footnote'),'icon':_0x4f816e,'tooltip':!0x0}),_0x41c117['on']('execute',()=>{_0x28c0c8['execute'](),_0x38258b['editing']['view']['focus']();}),_0x41c117;};}class nt extends _0x43bd3c{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 _0x8bee50{['refresh'](){const {editor:_0x38acaa}=this,_0x7bf323=_0x38acaa['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x7bf323,this['value']=_0x7bf323?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x119a6c}){const {editor:_0x230ec9}=this,_0x3ab9ae=_0x230ec9['plugins']['get'](c),_0x270df3=_0x3ab9ae['getFootnotesDefinitionsObjectElement']();_0x270df3&&Q['includes'](_0x119a6c)&&_0x230ec9['model']['change'](_0x3b31ea=>{_0x3b31ea['setAttribute']('footnotesListStyle',_0x119a6c,_0x270df3),_0x3ab9ae['_updateFootnotesCounters'](_0x3b31ea);});}}class b extends _0x8bee50{['refresh'](){const {editor:_0x131eed}=this,_0x2efd37=_0x131eed['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2efd37,this['value']=_0x2efd37?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x34934b}){const {editor:_0x294e39}=this,_0xf1f01c=_0x294e39['plugins']['get'](c),_0x7512b3=_0xf1f01c['getFootnotesDefinitionsObjectElement']();_0x7512b3&&Number['isInteger'](_0x34934b)&&_0x294e39['model']['change'](_0x147c42=>{_0x147c42['setAttribute']('footnotesListStart',_0x34934b,_0x7512b3),_0xf1f01c['_updateFootnotesCounters'](_0x147c42);});}}class P extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bcc80}=this;_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5bcc80['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5bcc80['commands']['add']('footnotesStyle',new S(_0x5bcc80)),_0x5bcc80['commands']['add']('footnotesStart',new b(_0x5bcc80)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a0642}=this,{schema:_0x43fde8}=_0x4a0642['model'];_0x43fde8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x48859f}=this,{conversion:_0x3c66ac,model:_0x33ec03}=_0x48859f,{schema:_0x5e1cef}=_0x33ec03;_0x3c66ac['for']('upcast')['add'](_0x4fb1d3=>{_0x4fb1d3['on']('element:ol',(_0x15ba0,_0x585473,_0x3f2fdc)=>{const _0x11d679=_0x585473['viewItem'],_0x557ce4=_0x585473['modelCursor']?.['parent'];_0x11d679['hasClass']('footnotes-list')&&_0x557ce4?.['is']('element','footnotesDefinitions')&&(function(_0x58e61c,_0x125151,_0x33fa73,_0x10f10b){if(!_0x10f10b['checkAttribute'](_0x125151,'footnotesListStart'))return;let _0x10601c=0x1;const _0x284778=_0x33fa73['consumable']['consume'](_0x58e61c,{'attributes':'start'});if(_0x284778){const _0x1f65ba=Number['parseInt'](_0x58e61c['getAttribute']('start'),0xa);Number['isNaN'](_0x1f65ba)||(_0x10601c=_0x1f65ba);}!_0x284778&&_0x125151['hasAttribute']('footnotesListStart')||_0x33fa73['writer']['setAttribute']('footnotesListStart',_0x10601c,_0x125151);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef),function(_0x25dbef,_0xcd982,_0x9a17fb,_0x5168ac){if(!_0x5168ac['checkAttribute'](_0xcd982,'footnotesListStyle'))return;let _0xa9f386='decimal',_0x40f7e7=!0x1;if(_0x9a17fb['consumable']['consume'](_0x25dbef,{'attributes':'type'})){const _0x44455e={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x25dbef['getAttribute']('type')];_0x44455e&&(_0xa9f386=_0x44455e),_0x40f7e7=!0x0;}_0x9a17fb['consumable']['consume'](_0x25dbef,{'styles':'list-style-type'})&&(_0xa9f386=_0x25dbef['getStyle']('list-style-type'),_0x40f7e7=!0x0),!_0x40f7e7&&_0xcd982['hasAttribute']('footnotesListStyle')||_0x9a17fb['writer']['setAttribute']('footnotesListStyle',_0xa9f386,_0xcd982);}(_0x11d679,_0x557ce4,_0x3f2fdc,_0x5e1cef));});}),_0x3c66ac['for']('downcast')['add'](_0x2a5345=>{_0x2a5345['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x11d1eb,_0x4f820f,_0x2950a1)=>{if(!_0x2950a1['consumable']['consume'](_0x4f820f['item'],_0x11d1eb['name']))return;const _0x29353d=C(_0x4f820f['item'],_0x2950a1['mapper']),{attributeNewValue:_0xee6a9c}=_0x4f820f;null==_0xee6a9c||0x1===_0xee6a9c?_0x2950a1['writer']['removeAttribute']('start',_0x29353d):_0x2950a1['writer']['setAttribute']('start',String(_0xee6a9c),_0x29353d);}),_0x2a5345['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x48534e,_0x338b10,_0x50c5ec)=>{if(!_0x50c5ec['consumable']['consume'](_0x338b10['item'],_0x48534e['name']))return;const _0x122463=C(_0x338b10['item'],_0x50c5ec['mapper']),{attributeNewValue:_0xf8a08d}=_0x338b10;_0xf8a08d&&'decimal'!==_0xf8a08d?_0x50c5ec['writer']['setStyle']('list-style-type',_0xf8a08d,_0x122463):_0x50c5ec['writer']['removeStyle']('list-style-type',_0x122463);});});}['_definePostfixer'](){const {editor:_0x585927}=this,{model:_0x36f217}=_0x585927,_0x1b1895=_0x585927['plugins']['get'](c),_0x5464ff=this['_getDefaultListStyle'](),_0x4b9e79=this['_getDefaultStartIndex']();_0x36f217['document']['registerPostFixer'](_0xc410d8=>{const _0x4e40c6=_0x36f217['document']['differ']['getChanges']();let _0x26e297=!0x1;for(const _0x57793f of _0x4e40c6){if('insert'!==_0x57793f['type']||'$text'===_0x57793f['name'])continue;const _0x3ae1b0=_0x36f217['createRangeOn'](_0x57793f['position']['nodeAfter']);for(const _0x550f40 of _0x3ae1b0['getItems']())_0x550f40['is']('element','footnotesDefinitions')&&(!_0x550f40['hasAttribute']('footnotesListStart')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStart')&&(_0xc410d8['setAttribute']('footnotesListStart',_0x4b9e79,_0x550f40),_0x26e297=!0x0),!_0x550f40['hasAttribute']('footnotesListStyle')&&_0x36f217['schema']['checkAttribute'](_0x550f40,'footnotesListStyle')&&(_0xc410d8['setAttribute']('footnotesListStyle',_0x5464ff,_0x550f40),_0x26e297=!0x0));}return _0x26e297&&_0x1b1895['_updateFootnotesCounters'](_0xc410d8),_0x26e297;});}['_defineFormatter'](){const {editor:_0xf2c03a}=this;_0xf2c03a['plugins']['get'](c)['setFootnoteFormatter'](_0x315440=>this['_formatFootnoteListValue'](_0x315440));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x448bee,value:_0x380465,digits:_0x427e58}){const _0x3212b4=_0x448bee['getAttribute']('footnotesListStyle'),_0x204daa=_0x448bee['getAttribute']('footnotesListStart'),_0x27807b=Math['floor'](_0x380465)+(_0x204daa??0x1)-0x1;switch(_0x3212b4){case'decimal-leading-zero':return function(_0x5c67a5,_0x2c7367){return String(_0x5c67a5)['padStart'](_0x2c7367,'0');}(_0x27807b,Math['max'](0x2,_0x427e58));case'lower-alpha':case'lower-latin':return M(_0x27807b,!0x1);case'upper-alpha':case'upper-latin':return M(_0x27807b,!0x0);case'lower-roman':return V(_0x27807b,!0x1);case'upper-roman':return V(_0x27807b,!0x0);default:return String(_0x27807b);}}}function C(_0x48874b,_0x31f17d){const _0x5c9a9b=_0x31f17d['toViewElement'](_0x48874b);return Array['from'](_0x5c9a9b['getChildren']())['find'](_0x8d2b8d=>_0x8d2b8d['is']('element','ol')&&_0x8d2b8d['hasClass']('footnotes-list'));}function M(_0x467167,_0x3add47){let _0x49c68a='',_0x8c7f11=_0x467167;for(;_0x8c7f11>0x0;){const _0x4bea37=(_0x8c7f11-0x1)%0x1a;_0x49c68a=String['fromCharCode'](0x61+_0x4bea37)+_0x49c68a,_0x8c7f11=Math['floor']((_0x8c7f11-0x1)/0x1a);}return _0x3add47?_0x49c68a['toUpperCase']():_0x49c68a;}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(_0x3cbaf0,_0x8cb4c8){let _0x30fc08='',_0xb869dd=_0x3cbaf0;for(const {value:_0x450c3d,numeral:_0x564b82}of N)for(;_0xb869dd>=_0x450c3d;)_0x30fc08+=_0x564b82,_0xb869dd-=_0x450c3d;return _0x8cb4c8?_0x30fc08:_0x30fc08['toLowerCase']();}class H extends _0x54f983{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x470575();['focusCycler'];constructor(_0x30e214,{styleButtonViews:_0x3f2737,styleGridAriaLabel:_0x117635}){super(_0x30e214),(this['focusCycler']=new _0x2749b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3f2737,_0x117635),[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 _0x348eb0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x348eb0['element']);_0x3f496a({'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 _0x25d70e=_0x4aeb29=>_0x4aeb29['stopPropagation']();this['keystrokes']['set']('arrowright',_0x25d70e),this['keystrokes']['set']('arrowleft',_0x25d70e),this['keystrokes']['set']('arrowup',_0x25d70e),this['keystrokes']['set']('arrowdown',_0x25d70e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a0e52,_0x49b3e5){const _0x301aa7=new _0x54f983(this['locale']);return _0x301aa7['children']=_0x301aa7['createCollection'](),_0x301aa7['children']['addMany'](_0x5a0e52),_0x301aa7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49b3e5,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x301aa7['children']}),_0x301aa7['children']['delegate']('execute')['to'](this),_0x301aa7['focus']=function(){for(const _0x3a60c1 of this['children'])if(_0x3a60c1 instanceof _0xede7c4&&_0x3a60c1['isOn'])return void _0x3a60c1['focus']();this['children']['first']['focus']();},_0x301aa7['focusTracker']=new et(),_0x301aa7['keystrokes']=new ot(),_0x301aa7['render'](),_0x301aa7['keystrokes']['listenTo'](_0x301aa7['element']),this['children']['add'](_0x301aa7),_0x301aa7;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4e8f69=this['_createStartIndexPropertyView'](),_0xc7ec4c=[_0x4e8f69],_0xc0ced4=new tt(this['locale'],_0xc7ec4c);return _0xc0ced4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc0ced4['buttonView']['bind']('isEnabled')['toMany'](_0xc7ec4c,'isEnabled',(..._0x1c9e3f)=>_0x1c9e3f['some'](_0x534ee3=>_0x534ee3)),_0xc0ced4['buttonView']['on']('change:isEnabled',(_0x917ab2,_0x17cc99,_0x28ff37)=>{_0x28ff37||(_0xc0ced4['isCollapsed']=!0x0);}),this['children']['add'](_0xc0ced4),[_0x4e8f69,_0xc0ced4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2678cf=new st(this['locale'],it);return _0x2678cf['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2678cf['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2678cf['fieldView']['on']('input',()=>{const _0x59dd45=_0x2678cf['fieldView']['element'],_0x15137b=_0x59dd45['valueAsNumber'];Number['isNaN'](_0x15137b)?_0x2678cf['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x59dd45['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x15137b}):_0x2678cf['errorText']=t(_0x15137b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2678cf;}}class j extends _0x43bd3c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x86afc8,_0x394505];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcc90a2}=this,{componentFactory:_0x5549e0}=_0xcc90a2['ui'];_0xcc90a2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5549e0['add']('footnotesStyle',function(_0x205441){return _0x30318a=>{const {t:t}=_0x30318a,_0x2f3f0d=_0x205441['commands']['get']('footnotesStyle'),_0x3d6218=_0x370afd(_0x30318a),{buttonView:_0x1c0572}=_0x3d6218;return _0x3d6218['class']='ck-footnotes-styles-dropdown',_0x3d6218['bind']('isEnabled')['to'](_0x2f3f0d,'isEnabled'),_0x1c0572['set']({'label':t('Footnotes\x20style'),'icon':_0x4f816e,'tooltip':!0x0}),_0x3d6218['once']('change:isOpen',()=>{const _0x2049c0=function({editor:_0x38f27a,dropdownView:_0x1a8067}){const {t:t}=_0x38f27a['locale'],_0x193173=t('Footnotes\x20definitions\x20styles'),_0x53adb1=function(_0x12b5a6){const t=_0x12b5a6['locale']['t'],_0x395903=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x14a3ea},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x55064c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x164851},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1d15e8},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2911c6},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5b7a8f}];return _0x395903['map'](function(_0x572ab7){const _0x2bb9dd=_0x572ab7['locale'];return({label:_0x1a57ab,icon:_0x320c0d,tooltip:_0x408cff,style:_0x503319})=>{const _0x57ebdf=_0x572ab7['commands']['get']('footnotesStyle'),_0x4e50c3=new _0xede7c4(_0x2bb9dd);return _0x4e50c3['set']({'label':_0x1a57ab,'icon':_0x320c0d,'tooltip':_0x408cff}),_0x4e50c3['bind']('isOn')['to'](_0x57ebdf,'value',_0x3391ef=>_0x3391ef===_0x503319),_0x4e50c3['bind']('isEnabled')['to'](_0x57ebdf,'isEnabled'),_0x4e50c3['on']('execute',()=>{_0x572ab7['execute']('footnotesStyle',{'value':_0x503319}),_0x572ab7['editing']['view']['focus']();}),_0x4e50c3;};}(_0x12b5a6));}(_0x38f27a),_0x5e97dc=new H(_0x38f27a['locale'],{'styleGridAriaLabel':_0x193173,'styleButtonViews':_0x53adb1});return _0x5e97dc['delegate']('execute')['to'](_0x1a8067),_0x5e97dc['on']('footnotesListStart',(_0x40a94c,_0x136e3c)=>{_0x38f27a['execute']('footnotesStart',{'value':_0x136e3c['startIndex']});}),_0x5e97dc;}({'editor':_0x205441,'dropdownView':_0x3d6218});_0x3d6218['panelView']['children']['add'](_0x2049c0);}),_0x3d6218;};}(_0xcc90a2));}['afterInit'](){const {editor:_0x37ff4c}=this,{t:t}=_0x37ff4c['locale'],_0x2b936f=_0x37ff4c['plugins']['get'](_0x394505),{defaultPositions:_0x57bae0}=_0x22995d;_0x2b936f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x37ff4c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xa9108e=>{let _0x167756=_0xa9108e['getFirstPosition']()?.['parent'];return _0x167756?.['is']('$text')&&(_0x167756=_0x167756['parent']),_0x167756?.['is']('element')?_0x167756['findAncestor'](J):null;},'positions':[_0x57bae0['southArrowNorth'],_0x57bae0['southArrowNorthMiddleWest'],_0x57bae0['southArrowNorthMiddleEast'],_0x57bae0['southArrowNorthWest'],_0x57bae0['southArrowNorthEast'],_0x57bae0['northArrowSouth'],_0x57bae0['northArrowSouthMiddleWest'],_0x57bae0['northArrowSouthMiddleEast'],_0x57bae0['northArrowSouthWest'],_0x57bae0['northArrowSouthEast'],_0x57bae0['viewportStickyNorth']]});}}class lt extends _0x43bd3c{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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251104.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-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251104.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251104.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251104.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251104.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251104.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251104.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251104.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251104.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
|
|
23
|
+
function _0x4e0f(_0x4d1827,_0x24614f){const _0x27f80f=_0x27f8();return _0x4e0f=function(_0x4e0f29,_0x4143ab){_0x4e0f29=_0x4e0f29-0x1a0;let _0x37c7ce=_0x27f80f[_0x4e0f29];return _0x37c7ce;},_0x4e0f(_0x4d1827,_0x24614f);}const _0x56d27c=_0x4e0f;(function(_0x474e00,_0x350c59){const _0x536777=_0x4e0f,_0x3f7a79=_0x474e00();while(!![]){try{const _0x38afb7=parseInt(_0x536777(0x1c2))/0x1*(parseInt(_0x536777(0x1ad))/0x2)+-parseInt(_0x536777(0x1a2))/0x3*(-parseInt(_0x536777(0x1ab))/0x4)+-parseInt(_0x536777(0x1c0))/0x5+parseInt(_0x536777(0x1b9))/0x6+parseInt(_0x536777(0x1bb))/0x7*(-parseInt(_0x536777(0x1c4))/0x8)+-parseInt(_0x536777(0x1ac))/0x9+parseInt(_0x536777(0x1b8))/0xa;if(_0x38afb7===_0x350c59)break;else _0x3f7a79['push'](_0x3f7a79['shift']());}catch(_0x139104){_0x3f7a79['push'](_0x3f7a79['shift']());}}}(_0x27f8,0x4775b));function _0x27f8(){const _0x3a0946=['2172255IUCjTq','isEnabled','2292IjWfcO','get','2944MjyVdh','string','insertObject','254229XaFEre','model','getItems','editor','createElement','test','_moveSelectionToFootnoteDefinition','footnoteId','footnoteRef','20UZtugW','1024029EHsmkh','354tejjjP','execute','document','getFirstRange','insert-footnote-command-executed-with-invalid-id','_getPositionToInsertFootnote','change','isObject','length','FootnotesEditing','checkChild','3367790YMyRio','1311942sFIiOE','refresh','10346swtHty','selection','end','isBlock','plugins'];_0x27f8=function(){return _0x3a0946;};return _0x27f8();}import{logWarning as _0x318a5f,uid as _0x246e9b}from'ckeditor5/src/utils.js';import{Command as _0x18de80}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x18de80{[_0x56d27c(0x1ba)](){const _0x184fec=_0x56d27c,_0x4b519c=this[_0x184fec(0x1a5)][_0x184fec(0x1a3)][_0x184fec(0x1af)][_0x184fec(0x1bc)],_0x4d6634=this[_0x184fec(0x1b2)](_0x4b519c);this[_0x184fec(0x1c1)]=!!_0x4d6634;}[_0x56d27c(0x1ae)](_0x3f12ec){const _0x31f587=_0x56d27c,{editor:_0x390578}=this,{model:_0x5d815f}=_0x390578,{selection:_0x1a842d}=_0x5d815f[_0x31f587(0x1af)],_0x5053e1=this[_0x31f587(0x1b2)](_0x1a842d);if(!_0x5053e1)return;const _0x252ce3=_0x390578[_0x31f587(0x1bf)][_0x31f587(0x1c3)](_0x31f587(0x1b6)),_0x5a7c03=_0x3f12ec?.[_0x31f587(0x1a9)]??_0x246e9b();!function(_0x1c2547){const _0x24a53c=_0x31f587;return _0x24a53c(0x1a0)==typeof _0x1c2547&&_0x1c2547[_0x24a53c(0x1b5)]>0x0&&!/\s/[_0x24a53c(0x1a7)](_0x1c2547)&&!/^\d/[_0x24a53c(0x1a7)](_0x1c2547);}(_0x5a7c03)?_0x318a5f(_0x31f587(0x1b1)):(_0x5d815f[_0x31f587(0x1b3)](_0x4a640a=>{const _0x1af4f8=_0x31f587,_0x2cce8d=_0x4a640a[_0x1af4f8(0x1a6)](_0x1af4f8(0x1aa),{'footnoteId':_0x5a7c03});_0x5d815f[_0x1af4f8(0x1a1)](_0x2cce8d,_0x5053e1,null);}),_0x252ce3[_0x31f587(0x1a8)](_0x5a7c03));}[_0x56d27c(0x1b2)](_0x5e8532){const _0x153eac=_0x56d27c,{model:_0x2d7a6e}=this[_0x153eac(0x1a5)],{schema:_0x58b06f}=_0x2d7a6e,_0x595f16=_0x5e8532[_0x153eac(0x1b0)]();for(const _0x171a46 of _0x595f16[_0x153eac(0x1a4)]())if(_0x58b06f[_0x153eac(0x1be)](_0x171a46)||_0x58b06f[_0x153eac(0x1b4)](_0x171a46))return null;const _0xfc139b=_0x595f16[_0x153eac(0x1bd)];return _0x58b06f[_0x153eac(0x1b7)](_0xfc139b,_0x153eac(0x1aa))?_0xfc139b:null;}}
|
package/src/footnotes.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x8c81(_0x13bd7b,_0x5f5bf8){var _0x323444=_0x3234();return _0x8c81=function(_0x8c81ff,_0x52b27d){_0x8c81ff=_0x8c81ff-0xa6;var _0x5c0a31=_0x323444[_0x8c81ff];return _0x5c0a31;},_0x8c81(_0x13bd7b,_0x5f5bf8);}var _0x30370e=_0x8c81;function _0x3234(){var _0xe35024=['19556QLNsjS','46536cGyPMp','600561VXzYFm','587470nDOAWf','39ZQIspL','requires','pluginName','1854540dpEaji','Footnotes','isOfficialPlugin','24VLyfSE','2331cWpsog','isPremiumPlugin','1883110MQWVcm','21JqUAkV'];_0x3234=function(){return _0xe35024;};return _0x3234();}(function(_0x393043,_0x2e5fc0){var _0x1c5376=_0x8c81,_0x1d3190=_0x393043();while(!![]){try{var _0x3d9ff9=parseInt(_0x1c5376(0xac))/0x1*(-parseInt(_0x1c5376(0xa8))/0x2)+parseInt(_0x1c5376(0xaa))/0x3+parseInt(_0x1c5376(0xaf))/0x4+parseInt(_0x1c5376(0xab))/0x5+parseInt(_0x1c5376(0xa9))/0x6*(parseInt(_0x1c5376(0xa7))/0x7)+parseInt(_0x1c5376(0xb2))/0x8*(-parseInt(_0x1c5376(0xb3))/0x9)+-parseInt(_0x1c5376(0xa6))/0xa;if(_0x3d9ff9===_0x2e5fc0)break;else _0x1d3190['push'](_0x1d3190['shift']());}catch(_0x2eac77){_0x1d3190['push'](_0x1d3190['shift']());}}}(_0x3234,0x392aa));import{Plugin as _0x5c7d99}from'ckeditor5/src/core.js';import{FootnotesEditing as _0x13ebb3}from'./footnotesediting.js';import{FootnotesClipboard as _0xeb650e}from'./footnotesclipboard.js';import{FootnotesUI as _0x53b47f}from'./footnotesui.js';export class Footnotes extends _0x5c7d99{static get[_0x30370e(0xae)](){var _0x137175=_0x30370e;return _0x137175(0xb0);}static get[_0x30370e(0xad)](){return[_0x13ebb3,_0xeb650e,_0x53b47f];}static get[_0x30370e(0xb1)](){return!0x0;}static get[_0x30370e(0xb4)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2632c3=_0x4a88;(function(_0x4a73b5,_0x2e2e2c){const _0x32ca43=_0x4a88,_0xfac45c=_0x4a73b5();while(!![]){try{const _0x2b007e=-parseInt(_0x32ca43(0xf7))/0x1+-parseInt(_0x32ca43(0x112))/0x2*(parseInt(_0x32ca43(0xdb))/0x3)+-parseInt(_0x32ca43(0x10e))/0x4*(parseInt(_0x32ca43(0xe9))/0x5)+parseInt(_0x32ca43(0xf0))/0x6+parseInt(_0x32ca43(0x10a))/0x7+-parseInt(_0x32ca43(0xfb))/0x8*(-parseInt(_0x32ca43(0x11d))/0x9)+parseInt(_0x32ca43(0xe7))/0xa*(parseInt(_0x32ca43(0xef))/0xb);if(_0x2b007e===_0x2e2e2c)break;else _0xfac45c['push'](_0xfac45c['shift']());}catch(_0xbc0001){_0xfac45c['push'](_0xfac45c['shift']());}}}(_0x39bd,0x580b1));import{Plugin as _0x21e8c9}from'ckeditor5/src/core.js';import{uid as _0xd6cb59}from'ckeditor5/src/utils.js';function _0x39bd(){const _0x34817b=['add','getFootnote','reduce','requires','getData','2139513fALgFy','footnotesDefinitions','contentInsertion','setData','push','getFirstRange','create','pluginName','clipboardInput','getFootnotes','selection','toModel','8410rvKCTZ','dataTransfer','65srTLMs','insert','init','listenTo','content','toData','8536weWnGv','1943220QMgdoA','toView','htmlProcessor','_handleCopyFootnotesDefinitions','from','getAttribute','definition','113381kDMrah','editor','createElement','length','8UNYsJj','_defineClipboardIntegration','_insertEmptyFootnotesDefinitionsContainer','footnoteId','application/ckeditor5-footnotes','root','setAttribute','_handlePasteFootnotesDefinitions','change','find','editing','footnoteDefinition','stringify','footnoteRef','data','2087596ObmicV','outputTransformation','end','isOfficialPlugin','103064kjhWtj','createRangeIn','element','getFootnotesDefinitionsObjectElement','2PdzIRx','isPremiumPlugin','method','document','FootnotesClipboard','remove','parse','get','drop','entries','sourceEditorId','2226789GJEvsp','append'];_0x39bd=function(){return _0x34817b;};return _0x39bd();}import{ClipboardPipeline as _0x5eecd7}from'ckeditor5/src/clipboard.js';import{FootnotesEditing as _0x2a28c6}from'./footnotesediting.js';import{FootnotesTracker as _0x4f4ad4}from'./footnotestracker.js';function _0x4a88(_0x2f42b8,_0x15de94){const _0x39bd7a=_0x39bd();return _0x4a88=function(_0x4a88a0,_0x315e47){_0x4a88a0=_0x4a88a0-0xdb;let _0x54f24b=_0x39bd7a[_0x4a88a0];return _0x54f24b;},_0x4a88(_0x2f42b8,_0x15de94);}export class FootnotesClipboard extends _0x21e8c9{static get[_0x2632c3(0xe2)](){const _0x53a4a5=_0x2632c3;return _0x53a4a5(0x116);}static get[_0x2632c3(0x122)](){return[_0x2a28c6,_0x5eecd7];}static get[_0x2632c3(0x10d)](){return!0x0;}static get[_0x2632c3(0x113)](){return!0x0;}[_0x2632c3(0xeb)](){const _0x414c0d=_0x2632c3;this[_0x414c0d(0xfc)]();}[_0x2632c3(0xfc)](){const _0x5de0d8=_0x2632c3;this[_0x5de0d8(0xf3)](),this[_0x5de0d8(0x102)]();}[_0x2632c3(0xf3)](){const _0x1b0ded=_0x2632c3,{editor:_0x3dc4b8}=this,{plugins:_0x8cd426,model:_0x29fde3}=_0x3dc4b8,_0x224ed8=_0x8cd426[_0x1b0ded(0x119)](_0x5eecd7),_0x352e78=_0x8cd426[_0x1b0ded(0x119)](_0x4f4ad4);this[_0x1b0ded(0xec)](_0x224ed8,_0x1b0ded(0x10b),(_0x54146c,_0x4a1c09)=>{const _0x4c312f=_0x1b0ded,_0xd91cec=function(_0x6b0c13,_0x1579f7){const _0x4169cf=_0x4a88,_0x6cfe19=new Set();for(const {item:_0x39ef44}of _0x6b0c13[_0x4169cf(0x10f)](_0x1579f7))_0x39ef44['is'](_0x4169cf(0x110),_0x4169cf(0x108))&&_0x6cfe19[_0x4169cf(0x11f)](_0x39ef44[_0x4169cf(0xf5)](_0x4169cf(0xfe)));return Array[_0x4169cf(0xf4)](_0x6cfe19);}(_0x29fde3,_0x4a1c09[_0x4c312f(0xed)]);if(!_0xd91cec[_0x4c312f(0xfa)])return;const _0xee0fc5=_0x352e78[_0x4c312f(0xe4)](),_0x179c09=_0xd91cec[_0x4c312f(0x121)]((_0x5a2eb6,_0x19df75)=>{const _0x2e9cb0=_0x4c312f,_0x1d968c=_0xee0fc5[_0x2e9cb0(0x104)](_0x8401e7=>_0x8401e7['id']===_0x19df75);if(_0x1d968c){const _0x58b06d=_0x3dc4b8[_0x2e9cb0(0x109)][_0x2e9cb0(0xf1)](_0x1d968c[_0x2e9cb0(0xf6)],{'isClipboardPipeline':!0x0}),_0x1b4d68=_0x3dc4b8[_0x2e9cb0(0x109)][_0x2e9cb0(0xf2)][_0x2e9cb0(0xee)](_0x58b06d);_0x5a2eb6[_0x1d968c['id']]=_0x1b4d68;}return _0x5a2eb6;},Object[_0x4c312f(0xe1)](null));_0x4a1c09[_0x4c312f(0xe8)][_0x4c312f(0xde)](_0x4c312f(0xff),JSON[_0x4c312f(0x107)](_0x179c09));});}[_0x2632c3(0x102)](){const _0x246691=_0x2632c3,{editor:_0x48ae30}=this,{model:_0x5d5a21,plugins:_0x22990a}=_0x48ae30,{view:_0x5bf9b7}=_0x48ae30[_0x246691(0x105)],_0xaceb13=_0x22990a[_0x246691(0x119)](_0x5eecd7),_0x5f1723=_0x22990a[_0x246691(0x119)](_0x4f4ad4);let _0x189552=null;this[_0x246691(0xec)](_0x5bf9b7[_0x246691(0x115)],_0x246691(0xe3),(_0x114a39,_0x17d4ad)=>{const _0xaf0ffa=_0x246691,_0x4eb052=_0x17d4ad[_0xaf0ffa(0xe8)][_0xaf0ffa(0x123)](_0xaf0ffa(0xff));_0x189552=_0x4eb052?JSON[_0xaf0ffa(0x118)](_0x4eb052):null;}),this[_0x246691(0xec)](_0xaceb13,_0x246691(0xdd),(_0x5c5488,_0x5816f0)=>{const _0x1e26c1=_0x246691;if(!_0x189552)return;const _0x389404=_0x5816f0[_0x1e26c1(0x11c)]===this[_0x1e26c1(0xf8)]['id'];_0x389404&&_0x1e26c1(0x11a)===_0x5816f0[_0x1e26c1(0x114)]||_0x5d5a21[_0x1e26c1(0x103)](_0x1dc2b2=>{const _0xac594d=_0x1e26c1;!function(_0x1b3916,_0x1c216c){const _0x11bcd2=_0x4a88,_0x489277=[];for(const {item:_0x17b3ef}of _0x1b3916[_0x11bcd2(0x10f)](_0x1c216c))_0x17b3ef['is'](_0x11bcd2(0x110),_0x11bcd2(0xdc))&&_0x489277[_0x11bcd2(0xdf)](_0x17b3ef);for(const _0x554693 of _0x489277)_0x1b3916[_0x11bcd2(0x117)](_0x554693);}(_0x1dc2b2,_0x5816f0[_0xac594d(0xed)]);let _0x547388=_0x5f1723[_0xac594d(0x111)]();if(!_0x547388){const _0x24caa9=_0x5d5a21[_0xac594d(0x115)][_0xac594d(0xe5)][_0xac594d(0xe0)]()[_0xac594d(0x100)];_0x547388=_0x5f1723[_0xac594d(0xfd)](_0x1dc2b2,_0x24caa9);}const _0x2b429a=function(_0x5c7530,_0xd731ae,_0x3eb0d6){const _0x241600=_0xac594d,_0x10f66f=Object[_0x241600(0xe1)](null);for(const {item:_0x298ef1}of _0x5c7530[_0x241600(0x10f)](_0xd731ae))if(_0x298ef1['is'](_0x241600(0x110),_0x241600(0x108))){const _0x1f3fa9=_0x298ef1[_0x241600(0xf5)](_0x241600(0xfe));if(!_0x3eb0d6(_0x1f3fa9))continue;_0x10f66f[_0x1f3fa9]||(_0x10f66f[_0x1f3fa9]=_0xd6cb59()),_0x5c7530[_0x241600(0x101)](_0x241600(0xfe),_0x10f66f[_0x1f3fa9],_0x298ef1);}return _0x10f66f;}(_0x1dc2b2,_0x5816f0[_0xac594d(0xed)],_0xbe57bf=>!_0x389404||null!==_0x5f1723[_0xac594d(0x120)](_0xbe57bf));for(const [_0x2d7cd8,_0x2da87c]of Object[_0xac594d(0x11b)](_0x189552)){const _0x34cd8a=_0x2b429a[_0x2d7cd8]||_0x2d7cd8,_0x19f3ec=_0x1dc2b2[_0xac594d(0xf9)](_0xac594d(0x106),{'footnoteId':_0x34cd8a}),_0x1cf957=_0x48ae30[_0xac594d(0x109)][_0xac594d(0xf2)][_0xac594d(0xf1)](_0x2da87c),_0x41a647=_0x48ae30[_0xac594d(0x109)][_0xac594d(0xe6)](_0x1cf957,_0x19f3ec);_0x1dc2b2[_0xac594d(0x11e)](_0x41a647,_0x19f3ec),_0x1dc2b2[_0xac594d(0xea)](_0x19f3ec,_0x547388,_0xac594d(0x10c));}_0x189552=null;});});}}
|