@ckeditor/ckeditor5-footnotes 47.3.0-alpha.3 → 47.3.0-alpha.5
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/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["insert","1945AgVQHQ","1571867nuWCeA","element","getElementKey","root","_getElementKey","attributes","78psWvqX","nodeAfter","94956PQReOk","slice","delete","$text","values","1131rUKeyq","set","_trackedElements","_elementName","push","remove","has","1334068aBZBBr","rootName","3yKOTSB","136146pLNZAW","24fZWIWU","type","_model","10FzsBuX","3722616NZYBNB","reset","position","clear","get","getChanges","from","$graveyard","add","1LBKUme","getItems","length","name","flat","elementName","createRangeOn","1036581UHSdHi"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=105]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(244408===-parseInt(e(144))/1*(-parseInt(e(130))/2)+parseInt(e(129))/3*(-parseInt(e(127))/4)+parseInt(e(106))/5*(-parseInt(e(113))/6)+parseInt(e(151))/7*(-parseInt(e(131))/8)+parseInt(e(135))/9+parseInt(e(134))/10*(-parseInt(e(107))/11)+-parseInt(e(115))/12*(-parseInt(e(120))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(133)];[r(123)];[r(111)];[r(122)]=new Map;constructor(t,e){const o=r;this[o(133)]=t,this[o(123)]=e[o(149)],this[o(111)]=e[o(109)]}[r(136)](){const t=r;this[t(122)][t(138)]()}[r(140)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(132)]&&e(118)!==i[e(147)]&&i[e(137)][e(114)]){const t=this[e(133)][e(150)](i[e(137)][e(114)]);for(const o of t[e(145)]()){if(!o.is(e(108),this[e(123)]))continue;const t=this[e(111)](o);n[e(126)](t)||n[e(121)](t,[]),n[e(139)](t)[e(124)](o)}}if(e(125)===i[e(132)]&&i[e(147)]===this[e(123)]){const t=this[e(111)]({getAttribute:t=>i[e(112)][e(139)](t)});o[e(143)](t)}}for(const[t,n]of this[e(122)])e(142)===n[e(110)][e(128)]&&o[e(143)](t);for(const t of o)this[e(122)][e(117)](t);for(const[t,o]of n)this[e(122)][e(121)](t,o[o[e(146)]-1]);const i=new Set;for(const[t,s]of n)o[e(126)](t)&&(i[e(143)](s[0]),s[e(146)]>1?n[e(121)](t,s[e(116)](1)):n[e(117)](t),o[e(117)](t));return{removed:Array[e(141)](o),inserted:Array[e(141)](n[e(119)]())[e(148)](),moved:Array[e(141)](i)}}}const f=p;function u(){const t=["_updateFootnotesCounters","footnoteCounter","_handleInsertedFootnoteReference","footnoteRef","527910myobfi","_footnoteRefsTracker","createPositionAt","map","from","paragraph","some","push","model","_footnoteDefsTracker","473808YFoFdm","reference","footnotes.multiBlock","getFootnote","FootnotesTracker","createElement","find","_footnoteDefsContainerTracker","$graveyard","set","12fWEIHF","move","83555ictCoo","length","387gicSHt","isOfficialPlugin","footnotesDefinitions","after","parent","getChanges","change:data","editor","_updateFootnoteRefCounter","setFootnoteFormatter","250692WgfBYx","footnoteInlineContent","_footnotes","singleton","get","enqueueChange","compareWith","reset","before","definition","indexOf","root","setAttribute","unshift","57544JvsWUh","pluginName","has","splice","differ","registerPostFixer","createRangeOn","_ensureFootnotesReferencesHaveProperOrder","insert","childCount","findIndex","config","end","createRangeIn","low","listenTo","add","remove","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","document","getAttribute","append","_handleFootnoteReferencesChanges","isEqual","_handleRemoveFootnoteReferenceById","236889fiBgfv","_footnotesDefinitions","footnoteId","_ensureFootnotesDefinitionsContainerExists","getChildren","getRootNames","_handleFootnoteDefinitionsChanges","footnoteDefinition","high","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","_footnoteFormatter","getFootnotesDefinitionsObjectElement","min","_sortFootnoteDefinitions","_handleMovedFootnoteReference","getFootnotesFormatter","createPositionBefore","rootName","init","873320SNVWow","_handleFootnotesDefinitionsObjectChanges"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(143295===-parseInt(e(164))/1+parseInt(e(190))/2+parseInt(e(124))/3+-parseInt(e(200))/4+parseInt(e(212))/5*(-parseInt(e(210))/6)+-parseInt(e(184))/7+-parseInt(e(138))/8*(-parseInt(e(114))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(126)]=[];[f(165)]=null;[f(175)]=null;[f(207)];[f(191)];[f(199)];static get[f(139)](){return f(204)}static get[f(115)](){return!0}static get[f(157)](){return!0}constructor(t){const e=f;super(t),this[e(207)]=new l(this[e(121)][e(198)],{elementName:e(116),getElementKey:()=>e(127)}),this[e(191)]=new l(this[e(121)][e(198)],{elementName:e(189),getElementKey:t=>t[e(159)](e(166))}),this[e(199)]=new l(this[e(121)][e(198)],{elementName:e(171),getElementKey:t=>t[e(159)](e(166))})}[f(183)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(158)][t(143)](e=>{const n=t,i=o[n(158)][n(142)][n(119)]();let s=!1;return this[n(185)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(161)](e,i)&&(s=!0),this[n(145)](e)&&(s=!0),this[n(156)](e)&&(s=!0),this[n(178)](e)&&(s=!0),s}),this[t(153)](o[t(158)],t(120),()=>{const e=t;o[e(129)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(152)}),this[t(153)](n,t(209),()=>{const e=t;this[e(126)]=[],this[e(207)][e(131)](),this[e(191)][e(131)](),this[e(199)][e(131)]()},{priority:t(172)})}[f(176)](){return this[f(165)]}[f(203)](t){const e=f;return this[e(126)][e(206)](e=>e.id===t)||null}[f(174)](){const t=f;return Array[t(194)](this[t(126)])}[f(180)](){return this[f(175)]}[f(123)](t){this[f(175)]=t}[f(186)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(126)][o(213)];i++)this[o(122)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(205)](o(116),{});return t[o(160)](n,e),this[o(165)]=n,n}[f(167)](t){const e=f;if(!this[e(126)][e(213)]||this[e(165)])return;const o=this[e(126)][0][e(201)][e(135)],n=this[e(173)](t,o);for(const o of this[e(126)])o[e(133)][e(118)]||t[e(146)](o[e(133)],n,e(150));this[e(186)](t)}[f(185)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(207)][o(119)](e);if(r[o(213)]&&(this[o(165)]=r[0]),i[o(213)])if(i[o(213)]>1||this[o(165)]&&i[o(196)](t=>t!==this[o(165)])){const e=t[o(205)](o(116),{}),s=[];this[o(165)]&&s[o(197)](this[o(165)]),s[o(197)](...i),t[o(146)](e,s[0],o(132));for(const n of s)t[o(211)](t[o(151)](n),t[o(192)](e,o(150))),t[o(155)](n);this[o(165)]=e,this[o(186)](t),n=!0}else this[o(165)]=i[0];if(s[o(213)]&&o(208)===this[o(165)]?.[o(135)][o(182)]){for(const e of this[o(126)])t[o(155)](e[o(201)]),n=!0;this[o(126)]=[],this[o(165)]=null}return n}[f(170)](t,e){const o=f;let n=!1;const i=this[o(121)][o(149)][o(128)](o(202)),{inserted:s,moved:r}=this[o(199)][o(119)](e);for(const e of[...r,...s]){const s=e[o(159)](o(166)),r=this[o(203)](s);r&&(r[o(133)]=e),h(t,i,e)&&(n=!0)}return n}[f(161)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(191)][o(119)](e);for(const e of i)this[o(163)](t,e)&&(n=!0);for(const e of s)this[o(188)](t,e)&&(n=!0);for(const e of r)this[o(179)](t,e)&&(n=!0);return n}[f(156)](t){const e=f;if(!this[e(165)])return!1;let o=!1;if(this[e(165)][e(147)]!==this[e(126)][e(213)]){const n=[];for(const t of this[e(165)][e(168)]()){const i=t[e(159)](e(166));this[e(203)](i)||(n[e(137)](t),o=!0)}for(const o of n)t[e(155)](o)}const n=new Set,i=[];for(const t of this[e(165)][e(168)]()){const s=t[e(159)](e(166));n[e(140)](s)?(i[e(137)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(155)](o);return this[e(165)][e(147)]||(t[e(155)](this[e(165)]),this[e(165)]=null,o=!0),o}[f(188)](t,e){const o=f;if(this[o(126)][o(206)](t=>t[o(201)]===e))return!1;let n=!1;const i=e[o(159)](o(166)),s=this[o(126)][o(148)](t=>t.id===i);-1!==s&&(t[o(155)](this[o(126)][s][o(201)]),this[o(126)][o(141)](s,1),n=!0);let r=this[o(165)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(159)](n(166))===e)return o;return null}(this[o(165)],i):null;r||(r=t[o(205)](o(171),{footnoteId:i}),this[o(165)]&&(t[o(146)](r,this[o(165)],o(150)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(121)][o(198)],this[o(126)],e);this[o(126)][o(141)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(186)](t,l)&&(n=!0),n}[f(163)](t,e){const o=f,n=this[o(126)][o(148)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(126)][n];return o(208)!==s[o(133)][o(135)][o(182)]&&(t[o(155)](s[o(133)]),i=!0),this[o(126)][o(141)](n,1),this[o(186)](t,n)&&(i=!0),i}[f(179)](t,e){const o=f,n=e[o(159)](o(166)),i=this[o(126)][o(148)](t=>t.id===n),s=this[o(126)][i];let r=!1;s[o(201)]=e,this[o(126)][o(141)](i,1);const a=m(this[o(121)][o(198)],this[o(126)],e);return this[o(126)][o(141)](a,0,s),this[o(186)](t,Math[o(177)](i,a))&&(r=!0),r}[f(122)](t,e){const o=f;if(!this[o(165)])return!1;const n=this[o(126)][e];let i;return i=this[o(175)]?this[o(175)]({footnote:n,container:this[o(165)],digits:String(this[o(126)][o(213)])[o(213)],value:e+1}):String(e+1),n[o(201)][o(159)](o(187))!=i&&(t[o(136)](o(187),i,n[o(201)]),!0)}[f(178)](t){const e=f;if(!this[e(165)]||this[e(126)][e(213)]<2)return!1;if(function(t,o){const n=e;if(t[n(213)]!==o[n(213)])return!1;for(let e=0;e<t[n(213)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(126)][e(193)](t=>t.id),Array[e(194)](this[e(165)][e(168)]())[e(193)](t=>t[e(159)](e(166)))))return!1;let o=!1;for(let n=0;n<this[e(126)][e(213)];n++){const i=this[e(126)][n],s=t[e(181)](i[e(133)]),r=t[e(192)](this[e(165)],n);s[e(162)](r)||(t[e(211)](t[e(144)](i[e(133)]),r),o=!0)}return o}[f(145)](t){const e=f;if(!this[e(126)][e(213)])return!1;const{model:o}=this[e(121)];let n=!1;for(let i=0;i<this[e(126)][e(213)]-1;i++){const s=this[e(126)][i],r=this[e(126)][i+1],a=o[e(181)](s[e(201)]),c=o[e(181)](r[e(201)]);e(117)===a[e(130)](c)&&(this[e(179)](t,s[e(201)]),i=-1,n=!0)}return n}}function p(t,e){const o=u();return(p=function(t,e){return o[t-=114]})(t,e)}function h(t,e,o){const n=f;if(o[n(147)])return!1;const i=n(e?195:125);return t[n(146)](t[n(205)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(213)])return 0;const i=t[n(181)](o);for(let o=0;o<e[n(213)];o++){const s=e[o],r=t[n(181)](s[n(201)]);if(n(132)===i[n(130)](r))return o}const s=o[n(135)];let r=-1;for(let t=e[n(213)]-1;t>=0;t--)if(e[t][n(201)][n(135)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(158)][n(169)](),c=a[n(134)](s[n(182)]),l=a[c+1];if(l)for(let t=0;t<e[n(213)];t++)if(e[t][n(201)][n(135)][n(182)]===l)return t;return e[n(213)]}const g=y;function w(){const t=["end","plugins","string","178fNSakp","editor","change","get","checkChild","_getPositionToInsertFootnote","execute","createElement","getFirstRange","6VPNNYG","footnoteId","isBlock","FootnotesEditing","isEnabled","2817603yvcvmj","length","getItems","1480lYLVku","13741632DpasLN","isObject","insert-footnote-command-executed-with-invalid-id","3887155MxyGmU","document","selection","refresh","_moveSelectionToFootnoteDefinition","231TyOwnm","model","5053hAaJbc","763YZFHPW","222668lHWCAn","6seDQmb","220370IWimOS","test","insertObject","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(565507===-parseInt(e(142))/1*(parseInt(e(153))/2)+-parseInt(e(162))/3*(parseInt(e(144))/4)+parseInt(e(135))/5*(parseInt(e(145))/6)+parseInt(e(143))/7*(-parseInt(e(131))/8)+-parseInt(e(128))/9+-parseInt(e(146))/10*(parseInt(e(140))/11)+parseInt(e(132))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(138)](){const t=g,e=this[t(154)][t(141)][t(136)][t(137)],o=this[t(158)](e);this[t(127)]=!!o}[g(159)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(136)],r=this[e(158)](s);if(!r)return;const a=o[e(151)][e(156)](e(165)),c=t?.[e(163)]??(0,i.uid)();!function(t){const o=e;return o(152)==typeof t&&t[o(129)]>0&&!/\s/[o(147)](t)&&!/^\d/[o(147)](t)}(c)?(0,i.logWarning)(e(134)):(n[e(155)](t=>{const o=e,i=t[o(160)](o(149),{footnoteId:c});n[o(148)](i,r,null)}),a[e(139)](c))}[g(158)](t){const e=g,{model:o}=this[e(154)],{schema:n}=o,i=t[e(161)]();for(const t of i[e(130)]())if(n[e(164)](t)||n[e(133)](t))return null;const s=i[e(150)];return n[e(157)](s,e(149))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764374400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=D;function A(){const t=["config","reduce","createRangeIn","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","drop","90853luBNYr","32624zxZQTO","sourceEditorId","354vSTASl","content","outputTransformation","change","_handleCopyFootnotesDefinitions","toView","isOfficialPlugin","pluginName","_defineClipboardIntegration","footnoteDefinition","footnotes.multiBlock","clipboardInput","method","toModel","flatMap","includes","init","get","requires","end","stringify","element","definition","editor","toData","isPremiumPlugin","application/ckeditor5-footnotes","2873760rvzUwJ","4UlkkaH","18185535FJQBIc","append","htmlProcessor","editing","contentInsertion","data","footnoteId","insert","dataTransfer","createElement","root","1977064rRLffb","getSelectedBlocks","entries","push","2720065VCnEFE","setAttribute","add","getFootnotesDefinitionsObjectElement","FootnotesClipboard","getRanges","getFootnotes","parse","footnotesDefinitions","from","selection","document","remove","listenTo","_handlePasteFootnotesDefinitions","getData","setData","length","getAttribute","getFootnote","2178090YmjGoY","getFirstRange","create","find","footnoteRef"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=194]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(536282===parseInt(e(254))/1*(-parseInt(e(206))/2)+-parseInt(e(242))/3+-parseInt(e(205))/4+parseInt(e(222))/5+parseInt(e(256))/6*(-parseInt(e(253))/7)+parseInt(e(218))/8+parseInt(e(207))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[P(263)](){return P(226)}static get[P(196)](){return[v,T.ClipboardPipeline]}static get[P(262)](){return!0}static get[P(203)](){return!0}[P(194)](){this[P(264)]()}[P(264)](){const t=P;this[t(260)](),this[t(236)]()}[P(260)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(195)](T.ClipboardPipeline),s=o[t(195)](d);this[t(235)](i,t(258),(o,i)=>{const r=t,a=L(n[r(249)](i[r(257)]));if(!a[r(239)])return;const c=s[r(228)](),l=a[r(248)]((t,o)=>{const n=r,i=c[n(245)](t=>t.id===o);if(i){const o=e[n(212)][n(261)](i[n(200)],{isClipboardPipeline:!0}),s=e[n(212)][n(209)][n(202)](o);t[i.id]=s}return t},Object[r(244)](null));i[r(215)][r(238)](r(204),JSON[r(198)](l))})}[P(236)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(210)],r=n[t(195)](T.ClipboardPipeline),a=n[t(195)](d),c=e[t(247)][t(195)](t(266));let l=null;this[t(235)](s[t(233)],t(267),(e,o)=>{const n=t,i=o[n(215)][n(237)](n(204));l=i?JSON[n(229)](i):null}),this[t(235)](r,t(211),(n,s)=>{const r=t,f=s[r(255)]===this[r(201)].id;f&&r(252)===s[r(268)]||o[r(259)](t=>{const n=r;let u=a[n(225)]();const d=!!u&&Array[n(231)](o[n(233)][n(232)][n(219)]())[n(271)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(249)](e))n.is(o(199),o(230))&&i[o(221)](n);for(const e of i)t[o(234)](e)}(t,s[n(257)]),!l)return;const{selection:p}=o[n(233)],h=p[n(243)]()[n(217)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(249)](e))if(n.is(o(199),o(230)))return n;return null}(t,s[n(257)]),u||=a[n(250)](t,h));const m=Array[n(231)](p[n(227)]())[n(270)](L),g=function(t,e,o){const s=n,r=Object[s(244)](null);for(const{item:n}of t[s(249)](e))if(n.is(s(199),s(246))){const e=n[s(240)](s(213));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(223)](s(213),r[e],n)}return r}(t,s[n(257)],t=>{const e=n;return!f||!!a[e(241)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(220)](l)){const s=g[o]||o,r=t[n(216)](n(265),{footnoteId:s}),a=e[n(212)][n(209)][n(261)](i);let l;if(c)l=e[n(212)][n(269)](a,r);else{l=t[n(216)](n(251));const o=e[n(212)][n(269)](a,l);t[n(214)](o,l)}t[n(208)](l,r),t[n(214)](r,u,n(197))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(199),e(246))&&o[e(224)](n[e(240)](e(213)));return Array[e(231)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),B=o.n(K),W=o(102),j=o.n(W),U=o(123),M=o.n(U),H=o(741),z=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=M(),G.insert=j().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=z();R()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(100083===-parseInt(e(420))/1*(-parseInt(e(413))/2)+parseInt(e(408))/3*(-parseInt(e(406))/4)+-parseInt(e(411))/5*(-parseInt(e(407))/6)+-parseInt(e(421))/7+-parseInt(e(418))/8+parseInt(e(415))/9*(parseInt(e(409))/10)+-parseInt(e(414))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[X(412)](){return X(410)}static get[X(405)](){return[v,_,Y]}static get[X(416)](){return!0}static get[X(419)](){return!0}}function $(){var t=["505575RCfgGy","requires","724LJyxee","388302NCvkaF","3261mPbaFI","26900EEwJLV","Footnotes","5jhLeAE","pluginName","8rwprGd","287309AVGlsZ","450pQlrSI","isOfficialPlugin","144mVUNxN","1171568TStBEs","isPremiumPlugin","714xyDcIX"];return($=function(){return t})()}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=359]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(927603===parseInt(e(368))/1*(parseInt(e(363))/2)+parseInt(e(370))/3*(-parseInt(e(369))/4)+-parseInt(e(367))/5+-parseInt(e(365))/6*(-parseInt(e(375))/7)+-parseInt(e(373))/8*(parseInt(e(377))/9)+-parseInt(e(362))/10*(-parseInt(e(378))/11)+parseInt(e(359))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(360),et(374),et(376),et(361),et(366),et(371),et(364),et(372)];function nt(){const t=["240DHjWnG","decimal-leading-zero","35mOWHeC","lower-latin","383742vFupDr","22NSYDTX","49630776CTDqFM","decimal","upper-latin","2077150UrSZzC","179412NwADCP","lower-roman","33246cKfqVn","lower-alpha","8683740XgCuWT","13RemTLg","116240JkCrJP","186SaKFfN","upper-alpha","upper-roman"];return(nt=function(){return t})()}const it=rt;function st(){const t=["71148oUOinD","value","change","_updateFootnotesCounters","includes","4403791saFFuM","setAttribute","3926cymfgr","3727590RZQSCM","execute","9lYcXZa","130gqDcMZ","1240ZxgUAP","5WWdazs","refresh","getFootnotesDefinitionsObjectElement","model","plugins","74vlrudF","get","8318264GjiuAC","3062620rtqZEI","isEnabled","2051748EcPWFi","footnotesListStyle","3vcwxVm","getAttribute"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(553274===parseInt(e(219))/1*(-parseInt(e(230))/2)+-parseInt(e(237))/3*(parseInt(e(233))/4)+-parseInt(e(225))/5*(-parseInt(e(220))/6)+-parseInt(e(244))/7+-parseInt(e(232))/8*(parseInt(e(222))/9)+parseInt(e(224))/10*(parseInt(e(239))/11)+parseInt(e(235))/12*(parseInt(e(223))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(226)](){const t=it,{editor:e}=this,o=e[t(229)][t(231)](d)[t(227)]();this[t(234)]=!!o,this[t(240)]=o?.[t(238)](t(236))??null}[it(221)]({value:t}){const e=it,{editor:o}=this,n=o[e(229)][e(231)](d),i=n[e(227)]();i&&ot[e(243)](t)&&o[e(228)][e(241)](o=>{const s=e;o[s(218)](s(236),t,i),n[s(242)](o)})}}const ct=ft;function lt(){const t=["isInteger","853737gWQxls","_updateFootnotesCounters","setAttribute","getAttribute","13798UUyZYE","isEnabled","get","getFootnotesDefinitionsObjectElement","1881816cOZNJP","model","8XrrTlq","value","1698680SdUpds","execute","footnotesListStart","267ieaNDC","refresh","change","9433359sCZryT","10754233GTeazx","2138464IaAUpx","plugins"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(846650===parseInt(e(383))/1+-parseInt(e(387))/2*(parseInt(e(375))/3)+-parseInt(e(380))/4+parseInt(e(372))/5+parseInt(e(391))/6+parseInt(e(379))/7*(parseInt(e(370))/8)+-parseInt(e(378))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(376)](){const t=ct,{editor:e}=this,o=e[t(381)][t(389)](d)[t(390)]();this[t(388)]=!!o,this[t(371)]=o?.[t(386)](t(374))??null}[ct(373)]({value:t}){const e=ct,{editor:o}=this,n=o[e(381)][e(389)](d),i=n[e(390)]();i&&Number[e(382)](t)&&o[e(392)][e(377)](o=>{const s=e;o[s(385)](s(374),t,i),n[s(384)](o)})}}function dt(){const t=["parent","hasAttribute","start","20XHTHak","891991WAdaWn","mapper","isOfficialPlugin","setAttribute","upper-latin","add","isNaN","fromCharCode","setStyle","10703759hbywsi","footnotes.footnotesProperties.defaultListStyle","removeStyle","toViewElement","find","element:ol","position","padStart","7hlXgEb","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","footnotesStyle","_defineConverters","getChanges","_getDefaultListStyle","367527VzHKEe","_defineFormatter","_defineSchema","_formatFootnoteListValue","lower-alpha","writer","lower-roman","getChildren","footnotesListStyle","2UHHVJT","parseInt","list-style-type","define","extend","createRangeOn","1038xytWdd","_definePostfixer","2342169cEdYzn","footnotesDefinitions","item","lower-latin","footnotes.footnotesProperties.defaultStartIndex","commands","isPremiumPlugin","$text","editor","registerPostFixer","footnotesListStart","config","35210LYlVoP","type","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","getStyle","name","floor","consumable","checkAttribute","downcast","1411056IXoqwU","3531076hophNe","setFootnoteFormatter","nodeAfter","from","upper-roman","schema","for","requires","viewItem","upcast","_getDefaultStartIndex","document","differ","decimal","insert","footnotes-list","decimal-leading-zero","footnotesStart","FootnotesPropertiesEditing","element","_updateFootnotesCounters","get","getAttribute","init","max","getItems","hasClass","model","toLowerCase","consume","plugins","upper-alpha","pluginName","toUpperCase"];return(dt=function(){return t})()}const pt=mt;!function(t){const e=mt,o=t();for(;;)try{if(830512===-parseInt(e(152))/1*(parseInt(e(185))/2)+-parseInt(e(176))/3+-parseInt(e(216))/4+parseInt(e(205))/5*(parseInt(e(191))/6)+-parseInt(e(169))/7*(parseInt(e(215))/8)+-parseInt(e(193))/9+parseInt(e(151))/10*(parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ht extends t.Plugin{static get[pt(146)](){return pt(234)}static get[pt(223)](){return[v,d]}static get[pt(154)](){return!0}static get[pt(199)](){return!0}[pt(137)](){const t=pt,{editor:e}=this;e[t(204)][t(188)](t(162),t(229)),e[t(204)][t(188)](t(197),1),e[t(198)][t(157)](t(172),new at(e)),e[t(198)][t(157)](t(233),new ut(e)),this[t(178)](),this[t(173)](),this[t(177)](),this[t(192)]()}[pt(178)](){const t=pt,{editor:e}=this,{schema:o}=e[t(141)];o[t(189)](t(194),{allowAttributes:[t(184),t(203)]})}[pt(173)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(222)](t(225))[t(157)](e=>{const o=t;e.on(o(166),(t,e,n)=>{const s=o,r=e[s(224)],a=e[s(171)]?.[s(148)];r[s(140)](s(231))&&a?.is(s(235),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(213)](e,i(203)))return;let r=1;const a=o[i(212)][i(143)](t,{attributes:i(150)});if(a){const e=Number[i(186)](t[i(136)](i(150)),10);Number[i(158)](e)||(r=e)}!a&&e[i(149)](i(203))||o[i(181)][i(155)](i(203),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(213)](e,i(184)))return;let r=i(229),a=!1;if(o[i(212)][i(143)](t,{attributes:i(206)})){const e={1:i(229),a:i(180),A:i(145),i:i(182),I:i(220)}[t[i(136)](i(206))];e&&(r=e),a=!0}o[i(212)][i(143)](t,{styles:i(187)})&&(r=function(t){const e=i;switch(t){case e(180):return e(196);case e(145):return e(156);default:return t}}(t[i(209)](i(187))),a=!0),!a&&e[i(149)](i(184))||o[i(181)][i(155)](i(184),r,e)}(r,a,n,i))})}),o[t(222)](t(214))[t(157)](e=>{const o=t;e.on(o(207),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;null==r||1===r?n[i(181)][i(208)](i(150),s):n[i(181)][i(155)](i(150),String(r),s)}),e.on(o(170),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;r&&i(229)!==r?n[i(181)][i(160)](i(187),r,s):n[i(181)][i(163)](i(187),s)})})}[pt(192)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(144)][t(135)](d),i=this[t(175)](),s=this[t(226)]();o[t(227)][t(202)](e=>{const r=t,a=o[r(227)][r(228)][r(174)]();let c=!1;for(const t of a){if(r(230)!==t[r(206)]||r(200)===t[r(210)])continue;const n=o[r(190)](t[r(167)][r(218)]);for(const t of n[r(139)]())t.is(r(235),r(194))&&(!t[r(149)](r(203))&&o[r(221)][r(213)](t,r(203))&&(e[r(155)](r(203),s,t),c=!0),!t[r(149)](r(184))&&o[r(221)][r(213)](t,r(184))&&(e[r(155)](r(184),i,t),c=!0))}return c&&n[r(236)](e),c})}[pt(177)](){const t=pt,{editor:e}=this;e[t(144)][t(135)](d)[t(217)](e=>this[t(179)](e))}[pt(175)](){const t=pt;return this[t(201)][t(204)][t(135)](t(162))}[pt(226)](){const t=pt;return this[t(201)][t(204)][t(135)](t(197))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(136)](n(184)),s=t[n(136)](n(203)),r=Math[n(211)](e)+(s??1)-1;switch(i){case n(232):return function(t,e){const o=n;return String(t)[o(168)](e,"0")}(r,Math[n(138)](2,o));case n(180):case n(196):return wt(r,!1);case n(145):case n(156):return wt(r,!0);case n(182):return bt(r,!1);case n(220):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt();return(mt=function(t,e){return o[t-=135]})(t,e)}function gt(t,e){const o=pt,n=e[o(164)](t);return Array[o(219)](n[o(183)]())[o(165)](t=>t.is(o(235),"ol")&&t[o(140)](o(231)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(159)](97+t)+n,i=Math[o(211)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(142)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[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 t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=M(),kt.insert=j().bind(null,"head"),kt.domAPI=B(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=491]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","16PGXoOm","isOfficialPlugin","5VkOiYa","81ZitBLb","2311896oYTRuq","FootnotesProperties","requires","119WkEaHE","199284GGYZJs","3497672rEGrzm","127896nvpEQS","30689BXKotR","572412aoiWrX","616430oweDyH","418OYHQuP"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(290988===parseInt(e(499))/1*(parseInt(e(505))/2)+parseInt(e(500))/3+parseInt(e(492))/4*(parseInt(e(507))/5)+-parseInt(e(498))/6*(parseInt(e(495))/7)+-parseInt(e(497))/8+-parseInt(e(491))/9*(parseInt(e(501))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(504)](){return Ft(493)}static get[Ft(494)](){return[ht,Ct]}static get[Ft(506)](){return!0}static get[Ft(503)](){return!0}}function Tt(){var t=["10wXxEqk","6lNlDfM","1666840GlxjfH","2904QLMVJo","1288PhdGTq","2575680WmqHUv","13909UQGmuQ","50VPLett","636205YKwAUY","936562GvrpKj","542862xzKuhL"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=118]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(199876===parseInt(e(127))/1*(-parseInt(e(128))/2)+parseInt(e(124))/3*(parseInt(e(125))/4)+parseInt(e(118))/5+parseInt(e(122))/6*(-parseInt(e(123))/7)+parseInt(e(126))/8+-parseInt(e(120))/9+-parseInt(e(121))/10*(-parseInt(e(119))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["insert","1945AgVQHQ","1571867nuWCeA","element","getElementKey","root","_getElementKey","attributes","78psWvqX","nodeAfter","94956PQReOk","slice","delete","$text","values","1131rUKeyq","set","_trackedElements","_elementName","push","remove","has","1334068aBZBBr","rootName","3yKOTSB","136146pLNZAW","24fZWIWU","type","_model","10FzsBuX","3722616NZYBNB","reset","position","clear","get","getChanges","from","$graveyard","add","1LBKUme","getItems","length","name","flat","elementName","createRangeOn","1036581UHSdHi"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=105]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(244408===-parseInt(e(144))/1*(-parseInt(e(130))/2)+parseInt(e(129))/3*(-parseInt(e(127))/4)+parseInt(e(106))/5*(-parseInt(e(113))/6)+parseInt(e(151))/7*(-parseInt(e(131))/8)+parseInt(e(135))/9+parseInt(e(134))/10*(-parseInt(e(107))/11)+-parseInt(e(115))/12*(-parseInt(e(120))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(133)];[r(123)];[r(111)];[r(122)]=new Map;constructor(t,e){const o=r;this[o(133)]=t,this[o(123)]=e[o(149)],this[o(111)]=e[o(109)]}[r(136)](){const t=r;this[t(122)][t(138)]()}[r(140)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(132)]&&e(118)!==i[e(147)]&&i[e(137)][e(114)]){const t=this[e(133)][e(150)](i[e(137)][e(114)]);for(const o of t[e(145)]()){if(!o.is(e(108),this[e(123)]))continue;const t=this[e(111)](o);n[e(126)](t)||n[e(121)](t,[]),n[e(139)](t)[e(124)](o)}}if(e(125)===i[e(132)]&&i[e(147)]===this[e(123)]){const t=this[e(111)]({getAttribute:t=>i[e(112)][e(139)](t)});o[e(143)](t)}}for(const[t,n]of this[e(122)])e(142)===n[e(110)][e(128)]&&o[e(143)](t);for(const t of o)this[e(122)][e(117)](t);for(const[t,o]of n)this[e(122)][e(121)](t,o[o[e(146)]-1]);const i=new Set;for(const[t,s]of n)o[e(126)](t)&&(i[e(143)](s[0]),s[e(146)]>1?n[e(121)](t,s[e(116)](1)):n[e(117)](t),o[e(117)](t));return{removed:Array[e(141)](o),inserted:Array[e(141)](n[e(119)]())[e(148)](),moved:Array[e(141)](i)}}}const f=p;function u(){const t=["_updateFootnotesCounters","footnoteCounter","_handleInsertedFootnoteReference","footnoteRef","527910myobfi","_footnoteRefsTracker","createPositionAt","map","from","paragraph","some","push","model","_footnoteDefsTracker","473808YFoFdm","reference","footnotes.multiBlock","getFootnote","FootnotesTracker","createElement","find","_footnoteDefsContainerTracker","$graveyard","set","12fWEIHF","move","83555ictCoo","length","387gicSHt","isOfficialPlugin","footnotesDefinitions","after","parent","getChanges","change:data","editor","_updateFootnoteRefCounter","setFootnoteFormatter","250692WgfBYx","footnoteInlineContent","_footnotes","singleton","get","enqueueChange","compareWith","reset","before","definition","indexOf","root","setAttribute","unshift","57544JvsWUh","pluginName","has","splice","differ","registerPostFixer","createRangeOn","_ensureFootnotesReferencesHaveProperOrder","insert","childCount","findIndex","config","end","createRangeIn","low","listenTo","add","remove","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","document","getAttribute","append","_handleFootnoteReferencesChanges","isEqual","_handleRemoveFootnoteReferenceById","236889fiBgfv","_footnotesDefinitions","footnoteId","_ensureFootnotesDefinitionsContainerExists","getChildren","getRootNames","_handleFootnoteDefinitionsChanges","footnoteDefinition","high","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","_footnoteFormatter","getFootnotesDefinitionsObjectElement","min","_sortFootnoteDefinitions","_handleMovedFootnoteReference","getFootnotesFormatter","createPositionBefore","rootName","init","873320SNVWow","_handleFootnotesDefinitionsObjectChanges"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(143295===-parseInt(e(164))/1+parseInt(e(190))/2+parseInt(e(124))/3+-parseInt(e(200))/4+parseInt(e(212))/5*(-parseInt(e(210))/6)+-parseInt(e(184))/7+-parseInt(e(138))/8*(-parseInt(e(114))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(126)]=[];[f(165)]=null;[f(175)]=null;[f(207)];[f(191)];[f(199)];static get[f(139)](){return f(204)}static get[f(115)](){return!0}static get[f(157)](){return!0}constructor(t){const e=f;super(t),this[e(207)]=new l(this[e(121)][e(198)],{elementName:e(116),getElementKey:()=>e(127)}),this[e(191)]=new l(this[e(121)][e(198)],{elementName:e(189),getElementKey:t=>t[e(159)](e(166))}),this[e(199)]=new l(this[e(121)][e(198)],{elementName:e(171),getElementKey:t=>t[e(159)](e(166))})}[f(183)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(158)][t(143)](e=>{const n=t,i=o[n(158)][n(142)][n(119)]();let s=!1;return this[n(185)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(161)](e,i)&&(s=!0),this[n(145)](e)&&(s=!0),this[n(156)](e)&&(s=!0),this[n(178)](e)&&(s=!0),s}),this[t(153)](o[t(158)],t(120),()=>{const e=t;o[e(129)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(152)}),this[t(153)](n,t(209),()=>{const e=t;this[e(126)]=[],this[e(207)][e(131)](),this[e(191)][e(131)](),this[e(199)][e(131)]()},{priority:t(172)})}[f(176)](){return this[f(165)]}[f(203)](t){const e=f;return this[e(126)][e(206)](e=>e.id===t)||null}[f(174)](){const t=f;return Array[t(194)](this[t(126)])}[f(180)](){return this[f(175)]}[f(123)](t){this[f(175)]=t}[f(186)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(126)][o(213)];i++)this[o(122)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(205)](o(116),{});return t[o(160)](n,e),this[o(165)]=n,n}[f(167)](t){const e=f;if(!this[e(126)][e(213)]||this[e(165)])return;const o=this[e(126)][0][e(201)][e(135)],n=this[e(173)](t,o);for(const o of this[e(126)])o[e(133)][e(118)]||t[e(146)](o[e(133)],n,e(150));this[e(186)](t)}[f(185)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(207)][o(119)](e);if(r[o(213)]&&(this[o(165)]=r[0]),i[o(213)])if(i[o(213)]>1||this[o(165)]&&i[o(196)](t=>t!==this[o(165)])){const e=t[o(205)](o(116),{}),s=[];this[o(165)]&&s[o(197)](this[o(165)]),s[o(197)](...i),t[o(146)](e,s[0],o(132));for(const n of s)t[o(211)](t[o(151)](n),t[o(192)](e,o(150))),t[o(155)](n);this[o(165)]=e,this[o(186)](t),n=!0}else this[o(165)]=i[0];if(s[o(213)]&&o(208)===this[o(165)]?.[o(135)][o(182)]){for(const e of this[o(126)])t[o(155)](e[o(201)]),n=!0;this[o(126)]=[],this[o(165)]=null}return n}[f(170)](t,e){const o=f;let n=!1;const i=this[o(121)][o(149)][o(128)](o(202)),{inserted:s,moved:r}=this[o(199)][o(119)](e);for(const e of[...r,...s]){const s=e[o(159)](o(166)),r=this[o(203)](s);r&&(r[o(133)]=e),h(t,i,e)&&(n=!0)}return n}[f(161)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(191)][o(119)](e);for(const e of i)this[o(163)](t,e)&&(n=!0);for(const e of s)this[o(188)](t,e)&&(n=!0);for(const e of r)this[o(179)](t,e)&&(n=!0);return n}[f(156)](t){const e=f;if(!this[e(165)])return!1;let o=!1;if(this[e(165)][e(147)]!==this[e(126)][e(213)]){const n=[];for(const t of this[e(165)][e(168)]()){const i=t[e(159)](e(166));this[e(203)](i)||(n[e(137)](t),o=!0)}for(const o of n)t[e(155)](o)}const n=new Set,i=[];for(const t of this[e(165)][e(168)]()){const s=t[e(159)](e(166));n[e(140)](s)?(i[e(137)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(155)](o);return this[e(165)][e(147)]||(t[e(155)](this[e(165)]),this[e(165)]=null,o=!0),o}[f(188)](t,e){const o=f;if(this[o(126)][o(206)](t=>t[o(201)]===e))return!1;let n=!1;const i=e[o(159)](o(166)),s=this[o(126)][o(148)](t=>t.id===i);-1!==s&&(t[o(155)](this[o(126)][s][o(201)]),this[o(126)][o(141)](s,1),n=!0);let r=this[o(165)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(159)](n(166))===e)return o;return null}(this[o(165)],i):null;r||(r=t[o(205)](o(171),{footnoteId:i}),this[o(165)]&&(t[o(146)](r,this[o(165)],o(150)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(121)][o(198)],this[o(126)],e);this[o(126)][o(141)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(186)](t,l)&&(n=!0),n}[f(163)](t,e){const o=f,n=this[o(126)][o(148)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(126)][n];return o(208)!==s[o(133)][o(135)][o(182)]&&(t[o(155)](s[o(133)]),i=!0),this[o(126)][o(141)](n,1),this[o(186)](t,n)&&(i=!0),i}[f(179)](t,e){const o=f,n=e[o(159)](o(166)),i=this[o(126)][o(148)](t=>t.id===n),s=this[o(126)][i];let r=!1;s[o(201)]=e,this[o(126)][o(141)](i,1);const a=m(this[o(121)][o(198)],this[o(126)],e);return this[o(126)][o(141)](a,0,s),this[o(186)](t,Math[o(177)](i,a))&&(r=!0),r}[f(122)](t,e){const o=f;if(!this[o(165)])return!1;const n=this[o(126)][e];let i;return i=this[o(175)]?this[o(175)]({footnote:n,container:this[o(165)],digits:String(this[o(126)][o(213)])[o(213)],value:e+1}):String(e+1),n[o(201)][o(159)](o(187))!=i&&(t[o(136)](o(187),i,n[o(201)]),!0)}[f(178)](t){const e=f;if(!this[e(165)]||this[e(126)][e(213)]<2)return!1;if(function(t,o){const n=e;if(t[n(213)]!==o[n(213)])return!1;for(let e=0;e<t[n(213)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(126)][e(193)](t=>t.id),Array[e(194)](this[e(165)][e(168)]())[e(193)](t=>t[e(159)](e(166)))))return!1;let o=!1;for(let n=0;n<this[e(126)][e(213)];n++){const i=this[e(126)][n],s=t[e(181)](i[e(133)]),r=t[e(192)](this[e(165)],n);s[e(162)](r)||(t[e(211)](t[e(144)](i[e(133)]),r),o=!0)}return o}[f(145)](t){const e=f;if(!this[e(126)][e(213)])return!1;const{model:o}=this[e(121)];let n=!1;for(let i=0;i<this[e(126)][e(213)]-1;i++){const s=this[e(126)][i],r=this[e(126)][i+1],a=o[e(181)](s[e(201)]),c=o[e(181)](r[e(201)]);e(117)===a[e(130)](c)&&(this[e(179)](t,s[e(201)]),i=-1,n=!0)}return n}}function p(t,e){const o=u();return(p=function(t,e){return o[t-=114]})(t,e)}function h(t,e,o){const n=f;if(o[n(147)])return!1;const i=n(e?195:125);return t[n(146)](t[n(205)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(213)])return 0;const i=t[n(181)](o);for(let o=0;o<e[n(213)];o++){const s=e[o],r=t[n(181)](s[n(201)]);if(n(132)===i[n(130)](r))return o}const s=o[n(135)];let r=-1;for(let t=e[n(213)]-1;t>=0;t--)if(e[t][n(201)][n(135)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(158)][n(169)](),c=a[n(134)](s[n(182)]),l=a[c+1];if(l)for(let t=0;t<e[n(213)];t++)if(e[t][n(201)][n(135)][n(182)]===l)return t;return e[n(213)]}const g=y;function w(){const t=["end","plugins","string","178fNSakp","editor","change","get","checkChild","_getPositionToInsertFootnote","execute","createElement","getFirstRange","6VPNNYG","footnoteId","isBlock","FootnotesEditing","isEnabled","2817603yvcvmj","length","getItems","1480lYLVku","13741632DpasLN","isObject","insert-footnote-command-executed-with-invalid-id","3887155MxyGmU","document","selection","refresh","_moveSelectionToFootnoteDefinition","231TyOwnm","model","5053hAaJbc","763YZFHPW","222668lHWCAn","6seDQmb","220370IWimOS","test","insertObject","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(565507===-parseInt(e(142))/1*(parseInt(e(153))/2)+-parseInt(e(162))/3*(parseInt(e(144))/4)+parseInt(e(135))/5*(parseInt(e(145))/6)+parseInt(e(143))/7*(-parseInt(e(131))/8)+-parseInt(e(128))/9+-parseInt(e(146))/10*(parseInt(e(140))/11)+parseInt(e(132))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(138)](){const t=g,e=this[t(154)][t(141)][t(136)][t(137)],o=this[t(158)](e);this[t(127)]=!!o}[g(159)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(136)],r=this[e(158)](s);if(!r)return;const a=o[e(151)][e(156)](e(165)),c=t?.[e(163)]??(0,i.uid)();!function(t){const o=e;return o(152)==typeof t&&t[o(129)]>0&&!/\s/[o(147)](t)&&!/^\d/[o(147)](t)}(c)?(0,i.logWarning)(e(134)):(n[e(155)](t=>{const o=e,i=t[o(160)](o(149),{footnoteId:c});n[o(148)](i,r,null)}),a[e(139)](c))}[g(158)](t){const e=g,{model:o}=this[e(154)],{schema:n}=o,i=t[e(161)]();for(const t of i[e(130)]())if(n[e(164)](t)||n[e(133)](t))return null;const s=i[e(150)];return n[e(157)](s,e(149))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764547200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=D;function A(){const t=["config","reduce","createRangeIn","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","drop","90853luBNYr","32624zxZQTO","sourceEditorId","354vSTASl","content","outputTransformation","change","_handleCopyFootnotesDefinitions","toView","isOfficialPlugin","pluginName","_defineClipboardIntegration","footnoteDefinition","footnotes.multiBlock","clipboardInput","method","toModel","flatMap","includes","init","get","requires","end","stringify","element","definition","editor","toData","isPremiumPlugin","application/ckeditor5-footnotes","2873760rvzUwJ","4UlkkaH","18185535FJQBIc","append","htmlProcessor","editing","contentInsertion","data","footnoteId","insert","dataTransfer","createElement","root","1977064rRLffb","getSelectedBlocks","entries","push","2720065VCnEFE","setAttribute","add","getFootnotesDefinitionsObjectElement","FootnotesClipboard","getRanges","getFootnotes","parse","footnotesDefinitions","from","selection","document","remove","listenTo","_handlePasteFootnotesDefinitions","getData","setData","length","getAttribute","getFootnote","2178090YmjGoY","getFirstRange","create","find","footnoteRef"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=194]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(536282===parseInt(e(254))/1*(-parseInt(e(206))/2)+-parseInt(e(242))/3+-parseInt(e(205))/4+parseInt(e(222))/5+parseInt(e(256))/6*(-parseInt(e(253))/7)+parseInt(e(218))/8+parseInt(e(207))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[P(263)](){return P(226)}static get[P(196)](){return[v,T.ClipboardPipeline]}static get[P(262)](){return!0}static get[P(203)](){return!0}[P(194)](){this[P(264)]()}[P(264)](){const t=P;this[t(260)](),this[t(236)]()}[P(260)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(195)](T.ClipboardPipeline),s=o[t(195)](d);this[t(235)](i,t(258),(o,i)=>{const r=t,a=L(n[r(249)](i[r(257)]));if(!a[r(239)])return;const c=s[r(228)](),l=a[r(248)]((t,o)=>{const n=r,i=c[n(245)](t=>t.id===o);if(i){const o=e[n(212)][n(261)](i[n(200)],{isClipboardPipeline:!0}),s=e[n(212)][n(209)][n(202)](o);t[i.id]=s}return t},Object[r(244)](null));i[r(215)][r(238)](r(204),JSON[r(198)](l))})}[P(236)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(210)],r=n[t(195)](T.ClipboardPipeline),a=n[t(195)](d),c=e[t(247)][t(195)](t(266));let l=null;this[t(235)](s[t(233)],t(267),(e,o)=>{const n=t,i=o[n(215)][n(237)](n(204));l=i?JSON[n(229)](i):null}),this[t(235)](r,t(211),(n,s)=>{const r=t,f=s[r(255)]===this[r(201)].id;f&&r(252)===s[r(268)]||o[r(259)](t=>{const n=r;let u=a[n(225)]();const d=!!u&&Array[n(231)](o[n(233)][n(232)][n(219)]())[n(271)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(249)](e))n.is(o(199),o(230))&&i[o(221)](n);for(const e of i)t[o(234)](e)}(t,s[n(257)]),!l)return;const{selection:p}=o[n(233)],h=p[n(243)]()[n(217)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(249)](e))if(n.is(o(199),o(230)))return n;return null}(t,s[n(257)]),u||=a[n(250)](t,h));const m=Array[n(231)](p[n(227)]())[n(270)](L),g=function(t,e,o){const s=n,r=Object[s(244)](null);for(const{item:n}of t[s(249)](e))if(n.is(s(199),s(246))){const e=n[s(240)](s(213));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(223)](s(213),r[e],n)}return r}(t,s[n(257)],t=>{const e=n;return!f||!!a[e(241)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(220)](l)){const s=g[o]||o,r=t[n(216)](n(265),{footnoteId:s}),a=e[n(212)][n(209)][n(261)](i);let l;if(c)l=e[n(212)][n(269)](a,r);else{l=t[n(216)](n(251));const o=e[n(212)][n(269)](a,l);t[n(214)](o,l)}t[n(208)](l,r),t[n(214)](r,u,n(197))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(199),e(246))&&o[e(224)](n[e(240)](e(213)));return Array[e(231)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),B=o.n(K),W=o(102),j=o.n(W),U=o(123),M=o.n(U),H=o(741),z=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=M(),G.insert=j().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=z();R()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(100083===-parseInt(e(420))/1*(-parseInt(e(413))/2)+parseInt(e(408))/3*(-parseInt(e(406))/4)+-parseInt(e(411))/5*(-parseInt(e(407))/6)+-parseInt(e(421))/7+-parseInt(e(418))/8+parseInt(e(415))/9*(parseInt(e(409))/10)+-parseInt(e(414))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[X(412)](){return X(410)}static get[X(405)](){return[v,_,Y]}static get[X(416)](){return!0}static get[X(419)](){return!0}}function $(){var t=["505575RCfgGy","requires","724LJyxee","388302NCvkaF","3261mPbaFI","26900EEwJLV","Footnotes","5jhLeAE","pluginName","8rwprGd","287309AVGlsZ","450pQlrSI","isOfficialPlugin","144mVUNxN","1171568TStBEs","isPremiumPlugin","714xyDcIX"];return($=function(){return t})()}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=359]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(927603===parseInt(e(368))/1*(parseInt(e(363))/2)+parseInt(e(370))/3*(-parseInt(e(369))/4)+-parseInt(e(367))/5+-parseInt(e(365))/6*(-parseInt(e(375))/7)+-parseInt(e(373))/8*(parseInt(e(377))/9)+-parseInt(e(362))/10*(-parseInt(e(378))/11)+parseInt(e(359))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(360),et(374),et(376),et(361),et(366),et(371),et(364),et(372)];function nt(){const t=["240DHjWnG","decimal-leading-zero","35mOWHeC","lower-latin","383742vFupDr","22NSYDTX","49630776CTDqFM","decimal","upper-latin","2077150UrSZzC","179412NwADCP","lower-roman","33246cKfqVn","lower-alpha","8683740XgCuWT","13RemTLg","116240JkCrJP","186SaKFfN","upper-alpha","upper-roman"];return(nt=function(){return t})()}const it=rt;function st(){const t=["71148oUOinD","value","change","_updateFootnotesCounters","includes","4403791saFFuM","setAttribute","3926cymfgr","3727590RZQSCM","execute","9lYcXZa","130gqDcMZ","1240ZxgUAP","5WWdazs","refresh","getFootnotesDefinitionsObjectElement","model","plugins","74vlrudF","get","8318264GjiuAC","3062620rtqZEI","isEnabled","2051748EcPWFi","footnotesListStyle","3vcwxVm","getAttribute"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(553274===parseInt(e(219))/1*(-parseInt(e(230))/2)+-parseInt(e(237))/3*(parseInt(e(233))/4)+-parseInt(e(225))/5*(-parseInt(e(220))/6)+-parseInt(e(244))/7+-parseInt(e(232))/8*(parseInt(e(222))/9)+parseInt(e(224))/10*(parseInt(e(239))/11)+parseInt(e(235))/12*(parseInt(e(223))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(226)](){const t=it,{editor:e}=this,o=e[t(229)][t(231)](d)[t(227)]();this[t(234)]=!!o,this[t(240)]=o?.[t(238)](t(236))??null}[it(221)]({value:t}){const e=it,{editor:o}=this,n=o[e(229)][e(231)](d),i=n[e(227)]();i&&ot[e(243)](t)&&o[e(228)][e(241)](o=>{const s=e;o[s(218)](s(236),t,i),n[s(242)](o)})}}const ct=ft;function lt(){const t=["isInteger","853737gWQxls","_updateFootnotesCounters","setAttribute","getAttribute","13798UUyZYE","isEnabled","get","getFootnotesDefinitionsObjectElement","1881816cOZNJP","model","8XrrTlq","value","1698680SdUpds","execute","footnotesListStart","267ieaNDC","refresh","change","9433359sCZryT","10754233GTeazx","2138464IaAUpx","plugins"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(846650===parseInt(e(383))/1+-parseInt(e(387))/2*(parseInt(e(375))/3)+-parseInt(e(380))/4+parseInt(e(372))/5+parseInt(e(391))/6+parseInt(e(379))/7*(parseInt(e(370))/8)+-parseInt(e(378))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(376)](){const t=ct,{editor:e}=this,o=e[t(381)][t(389)](d)[t(390)]();this[t(388)]=!!o,this[t(371)]=o?.[t(386)](t(374))??null}[ct(373)]({value:t}){const e=ct,{editor:o}=this,n=o[e(381)][e(389)](d),i=n[e(390)]();i&&Number[e(382)](t)&&o[e(392)][e(377)](o=>{const s=e;o[s(385)](s(374),t,i),n[s(384)](o)})}}function dt(){const t=["parent","hasAttribute","start","20XHTHak","891991WAdaWn","mapper","isOfficialPlugin","setAttribute","upper-latin","add","isNaN","fromCharCode","setStyle","10703759hbywsi","footnotes.footnotesProperties.defaultListStyle","removeStyle","toViewElement","find","element:ol","position","padStart","7hlXgEb","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","footnotesStyle","_defineConverters","getChanges","_getDefaultListStyle","367527VzHKEe","_defineFormatter","_defineSchema","_formatFootnoteListValue","lower-alpha","writer","lower-roman","getChildren","footnotesListStyle","2UHHVJT","parseInt","list-style-type","define","extend","createRangeOn","1038xytWdd","_definePostfixer","2342169cEdYzn","footnotesDefinitions","item","lower-latin","footnotes.footnotesProperties.defaultStartIndex","commands","isPremiumPlugin","$text","editor","registerPostFixer","footnotesListStart","config","35210LYlVoP","type","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","getStyle","name","floor","consumable","checkAttribute","downcast","1411056IXoqwU","3531076hophNe","setFootnoteFormatter","nodeAfter","from","upper-roman","schema","for","requires","viewItem","upcast","_getDefaultStartIndex","document","differ","decimal","insert","footnotes-list","decimal-leading-zero","footnotesStart","FootnotesPropertiesEditing","element","_updateFootnotesCounters","get","getAttribute","init","max","getItems","hasClass","model","toLowerCase","consume","plugins","upper-alpha","pluginName","toUpperCase"];return(dt=function(){return t})()}const pt=mt;!function(t){const e=mt,o=t();for(;;)try{if(830512===-parseInt(e(152))/1*(parseInt(e(185))/2)+-parseInt(e(176))/3+-parseInt(e(216))/4+parseInt(e(205))/5*(parseInt(e(191))/6)+-parseInt(e(169))/7*(parseInt(e(215))/8)+-parseInt(e(193))/9+parseInt(e(151))/10*(parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ht extends t.Plugin{static get[pt(146)](){return pt(234)}static get[pt(223)](){return[v,d]}static get[pt(154)](){return!0}static get[pt(199)](){return!0}[pt(137)](){const t=pt,{editor:e}=this;e[t(204)][t(188)](t(162),t(229)),e[t(204)][t(188)](t(197),1),e[t(198)][t(157)](t(172),new at(e)),e[t(198)][t(157)](t(233),new ut(e)),this[t(178)](),this[t(173)](),this[t(177)](),this[t(192)]()}[pt(178)](){const t=pt,{editor:e}=this,{schema:o}=e[t(141)];o[t(189)](t(194),{allowAttributes:[t(184),t(203)]})}[pt(173)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(222)](t(225))[t(157)](e=>{const o=t;e.on(o(166),(t,e,n)=>{const s=o,r=e[s(224)],a=e[s(171)]?.[s(148)];r[s(140)](s(231))&&a?.is(s(235),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(213)](e,i(203)))return;let r=1;const a=o[i(212)][i(143)](t,{attributes:i(150)});if(a){const e=Number[i(186)](t[i(136)](i(150)),10);Number[i(158)](e)||(r=e)}!a&&e[i(149)](i(203))||o[i(181)][i(155)](i(203),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(213)](e,i(184)))return;let r=i(229),a=!1;if(o[i(212)][i(143)](t,{attributes:i(206)})){const e={1:i(229),a:i(180),A:i(145),i:i(182),I:i(220)}[t[i(136)](i(206))];e&&(r=e),a=!0}o[i(212)][i(143)](t,{styles:i(187)})&&(r=function(t){const e=i;switch(t){case e(180):return e(196);case e(145):return e(156);default:return t}}(t[i(209)](i(187))),a=!0),!a&&e[i(149)](i(184))||o[i(181)][i(155)](i(184),r,e)}(r,a,n,i))})}),o[t(222)](t(214))[t(157)](e=>{const o=t;e.on(o(207),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;null==r||1===r?n[i(181)][i(208)](i(150),s):n[i(181)][i(155)](i(150),String(r),s)}),e.on(o(170),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;r&&i(229)!==r?n[i(181)][i(160)](i(187),r,s):n[i(181)][i(163)](i(187),s)})})}[pt(192)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(144)][t(135)](d),i=this[t(175)](),s=this[t(226)]();o[t(227)][t(202)](e=>{const r=t,a=o[r(227)][r(228)][r(174)]();let c=!1;for(const t of a){if(r(230)!==t[r(206)]||r(200)===t[r(210)])continue;const n=o[r(190)](t[r(167)][r(218)]);for(const t of n[r(139)]())t.is(r(235),r(194))&&(!t[r(149)](r(203))&&o[r(221)][r(213)](t,r(203))&&(e[r(155)](r(203),s,t),c=!0),!t[r(149)](r(184))&&o[r(221)][r(213)](t,r(184))&&(e[r(155)](r(184),i,t),c=!0))}return c&&n[r(236)](e),c})}[pt(177)](){const t=pt,{editor:e}=this;e[t(144)][t(135)](d)[t(217)](e=>this[t(179)](e))}[pt(175)](){const t=pt;return this[t(201)][t(204)][t(135)](t(162))}[pt(226)](){const t=pt;return this[t(201)][t(204)][t(135)](t(197))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(136)](n(184)),s=t[n(136)](n(203)),r=Math[n(211)](e)+(s??1)-1;switch(i){case n(232):return function(t,e){const o=n;return String(t)[o(168)](e,"0")}(r,Math[n(138)](2,o));case n(180):case n(196):return wt(r,!1);case n(145):case n(156):return wt(r,!0);case n(182):return bt(r,!1);case n(220):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt();return(mt=function(t,e){return o[t-=135]})(t,e)}function gt(t,e){const o=pt,n=e[o(164)](t);return Array[o(219)](n[o(183)]())[o(165)](t=>t.is(o(235),"ol")&&t[o(140)](o(231)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(159)](97+t)+n,i=Math[o(211)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(142)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[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 t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=M(),kt.insert=j().bind(null,"head"),kt.domAPI=B(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=491]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","16PGXoOm","isOfficialPlugin","5VkOiYa","81ZitBLb","2311896oYTRuq","FootnotesProperties","requires","119WkEaHE","199284GGYZJs","3497672rEGrzm","127896nvpEQS","30689BXKotR","572412aoiWrX","616430oweDyH","418OYHQuP"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(290988===parseInt(e(499))/1*(parseInt(e(505))/2)+parseInt(e(500))/3+parseInt(e(492))/4*(parseInt(e(507))/5)+-parseInt(e(498))/6*(parseInt(e(495))/7)+-parseInt(e(497))/8+-parseInt(e(491))/9*(parseInt(e(501))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(504)](){return Ft(493)}static get[Ft(494)](){return[ht,Ct]}static get[Ft(506)](){return!0}static get[Ft(503)](){return!0}}function Tt(){var t=["10wXxEqk","6lNlDfM","1666840GlxjfH","2904QLMVJo","1288PhdGTq","2575680WmqHUv","13909UQGmuQ","50VPLett","636205YKwAUY","936562GvrpKj","542862xzKuhL"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=118]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(199876===parseInt(e(127))/1*(-parseInt(e(128))/2)+parseInt(e(124))/3*(parseInt(e(125))/4)+parseInt(e(118))/5+parseInt(e(122))/6*(-parseInt(e(123))/7)+parseInt(e(126))/8+-parseInt(e(120))/9+-parseInt(e(121))/10*(-parseInt(e(119))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x422cf6,Command as _0x30fccc}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x31c447,isWidget as _0x17c8e2,toWidgetEditable as _0x1e00c1,WidgetToolbarRepository as _0x140f4f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4c5544,logWarning as _0x1ac3d5,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x32b466,ClickObserver as _0x4e5239}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x375a5a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5c0186,ButtonView as _0x41f046,View as _0xf520ba,ViewCollection as _0x4cdfd3,FocusCycler as _0x2b129f,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x56241b,BalloonPanelView as _0x1d615d,createDropdown as _0x51e888}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4d21c4,IconListStyleDecimal as _0x13f721,IconListStyleDecimalLeadingZero as _0x11cfc1,IconListStyleLowerRoman as _0x295cf3,IconListStyleUpperRoman as _0x522db5,IconListStyleLowerLatin as _0x19da34,IconListStyleUpperLatin as _0x202aca}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x53fc90,_0x28c05d){this['_model']=_0x53fc90,this['_elementName']=_0x28c05d['elementName'],this['_getElementKey']=_0x28c05d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x401617){const _0x3587c3=new Set(),_0x3e1ae7=new Map();for(const _0x580b97 of _0x401617){if('insert'===_0x580b97['type']&&'$text'!==_0x580b97['name']&&_0x580b97['position']['nodeAfter']){const _0x20be57=this['_model']['createRangeOn'](_0x580b97['position']['nodeAfter']);for(const _0x4a0ce9 of _0x20be57['getItems']()){if(!_0x4a0ce9['is']('element',this['_elementName']))continue;const _0x1139af=this['_getElementKey'](_0x4a0ce9);_0x3e1ae7['has'](_0x1139af)||_0x3e1ae7['set'](_0x1139af,[]),_0x3e1ae7['get'](_0x1139af)['push'](_0x4a0ce9);}}if('remove'===_0x580b97['type']&&_0x580b97['name']===this['_elementName']){const _0x12e13c=this['_getElementKey']({'getAttribute':_0x3b0cb0=>_0x580b97['attributes']['get'](_0x3b0cb0)});_0x3587c3['add'](_0x12e13c);}}for(const [_0x1f9732,_0x36d0f6]of this['_trackedElements'])'$graveyard'===_0x36d0f6['root']['rootName']&&_0x3587c3['add'](_0x1f9732);for(const _0x8e2f01 of _0x3587c3)this['_trackedElements']['delete'](_0x8e2f01);for(const [_0x3d44a3,_0x5e01dd]of _0x3e1ae7)this['_trackedElements']['set'](_0x3d44a3,_0x5e01dd[_0x5e01dd['length']-0x1]);const _0x2d369b=new Set();for(const [_0x316769,_0x51b970]of _0x3e1ae7)_0x3587c3['has'](_0x316769)&&(_0x2d369b['add'](_0x51b970[0x0]),_0x51b970['length']>0x1?_0x3e1ae7['set'](_0x316769,_0x51b970['slice'](0x1)):_0x3e1ae7['delete'](_0x316769),_0x3587c3['delete'](_0x316769));return{'removed':Array['from'](_0x3587c3),'inserted':Array['from'](_0x3e1ae7['values']())['flat'](),'moved':Array['from'](_0x2d369b)};}}class f extends _0x422cf6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x176a7b){super(_0x176a7b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x21aa0c=>_0x21aa0c['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1a91ef=>_0x1a91ef['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5807c5}=this,{model:_0x5e986,data:_0x19e6ee}=_0x5807c5;_0x5e986['document']['registerPostFixer'](_0x3ecc75=>{const _0x25ddb2=_0x5e986['document']['differ']['getChanges']();let _0x2f6492=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3ecc75,_0x25ddb2)&&(_0x2f6492=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3ecc75,_0x25ddb2)&&(_0x2f6492=!0x0),this['_handleFootnoteReferencesChanges'](_0x3ecc75,_0x25ddb2)&&(_0x2f6492=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3ecc75)&&(_0x2f6492=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3ecc75)&&(_0x2f6492=!0x0),this['_sortFootnoteDefinitions'](_0x3ecc75)&&(_0x2f6492=!0x0),_0x2f6492;}),this['listenTo'](_0x5e986['document'],'change:data',()=>{_0x5e986['enqueueChange']({'isUndoable':!0x1},_0x39ea29=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x39ea29);});},{'priority':'low'}),this['listenTo'](_0x19e6ee,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2ff762){return this['_footnotes']['find'](_0x15f516=>_0x15f516['id']===_0x2ff762)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x331bb){this['_footnoteFormatter']=_0x331bb;}['_updateFootnotesCounters'](_0x5dce50,_0x4a6e5b=0x0){let _0x1f98a4=!0x1;for(let _0xad7339=_0x4a6e5b;_0xad7339<this['_footnotes']['length'];_0xad7339++)this['_updateFootnoteRefCounter'](_0x5dce50,_0xad7339)&&(_0x1f98a4=!0x0);return _0x1f98a4;}['_insertEmptyFootnotesDefinitionsContainer'](_0x37d699,_0x594231){const _0x46a5de=_0x37d699['createElement']('footnotesDefinitions',{});return _0x37d699['append'](_0x46a5de,_0x594231),this['_footnotesDefinitions']=_0x46a5de,_0x46a5de;}['_ensureFootnotesDefinitionsContainerExists'](_0x4f7a2c){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x252afc=this['_footnotes'][0x0]['reference']['root'],_0x18a483=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4f7a2c,_0x252afc);for(const _0x13bf60 of this['_footnotes'])_0x13bf60['definition']['parent']||_0x4f7a2c['insert'](_0x13bf60['definition'],_0x18a483,'end');this['_updateFootnotesCounters'](_0x4f7a2c);}['_handleFootnotesDefinitionsObjectChanges'](_0x49b3de,_0x46766d){let _0x1e44d6=!0x1;const {inserted:_0x186bc2,removed:_0x1336f5,moved:_0x2a37b7}=this['_footnoteDefsContainerTracker']['getChanges'](_0x46766d);if(_0x2a37b7['length']&&(this['_footnotesDefinitions']=_0x2a37b7[0x0]),_0x186bc2['length']){if(_0x186bc2['length']>0x1||this['_footnotesDefinitions']&&_0x186bc2['some'](_0x5d9230=>_0x5d9230!==this['_footnotesDefinitions'])){const _0x3224c4=_0x49b3de['createElement']('footnotesDefinitions',{}),_0x5d861f=[];this['_footnotesDefinitions']&&_0x5d861f['push'](this['_footnotesDefinitions']),_0x5d861f['push'](..._0x186bc2),_0x49b3de['insert'](_0x3224c4,_0x5d861f[0x0],'before');for(const _0x9e9545 of _0x5d861f)_0x49b3de['move'](_0x49b3de['createRangeIn'](_0x9e9545),_0x49b3de['createPositionAt'](_0x3224c4,'end')),_0x49b3de['remove'](_0x9e9545);this['_footnotesDefinitions']=_0x3224c4,this['_updateFootnotesCounters'](_0x49b3de),_0x1e44d6=!0x0;}else this['_footnotesDefinitions']=_0x186bc2[0x0];}if(_0x1336f5['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2d370b of this['_footnotes'])_0x49b3de['remove'](_0x2d370b['reference']),_0x1e44d6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1e44d6;}['_handleFootnoteDefinitionsChanges'](_0x146471,_0x308207){let _0x3196a7=!0x1;const _0x5050f0=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4b2ece,moved:_0x5d7cb0}=this['_footnoteDefsTracker']['getChanges'](_0x308207);for(const _0x27830f of[..._0x5d7cb0,..._0x4b2ece]){const _0x14ec79=_0x27830f['getAttribute']('footnoteId'),_0x490e57=this['getFootnote'](_0x14ec79);_0x490e57&&(_0x490e57['definition']=_0x27830f),_(_0x146471,_0x5050f0,_0x27830f)&&(_0x3196a7=!0x0);}return _0x3196a7;}['_handleFootnoteReferencesChanges'](_0x1bb955,_0x361f1c){let _0x4dc1ae=!0x1;const {removed:_0x3f95e6,inserted:_0x45b206,moved:_0x1fc608}=this['_footnoteRefsTracker']['getChanges'](_0x361f1c);for(const _0x56f457 of _0x3f95e6)this['_handleRemoveFootnoteReferenceById'](_0x1bb955,_0x56f457)&&(_0x4dc1ae=!0x0);for(const _0x18a2ad of _0x45b206)this['_handleInsertedFootnoteReference'](_0x1bb955,_0x18a2ad)&&(_0x4dc1ae=!0x0);for(const _0x10447e of _0x1fc608)this['_handleMovedFootnoteReference'](_0x1bb955,_0x10447e)&&(_0x4dc1ae=!0x0);return _0x4dc1ae;}['_handleFootnotesDefinitionsObjectSync'](_0x4a5507){if(!this['_footnotesDefinitions'])return!0x1;let _0x3982cf=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x286199=[];for(const _0x98f15 of this['_footnotesDefinitions']['getChildren']()){const _0x235e2c=_0x98f15['getAttribute']('footnoteId');this['getFootnote'](_0x235e2c)||(_0x286199['unshift'](_0x98f15),_0x3982cf=!0x0);}for(const _0x315b69 of _0x286199)_0x4a5507['remove'](_0x315b69);}const _0x1fd515=new Set(),_0x543946=[];for(const _0x28c44f of this['_footnotesDefinitions']['getChildren']()){const _0x5992b2=_0x28c44f['getAttribute']('footnoteId');_0x1fd515['has'](_0x5992b2)?(_0x543946['unshift'](_0x28c44f),_0x3982cf=!0x0):_0x1fd515['add'](_0x5992b2);}for(const _0x3f2c6b of _0x543946)_0x4a5507['remove'](_0x3f2c6b);return this['_footnotesDefinitions']['childCount']||(_0x4a5507['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3982cf=!0x0),_0x3982cf;}['_handleInsertedFootnoteReference'](_0x1bc073,_0x1a6252){if(this['_footnotes']['find'](_0x828740=>_0x828740['reference']===_0x1a6252))return!0x1;let _0x38d2e7=!0x1;const _0x27b66e=_0x1a6252['getAttribute']('footnoteId'),_0x4156cc=this['_footnotes']['findIndex'](_0x31870c=>_0x31870c['id']===_0x27b66e);-0x1!==_0x4156cc&&(_0x1bc073['remove'](this['_footnotes'][_0x4156cc]['reference']),this['_footnotes']['splice'](_0x4156cc,0x1),_0x38d2e7=!0x0);let _0x44350e=this['_footnotesDefinitions']?function(_0x49ffca,_0x2964d4){for(const _0x340e46 of _0x49ffca['getChildren']())if(_0x340e46['getAttribute']('footnoteId')===_0x2964d4)return _0x340e46;return null;}(this['_footnotesDefinitions'],_0x27b66e):null;_0x44350e||(_0x44350e=_0x1bc073['createElement']('footnoteDefinition',{'footnoteId':_0x27b66e}),this['_footnotesDefinitions']&&(_0x1bc073['insert'](_0x44350e,this['_footnotesDefinitions'],'end'),_0x38d2e7=!0x0));const _0x33d441={'id':_0x27b66e,'reference':_0x1a6252,'definition':_0x44350e},_0x5e4798=I(this['editor']['model'],this['_footnotes'],_0x1a6252);this['_footnotes']['splice'](_0x5e4798,0x0,_0x33d441);let _0x3f6123=_0x5e4798;return-0x1!==_0x4156cc&&(_0x3f6123=Math['min'](_0x5e4798,_0x4156cc)),this['_updateFootnotesCounters'](_0x1bc073,_0x3f6123)&&(_0x38d2e7=!0x0),_0x38d2e7;}['_handleRemoveFootnoteReferenceById'](_0x44f874,_0x410252){const _0x2268ef=this['_footnotes']['findIndex'](_0x5a84b2=>_0x5a84b2['id']===_0x410252);if(-0x1===_0x2268ef)return!0x1;let _0x222562=!0x1;const _0x5ae1e6=this['_footnotes'][_0x2268ef];return'$graveyard'!==_0x5ae1e6['definition']['root']['rootName']&&(_0x44f874['remove'](_0x5ae1e6['definition']),_0x222562=!0x0),this['_footnotes']['splice'](_0x2268ef,0x1),this['_updateFootnotesCounters'](_0x44f874,_0x2268ef)&&(_0x222562=!0x0),_0x222562;}['_handleMovedFootnoteReference'](_0xae485e,_0x2c6774){const _0x1935cd=_0x2c6774['getAttribute']('footnoteId'),_0x4b8edb=this['_footnotes']['findIndex'](_0x46df80=>_0x46df80['id']===_0x1935cd),_0x18b1f2=this['_footnotes'][_0x4b8edb];let _0x3e6a19=!0x1;_0x18b1f2['reference']=_0x2c6774,this['_footnotes']['splice'](_0x4b8edb,0x1);const _0x38d62b=I(this['editor']['model'],this['_footnotes'],_0x2c6774);return this['_footnotes']['splice'](_0x38d62b,0x0,_0x18b1f2),this['_updateFootnotesCounters'](_0xae485e,Math['min'](_0x4b8edb,_0x38d62b))&&(_0x3e6a19=!0x0),_0x3e6a19;}['_updateFootnoteRefCounter'](_0x5c1475,_0x322702){if(!this['_footnotesDefinitions'])return!0x1;const _0x756bdb=this['_footnotes'][_0x322702];let _0xbb7326;return _0xbb7326=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x756bdb,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x322702+0x1}):String(_0x322702+0x1),_0x756bdb['reference']['getAttribute']('footnoteCounter')!=_0xbb7326&&(_0x5c1475['setAttribute']('footnoteCounter',_0xbb7326,_0x756bdb['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x248559){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x207d82,_0x54adb2){if(_0x207d82['length']!==_0x54adb2['length'])return!0x1;for(let _0x1994e6=0x0;_0x1994e6<_0x207d82['length'];_0x1994e6++)if(_0x207d82[_0x1994e6]!==_0x54adb2[_0x1994e6])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3f28eb=>_0x3f28eb['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x504cf9=>_0x504cf9['getAttribute']('footnoteId'))))return!0x1;let _0xb4c75e=!0x1;for(let _0x2d160b=0x0;_0x2d160b<this['_footnotes']['length'];_0x2d160b++){const _0x640ac6=this['_footnotes'][_0x2d160b],_0x7f25a4=_0x248559['createPositionBefore'](_0x640ac6['definition']),_0x4894a4=_0x248559['createPositionAt'](this['_footnotesDefinitions'],_0x2d160b);_0x7f25a4['isEqual'](_0x4894a4)||(_0x248559['move'](_0x248559['createRangeOn'](_0x640ac6['definition']),_0x4894a4),_0xb4c75e=!0x0);}return _0xb4c75e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x9455cb){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2cd485}=this['editor'];let _0xa76196=!0x1;for(let _0x2bf12d=0x0;_0x2bf12d<this['_footnotes']['length']-0x1;_0x2bf12d++){const _0x5acdc2=this['_footnotes'][_0x2bf12d],_0x44e1d3=this['_footnotes'][_0x2bf12d+0x1],_0x258c7b=_0x2cd485['createPositionBefore'](_0x5acdc2['reference']),_0x379b4c=_0x2cd485['createPositionBefore'](_0x44e1d3['reference']);'after'===_0x258c7b['compareWith'](_0x379b4c)&&(this['_handleMovedFootnoteReference'](_0x9455cb,_0x5acdc2['reference']),_0x2bf12d=-0x1,_0xa76196=!0x0);}return _0xa76196;}}function _(_0x5ab5d3,_0x556204,_0x5e5f1e){if(_0x5e5f1e['childCount'])return!0x1;const _0x229a0f=_0x556204?'paragraph':'footnoteInlineContent';return _0x5ab5d3['insert'](_0x5ab5d3['createElement'](_0x229a0f),_0x5e5f1e),!0x0;}function I(_0x220e80,_0x8d7cad,_0x3f0f54){if(0x0===_0x8d7cad['length'])return 0x0;const _0x47339c=_0x220e80['createPositionBefore'](_0x3f0f54);for(let _0x69e8ee=0x0;_0x69e8ee<_0x8d7cad['length'];_0x69e8ee++){const _0x535eb1=_0x8d7cad[_0x69e8ee],_0x21c3ff=_0x220e80['createPositionBefore'](_0x535eb1['reference']);if('before'===_0x47339c['compareWith'](_0x21c3ff))return _0x69e8ee;}const _0x443e11=_0x3f0f54['root'];let _0x36cb6a=-0x1;for(let _0x23b6be=_0x8d7cad['length']-0x1;_0x23b6be>=0x0;_0x23b6be--)if(_0x8d7cad[_0x23b6be]['reference']['root']===_0x443e11){_0x36cb6a=_0x23b6be;break;}if(-0x1!==_0x36cb6a)return _0x36cb6a+0x1;const _0x40577d=_0x220e80['document']['getRootNames'](),_0x3bb38b=_0x40577d['indexOf'](_0x443e11['rootName']),_0x4d3106=_0x40577d[_0x3bb38b+0x1];if(_0x4d3106){for(let _0x3cf321=0x0;_0x3cf321<_0x8d7cad['length'];_0x3cf321++)if(_0x8d7cad[_0x3cf321]['reference']['root']['rootName']===_0x4d3106)return _0x3cf321;}return _0x8d7cad['length'];}class m extends _0x30fccc{['refresh'](){const _0x50ab8f=this['editor']['model']['document']['selection'],_0x5408a8=this['_getPositionToInsertFootnote'](_0x50ab8f);this['isEnabled']=!!_0x5408a8;}['execute'](_0x239001){const {editor:_0x5a4d81}=this,{model:_0xce68ee}=_0x5a4d81,{selection:_0x4643d1}=_0xce68ee['document'],_0x5416d0=this['_getPositionToInsertFootnote'](_0x4643d1);if(!_0x5416d0)return;const _0x465828=_0x5a4d81['plugins']['get']('FootnotesEditing'),_0x267678=_0x239001?.['footnoteId']??_0x4c5544();!function(_0x107a06){return'string'==typeof _0x107a06&&_0x107a06['length']>0x0&&!/\s/['test'](_0x107a06)&&!/^\d/['test'](_0x107a06);}(_0x267678)?_0x1ac3d5('insert-footnote-command-executed-with-invalid-id'):(_0xce68ee['change'](_0x3cc67b=>{const _0x17cbc5=_0x3cc67b['createElement']('footnoteRef',{'footnoteId':_0x267678});_0xce68ee['insertObject'](_0x17cbc5,_0x5416d0,null);}),_0x465828['_moveSelectionToFootnoteDefinition'](_0x267678));}['_getPositionToInsertFootnote'](_0x24342c){const {model:_0x496c16}=this['editor'],{schema:_0x2cbfe3}=_0x496c16,_0x267a14=_0x24342c['getFirstRange']();for(const _0x2c6f73 of _0x267a14['getItems']())if(_0x2cbfe3['isBlock'](_0x2c6f73)||_0x2cbfe3['isObject'](_0x2c6f73))return null;const _0x5caadf=_0x267a14['end'];return _0x2cbfe3['checkChild'](_0x5caadf,'footnoteRef')?_0x5caadf:null;}}class r extends _0x422cf6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x312809}=this;_0x312809['config']['define']('footnotes.multiBlock',!0x0),_0x312809['commands']['add']('insertFootnote',new m(_0x312809)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x18af61){const _0x362de3=_0x4a0c60([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]),_0x51bf24=0x47a28506,_0x47775f=0x47a5ff7e^_0x51bf24,_0x1aafe8=window[_0x4a0c60([0x44,0x61,0x74,0x65])][_0x4a0c60([0x6e,0x6f,0x77])](),_0x329f57=_0x18af61[_0x4a0c60([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c362b=new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10f7d4=>{_0x329f57[_0x4a0c60([0x6f,0x6e,0x63,0x65])](_0x4a0c60([0x72,0x65,0x61,0x64,0x79]),_0x10f7d4);}),_0x90dd6f={[_0x4a0c60([0x6b,0x74,0x79])]:_0x4a0c60([0x45,0x43]),[_0x4a0c60([0x75,0x73,0x65])]:_0x4a0c60([0x73,0x69,0x67]),[_0x4a0c60([0x63,0x72,0x76])]:_0x4a0c60([0x50,0x2d,0x32,0x35,0x36]),[_0x4a0c60([0x78])]:_0x4a0c60([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]),[_0x4a0c60([0x79])]:_0x4a0c60([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]),[_0x4a0c60([0x61,0x6c,0x67])]:_0x4a0c60([0x45,0x53,0x32,0x35,0x36])},_0x2ec9fb=_0x329f57[_0x4a0c60([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a0c60([0x67,0x65,0x74])](_0x4a0c60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c3de5(){let _0x286bc5,_0x205ab6=null,_0x24653b=null;try{if(_0x2ec9fb==_0x4a0c60([0x47,0x50,0x4c]))return _0x4a0c60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x286bc5=_0x374d92(),!_0x286bc5)return _0x4a0c60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x286bc5[_0x4a0c60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24653b=_0x39114b(_0x286bc5[_0x4a0c60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x286bc5[_0x4a0c60([0x6a,0x74,0x69])])),await _0x102e33()?_0x5ca502()?_0x4f8c68()?_0x4a0c60([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22534d()?(_0x286bc5[_0x4a0c60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a0c60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x205ab6=_0x59f4b7(_0x4a0c60([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x286bc5[_0x4a0c60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a0c60([0x74,0x72,0x69,0x61,0x6c])&&(_0x205ab6=_0x59f4b7(_0x4a0c60([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4aa906()):_0x4a0c60([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0c60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a0c60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a0c60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f8c68(){const _0x2af616=[_0x4a0c60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a0c60([0x74,0x72,0x69,0x61,0x6c])][_0x4a0c60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286bc5[_0x4a0c60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1aafe8/0x3e8:0xe10*_0x47775f;return _0x286bc5[_0x4a0c60([0x65,0x78,0x70])]<_0x2af616;}function _0x5ca502(){const _0x4cf63a=_0x286bc5[_0x4a0c60([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4cf63a&&(!!_0x4cf63a[_0x4a0c60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0c60([0x2a]))||!!_0x4cf63a[_0x4a0c60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0c60([0x46,0x4f,0x4f])));}function _0x22534d(){const _0x509984=_0x286bc5[_0x4a0c60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x509984||0x0==_0x509984[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49c087}=new URL(window[_0x4a0c60([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x509984[_0x4a0c60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c087))return!0x0;const _0x389f69=_0x49c087[_0x4a0c60([0x73,0x70,0x6c,0x69,0x74])](_0x4a0c60([0x2e]));return _0x509984[_0x4a0c60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3557e0=>_0x3557e0[_0x4a0c60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a0c60([0x2a])))[_0x4a0c60([0x6d,0x61,0x70])](_0x59ae6f=>_0x59ae6f[_0x4a0c60([0x73,0x70,0x6c,0x69,0x74])](_0x4a0c60([0x2e])))[_0x4a0c60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d7f83=>_0x3d7f83[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x389f69[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0c60([0x6d,0x61,0x70])](_0x1d2e11=>Array(_0x389f69[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d2e11[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a0c60([0x66,0x69,0x6c,0x6c])](_0x1d2e11[0x0]===_0x4a0c60([0x2a])?_0x4a0c60([0x2a]):'')[_0x4a0c60([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d2e11))[_0x4a0c60([0x73,0x6f,0x6d,0x65])](_0x2ef082=>_0x389f69[_0x4a0c60([0x65,0x76,0x65,0x72,0x79])]((_0x1ade2c,_0x2a5f60)=>_0x2ef082[_0x2a5f60]===_0x1ade2c||_0x2ef082[_0x2a5f60]===_0x4a0c60([0x2a])));}function _0x4aa906(){return _0x205ab6&&_0x24653b?new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb3d9a,_0xdc3228)=>{_0x205ab6[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0xdb3d9a,_0xdc3228),_0x24653b[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0x431804=>{_0x431804!=_0x4a0c60([0x56,0x61,0x6c,0x69,0x64])&&_0xdb3d9a(_0x431804);},_0xdc3228);}):_0x205ab6||_0x24653b||_0x4a0c60([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39114b(_0x5b17b1,_0x43a1b4){return new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x390a31=>{if(_0xa0da7d())return _0x390a31(_0x4a0c60([0x56,0x61,0x6c,0x69,0x64]));_0x1748c3(),_0x329f57[_0x4a0c60([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a0c60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10c32e=!0x1;const _0x5514c4=_0x4c5544();function _0x2fde0a(_0xc97150){return!!_0xc97150&&(typeof _0xc97150===_0x4a0c60([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc97150===_0x4a0c60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc97150[_0x4a0c60([0x74,0x68,0x65,0x6e])]===_0x4a0c60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc97150[_0x4a0c60([0x63,0x61,0x74,0x63,0x68])]===_0x4a0c60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36c985(_0x3ae603){_0x429094(_0x3ae603)[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0x233523=>{if(!_0x233523||_0x233523[_0x4a0c60([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a0c60([0x6f,0x6b]))return _0x4a0c60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x206d57(_0x255b9b(_0x5514c4+_0x43a1b4))!=_0x233523[_0x4a0c60([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a0c60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a0c60([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0x523d14=>(_0x9fa7b5(),_0x523d14),()=>{const _0x34f248=_0x588a01();return null==_0x34f248?(_0x9fa7b5(),_0x4a0c60([0x56,0x61,0x6c,0x69,0x64])):_0x4a0c60(_0x1aafe8-_0x34f248>(0x63ae0106^_0x51bf24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0x390a31)[_0x4a0c60([0x63,0x61,0x74,0x63,0x68])](()=>{_0x390a31(_0x4a0c60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x108f83=0x47946b86^_0x51bf24;function _0x9fa7b5(){const _0x18cd3c=_0x4a0c60([0x6c,0x6c,0x63,0x74,0x2d])+_0x206d57(_0x255b9b(_0x5b17b1)),_0x20daca=_0x2421dd(_0x206d57(window[_0x4a0c60([0x4d,0x61,0x74,0x68])][_0x4a0c60([0x63,0x65,0x69,0x6c])](_0x1aafe8/_0x108f83)));window[_0x4a0c60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0c60([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18cd3c,_0x20daca);}function _0x588a01(){const _0x2b0712=_0x4a0c60([0x6c,0x6c,0x63,0x74,0x2d])+_0x206d57(_0x255b9b(_0x5b17b1)),_0x190a00=window[_0x4a0c60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a0c60([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b0712);return _0x190a00?window[_0x4a0c60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2421dd(_0x190a00),0x10)*_0x108f83:null;}function _0x429094(_0x2cac8e){return new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533b2b,_0x1eb82d)=>{_0x2cac8e[_0x4a0c60([0x74,0x68,0x65,0x6e])](_0x533b2b,_0x1eb82d),window[_0x4a0c60([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1eb82d,0x47a351c6^_0x51bf24);});}}_0x329f57[_0x4a0c60([0x6f,0x6e])](_0x4a0c60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fec02,_0x372422)=>{if(_0x372422[0x0]!=_0x5b17b1)return _0x390a31(_0x4a0c60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x372422[0x1]={..._0x372422[0x1],[_0x4a0c60([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5514c4};},{[_0x4a0c60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0c60([0x68,0x69,0x67,0x68])}),_0x329f57[_0x4a0c60([0x6f,0x6e])](_0x4a0c60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19683f=>{_0x2fde0a(_0x19683f[_0x4a0c60([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10c32e=!0x0,_0x36c985(_0x19683f[_0x4a0c60([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a0c60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a0c60([0x6c,0x6f,0x77])}),_0x1c362b[_0x4a0c60([0x74,0x68,0x65,0x6e])](()=>{_0x10c32e||_0x390a31(_0x4a0c60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa0da7d(){return _0x329f57[_0x4a0c60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0c60([0x76,0x69,0x65,0x77])][_0x4a0c60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a0c60([0x61,0x75,0x74,0x6f]);}function _0x1748c3(){_0x329f57[_0x4a0c60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a0c60([0x76,0x69,0x65,0x77])][_0x4a0c60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a0c60([0x61,0x75,0x74,0x6f]);}}function _0x59f4b7(_0x542f8c){const _0x3f9db0=[new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b03ac=>setTimeout(_0x1b03ac,0x47abbbca^_0x51bf24)),_0x1c362b[_0x4a0c60([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271926=>{let _0x2027e6=0x0;_0x329f57[_0x4a0c60([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0c60([0x6f,0x6e])](_0x4a0c60([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xadc281,_0xb68161)=>{_0xb68161[0x0][_0x4a0c60([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2027e6++,_0x2027e6==(0x47a284fe^_0x51bf24)&&(_0x271926(),_0xadc281[_0x4a0c60([0x6f,0x66,0x66])]());});}))];return window[_0x4a0c60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a0c60([0x72,0x61,0x63,0x65])](_0x3f9db0)[_0x4a0c60([0x74,0x68,0x65,0x6e])](()=>_0x542f8c);}async function _0x4fabd7(){await _0x1c362b,_0x329f57[_0x4a0c60([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0c60([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d88a2,_0x329f57[_0x4a0c60([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a0c60([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d88a2,_0x329f57[_0x4a0c60([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a0c60([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f5493(_0x1165d5){const _0x406dae=_0x38c4a6();_0x329f57[_0x406dae]=_0x4a0c60([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1165d5,_0x1165d5!=_0x4a0c60([0x56,0x61,0x6c,0x69,0x64])&&_0x4fabd7();}function _0x38c4a6(){const _0x1b4f82=window[_0x4a0c60([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a0c60([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a0c60([0x6e,0x6f,0x77])]())[_0x4a0c60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a0c60([0x2e]),'');let _0x3ea03e=_0x4a0c60([0x75]);for(let _0x38ece3=0x0;_0x38ece3<_0x1b4f82[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38ece3+=0x2){let _0x54c7da=window[_0x4a0c60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4f82[_0x4a0c60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38ece3,_0x38ece3+0x2));_0x54c7da>=_0x362de3[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54c7da-=_0x362de3[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ea03e+=_0x362de3[_0x54c7da];}return _0x3ea03e;}function _0x374d92(){const _0xc8ff5a=_0x2ec9fb[_0x4a0c60([0x73,0x70,0x6c,0x69,0x74])](_0x4a0c60([0x2e]));if(0x3!=_0xc8ff5a[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50299a(_0xc8ff5a[0x1]);function _0x50299a(_0x246a8a){const _0x4a7b12=_0x4e93b4(_0x246a8a);return _0x4a7b12&&_0x42f290()?_0x4a7b12:null;function _0x42f290(){const _0x25db0f=_0x4a7b12[_0x4a0c60([0x6a,0x74,0x69])],_0x5ef0fd=window[_0x4a0c60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25db0f[_0x4a0c60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25db0f[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd55896={..._0x4a7b12,[_0x4a0c60([0x6a,0x74,0x69])]:_0x25db0f[_0x4a0c60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25db0f[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd55896[_0x4a0c60([0x76,0x63])],_0x255b9b(_0xd55896)==_0x5ef0fd;}}}async function _0x102e33(){let _0x500851=!0x0;try{const _0x39e149=_0x2ec9fb[_0x4a0c60([0x73,0x70,0x6c,0x69,0x74])](_0x4a0c60([0x2e])),[_0x3aef24,_0x1c3c82,_0x1e94e6]=_0x39e149;return _0x4bb30d(_0x3aef24),await _0x1068c4(_0x3aef24,_0x1c3c82,_0x1e94e6),_0x500851;}catch{return!0x1;}function _0x4bb30d(_0x1973f3){const _0x4de211=_0x4e93b4(_0x1973f3);_0x4de211&&_0x4de211[_0x4a0c60([0x61,0x6c,0x67])]==_0x4a0c60([0x45,0x53,0x32,0x35,0x36])||(_0x500851=!0x1);}async function _0x1068c4(_0x1793d1,_0x5ef92c,_0x2d7bd6){const _0x38927d=window[_0x4a0c60([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a0c60([0x66,0x72,0x6f,0x6d])](_0xaa7e46(_0x2d7bd6),_0x41ff33=>_0x41ff33[_0x4a0c60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19d591=new window[(_0x4a0c60([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a0c60([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1793d1+_0x4a0c60([0x2e])+_0x5ef92c),_0x29ad3c=window[_0x4a0c60([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a0c60([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29ad3c)return;const _0x1f4435=await _0x29ad3c[_0x4a0c60([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a0c60([0x6a,0x77,0x6b]),_0x90dd6f,{[_0x4a0c60([0x6e,0x61,0x6d,0x65])]:_0x4a0c60([0x45,0x43,0x44,0x53,0x41]),[_0x4a0c60([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a0c60([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a0c60([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29ad3c[_0x4a0c60([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a0c60([0x6e,0x61,0x6d,0x65])]:_0x4a0c60([0x45,0x43,0x44,0x53,0x41]),[_0x4a0c60([0x68,0x61,0x73,0x68])]:{[_0x4a0c60([0x6e,0x61,0x6d,0x65])]:_0x4a0c60([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f4435,_0x38927d,_0x19d591)||(_0x500851=!0x1);}}function _0x4e93b4(_0x38e416){return _0x38e416[_0x4a0c60([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a0c60([0x65,0x79]))?JSON[_0x4a0c60([0x70,0x61,0x72,0x73,0x65])](_0xaa7e46(_0x38e416)):null;}function _0xaa7e46(_0x2db6c5){return window[_0x4a0c60([0x61,0x74,0x6f,0x62])](_0x2db6c5[_0x4a0c60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a0c60([0x2b]))[_0x4a0c60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a0c60([0x2f])));}function _0x255b9b(_0x5d21e2){let _0xf606f5=0x1505;function _0x38b89d(_0x2e1964){for(let _0x42140a=0x0;_0x42140a<_0x2e1964[_0x4a0c60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42140a++){const _0x34e650=_0x2e1964[_0x4a0c60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42140a);_0xf606f5=(_0xf606f5<<0x5)+_0xf606f5+_0x34e650,_0xf606f5&=_0xf606f5;}}function _0x299c7c(_0x376fe4){Array[_0x4a0c60([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x376fe4)?_0x376fe4[_0x4a0c60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299c7c):_0x376fe4&&typeof _0x376fe4==_0x4a0c60([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a0c60([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x376fe4)[_0x4a0c60([0x73,0x6f,0x72,0x74])]()[_0x4a0c60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f4057,_0x9ff57])=>{_0x38b89d(_0x2f4057),_0x299c7c(_0x9ff57);}):_0x38b89d(window[_0x4a0c60([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x376fe4));}return _0x299c7c(_0x5d21e2),_0xf606f5>>>0x0;}function _0x206d57(_0x38b9a3){return _0x38b9a3[_0x4a0c60([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a0c60([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a0c60([0x30]));}function _0x2421dd(_0x496278){return _0x496278[_0x4a0c60([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a0c60([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a0c60([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d88a2(){}function _0x4a0c60(_0x5b35f){return _0x5b35f['map'](_0x38588e=>String['fromCharCode'](_0x38588e))['join']('');}_0x3f5493(await _0x1c3de5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x326b49){const {plugins:_0xddec21,editing:_0x2df4e1,model:_0x14721b}=this['editor'],_0x42e122=_0xddec21['get'](f)['getFootnote'](_0x326b49);return!!_0x42e122&&(_0x14721b['change'](_0x32677b=>{_0x32677b['setSelection'](_0x32677b['createPositionAt'](_0x42e122['definition'],'end'));}),_0x2df4e1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1603bf){const {plugins:_0x8148e,editing:_0x59d8c7,model:_0x4e2ea9}=this['editor'],_0x1d7881=_0x8148e['get'](f)['getFootnote'](_0x1603bf);return!!_0x1d7881&&(_0x4e2ea9['change'](_0x4ede85=>{_0x4ede85['setSelection'](_0x1d7881['reference'],'on');}),_0x59d8c7['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x302bb5}=this['editor']['model'],_0x2e0d93=this['editor']['config']['get']('footnotes.multiBlock');_0x302bb5['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x302bb5['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x302bb5['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2e0d93?_0x302bb5['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x302bb5['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x302bb5['addChildCheck'](_0x268823=>{for(const _0x262674 of _0x268823)if('footnoteDefinition'===_0x262674['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x312571}=this,{conversion:_0x471a36,editing:_0x36555b}=_0x312571,{t:t}=_0x312571['locale'];_0x471a36['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x495341,{writer:_0x16c0b,consumable:_0x1f5642})=>{const _0x49aecb=_0x495341['getChild'](0x0);if(!_0x49aecb||!_0x49aecb['is']('element','a'))return null;const _0x1def26=_0x49aecb['getAttribute']('href')||'';if(!_0x1def26['startsWith']('#'))return null;const _0x23e034=_0x1def26['replace'](/^#/,'');if(!_0x23e034)return null;_0x1f5642['consume'](_0x49aecb,{'name':!0x0,'attributes':['href']});for(const {item:_0x4551df}of _0x36555b['view']['createRangeIn'](_0x49aecb))_0x4551df['is']('$textProxy')?_0x1f5642['consume'](_0x4551df['textNode'],{'name':!0x0}):_0x4551df['is']('element')&&_0x1f5642['consume'](_0x4551df,{'name':!0x0});return _0x16c0b['createElement']('footnoteRef',{'footnoteId':_0x23e034});}}),_0x471a36['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2180c1,{writer:_0x5366b4})=>D(_0x2180c1,_0x5366b4)}),_0x471a36['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3fae31,{writer:_0xc12ad4})=>{const _0x35b127=_0x3fae31['getAttribute']('footnoteCounter');return _0x31c447(D(_0x3fae31,_0xc12ad4),_0xc12ad4,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x35b127)});}});}['_defineDefinitionsConverters'](){const {editor:_0xb35bb}=this,{t:t}=_0xb35bb['locale'],{conversion:_0x33ebab}=_0xb35bb;_0x33ebab['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x33ebab['for']('upcast')['add'](_0x1a5497=>{_0x1a5497['on']('element:ol',(_0x4ba888,_0x5bbfe1,_0x93119)=>{const _0x2e6ef5=_0x5bbfe1['viewItem'];if(!_0x2e6ef5['hasClass']('footnotes-list')||!_0x5bbfe1['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x93119['consumable']['consume'](_0x2e6ef5,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x597594,modelCursor:_0x261b50}=_0x93119['convertChildren'](_0x5bbfe1['viewItem'],_0x5bbfe1['modelCursor']);_0x5bbfe1['modelRange']=_0x597594,_0x5bbfe1['modelCursor']=_0x261b50;}),_0x1a5497['on']('element:hr',(_0x184ae4,_0x4a58c5,_0x5f27a6)=>{const _0x2cfc1e=_0x4a58c5['viewItem'];_0x2cfc1e['hasClass']('footnotes-divider')&&_0x4a58c5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f27a6['consumable']['consume'](_0x2cfc1e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x33ebab['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x291c92,{writer:_0x5f2240})=>v(_0x5f2240)}),_0x33ebab['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4e06e1,{writer:_0x198640})=>{const _0x15cfba=v(_0x198640,{'data-footnotes-list-label':t('Footnotes')}),_0x1b33c0=_0x31c447(_0x15cfba,_0x198640,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x198640['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b33c0),_0x1b33c0;}});}['_defineDefinitionConverters'](){const {editor:_0x49d63a}=this,{conversion:_0xe2a121,locale:_0x36ee40}=_0x49d63a,_0x27dd02=_0x49d63a['config']['get']('footnotes.multiBlock');_0xe2a121['for']('upcast')['add'](_0x1ada09=>{_0x1ada09['on']('element:li',(_0x272498,_0x3a66c4,_0x676cd2)=>{const _0x101d0d=_0x3a66c4['viewItem'];if(!_0x101d0d['hasClass']('footnote-definition')||!_0x101d0d['getAttribute']('id'))return;const _0x3b60bd=_0x101d0d['parent'];if(!_0x3b60bd['is']('element','ol')||!_0x3b60bd['hasClass']('footnotes-list'))return;if(!_0x676cd2['consumable']['test'](_0x101d0d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4c07e2=_0x676cd2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x101d0d['getAttribute']('id')});if(!_0x676cd2['safeInsert'](_0x4c07e2,_0x3a66c4['modelCursor']))return;_0x676cd2['consumable']['consume'](_0x101d0d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ab624=Array['from'](_0x101d0d['getChildren']())['find'](_0x3fe522=>_0x3fe522['is']('element')&&_0x3fe522['hasClass']('footnote-content'));for(const _0x306139 of _0x101d0d['getChildren']())_0x306139['is']('element')&&(_0x676cd2['consumable']['consume'](_0x306139,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x676cd2['consumable']['consume'](_0x306139,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ab624){if(_0x27dd02)_0x676cd2['convertChildren'](_0x1ab624,_0x4c07e2);else{const _0x4cdc79=_0x676cd2['writer']['createElement']('footnoteInlineContent');_0x676cd2['writer']['insert'](_0x4cdc79,_0x4c07e2),_0x676cd2['convertChildren'](_0x1ab624,_0x4cdc79);}}_0x676cd2['updateConversionResult'](_0x4c07e2,_0x3a66c4);});}),_0xe2a121['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43fd2c,{writer:_0x35384f})=>b(_0x43fd2c,_0x35384f,_0x36ee40,{'dataPipeline':!0x0})}),_0xe2a121['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x21c090,{writer:_0x38d853})=>b(_0x21c090,_0x38d853,_0x36ee40)});}['_defineBogusParagraphConverters'](){const {editor:_0x1935bb}=this,{conversion:_0x50eb15}=_0x1935bb;_0x1935bb['config']['get']('footnotes.multiBlock')?(_0x50eb15['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x50eb15['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1935bb['model']['document'],'change:data',()=>{!function(_0x4e4830,_0x1198f7){const _0x4f2785=_0x4e4830['document']['differ'],_0x3347d3=new Set();for(const _0x5d061e of _0x4f2785['getChanges']()){const _0x478fa2='attribute'==_0x5d061e['type']?_0x5d061e['range']['start']['parent']:_0x5d061e['position']['parent'];_0x478fa2['is']('element','footnoteDefinition')&&_0x3347d3['add'](_0x478fa2);}for(const _0x51c2a7 of _0x3347d3['values']()){const _0x5347e1=Array['from'](_0x51c2a7['getChildren']())['filter'](_0x2d19d=>g(_0x2d19d,_0x1198f7['mapper']));for(const _0x1fd5c2 of _0x5347e1)_0x1198f7['reconvertItem'](_0x1fd5c2);}}(_0x1935bb['model'],_0x1935bb['editing']);})):(_0x50eb15['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x50eb15['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3e26dc,{writer:_0x2ab218})=>{const _0x15682c=_0x2ab218['createContainerElement']('span');return _0x2ab218['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x15682c),_0x15682c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x36b181}=this,{editing:_0x49dafc,t:t}=_0x36b181,_0x35344d=_0x36b181['model']['document']['selection'];_0x36b181['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x36b181['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x49dafc['view']['document'],'enter',(_0x19dd7b,_0x688661)=>{const _0x333f81=function(_0x290778){const _0x471054=_0x290778['getSelectedElement']();if(_0x471054?.['is']('element','footnoteRef'))return _0x471054;return null;}(_0x35344d);if(_0x333f81){const _0x4ab096=_0x333f81['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4ab096),_0x688661['preventDefault'](),_0x19dd7b['stop']();}},{'context':_0x17c8e2});}['_defineClickHandlers'](){const {editor:_0x345686}=this,{editing:_0x186794}=_0x345686;_0x345686['editing']['view']['addObserver'](_0x32b466),_0x345686['editing']['view']['addObserver'](_0x4e5239);let _0x448cd9=!0x1;this['listenTo'](_0x186794['view']['document'],'pointerdown',(_0x4ae3f9,_0x253046)=>{const {target:_0x42a9e6}=_0x253046,_0xf309b4=_0x186794['view']['document']['selection'];_0x448cd9=!!(_0x42a9e6?.['is']('element','a')&&_0x42a9e6['parent']?.['is']('element','sup')&&_0x42a9e6['parent']['hasClass']('footnote'))&&_0xf309b4['getSelectedElement']()===_0x42a9e6['parent'];},{'priority':'high'}),this['listenTo'](_0x186794['view']['document'],'click',(_0x477659,_0x4482ab)=>{const {target:_0x6419a5}=_0x4482ab;if(!_0x6419a5?.['is']('element','a'))return;if(_0x6419a5['parent']?.['is']('element','sup')&&_0x6419a5['parent']['hasClass']('footnote')&&!_0x448cd9)return void _0x4482ab['preventDefault']();let _0x470059=_0x6419a5['getAttribute']('href');if(!_0x470059?.['startsWith']('#'))return;_0x470059=_0x470059['slice'](0x1);let _0x518f67=!0x1;(_0x470059['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x470059['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x470059))&&(_0x518f67=!0x0),_0x518f67&&(_0x4482ab['preventDefault'](),_0x477659['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x648398}={}){return(_0x53984c,{writer:_0x10b843})=>{if(!p(_0x53984c))return null;if(!_0x648398)return _0x10b843['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3aefa2=_0x10b843['createContainerElement']('p');return _0x10b843['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3aefa2),_0x3aefa2;};}function p(_0x386c86){const {parent:_0x47f394}=_0x386c86;if(!_0x47f394?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x47f394['childCount'])return!0x1;for(const _0x46540 of _0x386c86['getAttributeKeys']())if(!_0x46540['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x46540)return!0x1;return!0x0;}function g(_0x1aaa69,_0x596cba){if(!_0x1aaa69['is']('element','paragraph'))return!0x1;const _0x362f5d=_0x596cba['toViewElement'](_0x1aaa69);return!!_0x362f5d&&p(_0x1aaa69)!==_0x362f5d['is']('element','span');}function J(_0x729841){return _0x17c8e2(_0x729841)&&_0x729841['is']('containerElement')&&!!_0x729841['getCustomProperty']('footnotesDefinitions');}function v(_0x47f649,_0x5ccc48={}){const _0x8d4764=_0x47f649['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x206907=_0x47f649['createContainerElement']('ol',{'class':'footnotes-list'},_0x47f649['createSlot']());return _0x47f649['createContainerElement']('div',{'class':'footnotes',..._0x5ccc48},[_0x8d4764,_0x206907]);}function D(_0x4578de,_0x2a9026){const _0x100408=_0x4578de['getAttribute']('footnoteId'),_0x336a4f=_0x4578de['getAttribute']('footnoteCounter'),_0x50295b=_0x2a9026['createUIElement']('a',{'href':'#'+_0x100408},function(_0x1ddafc){const _0x3e5304=this['toDomElement'](_0x1ddafc);return _0x3e5304['textContent']=_0x336a4f,_0x3e5304;}),_0x15c16c=_0x2a9026['createContainerElement']('sup',{'id':'ref-'+_0x100408,'class':'footnote'},[_0x50295b]);return _0x15c16c['getFillerOffset']=()=>null,_0x15c16c;}function b(_0x214b22,_0x1a102a,_0x32ae44,{dataPipeline:_0xb2a8c2}={}){const {t:t}=_0x32ae44,_0x166760=_0x214b22['getAttribute']('footnoteId'),_0x40405f=_0x1a102a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x166760},function(_0x290371){const _0x2defcc=this['toDomElement'](_0x290371);return _0x2defcc['innerText']='^',_0x2defcc;}),_0x1964ab=_0xb2a8c2?_0x1a102a['createContainerElement']('div',{'class':'footnote-content'}):_0x1e00c1(_0x1a102a['createEditableElement']('div',{'class':'footnote-content'}),_0x1a102a,{'label':t('Footnote\x20content.')});return _0x1a102a['insert'](_0x1a102a['createPositionAt'](_0x1964ab,0x0),_0x1a102a['createSlot']()),_0x1a102a['createContainerElement']('li',{'class':'footnote-definition','id':_0x166760},[_0x40405f,_0x1964ab]);}class e extends _0x422cf6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x375a5a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1f1808}=this,{plugins:_0x438bc6,model:_0x44689d}=_0x1f1808,_0x226c6f=_0x438bc6['get'](_0x375a5a),_0x5672a0=_0x438bc6['get'](f);this['listenTo'](_0x226c6f,'outputTransformation',(_0x1af041,_0xec8e1e)=>{const _0x3cacd8=c(_0x44689d['createRangeIn'](_0xec8e1e['content']));if(!_0x3cacd8['length'])return;const _0x409620=_0x5672a0['getFootnotes'](),_0x371ce9=_0x3cacd8['reduce']((_0x1019c2,_0x38c4fe)=>{const _0x596c89=_0x409620['find'](_0x418fa3=>_0x418fa3['id']===_0x38c4fe);if(_0x596c89){const _0x47b34e=_0x1f1808['data']['toView'](_0x596c89['definition'],{'isClipboardPipeline':!0x0}),_0x34a961=_0x1f1808['data']['htmlProcessor']['toData'](_0x47b34e);_0x1019c2[_0x596c89['id']]=_0x34a961;}return _0x1019c2;},Object['create'](null));_0xec8e1e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x371ce9));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4c66d7}=this,{model:_0x41fdff,plugins:_0x5b0a6c}=_0x4c66d7,{view:_0x421675}=_0x4c66d7['editing'],_0x18feb9=_0x5b0a6c['get'](_0x375a5a),_0x32363c=_0x5b0a6c['get'](f),_0x4f1b31=_0x4c66d7['config']['get']('footnotes.multiBlock');let _0x263969=null;this['listenTo'](_0x421675['document'],'clipboardInput',(_0x5e365d,_0x3b72f1)=>{const _0x197951=_0x3b72f1['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x263969=_0x197951?JSON['parse'](_0x197951):null;}),this['listenTo'](_0x18feb9,'contentInsertion',(_0x257fa7,_0x526d17)=>{const _0x5c5a74=_0x526d17['sourceEditorId']===this['editor']['id'];_0x5c5a74&&'drop'===_0x526d17['method']||_0x41fdff['change'](_0x74d2a=>{let _0x454590=_0x32363c['getFootnotesDefinitionsObjectElement']();const _0x5853a8=!!_0x454590&&Array['from'](_0x41fdff['document']['selection']['getSelectedBlocks']())['includes'](_0x454590);if((_0x454590&&!_0x5853a8||!_0x454590&&!_0x263969)&&function(_0x35e5f6,_0x5c53ca){const _0x4fd1d9=[];for(const {item:_0x1d42ad}of _0x35e5f6['createRangeIn'](_0x5c53ca))_0x1d42ad['is']('element','footnotesDefinitions')&&_0x4fd1d9['push'](_0x1d42ad);for(const _0x6dd944 of _0x4fd1d9)_0x35e5f6['remove'](_0x6dd944);}(_0x74d2a,_0x526d17['content']),!_0x263969)return;const {selection:_0x38ab34}=_0x41fdff['document'],_0x3898c0=_0x38ab34['getFirstRange']()['root'];_0x454590&&!_0x5853a8||(_0x454590=function(_0xc6c4a5,_0xec2b68){for(const {item:_0x3818b8}of _0xc6c4a5['createRangeIn'](_0xec2b68))if(_0x3818b8['is']('element','footnotesDefinitions'))return _0x3818b8;return null;}(_0x74d2a,_0x526d17['content']),_0x454590||=_0x32363c['_insertEmptyFootnotesDefinitionsContainer'](_0x74d2a,_0x3898c0));const _0x1576fa=Array['from'](_0x38ab34['getRanges']())['flatMap'](c),_0x387e0a=function(_0x1eb442,_0x2a1291,_0x7adff3){const _0x3ebf5f=Object['create'](null);for(const {item:_0x4d40e3}of _0x1eb442['createRangeIn'](_0x2a1291))if(_0x4d40e3['is']('element','footnoteRef')){const _0x4dc97a=_0x4d40e3['getAttribute']('footnoteId');if(!_0x7adff3(_0x4dc97a))continue;_0x3ebf5f[_0x4dc97a]||(_0x3ebf5f[_0x4dc97a]=_0x4c5544()),_0x1eb442['setAttribute']('footnoteId',_0x3ebf5f[_0x4dc97a],_0x4d40e3);}return _0x3ebf5f;}(_0x74d2a,_0x526d17['content'],_0x57bcc9=>{if(!_0x5c5a74)return!0x0;return!!_0x32363c['getFootnote'](_0x57bcc9)&&!_0x1576fa['includes'](_0x57bcc9);});for(const [_0x11d3c6,_0x53a229]of Object['entries'](_0x263969)){const _0xe1a7ec=_0x387e0a[_0x11d3c6]||_0x11d3c6,_0x2285a7=_0x74d2a['createElement']('footnoteDefinition',{'footnoteId':_0xe1a7ec}),_0x993161=_0x4c66d7['data']['htmlProcessor']['toView'](_0x53a229);let _0x33774f;if(_0x4f1b31)_0x33774f=_0x4c66d7['data']['toModel'](_0x993161,_0x2285a7);else{_0x33774f=_0x74d2a['createElement']('footnoteInlineContent');const _0xe413da=_0x4c66d7['data']['toModel'](_0x993161,_0x33774f);_0x74d2a['insert'](_0xe413da,_0x33774f);}_0x74d2a['append'](_0x33774f,_0x2285a7),_0x74d2a['insert'](_0x2285a7,_0x454590,'end');}_0x263969=null;});});}}function c(_0x13569c){const _0x4f332c=new Set();for(const {item:_0x50d49c}of _0x13569c)_0x50d49c['is']('element','footnoteRef')&&_0x4f332c['add'](_0x50d49c['getAttribute']('footnoteId'));return Array['from'](_0x4f332c);}class i extends _0x422cf6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x283d14}=this,{componentFactory:_0x4107e9}=_0x283d14['ui'];_0x4107e9['add']('insertFootnote',x(_0x283d14,_0x41f046)),_0x4107e9['add']('menuBar:insertFootnote',x(_0x283d14,_0x5c0186)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5639fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xba618f;for(const _0x1bb86a in _0x5639fb){const _0x7e81fc=_0x1bb86a,_0x49c7c7=_0x5639fb[_0x7e81fc];if('footnotesLicenseKeyValid'==_0x49c7c7||'footnotesLicenseKeyInvalid'==_0x49c7c7||'footnotesLicenseKeyExpired'==_0x49c7c7||'footnotesLicenseKeyDomainLimit'==_0x49c7c7||'footnotesLicenseKeyNotAllowed'==_0x49c7c7||'footnotesLicenseKeyEvaluationLimit'==_0x49c7c7||'footnotesLicenseKeyTrialLimit'==_0x49c7c7||'footnotesLicenseKeyUsageLimit'==_0x49c7c7){delete _0x5639fb[_0x7e81fc],_0xba618f=_0x49c7c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xba618f&&_0x5639fb['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xba618f&&_0x5639fb['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xba618f&&_0x5639fb['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xba618f&&_0x5639fb['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xba618f&&_0x5639fb['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xba618f&&_0x5639fb['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xba618f&&_0x5639fb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x503914,_0x3da5c8){const _0xa94238=_0x503914['commands']['get']('insertFootnote');return _0x13d7f7=>{const {t:t}=_0x13d7f7,_0x47fe71=new _0x3da5c8(_0x13d7f7),_0x15b427=_0x47fe71 instanceof _0x5c0186;return _0x47fe71['bind']('isEnabled')['to'](_0xa94238,'isEnabled'),_0x47fe71['set']({'label':t(_0x15b427?'Footnote':'Insert\x20footnote'),'icon':_0x4d21c4,'tooltip':!0x0}),_0x47fe71['on']('execute',()=>{_0xa94238['execute'](),_0x503914['editing']['view']['focus']();}),_0x47fe71;};}class lt extends _0x422cf6{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 _0x30fccc{['refresh'](){const {editor:_0x17a711}=this,_0x56b5ab=_0x17a711['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x56b5ab,this['value']=_0x56b5ab?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x19871c}){const {editor:_0x1170fb}=this,_0x4d1714=_0x1170fb['plugins']['get'](f),_0xffdf64=_0x4d1714['getFootnotesDefinitionsObjectElement']();_0xffdf64&&Q['includes'](_0x19871c)&&_0x1170fb['model']['change'](_0xd8df01=>{_0xd8df01['setAttribute']('footnotesListStyle',_0x19871c,_0xffdf64),_0x4d1714['_updateFootnotesCounters'](_0xd8df01);});}}class C extends _0x30fccc{['refresh'](){const {editor:_0x531bc9}=this,_0x5dd3dc=_0x531bc9['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5dd3dc,this['value']=_0x5dd3dc?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4624b8}){const {editor:_0x53b63a}=this,_0x271d58=_0x53b63a['plugins']['get'](f),_0x8aeef0=_0x271d58['getFootnotesDefinitionsObjectElement']();_0x8aeef0&&Number['isInteger'](_0x4624b8)&&_0x53b63a['model']['change'](_0x83e5d=>{_0x83e5d['setAttribute']('footnotesListStart',_0x4624b8,_0x8aeef0),_0x271d58['_updateFootnotesCounters'](_0x83e5d);});}}class P extends _0x422cf6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11dea2}=this;_0x11dea2['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x11dea2['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x11dea2['commands']['add']('footnotesStyle',new S(_0x11dea2)),_0x11dea2['commands']['add']('footnotesStart',new C(_0x11dea2)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0xea4a9e}=this,{schema:_0x420fef}=_0xea4a9e['model'];_0x420fef['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5d7b38}=this,{conversion:_0x12e782,model:_0xc86af6}=_0x5d7b38,{schema:_0x19121e}=_0xc86af6;_0x12e782['for']('upcast')['add'](_0x431830=>{_0x431830['on']('element:ol',(_0x5ee5bd,_0x55fa49,_0x53cdcf)=>{const _0x53e6e6=_0x55fa49['viewItem'],_0xb0eabb=_0x55fa49['modelCursor']?.['parent'];_0x53e6e6['hasClass']('footnotes-list')&&_0xb0eabb?.['is']('element','footnotesDefinitions')&&(function(_0x5582bd,_0x52f4fa,_0x5a1745,_0x185389){if(!_0x185389['checkAttribute'](_0x52f4fa,'footnotesListStart'))return;let _0x424963=0x1;const _0x2b1cf9=_0x5a1745['consumable']['consume'](_0x5582bd,{'attributes':'start'});if(_0x2b1cf9){const _0x11d1c9=Number['parseInt'](_0x5582bd['getAttribute']('start'),0xa);Number['isNaN'](_0x11d1c9)||(_0x424963=_0x11d1c9);}!_0x2b1cf9&&_0x52f4fa['hasAttribute']('footnotesListStart')||_0x5a1745['writer']['setAttribute']('footnotesListStart',_0x424963,_0x52f4fa);}(_0x53e6e6,_0xb0eabb,_0x53cdcf,_0x19121e),function(_0x125b62,_0x3fcbb7,_0xaf9378,_0x2906e4){if(!_0x2906e4['checkAttribute'](_0x3fcbb7,'footnotesListStyle'))return;let _0x18fd5f='decimal',_0x5a15c6=!0x1;if(_0xaf9378['consumable']['consume'](_0x125b62,{'attributes':'type'})){const _0x3db6c2={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x125b62['getAttribute']('type')];_0x3db6c2&&(_0x18fd5f=_0x3db6c2),_0x5a15c6=!0x0;}_0xaf9378['consumable']['consume'](_0x125b62,{'styles':'list-style-type'})&&(_0x18fd5f=function(_0x50e881){switch(_0x50e881){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x50e881;}}(_0x125b62['getStyle']('list-style-type')),_0x5a15c6=!0x0),!_0x5a15c6&&_0x3fcbb7['hasAttribute']('footnotesListStyle')||_0xaf9378['writer']['setAttribute']('footnotesListStyle',_0x18fd5f,_0x3fcbb7);}(_0x53e6e6,_0xb0eabb,_0x53cdcf,_0x19121e));});}),_0x12e782['for']('downcast')['add'](_0x43e73f=>{_0x43e73f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x7f20c2,_0x37fd6d,_0x30c6b9)=>{if(!_0x30c6b9['consumable']['consume'](_0x37fd6d['item'],_0x7f20c2['name']))return;const _0x3af0b0=M(_0x37fd6d['item'],_0x30c6b9['mapper']),{attributeNewValue:_0x5f30ba}=_0x37fd6d;null==_0x5f30ba||0x1===_0x5f30ba?_0x30c6b9['writer']['removeAttribute']('start',_0x3af0b0):_0x30c6b9['writer']['setAttribute']('start',String(_0x5f30ba),_0x3af0b0);}),_0x43e73f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3ca513,_0x37f0a5,_0x3168b4)=>{if(!_0x3168b4['consumable']['consume'](_0x37f0a5['item'],_0x3ca513['name']))return;const _0x4b8c26=M(_0x37f0a5['item'],_0x3168b4['mapper']),{attributeNewValue:_0x13ff2a}=_0x37f0a5;_0x13ff2a&&'decimal'!==_0x13ff2a?_0x3168b4['writer']['setStyle']('list-style-type',_0x13ff2a,_0x4b8c26):_0x3168b4['writer']['removeStyle']('list-style-type',_0x4b8c26);});});}['_definePostfixer'](){const {editor:_0xbb6bd6}=this,{model:_0x534218}=_0xbb6bd6,_0x9c7d8d=_0xbb6bd6['plugins']['get'](f),_0x47858d=this['_getDefaultListStyle'](),_0x148b08=this['_getDefaultStartIndex']();_0x534218['document']['registerPostFixer'](_0x5438b7=>{const _0x49af71=_0x534218['document']['differ']['getChanges']();let _0x5a25bb=!0x1;for(const _0x3b15ae of _0x49af71){if('insert'!==_0x3b15ae['type']||'$text'===_0x3b15ae['name'])continue;const _0x205c1d=_0x534218['createRangeOn'](_0x3b15ae['position']['nodeAfter']);for(const _0x12a6b2 of _0x205c1d['getItems']())_0x12a6b2['is']('element','footnotesDefinitions')&&(!_0x12a6b2['hasAttribute']('footnotesListStart')&&_0x534218['schema']['checkAttribute'](_0x12a6b2,'footnotesListStart')&&(_0x5438b7['setAttribute']('footnotesListStart',_0x148b08,_0x12a6b2),_0x5a25bb=!0x0),!_0x12a6b2['hasAttribute']('footnotesListStyle')&&_0x534218['schema']['checkAttribute'](_0x12a6b2,'footnotesListStyle')&&(_0x5438b7['setAttribute']('footnotesListStyle',_0x47858d,_0x12a6b2),_0x5a25bb=!0x0));}return _0x5a25bb&&_0x9c7d8d['_updateFootnotesCounters'](_0x5438b7),_0x5a25bb;});}['_defineFormatter'](){const {editor:_0xc756ce}=this;_0xc756ce['plugins']['get'](f)['setFootnoteFormatter'](_0x30a3e6=>this['_formatFootnoteListValue'](_0x30a3e6));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x44cfd1,value:_0xbcb1ab,digits:_0x2ebd58}){const _0x100611=_0x44cfd1['getAttribute']('footnotesListStyle'),_0x6d68d7=_0x44cfd1['getAttribute']('footnotesListStart'),_0x20812e=Math['floor'](_0xbcb1ab)+(_0x6d68d7??0x1)-0x1;switch(_0x100611){case'decimal-leading-zero':return function(_0x3c4a2c,_0x121d73){return String(_0x3c4a2c)['padStart'](_0x121d73,'0');}(_0x20812e,Math['max'](0x2,_0x2ebd58));case'lower-alpha':case'lower-latin':return N(_0x20812e,!0x1);case'upper-alpha':case'upper-latin':return N(_0x20812e,!0x0);case'lower-roman':return X(_0x20812e,!0x1);case'upper-roman':return X(_0x20812e,!0x0);default:return String(_0x20812e);}}}function M(_0x241d92,_0x1b1a37){const _0x2c2250=_0x1b1a37['toViewElement'](_0x241d92);return Array['from'](_0x2c2250['getChildren']())['find'](_0x5691d7=>_0x5691d7['is']('element','ol')&&_0x5691d7['hasClass']('footnotes-list'));}function N(_0x1a92ca,_0x564bb6){let _0xb6f28d='',_0x1a739c=_0x1a92ca;for(;_0x1a739c>0x0;){const _0x3e93f1=(_0x1a739c-0x1)%0x1a;_0xb6f28d=String['fromCharCode'](0x61+_0x3e93f1)+_0xb6f28d,_0x1a739c=Math['floor']((_0x1a739c-0x1)/0x1a);}return _0x564bb6?_0xb6f28d['toUpperCase']():_0xb6f28d;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x567b01,_0x16fed0){let _0x135887='',_0x4e7e1c=_0x567b01;for(const {value:_0x3cf362,numeral:_0x4dfd36}of V)for(;_0x4e7e1c>=_0x3cf362;)_0x135887+=_0x4dfd36,_0x4e7e1c-=_0x3cf362;return _0x16fed0?_0x135887:_0x135887['toLowerCase']();}class H extends _0xf520ba{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4cdfd3();['focusCycler'];constructor(_0x1e1302,{styleButtonViews:_0x54130c,styleGridAriaLabel:_0x485e86}){super(_0x1e1302),(this['focusCycler']=new _0x2b129f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x54130c,_0x485e86),[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 _0x581798 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x581798['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5da9d4=_0x4e8c1e=>_0x4e8c1e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5da9d4),this['keystrokes']['set']('arrowleft',_0x5da9d4),this['keystrokes']['set']('arrowup',_0x5da9d4),this['keystrokes']['set']('arrowdown',_0x5da9d4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2a8c55,_0x55a30c){const _0x4a4f40=new _0xf520ba(this['locale']);return _0x4a4f40['children']=_0x4a4f40['createCollection'](),_0x4a4f40['children']['addMany'](_0x2a8c55),_0x4a4f40['setTemplate']({'tag':'div','attributes':{'aria-label':_0x55a30c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4a4f40['children']}),_0x4a4f40['children']['delegate']('execute')['to'](this),_0x4a4f40['focus']=function(){for(const _0x2bc639 of this['children'])if(_0x2bc639 instanceof _0x41f046&&_0x2bc639['isOn'])return void _0x2bc639['focus']();this['children']['first']['focus']();},_0x4a4f40['focusTracker']=new ot(),_0x4a4f40['keystrokes']=new rt(),_0x4a4f40['render'](),_0x4a4f40['keystrokes']['listenTo'](_0x4a4f40['element']),this['children']['add'](_0x4a4f40),_0x4a4f40;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4f32e5=this['_createStartIndexPropertyView'](),_0x40d24e=[_0x4f32e5],_0x1abbb7=new st(this['locale'],_0x40d24e);return _0x1abbb7['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1abbb7['buttonView']['bind']('isEnabled')['toMany'](_0x40d24e,'isEnabled',(..._0x457762)=>_0x457762['some'](_0x3aeb1f=>_0x3aeb1f)),_0x1abbb7['buttonView']['on']('change:isEnabled',(_0x5105ad,_0x30809c,_0x242173)=>{_0x242173||(_0x1abbb7['isCollapsed']=!0x0);}),this['children']['add'](_0x1abbb7),[_0x4f32e5,_0x1abbb7];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1fc74f=new it(this['locale'],et);return _0x1fc74f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1fc74f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1fc74f['fieldView']['on']('input',()=>{const _0x3421c4=_0x1fc74f['fieldView']['element'],_0x42240e=_0x3421c4['valueAsNumber'];Number['isNaN'](_0x42240e)?_0x1fc74f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3421c4['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x42240e}):_0x1fc74f['errorText']=t(_0x42240e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1fc74f;}}class j extends _0x422cf6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x56241b,_0x140f4f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1296c5}=this,{componentFactory:_0x2f6550}=_0x1296c5['ui'];_0x1296c5['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2f6550['add']('footnotesStyle',function(_0x219625){return _0x26ee20=>{const {t:t}=_0x26ee20,_0x4504fd=_0x219625['commands']['get']('footnotesStyle'),_0x187251=_0x51e888(_0x26ee20),{buttonView:_0x2338a0}=_0x187251;return _0x187251['class']='ck-footnotes-styles-dropdown',_0x187251['bind']('isEnabled')['to'](_0x4504fd,'isEnabled'),_0x2338a0['set']({'label':t('Footnotes\x20style'),'icon':_0x4d21c4,'tooltip':!0x0}),_0x187251['once']('change:isOpen',()=>{const _0x37c4b4=function({editor:_0x40c69f,dropdownView:_0x5f0f54}){const {t:t}=_0x40c69f['locale'],_0x7ea33a=t('Footnotes\x20definitions\x20styles'),_0x3805e3=function(_0x41e824){const t=_0x41e824['locale']['t'],_0x5dfb05=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x13f721},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x11cfc1},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x295cf3},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x522db5},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x19da34},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x202aca}];return _0x5dfb05['map'](function(_0x4d69ef){const _0x121542=_0x4d69ef['locale'];return({label:_0x495a2c,icon:_0x5f1a50,tooltip:_0x2ddd42,style:_0x28f8e9})=>{const _0x1ea8fb=_0x4d69ef['commands']['get']('footnotesStyle'),_0x21de60=new _0x41f046(_0x121542);return _0x21de60['set']({'label':_0x495a2c,'icon':_0x5f1a50,'tooltip':_0x2ddd42}),_0x21de60['bind']('isOn')['to'](_0x1ea8fb,'value',_0xc1e8d6=>_0xc1e8d6===_0x28f8e9),_0x21de60['bind']('isEnabled')['to'](_0x1ea8fb,'isEnabled'),_0x21de60['on']('execute',()=>{_0x4d69ef['execute']('footnotesStyle',{'value':_0x28f8e9}),_0x4d69ef['editing']['view']['focus']();}),_0x21de60;};}(_0x41e824));}(_0x40c69f),_0x2fbf6d=new H(_0x40c69f['locale'],{'styleGridAriaLabel':_0x7ea33a,'styleButtonViews':_0x3805e3}),_0x286d7a=_0x40c69f['commands']['get']('footnotesStart');return _0x2fbf6d['startIndexFieldView']['bind']('isEnabled')['to'](_0x286d7a),_0x2fbf6d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x286d7a),_0x2fbf6d['on']('footnotesListStart',(_0x48e574,_0x488be5)=>{_0x40c69f['execute']('footnotesStart',{'value':_0x488be5['startIndex']});}),_0x2fbf6d['delegate']('execute')['to'](_0x5f0f54),_0x2fbf6d;}({'editor':_0x219625,'dropdownView':_0x187251});_0x187251['panelView']['children']['add'](_0x37c4b4);}),_0x187251;};}(_0x1296c5));}['afterInit'](){const {editor:_0x4fda2d}=this,{t:t}=_0x4fda2d['locale'],_0x250205=_0x4fda2d['plugins']['get'](_0x140f4f),{defaultPositions:_0x3ad91a}=_0x1d615d;_0x250205['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4fda2d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x10fbb9=>{let _0x46e744=_0x10fbb9['getFirstPosition']()?.['parent'];return _0x46e744?.['is']('$text')&&(_0x46e744=_0x46e744['parent']),_0x46e744?.['is']('element')?_0x46e744['findAncestor'](J):null;},'positions':[_0x3ad91a['southArrowNorth'],_0x3ad91a['southArrowNorthMiddleWest'],_0x3ad91a['southArrowNorthMiddleEast'],_0x3ad91a['southArrowNorthWest'],_0x3ad91a['southArrowNorthEast'],_0x3ad91a['northArrowSouth'],_0x3ad91a['northArrowSouthMiddleWest'],_0x3ad91a['northArrowSouthMiddleEast'],_0x3ad91a['northArrowSouthWest'],_0x3ad91a['northArrowSouthEast'],_0x3ad91a['viewportStickyNorth']]});}}class ft extends _0x422cf6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x92811c,Command as _0x21a9a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1a8f4a,isWidget as _0x541040,toWidgetEditable as _0x4a3f5f,WidgetToolbarRepository as _0x172b2b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x230239,logWarning as _0x28211c,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xdb1376,ClickObserver as _0x3899a5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x57a6df}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1d2dde,ButtonView as _0x21bacb,View as _0x550991,ViewCollection as _0x4f5436,FocusCycler as _0x3939ab,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x1eaed9,BalloonPanelView as _0x57bf32,createDropdown as _0x1d234f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5c4a41,IconListStyleDecimal as _0x474b80,IconListStyleDecimalLeadingZero as _0x4518e9,IconListStyleLowerRoman as _0x4153fd,IconListStyleUpperRoman as _0x219a60,IconListStyleLowerLatin as _0x555b26,IconListStyleUpperLatin as _0x378945}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4c917a,_0x4e46cb){this['_model']=_0x4c917a,this['_elementName']=_0x4e46cb['elementName'],this['_getElementKey']=_0x4e46cb['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x39cc7a){const _0x563a13=new Set(),_0x25e119=new Map();for(const _0x51a633 of _0x39cc7a){if('insert'===_0x51a633['type']&&'$text'!==_0x51a633['name']&&_0x51a633['position']['nodeAfter']){const _0x111bea=this['_model']['createRangeOn'](_0x51a633['position']['nodeAfter']);for(const _0x185368 of _0x111bea['getItems']()){if(!_0x185368['is']('element',this['_elementName']))continue;const _0x1bdd73=this['_getElementKey'](_0x185368);_0x25e119['has'](_0x1bdd73)||_0x25e119['set'](_0x1bdd73,[]),_0x25e119['get'](_0x1bdd73)['push'](_0x185368);}}if('remove'===_0x51a633['type']&&_0x51a633['name']===this['_elementName']){const _0x3142d2=this['_getElementKey']({'getAttribute':_0x1a30f5=>_0x51a633['attributes']['get'](_0x1a30f5)});_0x563a13['add'](_0x3142d2);}}for(const [_0x55c5fd,_0xae1d6e]of this['_trackedElements'])'$graveyard'===_0xae1d6e['root']['rootName']&&_0x563a13['add'](_0x55c5fd);for(const _0x5ae642 of _0x563a13)this['_trackedElements']['delete'](_0x5ae642);for(const [_0x251fb5,_0x558c93]of _0x25e119)this['_trackedElements']['set'](_0x251fb5,_0x558c93[_0x558c93['length']-0x1]);const _0x5c1774=new Set();for(const [_0x279f51,_0x448dfb]of _0x25e119)_0x563a13['has'](_0x279f51)&&(_0x5c1774['add'](_0x448dfb[0x0]),_0x448dfb['length']>0x1?_0x25e119['set'](_0x279f51,_0x448dfb['slice'](0x1)):_0x25e119['delete'](_0x279f51),_0x563a13['delete'](_0x279f51));return{'removed':Array['from'](_0x563a13),'inserted':Array['from'](_0x25e119['values']())['flat'](),'moved':Array['from'](_0x5c1774)};}}class f extends _0x92811c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x584e2f){super(_0x584e2f),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3ac71e=>_0x3ac71e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x58b321=>_0x58b321['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1d9370}=this,{model:_0x1b5119,data:_0x4533b0}=_0x1d9370;_0x1b5119['document']['registerPostFixer'](_0xa3fbba=>{const _0x22aab8=_0x1b5119['document']['differ']['getChanges']();let _0x14458b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_handleFootnoteReferencesChanges'](_0xa3fbba,_0x22aab8)&&(_0x14458b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xa3fbba)&&(_0x14458b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xa3fbba)&&(_0x14458b=!0x0),this['_sortFootnoteDefinitions'](_0xa3fbba)&&(_0x14458b=!0x0),_0x14458b;}),this['listenTo'](_0x1b5119['document'],'change:data',()=>{_0x1b5119['enqueueChange']({'isUndoable':!0x1},_0x305248=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x305248);});},{'priority':'low'}),this['listenTo'](_0x4533b0,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2398d5){return this['_footnotes']['find'](_0x34ca1d=>_0x34ca1d['id']===_0x2398d5)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x15a4c9){this['_footnoteFormatter']=_0x15a4c9;}['_updateFootnotesCounters'](_0x13f579,_0x585b6a=0x0){let _0x38f3f9=!0x1;for(let _0x43f490=_0x585b6a;_0x43f490<this['_footnotes']['length'];_0x43f490++)this['_updateFootnoteRefCounter'](_0x13f579,_0x43f490)&&(_0x38f3f9=!0x0);return _0x38f3f9;}['_insertEmptyFootnotesDefinitionsContainer'](_0xac6e15,_0x2d2990){const _0x4c7c4a=_0xac6e15['createElement']('footnotesDefinitions',{});return _0xac6e15['append'](_0x4c7c4a,_0x2d2990),this['_footnotesDefinitions']=_0x4c7c4a,_0x4c7c4a;}['_ensureFootnotesDefinitionsContainerExists'](_0x32cc01){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x755ff1=this['_footnotes'][0x0]['reference']['root'],_0x1795e3=this['_insertEmptyFootnotesDefinitionsContainer'](_0x32cc01,_0x755ff1);for(const _0x177661 of this['_footnotes'])_0x177661['definition']['parent']||_0x32cc01['insert'](_0x177661['definition'],_0x1795e3,'end');this['_updateFootnotesCounters'](_0x32cc01);}['_handleFootnotesDefinitionsObjectChanges'](_0x4f7789,_0x5c51ee){let _0x5d9cf6=!0x1;const {inserted:_0x1d4439,removed:_0xb8ecf8,moved:_0x3deb16}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5c51ee);if(_0x3deb16['length']&&(this['_footnotesDefinitions']=_0x3deb16[0x0]),_0x1d4439['length']){if(_0x1d4439['length']>0x1||this['_footnotesDefinitions']&&_0x1d4439['some'](_0x26c78c=>_0x26c78c!==this['_footnotesDefinitions'])){const _0x289f68=_0x4f7789['createElement']('footnotesDefinitions',{}),_0x1c618e=[];this['_footnotesDefinitions']&&_0x1c618e['push'](this['_footnotesDefinitions']),_0x1c618e['push'](..._0x1d4439),_0x4f7789['insert'](_0x289f68,_0x1c618e[0x0],'before');for(const _0x1c83ec of _0x1c618e)_0x4f7789['move'](_0x4f7789['createRangeIn'](_0x1c83ec),_0x4f7789['createPositionAt'](_0x289f68,'end')),_0x4f7789['remove'](_0x1c83ec);this['_footnotesDefinitions']=_0x289f68,this['_updateFootnotesCounters'](_0x4f7789),_0x5d9cf6=!0x0;}else this['_footnotesDefinitions']=_0x1d4439[0x0];}if(_0xb8ecf8['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0xdfd734 of this['_footnotes'])_0x4f7789['remove'](_0xdfd734['reference']),_0x5d9cf6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d9cf6;}['_handleFootnoteDefinitionsChanges'](_0x142b48,_0x1c04d6){let _0x39d5d9=!0x1;const _0x525f46=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4fef5d,moved:_0x45d527}=this['_footnoteDefsTracker']['getChanges'](_0x1c04d6);for(const _0x2b3a15 of[..._0x45d527,..._0x4fef5d]){const _0x3ad6f1=_0x2b3a15['getAttribute']('footnoteId'),_0x545867=this['getFootnote'](_0x3ad6f1);_0x545867&&(_0x545867['definition']=_0x2b3a15),_(_0x142b48,_0x525f46,_0x2b3a15)&&(_0x39d5d9=!0x0);}return _0x39d5d9;}['_handleFootnoteReferencesChanges'](_0x49bae5,_0xfe8ab9){let _0x61355a=!0x1;const {removed:_0x32e277,inserted:_0x224c32,moved:_0x11a4b5}=this['_footnoteRefsTracker']['getChanges'](_0xfe8ab9);for(const _0x2f055c of _0x32e277)this['_handleRemoveFootnoteReferenceById'](_0x49bae5,_0x2f055c)&&(_0x61355a=!0x0);for(const _0x2e9244 of _0x224c32)this['_handleInsertedFootnoteReference'](_0x49bae5,_0x2e9244)&&(_0x61355a=!0x0);for(const _0x4171cd of _0x11a4b5)this['_handleMovedFootnoteReference'](_0x49bae5,_0x4171cd)&&(_0x61355a=!0x0);return _0x61355a;}['_handleFootnotesDefinitionsObjectSync'](_0xa32982){if(!this['_footnotesDefinitions'])return!0x1;let _0x2c2349=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x34bc28=[];for(const _0x5dd74b of this['_footnotesDefinitions']['getChildren']()){const _0x2d9eff=_0x5dd74b['getAttribute']('footnoteId');this['getFootnote'](_0x2d9eff)||(_0x34bc28['unshift'](_0x5dd74b),_0x2c2349=!0x0);}for(const _0x1828c5 of _0x34bc28)_0xa32982['remove'](_0x1828c5);}const _0xd322d6=new Set(),_0x50d66f=[];for(const _0x5a1a3f of this['_footnotesDefinitions']['getChildren']()){const _0x496cdc=_0x5a1a3f['getAttribute']('footnoteId');_0xd322d6['has'](_0x496cdc)?(_0x50d66f['unshift'](_0x5a1a3f),_0x2c2349=!0x0):_0xd322d6['add'](_0x496cdc);}for(const _0x816be0 of _0x50d66f)_0xa32982['remove'](_0x816be0);return this['_footnotesDefinitions']['childCount']||(_0xa32982['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2c2349=!0x0),_0x2c2349;}['_handleInsertedFootnoteReference'](_0x4d494d,_0x22c3cb){if(this['_footnotes']['find'](_0x3844ab=>_0x3844ab['reference']===_0x22c3cb))return!0x1;let _0x348333=!0x1;const _0x38ac9b=_0x22c3cb['getAttribute']('footnoteId'),_0x139701=this['_footnotes']['findIndex'](_0x45f0b9=>_0x45f0b9['id']===_0x38ac9b);-0x1!==_0x139701&&(_0x4d494d['remove'](this['_footnotes'][_0x139701]['reference']),this['_footnotes']['splice'](_0x139701,0x1),_0x348333=!0x0);let _0x3968db=this['_footnotesDefinitions']?function(_0x27b3c6,_0xf909d){for(const _0x5c8d64 of _0x27b3c6['getChildren']())if(_0x5c8d64['getAttribute']('footnoteId')===_0xf909d)return _0x5c8d64;return null;}(this['_footnotesDefinitions'],_0x38ac9b):null;_0x3968db||(_0x3968db=_0x4d494d['createElement']('footnoteDefinition',{'footnoteId':_0x38ac9b}),this['_footnotesDefinitions']&&(_0x4d494d['insert'](_0x3968db,this['_footnotesDefinitions'],'end'),_0x348333=!0x0));const _0x4acb11={'id':_0x38ac9b,'reference':_0x22c3cb,'definition':_0x3968db},_0xe0cb49=I(this['editor']['model'],this['_footnotes'],_0x22c3cb);this['_footnotes']['splice'](_0xe0cb49,0x0,_0x4acb11);let _0x42b487=_0xe0cb49;return-0x1!==_0x139701&&(_0x42b487=Math['min'](_0xe0cb49,_0x139701)),this['_updateFootnotesCounters'](_0x4d494d,_0x42b487)&&(_0x348333=!0x0),_0x348333;}['_handleRemoveFootnoteReferenceById'](_0x185c28,_0x2c2d34){const _0x3610fa=this['_footnotes']['findIndex'](_0x138645=>_0x138645['id']===_0x2c2d34);if(-0x1===_0x3610fa)return!0x1;let _0x24bde3=!0x1;const _0x524e16=this['_footnotes'][_0x3610fa];return'$graveyard'!==_0x524e16['definition']['root']['rootName']&&(_0x185c28['remove'](_0x524e16['definition']),_0x24bde3=!0x0),this['_footnotes']['splice'](_0x3610fa,0x1),this['_updateFootnotesCounters'](_0x185c28,_0x3610fa)&&(_0x24bde3=!0x0),_0x24bde3;}['_handleMovedFootnoteReference'](_0x3dde1a,_0x10964e){const _0x43f7ad=_0x10964e['getAttribute']('footnoteId'),_0x150fe3=this['_footnotes']['findIndex'](_0x44cc9a=>_0x44cc9a['id']===_0x43f7ad),_0x174358=this['_footnotes'][_0x150fe3];let _0x46a0a1=!0x1;_0x174358['reference']=_0x10964e,this['_footnotes']['splice'](_0x150fe3,0x1);const _0x5ea3d5=I(this['editor']['model'],this['_footnotes'],_0x10964e);return this['_footnotes']['splice'](_0x5ea3d5,0x0,_0x174358),this['_updateFootnotesCounters'](_0x3dde1a,Math['min'](_0x150fe3,_0x5ea3d5))&&(_0x46a0a1=!0x0),_0x46a0a1;}['_updateFootnoteRefCounter'](_0x5a4419,_0x29ba6b){if(!this['_footnotesDefinitions'])return!0x1;const _0x1d65ad=this['_footnotes'][_0x29ba6b];let _0x2e0439;return _0x2e0439=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1d65ad,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x29ba6b+0x1}):String(_0x29ba6b+0x1),_0x1d65ad['reference']['getAttribute']('footnoteCounter')!=_0x2e0439&&(_0x5a4419['setAttribute']('footnoteCounter',_0x2e0439,_0x1d65ad['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x416f93){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4da125,_0x436814){if(_0x4da125['length']!==_0x436814['length'])return!0x1;for(let _0x338350=0x0;_0x338350<_0x4da125['length'];_0x338350++)if(_0x4da125[_0x338350]!==_0x436814[_0x338350])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x486778=>_0x486778['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x317362=>_0x317362['getAttribute']('footnoteId'))))return!0x1;let _0x37fcc9=!0x1;for(let _0x34a61d=0x0;_0x34a61d<this['_footnotes']['length'];_0x34a61d++){const _0x26d645=this['_footnotes'][_0x34a61d],_0x19d621=_0x416f93['createPositionBefore'](_0x26d645['definition']),_0x140237=_0x416f93['createPositionAt'](this['_footnotesDefinitions'],_0x34a61d);_0x19d621['isEqual'](_0x140237)||(_0x416f93['move'](_0x416f93['createRangeOn'](_0x26d645['definition']),_0x140237),_0x37fcc9=!0x0);}return _0x37fcc9;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3ac6b0){if(!this['_footnotes']['length'])return!0x1;const {model:_0x16a7cc}=this['editor'];let _0x5e3c6a=!0x1;for(let _0x37082c=0x0;_0x37082c<this['_footnotes']['length']-0x1;_0x37082c++){const _0x45576a=this['_footnotes'][_0x37082c],_0x5f0e91=this['_footnotes'][_0x37082c+0x1],_0x59a471=_0x16a7cc['createPositionBefore'](_0x45576a['reference']),_0x3bd21e=_0x16a7cc['createPositionBefore'](_0x5f0e91['reference']);'after'===_0x59a471['compareWith'](_0x3bd21e)&&(this['_handleMovedFootnoteReference'](_0x3ac6b0,_0x45576a['reference']),_0x37082c=-0x1,_0x5e3c6a=!0x0);}return _0x5e3c6a;}}function _(_0x3c64b7,_0x31f036,_0x71225a){if(_0x71225a['childCount'])return!0x1;const _0x1cccae=_0x31f036?'paragraph':'footnoteInlineContent';return _0x3c64b7['insert'](_0x3c64b7['createElement'](_0x1cccae),_0x71225a),!0x0;}function I(_0x2e22d2,_0x3073ed,_0xf2025e){if(0x0===_0x3073ed['length'])return 0x0;const _0x244952=_0x2e22d2['createPositionBefore'](_0xf2025e);for(let _0x5ac082=0x0;_0x5ac082<_0x3073ed['length'];_0x5ac082++){const _0x381a64=_0x3073ed[_0x5ac082],_0x2c3077=_0x2e22d2['createPositionBefore'](_0x381a64['reference']);if('before'===_0x244952['compareWith'](_0x2c3077))return _0x5ac082;}const _0x4324de=_0xf2025e['root'];let _0x5bc052=-0x1;for(let _0x30c5af=_0x3073ed['length']-0x1;_0x30c5af>=0x0;_0x30c5af--)if(_0x3073ed[_0x30c5af]['reference']['root']===_0x4324de){_0x5bc052=_0x30c5af;break;}if(-0x1!==_0x5bc052)return _0x5bc052+0x1;const _0x11190b=_0x2e22d2['document']['getRootNames'](),_0x1f9919=_0x11190b['indexOf'](_0x4324de['rootName']),_0x14a372=_0x11190b[_0x1f9919+0x1];if(_0x14a372){for(let _0x4891c0=0x0;_0x4891c0<_0x3073ed['length'];_0x4891c0++)if(_0x3073ed[_0x4891c0]['reference']['root']['rootName']===_0x14a372)return _0x4891c0;}return _0x3073ed['length'];}class m extends _0x21a9a1{['refresh'](){const _0x52d825=this['editor']['model']['document']['selection'],_0x2eee0b=this['_getPositionToInsertFootnote'](_0x52d825);this['isEnabled']=!!_0x2eee0b;}['execute'](_0x362ae1){const {editor:_0x5b21dc}=this,{model:_0x223a32}=_0x5b21dc,{selection:_0x57f14c}=_0x223a32['document'],_0x26a7f8=this['_getPositionToInsertFootnote'](_0x57f14c);if(!_0x26a7f8)return;const _0x2f1142=_0x5b21dc['plugins']['get']('FootnotesEditing'),_0x286554=_0x362ae1?.['footnoteId']??_0x230239();!function(_0x3d4c91){return'string'==typeof _0x3d4c91&&_0x3d4c91['length']>0x0&&!/\s/['test'](_0x3d4c91)&&!/^\d/['test'](_0x3d4c91);}(_0x286554)?_0x28211c('insert-footnote-command-executed-with-invalid-id'):(_0x223a32['change'](_0x562419=>{const _0x5f5ad2=_0x562419['createElement']('footnoteRef',{'footnoteId':_0x286554});_0x223a32['insertObject'](_0x5f5ad2,_0x26a7f8,null);}),_0x2f1142['_moveSelectionToFootnoteDefinition'](_0x286554));}['_getPositionToInsertFootnote'](_0x5f09db){const {model:_0xd60146}=this['editor'],{schema:_0x46e2ed}=_0xd60146,_0x5f1b80=_0x5f09db['getFirstRange']();for(const _0x5bbb19 of _0x5f1b80['getItems']())if(_0x46e2ed['isBlock'](_0x5bbb19)||_0x46e2ed['isObject'](_0x5bbb19))return null;const _0x528693=_0x5f1b80['end'];return _0x46e2ed['checkChild'](_0x528693,'footnoteRef')?_0x528693:null;}}class r extends _0x92811c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ef6d6}=this;_0x3ef6d6['config']['define']('footnotes.multiBlock',!0x0),_0x3ef6d6['commands']['add']('insertFootnote',new m(_0x3ef6d6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x13c553){const _0x4c2397=_0x5b89ef([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]),_0x4af56b=0x47a28506,_0xe8749f=0x47a5ffae^_0x4af56b,_0x5b7cf8=window[_0x5b89ef([0x44,0x61,0x74,0x65])][_0x5b89ef([0x6e,0x6f,0x77])](),_0x4765ed=_0x13c553[_0x5b89ef([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x515104=new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54933c=>{_0x4765ed[_0x5b89ef([0x6f,0x6e,0x63,0x65])](_0x5b89ef([0x72,0x65,0x61,0x64,0x79]),_0x54933c);}),_0x184a48={[_0x5b89ef([0x6b,0x74,0x79])]:_0x5b89ef([0x45,0x43]),[_0x5b89ef([0x75,0x73,0x65])]:_0x5b89ef([0x73,0x69,0x67]),[_0x5b89ef([0x63,0x72,0x76])]:_0x5b89ef([0x50,0x2d,0x32,0x35,0x36]),[_0x5b89ef([0x78])]:_0x5b89ef([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]),[_0x5b89ef([0x79])]:_0x5b89ef([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]),[_0x5b89ef([0x61,0x6c,0x67])]:_0x5b89ef([0x45,0x53,0x32,0x35,0x36])},_0x47c230=_0x4765ed[_0x5b89ef([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b89ef([0x67,0x65,0x74])](_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45b76e(){let _0x174368,_0x22d959=null,_0x7f3192=null;try{if(_0x47c230==_0x5b89ef([0x47,0x50,0x4c]))return _0x5b89ef([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x174368=_0x73979a(),!_0x174368)return _0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x174368[_0x5b89ef([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7f3192=_0x5826c8(_0x174368[_0x5b89ef([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x174368[_0x5b89ef([0x6a,0x74,0x69])])),await _0x448aed()?_0x1ff3ae()?_0x3c4bc4()?_0x5b89ef([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3981fb()?(_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b89ef([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22d959=_0x1a23b7(_0x5b89ef([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b89ef([0x74,0x72,0x69,0x61,0x6c])&&(_0x22d959=_0x1a23b7(_0x5b89ef([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd38fab()):_0x5b89ef([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b89ef([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b89ef([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c4bc4(){const _0x87c4e=[_0x5b89ef([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b89ef([0x74,0x72,0x69,0x61,0x6c])][_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b7cf8/0x3e8:0xe10*_0xe8749f;return _0x174368[_0x5b89ef([0x65,0x78,0x70])]<_0x87c4e;}function _0x1ff3ae(){const _0x58b6ce=_0x174368[_0x5b89ef([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58b6ce&&(!!_0x58b6ce[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x2a]))||!!_0x58b6ce[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x46,0x4f,0x4f])));}function _0x3981fb(){const _0x5a9a2f=_0x174368[_0x5b89ef([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a9a2f||0x0==_0x5a9a2f[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37acd5}=new URL(window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a9a2f[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37acd5))return!0x0;const _0x521d25=_0x37acd5[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e]));return _0x5a9a2f[_0x5b89ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x338419=>_0x338419[_0x5b89ef([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b89ef([0x2a])))[_0x5b89ef([0x6d,0x61,0x70])](_0x1fdc23=>_0x1fdc23[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e])))[_0x5b89ef([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x141d7b=>_0x141d7b[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x521d25[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b89ef([0x6d,0x61,0x70])](_0x5b90b4=>Array(_0x521d25[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b90b4[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b89ef([0x66,0x69,0x6c,0x6c])](_0x5b90b4[0x0]===_0x5b89ef([0x2a])?_0x5b89ef([0x2a]):'')[_0x5b89ef([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b90b4))[_0x5b89ef([0x73,0x6f,0x6d,0x65])](_0x26a6b7=>_0x521d25[_0x5b89ef([0x65,0x76,0x65,0x72,0x79])]((_0x4537b2,_0xbf8703)=>_0x26a6b7[_0xbf8703]===_0x4537b2||_0x26a6b7[_0xbf8703]===_0x5b89ef([0x2a])));}function _0xd38fab(){return _0x22d959&&_0x7f3192?new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5602a5,_0x222edf)=>{_0x22d959[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x5602a5,_0x222edf),_0x7f3192[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x1c60ea=>{_0x1c60ea!=_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])&&_0x5602a5(_0x1c60ea);},_0x222edf);}):_0x22d959||_0x7f3192||_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5826c8(_0x325cc4,_0x59f355){return new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147a66=>{if(_0x2e8eaf())return _0x147a66(_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]));_0x241703(),_0x4765ed[_0x5b89ef([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x368720=!0x1;const _0x374796=_0x230239();function _0x20f9b0(_0x10ceba){return!!_0x10ceba&&(typeof _0x10ceba===_0x5b89ef([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10ceba===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10ceba[_0x5b89ef([0x74,0x68,0x65,0x6e])]===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10ceba[_0x5b89ef([0x63,0x61,0x74,0x63,0x68])]===_0x5b89ef([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b7dab(_0x21835e){_0x100420(_0x21835e)[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x12f6e1=>{if(!_0x12f6e1||_0x12f6e1[_0x5b89ef([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b89ef([0x6f,0x6b]))return _0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b1afe(_0x385081(_0x374796+_0x59f355))!=_0x12f6e1[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b89ef([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x18fcb7=>(_0x2d65b3(),_0x18fcb7),()=>{const _0x397373=_0x37d170();return null==_0x397373?(_0x2d65b3(),_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])):_0x5b89ef(_0x5b7cf8-_0x397373>(0x63ae0106^_0x4af56b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x147a66)[_0x5b89ef([0x63,0x61,0x74,0x63,0x68])](()=>{_0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde7d04=0x47946b86^_0x4af56b;function _0x2d65b3(){const _0x121efa=_0x5b89ef([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1afe(_0x385081(_0x325cc4)),_0x2353ff=_0x5bcaf6(_0x5b1afe(window[_0x5b89ef([0x4d,0x61,0x74,0x68])][_0x5b89ef([0x63,0x65,0x69,0x6c])](_0x5b7cf8/_0xde7d04)));window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b89ef([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121efa,_0x2353ff);}function _0x37d170(){const _0x15689a=_0x5b89ef([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b1afe(_0x385081(_0x325cc4)),_0x327225=window[_0x5b89ef([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b89ef([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15689a);return _0x327225?window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bcaf6(_0x327225),0x10)*_0xde7d04:null;}function _0x100420(_0x2e4816){return new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11da72,_0x537dc7)=>{_0x2e4816[_0x5b89ef([0x74,0x68,0x65,0x6e])](_0x11da72,_0x537dc7),window[_0x5b89ef([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x537dc7,0x47a351c6^_0x4af56b);});}}_0x4765ed[_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f5037,_0x468764)=>{if(_0x468764[0x0]!=_0x325cc4)return _0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x468764[0x1]={..._0x468764[0x1],[_0x5b89ef([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x374796};},{[_0x5b89ef([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b89ef([0x68,0x69,0x67,0x68])}),_0x4765ed[_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2485b7=>{_0x20f9b0(_0x2485b7[_0x5b89ef([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x368720=!0x0,_0x4b7dab(_0x2485b7[_0x5b89ef([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b89ef([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b89ef([0x6c,0x6f,0x77])}),_0x515104[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>{_0x368720||_0x147a66(_0x5b89ef([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e8eaf(){return _0x4765ed[_0x5b89ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b89ef([0x76,0x69,0x65,0x77])][_0x5b89ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b89ef([0x61,0x75,0x74,0x6f]);}function _0x241703(){_0x4765ed[_0x5b89ef([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b89ef([0x76,0x69,0x65,0x77])][_0x5b89ef([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b89ef([0x61,0x75,0x74,0x6f]);}}function _0x1a23b7(_0x218b06){const _0x5b61d5=[new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1198f2=>setTimeout(_0x1198f2,0x47abbbca^_0x4af56b)),_0x515104[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c13b0=>{let _0x4baf39=0x0;_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x6f,0x6e])](_0x5b89ef([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x616322,_0x11337f)=>{_0x11337f[0x0][_0x5b89ef([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4baf39++,_0x4baf39==(0x47a284fe^_0x4af56b)&&(_0x1c13b0(),_0x616322[_0x5b89ef([0x6f,0x66,0x66])]());});}))];return window[_0x5b89ef([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b89ef([0x72,0x61,0x63,0x65])](_0x5b61d5)[_0x5b89ef([0x74,0x68,0x65,0x6e])](()=>_0x218b06);}async function _0x1748c3(){await _0x515104,_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389524,_0x4765ed[_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b89ef([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389524,_0x4765ed[_0x5b89ef([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b89ef([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x386659(_0x72f541){const _0x2e1eab=_0x16998e();_0x4765ed[_0x2e1eab]=_0x5b89ef([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x72f541,_0x72f541!=_0x5b89ef([0x56,0x61,0x6c,0x69,0x64])&&_0x1748c3();}function _0x16998e(){const _0x8bc1cb=window[_0x5b89ef([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b89ef([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b89ef([0x6e,0x6f,0x77])]())[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b89ef([0x2e]),'');let _0x3be1e9=_0x5b89ef([0x75]);for(let _0xe1751e=0x0;_0xe1751e<_0x8bc1cb[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1751e+=0x2){let _0x2ede95=window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc1cb[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe1751e,_0xe1751e+0x2));_0x2ede95>=_0x4c2397[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ede95-=_0x4c2397[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3be1e9+=_0x4c2397[_0x2ede95];}return _0x3be1e9;}function _0x73979a(){const _0x5e1c7a=_0x47c230[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e]));if(0x3!=_0x5e1c7a[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd5eaa2(_0x5e1c7a[0x1]);function _0xd5eaa2(_0x30caf7){const _0x371867=_0x513ea7(_0x30caf7);return _0x371867&&_0x13ebb3()?_0x371867:null;function _0x13ebb3(){const _0x625490=_0x371867[_0x5b89ef([0x6a,0x74,0x69])],_0x5243e6=window[_0x5b89ef([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x625490[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x625490[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x568e29={..._0x371867,[_0x5b89ef([0x6a,0x74,0x69])]:_0x625490[_0x5b89ef([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x625490[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x568e29[_0x5b89ef([0x76,0x63])],_0x385081(_0x568e29)==_0x5243e6;}}}async function _0x448aed(){let _0x1bd072=!0x0;try{const _0x45c4c3=_0x47c230[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])](_0x5b89ef([0x2e])),[_0x32742f,_0x1ba2f1,_0xd295f3]=_0x45c4c3;return _0xabae07(_0x32742f),await _0x483b9f(_0x32742f,_0x1ba2f1,_0xd295f3),_0x1bd072;}catch{return!0x1;}function _0xabae07(_0x17a2bd){const _0x18b7a0=_0x513ea7(_0x17a2bd);_0x18b7a0&&_0x18b7a0[_0x5b89ef([0x61,0x6c,0x67])]==_0x5b89ef([0x45,0x53,0x32,0x35,0x36])||(_0x1bd072=!0x1);}async function _0x483b9f(_0x183f1d,_0x498883,_0xe87f1a){const _0x3a98c5=window[_0x5b89ef([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b89ef([0x66,0x72,0x6f,0x6d])](_0x2c5de8(_0xe87f1a),_0x4920b0=>_0x4920b0[_0x5b89ef([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x545816=new window[(_0x5b89ef([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b89ef([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x183f1d+_0x5b89ef([0x2e])+_0x498883),_0x2bfc9c=window[_0x5b89ef([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b89ef([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bfc9c)return;const _0x289c42=await _0x2bfc9c[_0x5b89ef([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b89ef([0x6a,0x77,0x6b]),_0x184a48,{[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x45,0x43,0x44,0x53,0x41]),[_0x5b89ef([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b89ef([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bfc9c[_0x5b89ef([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x45,0x43,0x44,0x53,0x41]),[_0x5b89ef([0x68,0x61,0x73,0x68])]:{[_0x5b89ef([0x6e,0x61,0x6d,0x65])]:_0x5b89ef([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x289c42,_0x3a98c5,_0x545816)||(_0x1bd072=!0x1);}}function _0x513ea7(_0x52c893){return _0x52c893[_0x5b89ef([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b89ef([0x65,0x79]))?JSON[_0x5b89ef([0x70,0x61,0x72,0x73,0x65])](_0x2c5de8(_0x52c893)):null;}function _0x2c5de8(_0x16b774){return window[_0x5b89ef([0x61,0x74,0x6f,0x62])](_0x16b774[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b89ef([0x2b]))[_0x5b89ef([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b89ef([0x2f])));}function _0x385081(_0x19b069){let _0x554c01=0x1505;function _0x13eb86(_0x5c0f4b){for(let _0xeb9f8d=0x0;_0xeb9f8d<_0x5c0f4b[_0x5b89ef([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb9f8d++){const _0x4b084f=_0x5c0f4b[_0x5b89ef([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeb9f8d);_0x554c01=(_0x554c01<<0x5)+_0x554c01+_0x4b084f,_0x554c01&=_0x554c01;}}function _0x44f2eb(_0x4efad1){Array[_0x5b89ef([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4efad1)?_0x4efad1[_0x5b89ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44f2eb):_0x4efad1&&typeof _0x4efad1==_0x5b89ef([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b89ef([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4efad1)[_0x5b89ef([0x73,0x6f,0x72,0x74])]()[_0x5b89ef([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5960e2,_0x372f29])=>{_0x13eb86(_0x5960e2),_0x44f2eb(_0x372f29);}):_0x13eb86(window[_0x5b89ef([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4efad1));}return _0x44f2eb(_0x19b069),_0x554c01>>>0x0;}function _0x5b1afe(_0x55cb8e){return _0x55cb8e[_0x5b89ef([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b89ef([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b89ef([0x30]));}function _0x5bcaf6(_0x2b868e){return _0x2b868e[_0x5b89ef([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b89ef([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b89ef([0x6a,0x6f,0x69,0x6e])]('');}function _0x389524(){}function _0x5b89ef(_0x3b684a){return _0x3b684a['map'](_0x1e0ce3=>String['fromCharCode'](_0x1e0ce3))['join']('');}_0x386659(await _0x45b76e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3322df){const {plugins:_0xf3f20c,editing:_0x232d3d,model:_0x129ead}=this['editor'],_0x5b5b25=_0xf3f20c['get'](f)['getFootnote'](_0x3322df);return!!_0x5b5b25&&(_0x129ead['change'](_0x253264=>{_0x253264['setSelection'](_0x253264['createPositionAt'](_0x5b5b25['definition'],'end'));}),_0x232d3d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2b3b55){const {plugins:_0x112d68,editing:_0x10fed3,model:_0x2f54bd}=this['editor'],_0x1bc801=_0x112d68['get'](f)['getFootnote'](_0x2b3b55);return!!_0x1bc801&&(_0x2f54bd['change'](_0x5047f6=>{_0x5047f6['setSelection'](_0x1bc801['reference'],'on');}),_0x10fed3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x218f32}=this['editor']['model'],_0x44bf65=this['editor']['config']['get']('footnotes.multiBlock');_0x218f32['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x218f32['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x218f32['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x44bf65?_0x218f32['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x218f32['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x218f32['addChildCheck'](_0x465ec0=>{for(const _0x41fa90 of _0x465ec0)if('footnoteDefinition'===_0x41fa90['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4dd2d3}=this,{conversion:_0x30d933,editing:_0x418cf9}=_0x4dd2d3,{t:t}=_0x4dd2d3['locale'];_0x30d933['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c8084,{writer:_0x523b84,consumable:_0x1dd51d})=>{const _0x117d28=_0x3c8084['getChild'](0x0);if(!_0x117d28||!_0x117d28['is']('element','a'))return null;const _0x4a00e0=_0x117d28['getAttribute']('href')||'';if(!_0x4a00e0['startsWith']('#'))return null;const _0x252a68=_0x4a00e0['replace'](/^#/,'');if(!_0x252a68)return null;_0x1dd51d['consume'](_0x117d28,{'name':!0x0,'attributes':['href']});for(const {item:_0x228f11}of _0x418cf9['view']['createRangeIn'](_0x117d28))_0x228f11['is']('$textProxy')?_0x1dd51d['consume'](_0x228f11['textNode'],{'name':!0x0}):_0x228f11['is']('element')&&_0x1dd51d['consume'](_0x228f11,{'name':!0x0});return _0x523b84['createElement']('footnoteRef',{'footnoteId':_0x252a68});}}),_0x30d933['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5614a7,{writer:_0x1fd692})=>D(_0x5614a7,_0x1fd692)}),_0x30d933['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52a53e,{writer:_0x3a93ae})=>{const _0x1b5b14=_0x52a53e['getAttribute']('footnoteCounter');return _0x1a8f4a(D(_0x52a53e,_0x3a93ae),_0x3a93ae,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1b5b14)});}});}['_defineDefinitionsConverters'](){const {editor:_0x274bea}=this,{t:t}=_0x274bea['locale'],{conversion:_0x4a31ed}=_0x274bea;_0x4a31ed['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4a31ed['for']('upcast')['add'](_0x93adba=>{_0x93adba['on']('element:ol',(_0x21f975,_0x25534a,_0x30c3a5)=>{const _0x735627=_0x25534a['viewItem'];if(!_0x735627['hasClass']('footnotes-list')||!_0x25534a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x30c3a5['consumable']['consume'](_0x735627,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3b25fa,modelCursor:_0x58f1f5}=_0x30c3a5['convertChildren'](_0x25534a['viewItem'],_0x25534a['modelCursor']);_0x25534a['modelRange']=_0x3b25fa,_0x25534a['modelCursor']=_0x58f1f5;}),_0x93adba['on']('element:hr',(_0x63c296,_0x2beb65,_0x33d82e)=>{const _0x3a96ac=_0x2beb65['viewItem'];_0x3a96ac['hasClass']('footnotes-divider')&&_0x2beb65['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x33d82e['consumable']['consume'](_0x3a96ac,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4a31ed['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xaa16e,{writer:_0x5117f1})=>v(_0x5117f1)}),_0x4a31ed['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4c070d,{writer:_0x2dc561})=>{const _0x56a97c=v(_0x2dc561,{'data-footnotes-list-label':t('Footnotes')}),_0x96fda0=_0x1a8f4a(_0x56a97c,_0x2dc561,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2dc561['setCustomProperty']('footnotesDefinitions',!0x0,_0x96fda0),_0x96fda0;}});}['_defineDefinitionConverters'](){const {editor:_0x3d722}=this,{conversion:_0x1af11c,locale:_0x3a9708}=_0x3d722,_0x58d26f=_0x3d722['config']['get']('footnotes.multiBlock');_0x1af11c['for']('upcast')['add'](_0x235ed3=>{_0x235ed3['on']('element:li',(_0x67d05e,_0x24efb9,_0x6a10c5)=>{const _0x54167f=_0x24efb9['viewItem'];if(!_0x54167f['hasClass']('footnote-definition')||!_0x54167f['getAttribute']('id'))return;const _0x3765aa=_0x54167f['parent'];if(!_0x3765aa['is']('element','ol')||!_0x3765aa['hasClass']('footnotes-list'))return;if(!_0x6a10c5['consumable']['test'](_0x54167f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x36cfea=_0x6a10c5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54167f['getAttribute']('id')});if(!_0x6a10c5['safeInsert'](_0x36cfea,_0x24efb9['modelCursor']))return;_0x6a10c5['consumable']['consume'](_0x54167f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x32ec17=Array['from'](_0x54167f['getChildren']())['find'](_0x3800be=>_0x3800be['is']('element')&&_0x3800be['hasClass']('footnote-content'));for(const _0x4b0712 of _0x54167f['getChildren']())_0x4b0712['is']('element')&&(_0x6a10c5['consumable']['consume'](_0x4b0712,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x6a10c5['consumable']['consume'](_0x4b0712,{'name':!0x0,'classes':'footnote-content'}));if(_0x32ec17){if(_0x58d26f)_0x6a10c5['convertChildren'](_0x32ec17,_0x36cfea);else{const _0x5a2d39=_0x6a10c5['writer']['createElement']('footnoteInlineContent');_0x6a10c5['writer']['insert'](_0x5a2d39,_0x36cfea),_0x6a10c5['convertChildren'](_0x32ec17,_0x5a2d39);}}_0x6a10c5['updateConversionResult'](_0x36cfea,_0x24efb9);});}),_0x1af11c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5c5085,{writer:_0x13f557})=>b(_0x5c5085,_0x13f557,_0x3a9708,{'dataPipeline':!0x0})}),_0x1af11c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x65b3d2,{writer:_0x3052df})=>b(_0x65b3d2,_0x3052df,_0x3a9708)});}['_defineBogusParagraphConverters'](){const {editor:_0xafa293}=this,{conversion:_0x3af605}=_0xafa293;_0xafa293['config']['get']('footnotes.multiBlock')?(_0x3af605['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3af605['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xafa293['model']['document'],'change:data',()=>{!function(_0x506898,_0x36d932){const _0x127662=_0x506898['document']['differ'],_0x14d748=new Set();for(const _0x794d76 of _0x127662['getChanges']()){const _0x2ff3ad='attribute'==_0x794d76['type']?_0x794d76['range']['start']['parent']:_0x794d76['position']['parent'];_0x2ff3ad['is']('element','footnoteDefinition')&&_0x14d748['add'](_0x2ff3ad);}for(const _0x20e034 of _0x14d748['values']()){const _0x311b8d=Array['from'](_0x20e034['getChildren']())['filter'](_0x11d13f=>g(_0x11d13f,_0x36d932['mapper']));for(const _0x19d8f7 of _0x311b8d)_0x36d932['reconvertItem'](_0x19d8f7);}}(_0xafa293['model'],_0xafa293['editing']);})):(_0x3af605['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3af605['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b02de,{writer:_0x3dcd9c})=>{const _0x2087c5=_0x3dcd9c['createContainerElement']('span');return _0x3dcd9c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2087c5),_0x2087c5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1f9726}=this,{editing:_0x4a95a4,t:t}=_0x1f9726,_0x4b0e9f=_0x1f9726['model']['document']['selection'];_0x1f9726['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1f9726['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4a95a4['view']['document'],'enter',(_0x59d84f,_0xeec144)=>{const _0x1e5d83=function(_0x101451){const _0x402172=_0x101451['getSelectedElement']();if(_0x402172?.['is']('element','footnoteRef'))return _0x402172;return null;}(_0x4b0e9f);if(_0x1e5d83){const _0x2fab4d=_0x1e5d83['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2fab4d),_0xeec144['preventDefault'](),_0x59d84f['stop']();}},{'context':_0x541040});}['_defineClickHandlers'](){const {editor:_0x312b6c}=this,{editing:_0x115cd9}=_0x312b6c;_0x312b6c['editing']['view']['addObserver'](_0xdb1376),_0x312b6c['editing']['view']['addObserver'](_0x3899a5);let _0x18a7af=!0x1;this['listenTo'](_0x115cd9['view']['document'],'pointerdown',(_0x41385c,_0x37c081)=>{const {target:_0x37d67a}=_0x37c081,_0x323619=_0x115cd9['view']['document']['selection'];_0x18a7af=!!(_0x37d67a?.['is']('element','a')&&_0x37d67a['parent']?.['is']('element','sup')&&_0x37d67a['parent']['hasClass']('footnote'))&&_0x323619['getSelectedElement']()===_0x37d67a['parent'];},{'priority':'high'}),this['listenTo'](_0x115cd9['view']['document'],'click',(_0x360de7,_0x29f944)=>{const {target:_0x2cfe8d}=_0x29f944;if(!_0x2cfe8d?.['is']('element','a'))return;if(_0x2cfe8d['parent']?.['is']('element','sup')&&_0x2cfe8d['parent']['hasClass']('footnote')&&!_0x18a7af)return void _0x29f944['preventDefault']();let _0x290786=_0x2cfe8d['getAttribute']('href');if(!_0x290786?.['startsWith']('#'))return;_0x290786=_0x290786['slice'](0x1);let _0x4f3d1a=!0x1;(_0x290786['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x290786['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x290786))&&(_0x4f3d1a=!0x0),_0x4f3d1a&&(_0x29f944['preventDefault'](),_0x360de7['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3a168b}={}){return(_0x27729d,{writer:_0x5c4986})=>{if(!p(_0x27729d))return null;if(!_0x3a168b)return _0x5c4986['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x27b0a1=_0x5c4986['createContainerElement']('p');return _0x5c4986['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27b0a1),_0x27b0a1;};}function p(_0x15ee19){const {parent:_0x5776d4}=_0x15ee19;if(!_0x5776d4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5776d4['childCount'])return!0x1;for(const _0xb8f1f of _0x15ee19['getAttributeKeys']())if(!_0xb8f1f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xb8f1f)return!0x1;return!0x0;}function g(_0x18277b,_0x359734){if(!_0x18277b['is']('element','paragraph'))return!0x1;const _0x57c74c=_0x359734['toViewElement'](_0x18277b);return!!_0x57c74c&&p(_0x18277b)!==_0x57c74c['is']('element','span');}function J(_0x59fbc6){return _0x541040(_0x59fbc6)&&_0x59fbc6['is']('containerElement')&&!!_0x59fbc6['getCustomProperty']('footnotesDefinitions');}function v(_0x2e6235,_0x565e5a={}){const _0x525d48=_0x2e6235['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1475da=_0x2e6235['createContainerElement']('ol',{'class':'footnotes-list'},_0x2e6235['createSlot']());return _0x2e6235['createContainerElement']('div',{'class':'footnotes',..._0x565e5a},[_0x525d48,_0x1475da]);}function D(_0x362710,_0x3326dc){const _0x36a789=_0x362710['getAttribute']('footnoteId'),_0x2c784e=_0x362710['getAttribute']('footnoteCounter'),_0x37ee07=_0x3326dc['createUIElement']('a',{'href':'#'+_0x36a789},function(_0x371c53){const _0x489e97=this['toDomElement'](_0x371c53);return _0x489e97['textContent']=_0x2c784e,_0x489e97;}),_0x4d2b58=_0x3326dc['createContainerElement']('sup',{'id':'ref-'+_0x36a789,'class':'footnote'},[_0x37ee07]);return _0x4d2b58['getFillerOffset']=()=>null,_0x4d2b58;}function b(_0x20fcd4,_0xb9e818,_0x22cfc0,{dataPipeline:_0x59df08}={}){const {t:t}=_0x22cfc0,_0xf6891f=_0x20fcd4['getAttribute']('footnoteId'),_0x52d333=_0xb9e818['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xf6891f},function(_0x1bec92){const _0x5d1b9e=this['toDomElement'](_0x1bec92);return _0x5d1b9e['innerText']='^',_0x5d1b9e;}),_0x340f69=_0x59df08?_0xb9e818['createContainerElement']('div',{'class':'footnote-content'}):_0x4a3f5f(_0xb9e818['createEditableElement']('div',{'class':'footnote-content'}),_0xb9e818,{'label':t('Footnote\x20content.')});return _0xb9e818['insert'](_0xb9e818['createPositionAt'](_0x340f69,0x0),_0xb9e818['createSlot']()),_0xb9e818['createContainerElement']('li',{'class':'footnote-definition','id':_0xf6891f},[_0x52d333,_0x340f69]);}class e extends _0x92811c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x57a6df];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x338ef8}=this,{plugins:_0x493e19,model:_0x4aad7b}=_0x338ef8,_0x43688e=_0x493e19['get'](_0x57a6df),_0x2b5448=_0x493e19['get'](f);this['listenTo'](_0x43688e,'outputTransformation',(_0xcdff76,_0x1060d2)=>{const _0x398dba=c(_0x4aad7b['createRangeIn'](_0x1060d2['content']));if(!_0x398dba['length'])return;const _0x3b7c6c=_0x2b5448['getFootnotes'](),_0x5dede9=_0x398dba['reduce']((_0x9b8a79,_0x456d40)=>{const _0x57b52c=_0x3b7c6c['find'](_0x38caf2=>_0x38caf2['id']===_0x456d40);if(_0x57b52c){const _0x1b3f1e=_0x338ef8['data']['toView'](_0x57b52c['definition'],{'isClipboardPipeline':!0x0}),_0x18cb50=_0x338ef8['data']['htmlProcessor']['toData'](_0x1b3f1e);_0x9b8a79[_0x57b52c['id']]=_0x18cb50;}return _0x9b8a79;},Object['create'](null));_0x1060d2['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5dede9));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2387ab}=this,{model:_0x5be09c,plugins:_0x2ad542}=_0x2387ab,{view:_0x21b767}=_0x2387ab['editing'],_0x30f059=_0x2ad542['get'](_0x57a6df),_0x5d55cc=_0x2ad542['get'](f),_0x47939c=_0x2387ab['config']['get']('footnotes.multiBlock');let _0x4366a8=null;this['listenTo'](_0x21b767['document'],'clipboardInput',(_0x4abff3,_0x1dd12)=>{const _0x3afabb=_0x1dd12['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4366a8=_0x3afabb?JSON['parse'](_0x3afabb):null;}),this['listenTo'](_0x30f059,'contentInsertion',(_0x24744c,_0x285787)=>{const _0x31e4e3=_0x285787['sourceEditorId']===this['editor']['id'];_0x31e4e3&&'drop'===_0x285787['method']||_0x5be09c['change'](_0x220197=>{let _0x410a95=_0x5d55cc['getFootnotesDefinitionsObjectElement']();const _0x96de3b=!!_0x410a95&&Array['from'](_0x5be09c['document']['selection']['getSelectedBlocks']())['includes'](_0x410a95);if((_0x410a95&&!_0x96de3b||!_0x410a95&&!_0x4366a8)&&function(_0x2c8495,_0x561490){const _0x3e4127=[];for(const {item:_0x116649}of _0x2c8495['createRangeIn'](_0x561490))_0x116649['is']('element','footnotesDefinitions')&&_0x3e4127['push'](_0x116649);for(const _0x153e7c of _0x3e4127)_0x2c8495['remove'](_0x153e7c);}(_0x220197,_0x285787['content']),!_0x4366a8)return;const {selection:_0x165e2a}=_0x5be09c['document'],_0x339113=_0x165e2a['getFirstRange']()['root'];_0x410a95&&!_0x96de3b||(_0x410a95=function(_0x48f384,_0xeca194){for(const {item:_0x2ac88b}of _0x48f384['createRangeIn'](_0xeca194))if(_0x2ac88b['is']('element','footnotesDefinitions'))return _0x2ac88b;return null;}(_0x220197,_0x285787['content']),_0x410a95||=_0x5d55cc['_insertEmptyFootnotesDefinitionsContainer'](_0x220197,_0x339113));const _0x1bfc5f=Array['from'](_0x165e2a['getRanges']())['flatMap'](c),_0x2f6942=function(_0x1360fb,_0x54ae12,_0x5cfcfc){const _0x11b32e=Object['create'](null);for(const {item:_0x28b7d2}of _0x1360fb['createRangeIn'](_0x54ae12))if(_0x28b7d2['is']('element','footnoteRef')){const _0x1e768e=_0x28b7d2['getAttribute']('footnoteId');if(!_0x5cfcfc(_0x1e768e))continue;_0x11b32e[_0x1e768e]||(_0x11b32e[_0x1e768e]=_0x230239()),_0x1360fb['setAttribute']('footnoteId',_0x11b32e[_0x1e768e],_0x28b7d2);}return _0x11b32e;}(_0x220197,_0x285787['content'],_0x5f3785=>{if(!_0x31e4e3)return!0x0;return!!_0x5d55cc['getFootnote'](_0x5f3785)&&!_0x1bfc5f['includes'](_0x5f3785);});for(const [_0x3d9a0e,_0x35e0e6]of Object['entries'](_0x4366a8)){const _0x14221f=_0x2f6942[_0x3d9a0e]||_0x3d9a0e,_0x278641=_0x220197['createElement']('footnoteDefinition',{'footnoteId':_0x14221f}),_0xc012fa=_0x2387ab['data']['htmlProcessor']['toView'](_0x35e0e6);let _0x335129;if(_0x47939c)_0x335129=_0x2387ab['data']['toModel'](_0xc012fa,_0x278641);else{_0x335129=_0x220197['createElement']('footnoteInlineContent');const _0x5dceca=_0x2387ab['data']['toModel'](_0xc012fa,_0x335129);_0x220197['insert'](_0x5dceca,_0x335129);}_0x220197['append'](_0x335129,_0x278641),_0x220197['insert'](_0x278641,_0x410a95,'end');}_0x4366a8=null;});});}}function c(_0xe7bb15){const _0x52b68e=new Set();for(const {item:_0x2d886d}of _0xe7bb15)_0x2d886d['is']('element','footnoteRef')&&_0x52b68e['add'](_0x2d886d['getAttribute']('footnoteId'));return Array['from'](_0x52b68e);}class i extends _0x92811c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4425b7}=this,{componentFactory:_0x266ef2}=_0x4425b7['ui'];_0x266ef2['add']('insertFootnote',x(_0x4425b7,_0x21bacb)),_0x266ef2['add']('menuBar:insertFootnote',x(_0x4425b7,_0x1d2dde)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x123ec4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40140e;for(const _0x377f4f in _0x123ec4){const _0x236b55=_0x377f4f,_0x41b7b8=_0x123ec4[_0x236b55];if('footnotesLicenseKeyValid'==_0x41b7b8||'footnotesLicenseKeyInvalid'==_0x41b7b8||'footnotesLicenseKeyExpired'==_0x41b7b8||'footnotesLicenseKeyDomainLimit'==_0x41b7b8||'footnotesLicenseKeyNotAllowed'==_0x41b7b8||'footnotesLicenseKeyEvaluationLimit'==_0x41b7b8||'footnotesLicenseKeyTrialLimit'==_0x41b7b8||'footnotesLicenseKeyUsageLimit'==_0x41b7b8){delete _0x123ec4[_0x236b55],_0x40140e=_0x41b7b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x40140e&&_0x123ec4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x40140e&&_0x123ec4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x40140e&&_0x123ec4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x40140e&&_0x123ec4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x56bdc1,_0x706676){const _0x292c27=_0x56bdc1['commands']['get']('insertFootnote');return _0xc66484=>{const {t:t}=_0xc66484,_0x543acc=new _0x706676(_0xc66484),_0x711204=_0x543acc instanceof _0x1d2dde;return _0x543acc['bind']('isEnabled')['to'](_0x292c27,'isEnabled'),_0x543acc['set']({'label':t(_0x711204?'Footnote':'Insert\x20footnote'),'icon':_0x5c4a41,'tooltip':!0x0}),_0x543acc['on']('execute',()=>{_0x292c27['execute'](),_0x56bdc1['editing']['view']['focus']();}),_0x543acc;};}class lt extends _0x92811c{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 _0x21a9a1{['refresh'](){const {editor:_0x12fa6d}=this,_0x2a6f2a=_0x12fa6d['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2a6f2a,this['value']=_0x2a6f2a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x112267}){const {editor:_0x50ce56}=this,_0x35044d=_0x50ce56['plugins']['get'](f),_0x4f8d53=_0x35044d['getFootnotesDefinitionsObjectElement']();_0x4f8d53&&Q['includes'](_0x112267)&&_0x50ce56['model']['change'](_0x1ec0c1=>{_0x1ec0c1['setAttribute']('footnotesListStyle',_0x112267,_0x4f8d53),_0x35044d['_updateFootnotesCounters'](_0x1ec0c1);});}}class C extends _0x21a9a1{['refresh'](){const {editor:_0x114d6f}=this,_0x4318d6=_0x114d6f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4318d6,this['value']=_0x4318d6?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9e590b}){const {editor:_0x538b8b}=this,_0x3d38ae=_0x538b8b['plugins']['get'](f),_0x2af891=_0x3d38ae['getFootnotesDefinitionsObjectElement']();_0x2af891&&Number['isInteger'](_0x9e590b)&&_0x538b8b['model']['change'](_0x91159f=>{_0x91159f['setAttribute']('footnotesListStart',_0x9e590b,_0x2af891),_0x3d38ae['_updateFootnotesCounters'](_0x91159f);});}}class P extends _0x92811c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58cd86}=this;_0x58cd86['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58cd86['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58cd86['commands']['add']('footnotesStyle',new S(_0x58cd86)),_0x58cd86['commands']['add']('footnotesStart',new C(_0x58cd86)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x113107}=this,{schema:_0x28fc0a}=_0x113107['model'];_0x28fc0a['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2207e3}=this,{conversion:_0xd72d8a,model:_0x1ea280}=_0x2207e3,{schema:_0x4ede12}=_0x1ea280;_0xd72d8a['for']('upcast')['add'](_0x10b4f2=>{_0x10b4f2['on']('element:ol',(_0xb061e9,_0x40d50a,_0x345e36)=>{const _0x2e75bf=_0x40d50a['viewItem'],_0x2847d3=_0x40d50a['modelCursor']?.['parent'];_0x2e75bf['hasClass']('footnotes-list')&&_0x2847d3?.['is']('element','footnotesDefinitions')&&(function(_0x1f8cdb,_0x9de806,_0x209dc6,_0x321b11){if(!_0x321b11['checkAttribute'](_0x9de806,'footnotesListStart'))return;let _0x1c8c93=0x1;const _0x57d6a2=_0x209dc6['consumable']['consume'](_0x1f8cdb,{'attributes':'start'});if(_0x57d6a2){const _0x7f04a4=Number['parseInt'](_0x1f8cdb['getAttribute']('start'),0xa);Number['isNaN'](_0x7f04a4)||(_0x1c8c93=_0x7f04a4);}!_0x57d6a2&&_0x9de806['hasAttribute']('footnotesListStart')||_0x209dc6['writer']['setAttribute']('footnotesListStart',_0x1c8c93,_0x9de806);}(_0x2e75bf,_0x2847d3,_0x345e36,_0x4ede12),function(_0xeb9186,_0xe8df27,_0x3443f8,_0x4050e6){if(!_0x4050e6['checkAttribute'](_0xe8df27,'footnotesListStyle'))return;let _0x5af1d4='decimal',_0x2ac26f=!0x1;if(_0x3443f8['consumable']['consume'](_0xeb9186,{'attributes':'type'})){const _0xb6bfa5={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xeb9186['getAttribute']('type')];_0xb6bfa5&&(_0x5af1d4=_0xb6bfa5),_0x2ac26f=!0x0;}_0x3443f8['consumable']['consume'](_0xeb9186,{'styles':'list-style-type'})&&(_0x5af1d4=function(_0x21832a){switch(_0x21832a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x21832a;}}(_0xeb9186['getStyle']('list-style-type')),_0x2ac26f=!0x0),!_0x2ac26f&&_0xe8df27['hasAttribute']('footnotesListStyle')||_0x3443f8['writer']['setAttribute']('footnotesListStyle',_0x5af1d4,_0xe8df27);}(_0x2e75bf,_0x2847d3,_0x345e36,_0x4ede12));});}),_0xd72d8a['for']('downcast')['add'](_0x28083=>{_0x28083['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1804c8,_0x2455c3,_0x4c6a54)=>{if(!_0x4c6a54['consumable']['consume'](_0x2455c3['item'],_0x1804c8['name']))return;const _0x422acf=M(_0x2455c3['item'],_0x4c6a54['mapper']),{attributeNewValue:_0x17b924}=_0x2455c3;null==_0x17b924||0x1===_0x17b924?_0x4c6a54['writer']['removeAttribute']('start',_0x422acf):_0x4c6a54['writer']['setAttribute']('start',String(_0x17b924),_0x422acf);}),_0x28083['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x195c22,_0x4ce52e,_0xc776a0)=>{if(!_0xc776a0['consumable']['consume'](_0x4ce52e['item'],_0x195c22['name']))return;const _0x2109c8=M(_0x4ce52e['item'],_0xc776a0['mapper']),{attributeNewValue:_0x4c0f79}=_0x4ce52e;_0x4c0f79&&'decimal'!==_0x4c0f79?_0xc776a0['writer']['setStyle']('list-style-type',_0x4c0f79,_0x2109c8):_0xc776a0['writer']['removeStyle']('list-style-type',_0x2109c8);});});}['_definePostfixer'](){const {editor:_0x1183c1}=this,{model:_0x3d08e3}=_0x1183c1,_0x205a80=_0x1183c1['plugins']['get'](f),_0x451102=this['_getDefaultListStyle'](),_0x47922c=this['_getDefaultStartIndex']();_0x3d08e3['document']['registerPostFixer'](_0x153cb6=>{const _0x3834d4=_0x3d08e3['document']['differ']['getChanges']();let _0x2c0c1b=!0x1;for(const _0x5cea56 of _0x3834d4){if('insert'!==_0x5cea56['type']||'$text'===_0x5cea56['name'])continue;const _0x39c6f9=_0x3d08e3['createRangeOn'](_0x5cea56['position']['nodeAfter']);for(const _0x53f7b4 of _0x39c6f9['getItems']())_0x53f7b4['is']('element','footnotesDefinitions')&&(!_0x53f7b4['hasAttribute']('footnotesListStart')&&_0x3d08e3['schema']['checkAttribute'](_0x53f7b4,'footnotesListStart')&&(_0x153cb6['setAttribute']('footnotesListStart',_0x47922c,_0x53f7b4),_0x2c0c1b=!0x0),!_0x53f7b4['hasAttribute']('footnotesListStyle')&&_0x3d08e3['schema']['checkAttribute'](_0x53f7b4,'footnotesListStyle')&&(_0x153cb6['setAttribute']('footnotesListStyle',_0x451102,_0x53f7b4),_0x2c0c1b=!0x0));}return _0x2c0c1b&&_0x205a80['_updateFootnotesCounters'](_0x153cb6),_0x2c0c1b;});}['_defineFormatter'](){const {editor:_0x597331}=this;_0x597331['plugins']['get'](f)['setFootnoteFormatter'](_0x37ec47=>this['_formatFootnoteListValue'](_0x37ec47));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x17641d,value:_0x455d7a,digits:_0xb6c690}){const _0x363c18=_0x17641d['getAttribute']('footnotesListStyle'),_0x495d55=_0x17641d['getAttribute']('footnotesListStart'),_0x1e7a25=Math['floor'](_0x455d7a)+(_0x495d55??0x1)-0x1;switch(_0x363c18){case'decimal-leading-zero':return function(_0x3bf516,_0xe76d10){return String(_0x3bf516)['padStart'](_0xe76d10,'0');}(_0x1e7a25,Math['max'](0x2,_0xb6c690));case'lower-alpha':case'lower-latin':return N(_0x1e7a25,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1e7a25,!0x0);case'lower-roman':return X(_0x1e7a25,!0x1);case'upper-roman':return X(_0x1e7a25,!0x0);default:return String(_0x1e7a25);}}}function M(_0x37ddd9,_0x19462c){const _0x40f1b2=_0x19462c['toViewElement'](_0x37ddd9);return Array['from'](_0x40f1b2['getChildren']())['find'](_0xaaf727=>_0xaaf727['is']('element','ol')&&_0xaaf727['hasClass']('footnotes-list'));}function N(_0x3e3fa4,_0x75c949){let _0x1145d4='',_0x2e5ba4=_0x3e3fa4;for(;_0x2e5ba4>0x0;){const _0x56cd5c=(_0x2e5ba4-0x1)%0x1a;_0x1145d4=String['fromCharCode'](0x61+_0x56cd5c)+_0x1145d4,_0x2e5ba4=Math['floor']((_0x2e5ba4-0x1)/0x1a);}return _0x75c949?_0x1145d4['toUpperCase']():_0x1145d4;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x948058,_0x5b7e26){let _0xcfd9ea='',_0xeb5940=_0x948058;for(const {value:_0x509c35,numeral:_0x370097}of V)for(;_0xeb5940>=_0x509c35;)_0xcfd9ea+=_0x370097,_0xeb5940-=_0x509c35;return _0x5b7e26?_0xcfd9ea:_0xcfd9ea['toLowerCase']();}class H extends _0x550991{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4f5436();['focusCycler'];constructor(_0x3d17ed,{styleButtonViews:_0x1359a9,styleGridAriaLabel:_0x2e80da}){super(_0x3d17ed),(this['focusCycler']=new _0x3939ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1359a9,_0x2e80da),[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 _0x2ba4cf of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ba4cf['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x503cc2=_0x33ba5c=>_0x33ba5c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x503cc2),this['keystrokes']['set']('arrowleft',_0x503cc2),this['keystrokes']['set']('arrowup',_0x503cc2),this['keystrokes']['set']('arrowdown',_0x503cc2);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xefb9ec,_0xc07520){const _0x573744=new _0x550991(this['locale']);return _0x573744['children']=_0x573744['createCollection'](),_0x573744['children']['addMany'](_0xefb9ec),_0x573744['setTemplate']({'tag':'div','attributes':{'aria-label':_0xc07520,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x573744['children']}),_0x573744['children']['delegate']('execute')['to'](this),_0x573744['focus']=function(){for(const _0x1ae937 of this['children'])if(_0x1ae937 instanceof _0x21bacb&&_0x1ae937['isOn'])return void _0x1ae937['focus']();this['children']['first']['focus']();},_0x573744['focusTracker']=new ot(),_0x573744['keystrokes']=new rt(),_0x573744['render'](),_0x573744['keystrokes']['listenTo'](_0x573744['element']),this['children']['add'](_0x573744),_0x573744;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x553e32=this['_createStartIndexPropertyView'](),_0x1e214b=[_0x553e32],_0x4a16af=new st(this['locale'],_0x1e214b);return _0x4a16af['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4a16af['buttonView']['bind']('isEnabled')['toMany'](_0x1e214b,'isEnabled',(..._0xd48534)=>_0xd48534['some'](_0x54c22f=>_0x54c22f)),_0x4a16af['buttonView']['on']('change:isEnabled',(_0x470921,_0x3730a8,_0x121bdc)=>{_0x121bdc||(_0x4a16af['isCollapsed']=!0x0);}),this['children']['add'](_0x4a16af),[_0x553e32,_0x4a16af];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x59992f=new it(this['locale'],et);return _0x59992f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x59992f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x59992f['fieldView']['on']('input',()=>{const _0x47bfe3=_0x59992f['fieldView']['element'],_0xf17b8e=_0x47bfe3['valueAsNumber'];Number['isNaN'](_0xf17b8e)?_0x59992f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x47bfe3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf17b8e}):_0x59992f['errorText']=t(_0xf17b8e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x59992f;}}class j extends _0x92811c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1eaed9,_0x172b2b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b0048}=this,{componentFactory:_0x11d667}=_0x3b0048['ui'];_0x3b0048['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x11d667['add']('footnotesStyle',function(_0x28991a){return _0x295e8a=>{const {t:t}=_0x295e8a,_0xfc9189=_0x28991a['commands']['get']('footnotesStyle'),_0x2f9802=_0x1d234f(_0x295e8a),{buttonView:_0x4e2d4f}=_0x2f9802;return _0x2f9802['class']='ck-footnotes-styles-dropdown',_0x2f9802['bind']('isEnabled')['to'](_0xfc9189,'isEnabled'),_0x4e2d4f['set']({'label':t('Footnotes\x20style'),'icon':_0x5c4a41,'tooltip':!0x0}),_0x2f9802['once']('change:isOpen',()=>{const _0x1339eb=function({editor:_0x41acd8,dropdownView:_0x580a47}){const {t:t}=_0x41acd8['locale'],_0x333464=t('Footnotes\x20definitions\x20styles'),_0x206af2=function(_0x11f52e){const t=_0x11f52e['locale']['t'],_0x4592da=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x474b80},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4518e9},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4153fd},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x219a60},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x555b26},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x378945}];return _0x4592da['map'](function(_0x1f876a){const _0x405193=_0x1f876a['locale'];return({label:_0x2bb986,icon:_0x724047,tooltip:_0xdd1f67,style:_0x43fe9c})=>{const _0x2d1cbf=_0x1f876a['commands']['get']('footnotesStyle'),_0xd7d1b7=new _0x21bacb(_0x405193);return _0xd7d1b7['set']({'label':_0x2bb986,'icon':_0x724047,'tooltip':_0xdd1f67}),_0xd7d1b7['bind']('isOn')['to'](_0x2d1cbf,'value',_0x3421ab=>_0x3421ab===_0x43fe9c),_0xd7d1b7['bind']('isEnabled')['to'](_0x2d1cbf,'isEnabled'),_0xd7d1b7['on']('execute',()=>{_0x1f876a['execute']('footnotesStyle',{'value':_0x43fe9c}),_0x1f876a['editing']['view']['focus']();}),_0xd7d1b7;};}(_0x11f52e));}(_0x41acd8),_0x490d51=new H(_0x41acd8['locale'],{'styleGridAriaLabel':_0x333464,'styleButtonViews':_0x206af2}),_0x24e317=_0x41acd8['commands']['get']('footnotesStart');return _0x490d51['startIndexFieldView']['bind']('isEnabled')['to'](_0x24e317),_0x490d51['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x24e317),_0x490d51['on']('footnotesListStart',(_0x1b876c,_0x4663d4)=>{_0x41acd8['execute']('footnotesStart',{'value':_0x4663d4['startIndex']});}),_0x490d51['delegate']('execute')['to'](_0x580a47),_0x490d51;}({'editor':_0x28991a,'dropdownView':_0x2f9802});_0x2f9802['panelView']['children']['add'](_0x1339eb);}),_0x2f9802;};}(_0x3b0048));}['afterInit'](){const {editor:_0x2cc59a}=this,{t:t}=_0x2cc59a['locale'],_0x4f4e3f=_0x2cc59a['plugins']['get'](_0x172b2b),{defaultPositions:_0xe4e7a7}=_0x57bf32;_0x4f4e3f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2cc59a['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc93f10=>{let _0x238117=_0xc93f10['getFirstPosition']()?.['parent'];return _0x238117?.['is']('$text')&&(_0x238117=_0x238117['parent']),_0x238117?.['is']('element')?_0x238117['findAncestor'](J):null;},'positions':[_0xe4e7a7['southArrowNorth'],_0xe4e7a7['southArrowNorthMiddleWest'],_0xe4e7a7['southArrowNorthMiddleEast'],_0xe4e7a7['southArrowNorthWest'],_0xe4e7a7['southArrowNorthEast'],_0xe4e7a7['northArrowSouth'],_0xe4e7a7['northArrowSouthMiddleWest'],_0xe4e7a7['northArrowSouthMiddleEast'],_0xe4e7a7['northArrowSouthWest'],_0xe4e7a7['northArrowSouthEast'],_0xe4e7a7['viewportStickyNorth']]});}}class ft extends _0x92811c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.3.0-alpha.
|
|
3
|
+
"version": "47.3.0-alpha.5",
|
|
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": "47.3.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.
|
|
33
|
-
"ckeditor5": "47.3.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
|
|
33
|
+
"ckeditor5": "47.3.0-alpha.5"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1da294}from'ckeditor5/src/core.js';import{isWidget as _0x4935a2,toWidget as _0xf73112,toWidgetEditable as _0x3bcfdb}from'ckeditor5/src/widget.js';import{uid as _0x3c3e6e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x69af88,ClickObserver as _0x4acf62}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2dd6a5}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x154438}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1da294{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2dd6a5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x36cd2d}=this;_0x36cd2d['config']['define']('footnotes.multiBlock',!0x0),_0x36cd2d['commands']['add']('insertFootnote',new _0x154438(_0x36cd2d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x41e67d){const _0x54079f=_0x2d1ad4([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]),_0x3be724=0x47a28506,_0x4cc3eb=0x47a5ff7e^_0x3be724,_0x5bed4b=window[_0x2d1ad4([0x44,0x61,0x74,0x65])][_0x2d1ad4([0x6e,0x6f,0x77])](),_0x34d788=_0x41e67d[_0x2d1ad4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d5119=new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4a5d=>{_0x34d788[_0x2d1ad4([0x6f,0x6e,0x63,0x65])](_0x2d1ad4([0x72,0x65,0x61,0x64,0x79]),_0x1c4a5d);}),_0x2ec539={[_0x2d1ad4([0x6b,0x74,0x79])]:_0x2d1ad4([0x45,0x43]),[_0x2d1ad4([0x75,0x73,0x65])]:_0x2d1ad4([0x73,0x69,0x67]),[_0x2d1ad4([0x63,0x72,0x76])]:_0x2d1ad4([0x50,0x2d,0x32,0x35,0x36]),[_0x2d1ad4([0x78])]:_0x2d1ad4([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]),[_0x2d1ad4([0x79])]:_0x2d1ad4([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]),[_0x2d1ad4([0x61,0x6c,0x67])]:_0x2d1ad4([0x45,0x53,0x32,0x35,0x36])},_0x11509a=_0x34d788[_0x2d1ad4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d1ad4([0x67,0x65,0x74])](_0x2d1ad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x176e51(){let _0x16650c,_0x12122d=null,_0xcad4af=null;try{if(_0x11509a==_0x2d1ad4([0x47,0x50,0x4c]))return _0x2d1ad4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16650c=_0x3b3eac(),!_0x16650c)return _0x2d1ad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16650c[_0x2d1ad4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcad4af=_0x37808d(_0x16650c[_0x2d1ad4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16650c[_0x2d1ad4([0x6a,0x74,0x69])])),await _0x292aab()?_0x2c713f()?_0x9d7267()?_0x2d1ad4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x368af8()?(_0x16650c[_0x2d1ad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d1ad4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12122d=_0x479857(_0x2d1ad4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16650c[_0x2d1ad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d1ad4([0x74,0x72,0x69,0x61,0x6c])&&(_0x12122d=_0x479857(_0x2d1ad4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd1cae1()):_0x2d1ad4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d1ad4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d1ad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d1ad4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9d7267(){const _0x580160=[_0x2d1ad4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d1ad4([0x74,0x72,0x69,0x61,0x6c])][_0x2d1ad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16650c[_0x2d1ad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bed4b/0x3e8:0xe10*_0x4cc3eb;return _0x16650c[_0x2d1ad4([0x65,0x78,0x70])]<_0x580160;}function _0x2c713f(){const _0x4a53c1=_0x16650c[_0x2d1ad4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a53c1&&(!!_0x4a53c1[_0x2d1ad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d1ad4([0x2a]))||!!_0x4a53c1[_0x2d1ad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d1ad4([0x46,0x4f,0x4f])));}function _0x368af8(){const _0x483f8d=_0x16650c[_0x2d1ad4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x483f8d||0x0==_0x483f8d[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e5636}=new URL(window[_0x2d1ad4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x483f8d[_0x2d1ad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5636))return!0x0;const _0x3360ef=_0x2e5636[_0x2d1ad4([0x73,0x70,0x6c,0x69,0x74])](_0x2d1ad4([0x2e]));return _0x483f8d[_0x2d1ad4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ba9d1=>_0x2ba9d1[_0x2d1ad4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d1ad4([0x2a])))[_0x2d1ad4([0x6d,0x61,0x70])](_0x546085=>_0x546085[_0x2d1ad4([0x73,0x70,0x6c,0x69,0x74])](_0x2d1ad4([0x2e])))[_0x2d1ad4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x67d662=>_0x67d662[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3360ef[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d1ad4([0x6d,0x61,0x70])](_0x10ca31=>Array(_0x3360ef[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10ca31[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d1ad4([0x66,0x69,0x6c,0x6c])](_0x10ca31[0x0]===_0x2d1ad4([0x2a])?_0x2d1ad4([0x2a]):'')[_0x2d1ad4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10ca31))[_0x2d1ad4([0x73,0x6f,0x6d,0x65])](_0x35e15b=>_0x3360ef[_0x2d1ad4([0x65,0x76,0x65,0x72,0x79])]((_0x2230bb,_0x447265)=>_0x35e15b[_0x447265]===_0x2230bb||_0x35e15b[_0x447265]===_0x2d1ad4([0x2a])));}function _0xd1cae1(){return _0x12122d&&_0xcad4af?new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd8da8f,_0x3a22f9)=>{_0x12122d[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0xd8da8f,_0x3a22f9),_0xcad4af[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0x52d0d7=>{_0x52d0d7!=_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64])&&_0xd8da8f(_0x52d0d7);},_0x3a22f9);}):_0x12122d||_0xcad4af||_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37808d(_0x13c14b,_0x473cf3){return new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ebdde=>{if(_0x2689ed())return _0x1ebdde(_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64]));_0x4bd886(),_0x34d788[_0x2d1ad4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d1ad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x314420=!0x1;const _0x3c4c06=_0x3c3e6e();function _0x497099(_0x9c5aac){return!!_0x9c5aac&&(typeof _0x9c5aac===_0x2d1ad4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9c5aac===_0x2d1ad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9c5aac[_0x2d1ad4([0x74,0x68,0x65,0x6e])]===_0x2d1ad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9c5aac[_0x2d1ad4([0x63,0x61,0x74,0x63,0x68])]===_0x2d1ad4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb344c4(_0x5512a3){_0x26e7b2(_0x5512a3)[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0x472207=>{if(!_0x472207||_0x472207[_0x2d1ad4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d1ad4([0x6f,0x6b]))return _0x2d1ad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x585065(_0x3932c0(_0x3c4c06+_0x473cf3))!=_0x472207[_0x2d1ad4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d1ad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0x12913f=>(_0x5d9e7f(),_0x12913f),()=>{const _0xec07ac=_0x3ffa67();return null==_0xec07ac?(_0x5d9e7f(),_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64])):_0x2d1ad4(_0x5bed4b-_0xec07ac>(0x63ae0106^_0x3be724)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0x1ebdde)[_0x2d1ad4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ebdde(_0x2d1ad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38b1ea=0x47946b86^_0x3be724;function _0x5d9e7f(){const _0x27702d=_0x2d1ad4([0x6c,0x6c,0x63,0x74,0x2d])+_0x585065(_0x3932c0(_0x13c14b)),_0x55e1f1=_0x1b9f8f(_0x585065(window[_0x2d1ad4([0x4d,0x61,0x74,0x68])][_0x2d1ad4([0x63,0x65,0x69,0x6c])](_0x5bed4b/_0x38b1ea)));window[_0x2d1ad4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d1ad4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27702d,_0x55e1f1);}function _0x3ffa67(){const _0x297ac4=_0x2d1ad4([0x6c,0x6c,0x63,0x74,0x2d])+_0x585065(_0x3932c0(_0x13c14b)),_0x5e3784=window[_0x2d1ad4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d1ad4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x297ac4);return _0x5e3784?window[_0x2d1ad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b9f8f(_0x5e3784),0x10)*_0x38b1ea:null;}function _0x26e7b2(_0x4601f9){return new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x285fdb,_0x28eeb4)=>{_0x4601f9[_0x2d1ad4([0x74,0x68,0x65,0x6e])](_0x285fdb,_0x28eeb4),window[_0x2d1ad4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28eeb4,0x47a351c6^_0x3be724);});}}_0x34d788[_0x2d1ad4([0x6f,0x6e])](_0x2d1ad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfd1135,_0x2e8708)=>{if(_0x2e8708[0x0]!=_0x13c14b)return _0x1ebdde(_0x2d1ad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e8708[0x1]={..._0x2e8708[0x1],[_0x2d1ad4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c4c06};},{[_0x2d1ad4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d1ad4([0x68,0x69,0x67,0x68])}),_0x34d788[_0x2d1ad4([0x6f,0x6e])](_0x2d1ad4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x118e67=>{_0x497099(_0x118e67[_0x2d1ad4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x314420=!0x0,_0xb344c4(_0x118e67[_0x2d1ad4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d1ad4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d1ad4([0x6c,0x6f,0x77])}),_0x5d5119[_0x2d1ad4([0x74,0x68,0x65,0x6e])](()=>{_0x314420||_0x1ebdde(_0x2d1ad4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2689ed(){return _0x34d788[_0x2d1ad4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d1ad4([0x76,0x69,0x65,0x77])][_0x2d1ad4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d1ad4([0x61,0x75,0x74,0x6f]);}function _0x4bd886(){_0x34d788[_0x2d1ad4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d1ad4([0x76,0x69,0x65,0x77])][_0x2d1ad4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d1ad4([0x61,0x75,0x74,0x6f]);}}function _0x479857(_0x5a679a){const _0x2de716=[new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb6d60f=>setTimeout(_0xb6d60f,0x47abbbca^_0x3be724)),_0x5d5119[_0x2d1ad4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26776e=>{let _0x554d2c=0x0;_0x34d788[_0x2d1ad4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d1ad4([0x6f,0x6e])](_0x2d1ad4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fc6be,_0x53c3d3)=>{_0x53c3d3[0x0][_0x2d1ad4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x554d2c++,_0x554d2c==(0x47a284fe^_0x3be724)&&(_0x26776e(),_0x1fc6be[_0x2d1ad4([0x6f,0x66,0x66])]());});}))];return window[_0x2d1ad4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d1ad4([0x72,0x61,0x63,0x65])](_0x2de716)[_0x2d1ad4([0x74,0x68,0x65,0x6e])](()=>_0x5a679a);}async function _0xb5ddea(){await _0x5d5119,_0x34d788[_0x2d1ad4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d1ad4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20fa8a,_0x34d788[_0x2d1ad4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d1ad4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20fa8a,_0x34d788[_0x2d1ad4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d1ad4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fc427(_0x574862){const _0xc71a6a=_0x2029f1();_0x34d788[_0xc71a6a]=_0x2d1ad4([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x574862,_0x574862!=_0x2d1ad4([0x56,0x61,0x6c,0x69,0x64])&&_0xb5ddea();}function _0x2029f1(){const _0x17b9b4=window[_0x2d1ad4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d1ad4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d1ad4([0x6e,0x6f,0x77])]())[_0x2d1ad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d1ad4([0x2e]),'');let _0x57b8e8=_0x2d1ad4([0x75]);for(let _0x19b73a=0x0;_0x19b73a<_0x17b9b4[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19b73a+=0x2){let _0x534ee7=window[_0x2d1ad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b9b4[_0x2d1ad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19b73a,_0x19b73a+0x2));_0x534ee7>=_0x54079f[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x534ee7-=_0x54079f[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57b8e8+=_0x54079f[_0x534ee7];}return _0x57b8e8;}function _0x3b3eac(){const _0x4ca5f7=_0x11509a[_0x2d1ad4([0x73,0x70,0x6c,0x69,0x74])](_0x2d1ad4([0x2e]));if(0x3!=_0x4ca5f7[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2909d5(_0x4ca5f7[0x1]);function _0x2909d5(_0x5784f7){const _0x4b2056=_0x332c5e(_0x5784f7);return _0x4b2056&&_0x1c0d11()?_0x4b2056:null;function _0x1c0d11(){const _0x570057=_0x4b2056[_0x2d1ad4([0x6a,0x74,0x69])],_0x45b225=window[_0x2d1ad4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x570057[_0x2d1ad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570057[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xda241c={..._0x4b2056,[_0x2d1ad4([0x6a,0x74,0x69])]:_0x570057[_0x2d1ad4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x570057[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xda241c[_0x2d1ad4([0x76,0x63])],_0x3932c0(_0xda241c)==_0x45b225;}}}async function _0x292aab(){let _0x2083c4=!0x0;try{const _0x2953ea=_0x11509a[_0x2d1ad4([0x73,0x70,0x6c,0x69,0x74])](_0x2d1ad4([0x2e])),[_0x4a3960,_0x425ead,_0x1bcfb4]=_0x2953ea;return _0x30c212(_0x4a3960),await _0x734929(_0x4a3960,_0x425ead,_0x1bcfb4),_0x2083c4;}catch{return!0x1;}function _0x30c212(_0x411804){const _0x2ef656=_0x332c5e(_0x411804);_0x2ef656&&_0x2ef656[_0x2d1ad4([0x61,0x6c,0x67])]==_0x2d1ad4([0x45,0x53,0x32,0x35,0x36])||(_0x2083c4=!0x1);}async function _0x734929(_0x209e56,_0x1701ac,_0x1dff13){const _0xfda5c0=window[_0x2d1ad4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d1ad4([0x66,0x72,0x6f,0x6d])](_0x25bcd5(_0x1dff13),_0x382263=>_0x382263[_0x2d1ad4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x970921=new window[(_0x2d1ad4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d1ad4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209e56+_0x2d1ad4([0x2e])+_0x1701ac),_0x498182=window[_0x2d1ad4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d1ad4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x498182)return;const _0x3ac619=await _0x498182[_0x2d1ad4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d1ad4([0x6a,0x77,0x6b]),_0x2ec539,{[_0x2d1ad4([0x6e,0x61,0x6d,0x65])]:_0x2d1ad4([0x45,0x43,0x44,0x53,0x41]),[_0x2d1ad4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d1ad4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d1ad4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x498182[_0x2d1ad4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d1ad4([0x6e,0x61,0x6d,0x65])]:_0x2d1ad4([0x45,0x43,0x44,0x53,0x41]),[_0x2d1ad4([0x68,0x61,0x73,0x68])]:{[_0x2d1ad4([0x6e,0x61,0x6d,0x65])]:_0x2d1ad4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ac619,_0xfda5c0,_0x970921)||(_0x2083c4=!0x1);}}function _0x332c5e(_0x18741a){return _0x18741a[_0x2d1ad4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d1ad4([0x65,0x79]))?JSON[_0x2d1ad4([0x70,0x61,0x72,0x73,0x65])](_0x25bcd5(_0x18741a)):null;}function _0x25bcd5(_0x2d2cf8){return window[_0x2d1ad4([0x61,0x74,0x6f,0x62])](_0x2d2cf8[_0x2d1ad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d1ad4([0x2b]))[_0x2d1ad4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d1ad4([0x2f])));}function _0x3932c0(_0x3b3b44){let _0x2e1666=0x1505;function _0x216bfb(_0x359676){for(let _0x3ae46f=0x0;_0x3ae46f<_0x359676[_0x2d1ad4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae46f++){const _0x516125=_0x359676[_0x2d1ad4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ae46f);_0x2e1666=(_0x2e1666<<0x5)+_0x2e1666+_0x516125,_0x2e1666&=_0x2e1666;}}function _0x5ef00d(_0x383a1c){Array[_0x2d1ad4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x383a1c)?_0x383a1c[_0x2d1ad4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef00d):_0x383a1c&&typeof _0x383a1c==_0x2d1ad4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d1ad4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x383a1c)[_0x2d1ad4([0x73,0x6f,0x72,0x74])]()[_0x2d1ad4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb1b554,_0x34ade3])=>{_0x216bfb(_0xb1b554),_0x5ef00d(_0x34ade3);}):_0x216bfb(window[_0x2d1ad4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x383a1c));}return _0x5ef00d(_0x3b3b44),_0x2e1666>>>0x0;}function _0x585065(_0xcd4fad){return _0xcd4fad[_0x2d1ad4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d1ad4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d1ad4([0x30]));}function _0x1b9f8f(_0x254553){return _0x254553[_0x2d1ad4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d1ad4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d1ad4([0x6a,0x6f,0x69,0x6e])]('');}function _0x20fa8a(){}function _0x2d1ad4(_0x4febf6){return _0x4febf6['map'](_0x358d62=>String['fromCharCode'](_0x358d62))['join']('');}_0x1fc427(await _0x176e51());}(this);}['_moveSelectionToFootnoteDefinition'](_0x285e7b){const {plugins:_0x542ef4,editing:_0x13d81a,model:_0x2a7907}=this['editor'],_0x2fe882=_0x542ef4['get'](_0x2dd6a5)['getFootnote'](_0x285e7b);return!!_0x2fe882&&(_0x2a7907['change'](_0x22c221=>{_0x22c221['setSelection'](_0x22c221['createPositionAt'](_0x2fe882['definition'],'end'));}),_0x13d81a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x282bb6){const {plugins:_0x36ef71,editing:_0x2c9c8c,model:_0x365da5}=this['editor'],_0x2b38d7=_0x36ef71['get'](_0x2dd6a5)['getFootnote'](_0x282bb6);return!!_0x2b38d7&&(_0x365da5['change'](_0x3f7a03=>{_0x3f7a03['setSelection'](_0x2b38d7['reference'],'on');}),_0x2c9c8c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xf67804}=this['editor']['model'],_0x191f93=this['editor']['config']['get']('footnotes.multiBlock');_0xf67804['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xf67804['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xf67804['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x191f93?_0xf67804['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xf67804['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xf67804['addChildCheck'](_0x11e0b0=>{for(const _0xae92a1 of _0x11e0b0)if('footnoteDefinition'===_0xae92a1['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4ebaa5}=this,{conversion:_0x641c28,editing:_0x2cf31c}=_0x4ebaa5,{t:t}=_0x4ebaa5['locale'];_0x641c28['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x256e8d,{writer:_0x419d52,consumable:_0x563670})=>{const _0x59d670=_0x256e8d['getChild'](0x0);if(!_0x59d670||!_0x59d670['is']('element','a'))return null;const _0x33e3cc=_0x59d670['getAttribute']('href')||'';if(!_0x33e3cc['startsWith']('#'))return null;const _0x40b33d=_0x33e3cc['replace'](/^#/,'');if(!_0x40b33d)return null;_0x563670['consume'](_0x59d670,{'name':!0x0,'attributes':['href']});for(const {item:_0x2d85cc}of _0x2cf31c['view']['createRangeIn'](_0x59d670))_0x2d85cc['is']('$textProxy')?_0x563670['consume'](_0x2d85cc['textNode'],{'name':!0x0}):_0x2d85cc['is']('element')&&_0x563670['consume'](_0x2d85cc,{'name':!0x0});return _0x419d52['createElement']('footnoteRef',{'footnoteId':_0x40b33d});}}),_0x641c28['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x13259,{writer:_0x12cfa9})=>D(_0x13259,_0x12cfa9)}),_0x641c28['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2adf07,{writer:_0x4eda28})=>{const _0x2baf12=_0x2adf07['getAttribute']('footnoteCounter');return _0xf73112(D(_0x2adf07,_0x4eda28),_0x4eda28,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2baf12)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3fecea}=this,{t:t}=_0x3fecea['locale'],{conversion:_0x4c61ec}=_0x3fecea;_0x4c61ec['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4c61ec['for']('upcast')['add'](_0x22cc2f=>{_0x22cc2f['on']('element:ol',(_0xb36b79,_0x3c1a6a,_0x770b03)=>{const _0x50d6f9=_0x3c1a6a['viewItem'];if(!_0x50d6f9['hasClass']('footnotes-list')||!_0x3c1a6a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x770b03['consumable']['consume'](_0x50d6f9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4900ad,modelCursor:_0x2eb7da}=_0x770b03['convertChildren'](_0x3c1a6a['viewItem'],_0x3c1a6a['modelCursor']);_0x3c1a6a['modelRange']=_0x4900ad,_0x3c1a6a['modelCursor']=_0x2eb7da;}),_0x22cc2f['on']('element:hr',(_0xda260c,_0xce11f0,_0x362aa6)=>{const _0x3f1421=_0xce11f0['viewItem'];_0x3f1421['hasClass']('footnotes-divider')&&_0xce11f0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x362aa6['consumable']['consume'](_0x3f1421,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4c61ec['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x120e97,{writer:_0x5795b3})=>v(_0x5795b3)}),_0x4c61ec['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xa81b61,{writer:_0x224bc7})=>{const _0x3298f4=v(_0x224bc7,{'data-footnotes-list-label':t('Footnotes')}),_0x27d97b=_0xf73112(_0x3298f4,_0x224bc7,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x224bc7['setCustomProperty']('footnotesDefinitions',!0x0,_0x27d97b),_0x27d97b;}});}['_defineDefinitionConverters'](){const {editor:_0x4630d5}=this,{conversion:_0x7a35f1,locale:_0x26910e}=_0x4630d5,_0x3fc8cd=_0x4630d5['config']['get']('footnotes.multiBlock');_0x7a35f1['for']('upcast')['add'](_0x333807=>{_0x333807['on']('element:li',(_0x32e861,_0x261094,_0x281466)=>{const _0x11b092=_0x261094['viewItem'];if(!_0x11b092['hasClass']('footnote-definition')||!_0x11b092['getAttribute']('id'))return;const _0x1a0d83=_0x11b092['parent'];if(!_0x1a0d83['is']('element','ol')||!_0x1a0d83['hasClass']('footnotes-list'))return;if(!_0x281466['consumable']['test'](_0x11b092,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x6a8d95=_0x281466['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x11b092['getAttribute']('id')});if(!_0x281466['safeInsert'](_0x6a8d95,_0x261094['modelCursor']))return;_0x281466['consumable']['consume'](_0x11b092,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1381ac=Array['from'](_0x11b092['getChildren']())['find'](_0x48aed5=>_0x48aed5['is']('element')&&_0x48aed5['hasClass']('footnote-content'));for(const _0x433167 of _0x11b092['getChildren']())_0x433167['is']('element')&&(_0x281466['consumable']['consume'](_0x433167,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x281466['consumable']['consume'](_0x433167,{'name':!0x0,'classes':'footnote-content'}));if(_0x1381ac){if(_0x3fc8cd)_0x281466['convertChildren'](_0x1381ac,_0x6a8d95);else{const _0x1793a5=_0x281466['writer']['createElement']('footnoteInlineContent');_0x281466['writer']['insert'](_0x1793a5,_0x6a8d95),_0x281466['convertChildren'](_0x1381ac,_0x1793a5);}}_0x281466['updateConversionResult'](_0x6a8d95,_0x261094);});}),_0x7a35f1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4c9b47,{writer:_0x346bc8})=>b(_0x4c9b47,_0x346bc8,_0x26910e,{'dataPipeline':!0x0})}),_0x7a35f1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x29b225,{writer:_0xc69bb5})=>b(_0x29b225,_0xc69bb5,_0x26910e)});}['_defineBogusParagraphConverters'](){const {editor:_0x616fae}=this,{conversion:_0x285413}=_0x616fae;_0x616fae['config']['get']('footnotes.multiBlock')?(_0x285413['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x285413['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x616fae['model']['document'],'change:data',()=>{!function(_0x3734b2,_0x5b8456){const _0x59364c=_0x3734b2['document']['differ'],_0x463049=new Set();for(const _0x4ec94b of _0x59364c['getChanges']()){const _0x13774a='attribute'==_0x4ec94b['type']?_0x4ec94b['range']['start']['parent']:_0x4ec94b['position']['parent'];_0x13774a['is']('element','footnoteDefinition')&&_0x463049['add'](_0x13774a);}for(const _0x46b48f of _0x463049['values']()){const _0x33e707=Array['from'](_0x46b48f['getChildren']())['filter'](_0x3cc07d=>g(_0x3cc07d,_0x5b8456['mapper']));for(const _0x3b5489 of _0x33e707)_0x5b8456['reconvertItem'](_0x3b5489);}}(_0x616fae['model'],_0x616fae['editing']);})):(_0x285413['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x285413['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x160f24,{writer:_0x443816})=>{const _0x154f6c=_0x443816['createContainerElement']('span');return _0x443816['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x154f6c),_0x154f6c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x402f41}=this,{editing:_0x3f838b,t:t}=_0x402f41,_0x176704=_0x402f41['model']['document']['selection'];_0x402f41['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x402f41['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3f838b['view']['document'],'enter',(_0x590620,_0xac69a0)=>{const _0x54e22d=function(_0x3e6d78){const _0x41081c=_0x3e6d78['getSelectedElement']();if(_0x41081c?.['is']('element','footnoteRef'))return _0x41081c;return null;}(_0x176704);if(_0x54e22d){const _0x119606=_0x54e22d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x119606),_0xac69a0['preventDefault'](),_0x590620['stop']();}},{'context':_0x4935a2});}['_defineClickHandlers'](){const {editor:_0x252b4b}=this,{editing:_0x378168}=_0x252b4b;_0x252b4b['editing']['view']['addObserver'](_0x69af88),_0x252b4b['editing']['view']['addObserver'](_0x4acf62);let _0x30ae28=!0x1;this['listenTo'](_0x378168['view']['document'],'pointerdown',(_0xc0ad7b,_0x182e61)=>{const {target:_0x59ae28}=_0x182e61,_0x34c76f=_0x378168['view']['document']['selection'];_0x30ae28=!!(_0x59ae28?.['is']('element','a')&&_0x59ae28['parent']?.['is']('element','sup')&&_0x59ae28['parent']['hasClass']('footnote'))&&_0x34c76f['getSelectedElement']()===_0x59ae28['parent'];},{'priority':'high'}),this['listenTo'](_0x378168['view']['document'],'click',(_0x5a3f8c,_0x20ea59)=>{const {target:_0x3ec219}=_0x20ea59;if(!_0x3ec219?.['is']('element','a'))return;if(_0x3ec219['parent']?.['is']('element','sup')&&_0x3ec219['parent']['hasClass']('footnote')&&!_0x30ae28)return void _0x20ea59['preventDefault']();let _0x44b213=_0x3ec219['getAttribute']('href');if(!_0x44b213?.['startsWith']('#'))return;_0x44b213=_0x44b213['slice'](0x1);let _0x4a8e71=!0x1;(_0x44b213['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x44b213['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x44b213))&&(_0x4a8e71=!0x0),_0x4a8e71&&(_0x20ea59['preventDefault'](),_0x5a3f8c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5447c6}={}){return(_0x404e29,{writer:_0x3df941})=>{if(!p(_0x404e29))return null;if(!_0x5447c6)return _0x3df941['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1a6ad5=_0x3df941['createContainerElement']('p');return _0x3df941['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1a6ad5),_0x1a6ad5;};}function p(_0x3b2340){const {parent:_0x17dd0e}=_0x3b2340;if(!_0x17dd0e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x17dd0e['childCount'])return!0x1;for(const _0x2dce1e of _0x3b2340['getAttributeKeys']())if(!_0x2dce1e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2dce1e)return!0x1;return!0x0;}function g(_0x1afd5c,_0x1735a0){if(!_0x1afd5c['is']('element','paragraph'))return!0x1;const _0x59b61a=_0x1735a0['toViewElement'](_0x1afd5c);return!!_0x59b61a&&p(_0x1afd5c)!==_0x59b61a['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x39f033){return _0x4935a2(_0x39f033)&&_0x39f033['is']('containerElement')&&!!_0x39f033['getCustomProperty']('footnotesDefinitions');}function v(_0x18841b,_0x5748d3={}){const _0x4e9a7d=_0x18841b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x20306b=_0x18841b['createContainerElement']('ol',{'class':'footnotes-list'},_0x18841b['createSlot']());return _0x18841b['createContainerElement']('div',{'class':'footnotes',..._0x5748d3},[_0x4e9a7d,_0x20306b]);}function D(_0x1236b1,_0x1413b3){const _0xfd838c=_0x1236b1['getAttribute']('footnoteId'),_0x383719=_0x1236b1['getAttribute']('footnoteCounter'),_0x20215a=_0x1413b3['createUIElement']('a',{'href':'#'+_0xfd838c},function(_0x5086df){const _0xa762fc=this['toDomElement'](_0x5086df);return _0xa762fc['textContent']=_0x383719,_0xa762fc;}),_0x9e5609=_0x1413b3['createContainerElement']('sup',{'id':'ref-'+_0xfd838c,'class':'footnote'},[_0x20215a]);return _0x9e5609['getFillerOffset']=()=>null,_0x9e5609;}function b(_0x5b4062,_0x1f7d11,_0x4de626,{dataPipeline:_0x526e37}={}){const {t:t}=_0x4de626,_0x286239=_0x5b4062['getAttribute']('footnoteId'),_0x1d199e=_0x1f7d11['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x286239},function(_0x31fc54){const _0x2b4fdb=this['toDomElement'](_0x31fc54);return _0x2b4fdb['innerText']='^',_0x2b4fdb;}),_0x18e977=_0x526e37?_0x1f7d11['createContainerElement']('div',{'class':'footnote-content'}):_0x3bcfdb(_0x1f7d11['createEditableElement']('div',{'class':'footnote-content'}),_0x1f7d11,{'label':t('Footnote\x20content.')});return _0x1f7d11['insert'](_0x1f7d11['createPositionAt'](_0x18e977,0x0),_0x1f7d11['createSlot']()),_0x1f7d11['createContainerElement']('li',{'class':'footnote-definition','id':_0x286239},[_0x1d199e,_0x18e977]);}
|
|
23
|
+
import{Plugin as _0x1192ba}from'ckeditor5/src/core.js';import{isWidget as _0x76c9e7,toWidget as _0x2d459c,toWidgetEditable as _0x408522}from'ckeditor5/src/widget.js';import{uid as _0x2205e7}from'ckeditor5/src/utils.js';import{PointerObserver as _0x127257,ClickObserver as _0x4a6a69}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x12962d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2ccf20}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1192ba{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x12962d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2988fa}=this;_0x2988fa['config']['define']('footnotes.multiBlock',!0x0),_0x2988fa['commands']['add']('insertFootnote',new _0x2ccf20(_0x2988fa)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1d30f2){const _0x1381be=_0x1f962c([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]),_0x4fab72=0x47a28506,_0x2599d2=0x47a5ffae^_0x4fab72,_0x5c2dfe=window[_0x1f962c([0x44,0x61,0x74,0x65])][_0x1f962c([0x6e,0x6f,0x77])](),_0x262c63=_0x1d30f2[_0x1f962c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ae08e=new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd2e3=>{_0x262c63[_0x1f962c([0x6f,0x6e,0x63,0x65])](_0x1f962c([0x72,0x65,0x61,0x64,0x79]),_0x1cd2e3);}),_0x3d3131={[_0x1f962c([0x6b,0x74,0x79])]:_0x1f962c([0x45,0x43]),[_0x1f962c([0x75,0x73,0x65])]:_0x1f962c([0x73,0x69,0x67]),[_0x1f962c([0x63,0x72,0x76])]:_0x1f962c([0x50,0x2d,0x32,0x35,0x36]),[_0x1f962c([0x78])]:_0x1f962c([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]),[_0x1f962c([0x79])]:_0x1f962c([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]),[_0x1f962c([0x61,0x6c,0x67])]:_0x1f962c([0x45,0x53,0x32,0x35,0x36])},_0x1fdce2=_0x262c63[_0x1f962c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f962c([0x67,0x65,0x74])](_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x16ed8c(){let _0x5b3097,_0x3b7fe7=null,_0x57043f=null;try{if(_0x1fdce2==_0x1f962c([0x47,0x50,0x4c]))return _0x1f962c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3097=_0x2de944(),!_0x5b3097)return _0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3097[_0x1f962c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57043f=_0x5cff99(_0x5b3097[_0x1f962c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3097[_0x1f962c([0x6a,0x74,0x69])])),await _0x5b1c83()?_0x45da6e()?_0x59557a()?_0x1f962c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44fbdf()?(_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f962c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b7fe7=_0x5c93b2(_0x1f962c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f962c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b7fe7=_0x5c93b2(_0x1f962c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56bfe1()):_0x1f962c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f962c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f962c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59557a(){const _0x3d7433=[_0x1f962c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f962c([0x74,0x72,0x69,0x61,0x6c])][_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c2dfe/0x3e8:0xe10*_0x2599d2;return _0x5b3097[_0x1f962c([0x65,0x78,0x70])]<_0x3d7433;}function _0x45da6e(){const _0x22ae9e=_0x5b3097[_0x1f962c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22ae9e&&(!!_0x22ae9e[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x2a]))||!!_0x22ae9e[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x46,0x4f,0x4f])));}function _0x44fbdf(){const _0xb75be=_0x5b3097[_0x1f962c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb75be||0x0==_0xb75be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c1996}=new URL(window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb75be[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c1996))return!0x0;const _0x221ad4=_0x1c1996[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e]));return _0xb75be[_0x1f962c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1edc11=>_0x1edc11[_0x1f962c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f962c([0x2a])))[_0x1f962c([0x6d,0x61,0x70])](_0x38df03=>_0x38df03[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e])))[_0x1f962c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bf871=>_0x3bf871[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x221ad4[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f962c([0x6d,0x61,0x70])](_0x3dbe19=>Array(_0x221ad4[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dbe19[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f962c([0x66,0x69,0x6c,0x6c])](_0x3dbe19[0x0]===_0x1f962c([0x2a])?_0x1f962c([0x2a]):'')[_0x1f962c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dbe19))[_0x1f962c([0x73,0x6f,0x6d,0x65])](_0x414da2=>_0x221ad4[_0x1f962c([0x65,0x76,0x65,0x72,0x79])]((_0x30b9db,_0x4c296d)=>_0x414da2[_0x4c296d]===_0x30b9db||_0x414da2[_0x4c296d]===_0x1f962c([0x2a])));}function _0x56bfe1(){return _0x3b7fe7&&_0x57043f?new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f87ca,_0x2f06cf)=>{_0x3b7fe7[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x2f87ca,_0x2f06cf),_0x57043f[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x4da0e=>{_0x4da0e!=_0x1f962c([0x56,0x61,0x6c,0x69,0x64])&&_0x2f87ca(_0x4da0e);},_0x2f06cf);}):_0x3b7fe7||_0x57043f||_0x1f962c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cff99(_0x134c42,_0x4ae1af){return new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27056a=>{if(_0x381cb0())return _0x27056a(_0x1f962c([0x56,0x61,0x6c,0x69,0x64]));_0x69ace4(),_0x262c63[_0x1f962c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x172f7e=!0x1;const _0x8535e0=_0x2205e7();function _0x568bc0(_0x4efe0b){return!!_0x4efe0b&&(typeof _0x4efe0b===_0x1f962c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4efe0b===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4efe0b[_0x1f962c([0x74,0x68,0x65,0x6e])]===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4efe0b[_0x1f962c([0x63,0x61,0x74,0x63,0x68])]===_0x1f962c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ba382(_0x3d78d4){_0x298645(_0x3d78d4)[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x42456a=>{if(!_0x42456a||_0x42456a[_0x1f962c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f962c([0x6f,0x6b]))return _0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20a12a(_0x2b8797(_0x8535e0+_0x4ae1af))!=_0x42456a[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f962c([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x1a1d74=>(_0x55f786(),_0x1a1d74),()=>{const _0x580a7c=_0x5e6e64();return null==_0x580a7c?(_0x55f786(),_0x1f962c([0x56,0x61,0x6c,0x69,0x64])):_0x1f962c(_0x5c2dfe-_0x580a7c>(0x63ae0106^_0x4fab72)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x27056a)[_0x1f962c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35512f=0x47946b86^_0x4fab72;function _0x55f786(){const _0x34a9ba=_0x1f962c([0x6c,0x6c,0x63,0x74,0x2d])+_0x20a12a(_0x2b8797(_0x134c42)),_0x1a4207=_0x1aa356(_0x20a12a(window[_0x1f962c([0x4d,0x61,0x74,0x68])][_0x1f962c([0x63,0x65,0x69,0x6c])](_0x5c2dfe/_0x35512f)));window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f962c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34a9ba,_0x1a4207);}function _0x5e6e64(){const _0x14a77c=_0x1f962c([0x6c,0x6c,0x63,0x74,0x2d])+_0x20a12a(_0x2b8797(_0x134c42)),_0x568da6=window[_0x1f962c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f962c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14a77c);return _0x568da6?window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aa356(_0x568da6),0x10)*_0x35512f:null;}function _0x298645(_0xf3e79e){return new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43b7a1,_0x5436ed)=>{_0xf3e79e[_0x1f962c([0x74,0x68,0x65,0x6e])](_0x43b7a1,_0x5436ed),window[_0x1f962c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5436ed,0x47a351c6^_0x4fab72);});}}_0x262c63[_0x1f962c([0x6f,0x6e])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376d8c,_0x4948cd)=>{if(_0x4948cd[0x0]!=_0x134c42)return _0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4948cd[0x1]={..._0x4948cd[0x1],[_0x1f962c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8535e0};},{[_0x1f962c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f962c([0x68,0x69,0x67,0x68])}),_0x262c63[_0x1f962c([0x6f,0x6e])](_0x1f962c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x231552=>{_0x568bc0(_0x231552[_0x1f962c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x172f7e=!0x0,_0x5ba382(_0x231552[_0x1f962c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f962c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f962c([0x6c,0x6f,0x77])}),_0x4ae08e[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>{_0x172f7e||_0x27056a(_0x1f962c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x381cb0(){return _0x262c63[_0x1f962c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f962c([0x76,0x69,0x65,0x77])][_0x1f962c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f962c([0x61,0x75,0x74,0x6f]);}function _0x69ace4(){_0x262c63[_0x1f962c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f962c([0x76,0x69,0x65,0x77])][_0x1f962c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f962c([0x61,0x75,0x74,0x6f]);}}function _0x5c93b2(_0x3c7f28){const _0x4785da=[new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d90ea=>setTimeout(_0x5d90ea,0x47abbbca^_0x4fab72)),_0x4ae08e[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51e59b=>{let _0xd63082=0x0;_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x6f,0x6e])](_0x1f962c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x34d4ec,_0x2a6d84)=>{_0x2a6d84[0x0][_0x1f962c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd63082++,_0xd63082==(0x47a284fe^_0x4fab72)&&(_0x51e59b(),_0x34d4ec[_0x1f962c([0x6f,0x66,0x66])]());});}))];return window[_0x1f962c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f962c([0x72,0x61,0x63,0x65])](_0x4785da)[_0x1f962c([0x74,0x68,0x65,0x6e])](()=>_0x3c7f28);}async function _0x1404bb(){await _0x4ae08e,_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae154,_0x262c63[_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f962c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ae154,_0x262c63[_0x1f962c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f962c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20ef46(_0x49a4b4){const _0x58a0d3=_0x15dde2();_0x262c63[_0x58a0d3]=_0x1f962c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49a4b4,_0x49a4b4!=_0x1f962c([0x56,0x61,0x6c,0x69,0x64])&&_0x1404bb();}function _0x15dde2(){const _0x16bd56=window[_0x1f962c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f962c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f962c([0x6e,0x6f,0x77])]())[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f962c([0x2e]),'');let _0x1ecebd=_0x1f962c([0x75]);for(let _0x372b81=0x0;_0x372b81<_0x16bd56[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372b81+=0x2){let _0x5704ee=window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16bd56[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x372b81,_0x372b81+0x2));_0x5704ee>=_0x1381be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5704ee-=_0x1381be[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ecebd+=_0x1381be[_0x5704ee];}return _0x1ecebd;}function _0x2de944(){const _0x31f169=_0x1fdce2[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e]));if(0x3!=_0x31f169[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f4a44(_0x31f169[0x1]);function _0x1f4a44(_0x33ea6f){const _0x294477=_0x40c5a3(_0x33ea6f);return _0x294477&&_0x275e54()?_0x294477:null;function _0x275e54(){const _0x214a9d=_0x294477[_0x1f962c([0x6a,0x74,0x69])],_0x240ba1=window[_0x1f962c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x214a9d[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x214a9d[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5882b5={..._0x294477,[_0x1f962c([0x6a,0x74,0x69])]:_0x214a9d[_0x1f962c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x214a9d[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5882b5[_0x1f962c([0x76,0x63])],_0x2b8797(_0x5882b5)==_0x240ba1;}}}async function _0x5b1c83(){let _0x3f1103=!0x0;try{const _0x408238=_0x1fdce2[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])](_0x1f962c([0x2e])),[_0x56643b,_0x1e6828,_0x2be0da]=_0x408238;return _0x52a5dd(_0x56643b),await _0x2f27c6(_0x56643b,_0x1e6828,_0x2be0da),_0x3f1103;}catch{return!0x1;}function _0x52a5dd(_0x4eb7c1){const _0x5e8bf9=_0x40c5a3(_0x4eb7c1);_0x5e8bf9&&_0x5e8bf9[_0x1f962c([0x61,0x6c,0x67])]==_0x1f962c([0x45,0x53,0x32,0x35,0x36])||(_0x3f1103=!0x1);}async function _0x2f27c6(_0x567664,_0x3b0f99,_0x3d0579){const _0x1891dd=window[_0x1f962c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f962c([0x66,0x72,0x6f,0x6d])](_0x534c7f(_0x3d0579),_0x48c177=>_0x48c177[_0x1f962c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a8fcf=new window[(_0x1f962c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f962c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x567664+_0x1f962c([0x2e])+_0x3b0f99),_0xeaa36a=window[_0x1f962c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f962c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeaa36a)return;const _0x50b774=await _0xeaa36a[_0x1f962c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f962c([0x6a,0x77,0x6b]),_0x3d3131,{[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x45,0x43,0x44,0x53,0x41]),[_0x1f962c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f962c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeaa36a[_0x1f962c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x45,0x43,0x44,0x53,0x41]),[_0x1f962c([0x68,0x61,0x73,0x68])]:{[_0x1f962c([0x6e,0x61,0x6d,0x65])]:_0x1f962c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50b774,_0x1891dd,_0x1a8fcf)||(_0x3f1103=!0x1);}}function _0x40c5a3(_0x27159e){return _0x27159e[_0x1f962c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f962c([0x65,0x79]))?JSON[_0x1f962c([0x70,0x61,0x72,0x73,0x65])](_0x534c7f(_0x27159e)):null;}function _0x534c7f(_0x7ca32e){return window[_0x1f962c([0x61,0x74,0x6f,0x62])](_0x7ca32e[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f962c([0x2b]))[_0x1f962c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f962c([0x2f])));}function _0x2b8797(_0x14925a){let _0x51d902=0x1505;function _0x272c51(_0x246e8a){for(let _0x2c0fd6=0x0;_0x2c0fd6<_0x246e8a[_0x1f962c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c0fd6++){const _0x5e1e41=_0x246e8a[_0x1f962c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c0fd6);_0x51d902=(_0x51d902<<0x5)+_0x51d902+_0x5e1e41,_0x51d902&=_0x51d902;}}function _0x81676f(_0x15cea2){Array[_0x1f962c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15cea2)?_0x15cea2[_0x1f962c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x81676f):_0x15cea2&&typeof _0x15cea2==_0x1f962c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f962c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15cea2)[_0x1f962c([0x73,0x6f,0x72,0x74])]()[_0x1f962c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9c833c,_0x5c422e])=>{_0x272c51(_0x9c833c),_0x81676f(_0x5c422e);}):_0x272c51(window[_0x1f962c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15cea2));}return _0x81676f(_0x14925a),_0x51d902>>>0x0;}function _0x20a12a(_0x57feff){return _0x57feff[_0x1f962c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f962c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f962c([0x30]));}function _0x1aa356(_0x5a4295){return _0x5a4295[_0x1f962c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f962c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f962c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ae154(){}function _0x1f962c(_0xa0c484){return _0xa0c484['map'](_0x44b9b8=>String['fromCharCode'](_0x44b9b8))['join']('');}_0x20ef46(await _0x16ed8c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x12dec6){const {plugins:_0x49187f,editing:_0x31ea60,model:_0x266ac6}=this['editor'],_0x1301b9=_0x49187f['get'](_0x12962d)['getFootnote'](_0x12dec6);return!!_0x1301b9&&(_0x266ac6['change'](_0x63e937=>{_0x63e937['setSelection'](_0x63e937['createPositionAt'](_0x1301b9['definition'],'end'));}),_0x31ea60['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2cc4ae){const {plugins:_0x1244ed,editing:_0x9a5071,model:_0x95b653}=this['editor'],_0x40545f=_0x1244ed['get'](_0x12962d)['getFootnote'](_0x2cc4ae);return!!_0x40545f&&(_0x95b653['change'](_0x42c080=>{_0x42c080['setSelection'](_0x40545f['reference'],'on');}),_0x9a5071['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x52c2f2}=this['editor']['model'],_0x2aa41e=this['editor']['config']['get']('footnotes.multiBlock');_0x52c2f2['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x52c2f2['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x52c2f2['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2aa41e?_0x52c2f2['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x52c2f2['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x52c2f2['addChildCheck'](_0xcc64cd=>{for(const _0x30f6f7 of _0xcc64cd)if('footnoteDefinition'===_0x30f6f7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b32a2}=this,{conversion:_0x1236ac,editing:_0x2bab16}=_0x2b32a2,{t:t}=_0x2b32a2['locale'];_0x1236ac['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x50db41,{writer:_0x341169,consumable:_0x7bd141})=>{const _0x552a42=_0x50db41['getChild'](0x0);if(!_0x552a42||!_0x552a42['is']('element','a'))return null;const _0x313222=_0x552a42['getAttribute']('href')||'';if(!_0x313222['startsWith']('#'))return null;const _0x4fedab=_0x313222['replace'](/^#/,'');if(!_0x4fedab)return null;_0x7bd141['consume'](_0x552a42,{'name':!0x0,'attributes':['href']});for(const {item:_0x31ddfc}of _0x2bab16['view']['createRangeIn'](_0x552a42))_0x31ddfc['is']('$textProxy')?_0x7bd141['consume'](_0x31ddfc['textNode'],{'name':!0x0}):_0x31ddfc['is']('element')&&_0x7bd141['consume'](_0x31ddfc,{'name':!0x0});return _0x341169['createElement']('footnoteRef',{'footnoteId':_0x4fedab});}}),_0x1236ac['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1190c1,{writer:_0x8d4d47})=>D(_0x1190c1,_0x8d4d47)}),_0x1236ac['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x38c0b0,{writer:_0x1b0da0})=>{const _0x3e2767=_0x38c0b0['getAttribute']('footnoteCounter');return _0x2d459c(D(_0x38c0b0,_0x1b0da0),_0x1b0da0,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e2767)});}});}['_defineDefinitionsConverters'](){const {editor:_0x28c6e6}=this,{t:t}=_0x28c6e6['locale'],{conversion:_0x33d69b}=_0x28c6e6;_0x33d69b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x33d69b['for']('upcast')['add'](_0x969e5=>{_0x969e5['on']('element:ol',(_0x3264bd,_0x298255,_0x403e1a)=>{const _0x5e7e80=_0x298255['viewItem'];if(!_0x5e7e80['hasClass']('footnotes-list')||!_0x298255['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x403e1a['consumable']['consume'](_0x5e7e80,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x203b7c,modelCursor:_0x3a1541}=_0x403e1a['convertChildren'](_0x298255['viewItem'],_0x298255['modelCursor']);_0x298255['modelRange']=_0x203b7c,_0x298255['modelCursor']=_0x3a1541;}),_0x969e5['on']('element:hr',(_0x5d3190,_0x5a0bc7,_0x5370a1)=>{const _0x944014=_0x5a0bc7['viewItem'];_0x944014['hasClass']('footnotes-divider')&&_0x5a0bc7['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5370a1['consumable']['consume'](_0x944014,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x33d69b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1b3454,{writer:_0x14bd18})=>v(_0x14bd18)}),_0x33d69b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5d03e3,{writer:_0x21d095})=>{const _0x2877be=v(_0x21d095,{'data-footnotes-list-label':t('Footnotes')}),_0x158199=_0x2d459c(_0x2877be,_0x21d095,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x21d095['setCustomProperty']('footnotesDefinitions',!0x0,_0x158199),_0x158199;}});}['_defineDefinitionConverters'](){const {editor:_0x41883f}=this,{conversion:_0xf1b775,locale:_0x28d2b8}=_0x41883f,_0x51f450=_0x41883f['config']['get']('footnotes.multiBlock');_0xf1b775['for']('upcast')['add'](_0x4bde67=>{_0x4bde67['on']('element:li',(_0xc555b,_0x45bf09,_0x4a0f04)=>{const _0x3a02a1=_0x45bf09['viewItem'];if(!_0x3a02a1['hasClass']('footnote-definition')||!_0x3a02a1['getAttribute']('id'))return;const _0x36cee3=_0x3a02a1['parent'];if(!_0x36cee3['is']('element','ol')||!_0x36cee3['hasClass']('footnotes-list'))return;if(!_0x4a0f04['consumable']['test'](_0x3a02a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x426719=_0x4a0f04['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3a02a1['getAttribute']('id')});if(!_0x4a0f04['safeInsert'](_0x426719,_0x45bf09['modelCursor']))return;_0x4a0f04['consumable']['consume'](_0x3a02a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5ddda4=Array['from'](_0x3a02a1['getChildren']())['find'](_0x3ffcb3=>_0x3ffcb3['is']('element')&&_0x3ffcb3['hasClass']('footnote-content'));for(const _0x4d26a6 of _0x3a02a1['getChildren']())_0x4d26a6['is']('element')&&(_0x4a0f04['consumable']['consume'](_0x4d26a6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4a0f04['consumable']['consume'](_0x4d26a6,{'name':!0x0,'classes':'footnote-content'}));if(_0x5ddda4){if(_0x51f450)_0x4a0f04['convertChildren'](_0x5ddda4,_0x426719);else{const _0x53f1ab=_0x4a0f04['writer']['createElement']('footnoteInlineContent');_0x4a0f04['writer']['insert'](_0x53f1ab,_0x426719),_0x4a0f04['convertChildren'](_0x5ddda4,_0x53f1ab);}}_0x4a0f04['updateConversionResult'](_0x426719,_0x45bf09);});}),_0xf1b775['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d6433,{writer:_0x42d974})=>b(_0x4d6433,_0x42d974,_0x28d2b8,{'dataPipeline':!0x0})}),_0xf1b775['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2123b5,{writer:_0x2d3c0b})=>b(_0x2123b5,_0x2d3c0b,_0x28d2b8)});}['_defineBogusParagraphConverters'](){const {editor:_0x41a977}=this,{conversion:_0x3da185}=_0x41a977;_0x41a977['config']['get']('footnotes.multiBlock')?(_0x3da185['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3da185['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x41a977['model']['document'],'change:data',()=>{!function(_0x34ba63,_0x57f6c6){const _0x1657f6=_0x34ba63['document']['differ'],_0x386b5d=new Set();for(const _0x536884 of _0x1657f6['getChanges']()){const _0x2fe347='attribute'==_0x536884['type']?_0x536884['range']['start']['parent']:_0x536884['position']['parent'];_0x2fe347['is']('element','footnoteDefinition')&&_0x386b5d['add'](_0x2fe347);}for(const _0x1f92ab of _0x386b5d['values']()){const _0x35e02f=Array['from'](_0x1f92ab['getChildren']())['filter'](_0x4a2c4d=>g(_0x4a2c4d,_0x57f6c6['mapper']));for(const _0x28a103 of _0x35e02f)_0x57f6c6['reconvertItem'](_0x28a103);}}(_0x41a977['model'],_0x41a977['editing']);})):(_0x3da185['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3da185['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3bb078,{writer:_0xb69de})=>{const _0x3f12d1=_0xb69de['createContainerElement']('span');return _0xb69de['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3f12d1),_0x3f12d1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4e2ae8}=this,{editing:_0x9e2a95,t:t}=_0x4e2ae8,_0x45d721=_0x4e2ae8['model']['document']['selection'];_0x4e2ae8['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4e2ae8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x9e2a95['view']['document'],'enter',(_0x5baf67,_0x46fcf9)=>{const _0x2eee73=function(_0x2270c5){const _0x343e87=_0x2270c5['getSelectedElement']();if(_0x343e87?.['is']('element','footnoteRef'))return _0x343e87;return null;}(_0x45d721);if(_0x2eee73){const _0x4768e4=_0x2eee73['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4768e4),_0x46fcf9['preventDefault'](),_0x5baf67['stop']();}},{'context':_0x76c9e7});}['_defineClickHandlers'](){const {editor:_0x34e4f9}=this,{editing:_0x39f3db}=_0x34e4f9;_0x34e4f9['editing']['view']['addObserver'](_0x127257),_0x34e4f9['editing']['view']['addObserver'](_0x4a6a69);let _0x434b99=!0x1;this['listenTo'](_0x39f3db['view']['document'],'pointerdown',(_0x573f8a,_0x38649b)=>{const {target:_0x2ae1cd}=_0x38649b,_0x345695=_0x39f3db['view']['document']['selection'];_0x434b99=!!(_0x2ae1cd?.['is']('element','a')&&_0x2ae1cd['parent']?.['is']('element','sup')&&_0x2ae1cd['parent']['hasClass']('footnote'))&&_0x345695['getSelectedElement']()===_0x2ae1cd['parent'];},{'priority':'high'}),this['listenTo'](_0x39f3db['view']['document'],'click',(_0x1460e0,_0x8fedf6)=>{const {target:_0x16ed03}=_0x8fedf6;if(!_0x16ed03?.['is']('element','a'))return;if(_0x16ed03['parent']?.['is']('element','sup')&&_0x16ed03['parent']['hasClass']('footnote')&&!_0x434b99)return void _0x8fedf6['preventDefault']();let _0x256d23=_0x16ed03['getAttribute']('href');if(!_0x256d23?.['startsWith']('#'))return;_0x256d23=_0x256d23['slice'](0x1);let _0x29ebf8=!0x1;(_0x256d23['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x256d23['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x256d23))&&(_0x29ebf8=!0x0),_0x29ebf8&&(_0x8fedf6['preventDefault'](),_0x1460e0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x387e26}={}){return(_0x4ea943,{writer:_0x25d345})=>{if(!p(_0x4ea943))return null;if(!_0x387e26)return _0x25d345['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2e8455=_0x25d345['createContainerElement']('p');return _0x25d345['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e8455),_0x2e8455;};}function p(_0x542897){const {parent:_0x1f6e87}=_0x542897;if(!_0x1f6e87?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1f6e87['childCount'])return!0x1;for(const _0x4d376e of _0x542897['getAttributeKeys']())if(!_0x4d376e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4d376e)return!0x1;return!0x0;}function g(_0x35cada,_0x4fb98a){if(!_0x35cada['is']('element','paragraph'))return!0x1;const _0x3ccee4=_0x4fb98a['toViewElement'](_0x35cada);return!!_0x3ccee4&&p(_0x35cada)!==_0x3ccee4['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x519ffc){return _0x76c9e7(_0x519ffc)&&_0x519ffc['is']('containerElement')&&!!_0x519ffc['getCustomProperty']('footnotesDefinitions');}function v(_0x35d437,_0x2fa35c={}){const _0x1db638=_0x35d437['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3efd15=_0x35d437['createContainerElement']('ol',{'class':'footnotes-list'},_0x35d437['createSlot']());return _0x35d437['createContainerElement']('div',{'class':'footnotes',..._0x2fa35c},[_0x1db638,_0x3efd15]);}function D(_0x88357c,_0x11822c){const _0x3c5e95=_0x88357c['getAttribute']('footnoteId'),_0x2002e2=_0x88357c['getAttribute']('footnoteCounter'),_0x1f06ea=_0x11822c['createUIElement']('a',{'href':'#'+_0x3c5e95},function(_0x3abba4){const _0x48fc43=this['toDomElement'](_0x3abba4);return _0x48fc43['textContent']=_0x2002e2,_0x48fc43;}),_0x3cf735=_0x11822c['createContainerElement']('sup',{'id':'ref-'+_0x3c5e95,'class':'footnote'},[_0x1f06ea]);return _0x3cf735['getFillerOffset']=()=>null,_0x3cf735;}function b(_0x50d28e,_0x3885b2,_0x2fc403,{dataPipeline:_0x39cdfc}={}){const {t:t}=_0x2fc403,_0x679356=_0x50d28e['getAttribute']('footnoteId'),_0x25a5e5=_0x3885b2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x679356},function(_0xf95146){const _0x5f1d15=this['toDomElement'](_0xf95146);return _0x5f1d15['innerText']='^',_0x5f1d15;}),_0x1554a0=_0x39cdfc?_0x3885b2['createContainerElement']('div',{'class':'footnote-content'}):_0x408522(_0x3885b2['createEditableElement']('div',{'class':'footnote-content'}),_0x3885b2,{'label':t('Footnote\x20content.')});return _0x3885b2['insert'](_0x3885b2['createPositionAt'](_0x1554a0,0x0),_0x3885b2['createSlot']()),_0x3885b2['createContainerElement']('li',{'class':'footnote-definition','id':_0x679356},[_0x25a5e5,_0x1554a0]);}
|