@ckeditor/ckeditor5-footnotes 47.6.0-alpha.3 → 47.6.0-alpha.4

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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, 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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},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],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}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 u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["_trackedElements","delete","reset","has","element","26657026eNaoSY","$text","insert","add","length","getElementKey","root","70LRZwev","1075398GZdzYj","4987890uSYxfO","attributes","_elementName","$graveyard","10JlLpwZ","rootName","type","42fAGDuN","flat","clear","3300600VMQBMH","get","slice","remove","name","set","10LhCuJy","createRangeOn","elementName","getChanges","nodeAfter","getItems","from","values","position","push","840342oAetQt","674607crZWwJ","174132IjIYoA","_getElementKey","_model"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=190]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(974042===parseInt(e(207))/1+parseInt(e(224))/2*(parseInt(e(190))/3)+parseInt(e(191))/4*(-parseInt(e(206))/5)+-parseInt(e(234))/6*(-parseInt(e(215))/7)+parseInt(e(218))/8+parseInt(e(208))/9+parseInt(e(212))/10*(-parseInt(e(199))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(193)];[c(210)];[c(192)];[c(194)]=new Map;constructor(t,e){const o=c;this[o(193)]=t,this[o(210)]=e[o(226)],this[o(192)]=e[o(204)]}[c(196)](){const t=c;this[t(194)][t(217)]()}[c(227)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(201)===i[e(214)]&&e(200)!==i[e(222)]&&i[e(232)][e(228)]){const t=this[e(193)][e(225)](i[e(232)][e(228)]);for(const o of t[e(229)]()){if(!o.is(e(198),this[e(210)]))continue;const t=this[e(192)](o);n[e(197)](t)||n[e(223)](t,[]),n[e(219)](t)[e(233)](o)}}if(e(221)===i[e(214)]&&i[e(222)]===this[e(210)]){const t=this[e(192)]({getAttribute:t=>i[e(209)][e(219)](t)});o[e(202)](t)}}for(const[t,n]of this[e(194)])e(211)===n[e(205)][e(213)]&&o[e(202)](t);for(const t of o)this[e(194)][e(195)](t);for(const[t,o]of n)this[e(194)][e(223)](t,o[o[e(203)]-1]);const i=new Set;for(const[t,s]of n)o[e(197)](t)&&(i[e(202)](s[0]),s[e(203)]>1?n[e(223)](t,s[e(220)](1)):n[e(195)](t),o[e(195)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(231)]())[e(216)](),moved:Array[e(230)](i)}}}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=244]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543919===parseInt(e(254))/1*(parseInt(e(253))/2)+parseInt(e(303))/3+-parseInt(e(316))/4+parseInt(e(292))/5+-parseInt(e(301))/6*(-parseInt(e(323))/7)+-parseInt(e(327))/8+parseInt(e(258))/9*(parseInt(e(297))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(276)]=[];[u(296)]=null;[u(283)]=null;[u(307)];[u(289)];[u(272)];static get[u(284)](){return u(277)}static get[u(336)](){return!0}static get[u(261)](){return!0}constructor(t){const e=u;super(t),this[e(307)]=new l(this[e(331)][e(310)],{elementName:e(280),getElementKey:()=>e(281)}),this[e(289)]=new l(this[e(331)][e(310)],{elementName:e(304),getElementKey:t=>t[e(256)](e(299))}),this[e(272)]=new l(this[e(331)][e(310)],{elementName:e(247),getElementKey:t=>t[e(256)](e(299))})}[u(278)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(264)][t(262)](e=>{const n=t,i=o[n(264)][n(265)][n(315)]();let s=!1;return this[n(244)](e,i)&&(s=!0),this[n(286)](e,i)&&(s=!0),this[n(302)](e,i)&&(s=!0),this[n(332)](e)&&(s=!0),this[n(328)](e)&&(s=!0),this[n(311)](e)&&(s=!0),s}),this[t(268)](o[t(264)],t(318),()=>{const e=t;o[e(330)]({isUndoable:!1},t=>{this[e(251)](t)})},{priority:t(274)}),this[t(268)](n,t(312),()=>{const e=t;this[e(276)]=[],this[e(307)][e(337)](),this[e(289)][e(337)](),this[e(272)][e(337)]()},{priority:t(335)})}[u(249)](){return this[u(296)]}[u(250)](t){const e=u;return this[e(276)][e(300)](e=>e.id===t)||null}[u(344)](){const t=u;return Array[t(308)](this[t(276)])}[u(305)](){return this[u(283)]}[u(259)](t){this[u(283)]=t}[u(255)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(276)][o(314)];i++)this[o(334)](t,i)&&(n=!0);return n}[u(340)](t,e){const o=u,n=t[o(339)](o(280),{});return t[o(290)](n,e),this[o(296)]=n,n}[u(251)](t){const e=u;if(!this[e(276)][e(314)]||this[e(296)])return;const o=this[e(276)][0][e(291)][e(293)],n=this[e(340)](t,o);for(const o of this[e(276)])o[e(317)][e(248)]||t[e(298)](o[e(317)],n,e(319));this[e(255)](t)}[u(244)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(307)][o(315)](e);if(r[o(314)]&&(this[o(296)]=r[0]),i[o(314)])if(i[o(314)]>1||this[o(296)]&&i[o(245)](t=>t!==this[o(296)])){const e=t[o(339)](o(280),{}),s=[];this[o(296)]&&s[o(282)](this[o(296)]),s[o(282)](...i),t[o(298)](e,s[0],o(279));for(const n of s)t[o(329)](t[o(288)](n),t[o(294)](e,o(319))),t[o(338)](n);this[o(296)]=e,this[o(255)](t),n=!0}else this[o(296)]=i[0];if(s[o(314)]&&o(266)===this[o(296)]?.[o(293)][o(269)]){for(const e of this[o(276)])t[o(338)](e[o(291)]),n=!0;this[o(276)]=[],this[o(296)]=null}return n}[u(286)](t,e){const o=u;let n=!1;const i=this[o(331)][o(326)][o(341)](o(333)),{inserted:s,moved:r}=this[o(272)][o(315)](e);for(const e of[...r,...s]){const s=e[o(256)](o(299)),r=this[o(250)](s);r&&(r[o(317)]=e),p(t,i,e)&&(n=!0)}return n}[u(302)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(289)][o(315)](e);for(const e of i)this[o(306)](t,e)&&(n=!0);for(const e of s)this[o(260)](t,e)&&(n=!0);for(const e of r)this[o(343)](t,e)&&(n=!0);return n}[u(328)](t){const e=u;if(!this[e(296)])return!1;let o=!1;if(this[e(296)][e(313)]!==this[e(276)][e(314)]){const n=[];for(const t of this[e(296)][e(295)]()){const i=t[e(256)](e(299));this[e(250)](i)||(n[e(287)](t),o=!0)}for(const o of n)t[e(338)](o)}const n=new Set,i=[];for(const t of this[e(296)][e(295)]()){const s=t[e(256)](e(299));n[e(325)](s)?(i[e(287)](t),o=!0):n[e(322)](s)}for(const o of i)t[e(338)](o);return this[e(296)][e(313)]||(t[e(338)](this[e(296)]),this[e(296)]=null,o=!0),o}[u(260)](t,e){const o=u;if(this[o(276)][o(300)](t=>t[o(291)]===e))return!1;let n=!1;const i=e[o(256)](o(299)),s=this[o(276)][o(320)](t=>t.id===i);-1!==s&&(t[o(338)](this[o(276)][s][o(291)]),this[o(276)][o(257)](s,1),n=!0);let r=this[o(296)]?function(t,e){const n=o;for(const o of t[n(295)]())if(o[n(256)](n(299))===e)return o;return null}(this[o(296)],i):null;r||(r=t[o(339)](o(247),{footnoteId:i}),this[o(296)]&&(t[o(298)](r,this[o(296)],o(319)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(331)][o(310)],this[o(276)],e);this[o(276)][o(257)](c,0,a);let l=c;return-1!==s&&(l=Math[o(270)](c,s)),this[o(255)](t,l)&&(n=!0),n}[u(306)](t,e){const o=u,n=this[o(276)][o(320)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(276)][n];return o(266)!==s[o(317)][o(293)][o(269)]&&(t[o(338)](s[o(317)]),i=!0),this[o(276)][o(257)](n,1),this[o(255)](t,n)&&(i=!0),i}[u(343)](t,e){const o=u,n=e[o(256)](o(299)),i=this[o(276)][o(320)](t=>t.id===n),s=this[o(276)][i];let r=!1;s[o(291)]=e,this[o(276)][o(257)](i,1);const a=m(this[o(331)][o(310)],this[o(276)],e);return this[o(276)][o(257)](a,0,s),this[o(255)](t,Math[o(270)](i,a))&&(r=!0),r}[u(334)](t,e){const o=u;if(!this[o(296)])return!1;const n=this[o(276)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(296)],digits:String(this[o(276)][o(314)])[o(314)],value:e+1}):String(e+1),n[o(291)][o(256)](o(263))!=i&&(t[o(275)](o(263),i,n[o(291)]),!0)}[u(311)](t){const e=u;if(!this[e(296)]||this[e(276)][e(314)]<2)return!1;if(function(t,o){const n=e;if(t[n(314)]!==o[n(314)])return!1;for(let e=0;e<t[n(314)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(276)][e(267)](t=>t.id),Array[e(308)](this[e(296)][e(295)]())[e(267)](t=>t[e(256)](e(299)))))return!1;let o=!1;for(let n=0;n<this[e(276)][e(314)];n++){const i=this[e(276)][n],s=t[e(271)](i[e(317)]),r=t[e(294)](this[e(296)],n);s[e(252)](r)||(t[e(329)](t[e(309)](i[e(317)]),r),o=!0)}return o}[u(332)](t){const e=u;if(!this[e(276)][e(314)])return!1;const{model:o}=this[e(331)];let n=!1;for(let i=0;i<this[e(276)][e(314)]-1;i++){const s=this[e(276)][i],r=this[e(276)][i+1],a=o[e(271)](s[e(291)]),c=o[e(271)](r[e(291)]);e(285)===a[e(342)](c)&&(this[e(343)](t,s[e(291)]),i=-1,n=!0)}return n}}function h(){const t=["8Hvtkde","_updateFootnotesCounters","getAttribute","splice","2932830XREEHR","setFootnoteFormatter","_handleInsertedFootnoteReference","isPremiumPlugin","registerPostFixer","footnoteCounter","document","differ","$graveyard","map","listenTo","rootName","min","createPositionBefore","_footnoteDefsTracker","paragraph","low","setAttribute","_footnotes","FootnotesTracker","init","before","footnotesDefinitions","singleton","push","_footnoteFormatter","pluginName","after","_handleFootnoteDefinitionsChanges","unshift","createRangeIn","_footnoteRefsTracker","append","reference","590625mLCTHM","root","createPositionAt","getChildren","_footnotesDefinitions","10skAdOa","insert","footnoteId","find","64902gsbPmk","_handleFootnoteReferencesChanges","1239021REBQPO","footnoteRef","getFootnotesFormatter","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","from","createRangeOn","model","_sortFootnoteDefinitions","set","childCount","length","getChanges","2065736TiTxrR","definition","change:data","end","findIndex","indexOf","add","427thQkui","footnoteInlineContent","has","config","5655472ilAePx","_handleFootnotesDefinitionsObjectSync","move","enqueueChange","editor","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","_updateFootnoteRefCounter","high","isOfficialPlugin","reset","remove","createElement","_insertEmptyFootnotesDefinitionsContainer","get","compareWith","_handleMovedFootnoteReference","getFootnotes","_handleFootnotesDefinitionsObjectChanges","some","getRootNames","footnoteDefinition","parent","getFootnotesDefinitionsObjectElement","getFootnote","_ensureFootnotesDefinitionsContainerExists","isEqual","62612mAhJMo"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(313)])return!1;const i=n(e?273:324);return t[n(298)](t[n(339)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(314)])return 0;const i=t[n(271)](o);for(let o=0;o<e[n(314)];o++){const s=e[o],r=t[n(271)](s[n(291)]);if(n(279)===i[n(342)](r))return o}const s=o[n(293)];let r=-1;for(let t=e[n(314)]-1;t>=0;t--)if(e[t][n(291)][n(293)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(264)][n(246)](),c=a[n(321)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(314)];t++)if(e[t][n(291)][n(293)][n(269)]===l)return t;return e[n(314)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=216]})(t,e)}function y(){const t=["getItems","test","675075GuuSlg","insert-footnote-command-executed-with-invalid-id","getFirstRange","end","checkChild","3116190yGrvWl","3960330EenCgX","16TnBWle","refresh","change","length","footnoteRef","string","model","isObject","2565670IGubNu","864304nDmtev","editor","execute","isEnabled","plugins","1107005hcVLBQ","insertObject","isBlock","get","_moveSelectionToFootnoteDefinition","document","footnoteId","createElement","3298683JDTHgp","FootnotesEditing","selection","64qYSjpc","18aUdSOu","_getPositionToInsertFootnote"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(854476===-parseInt(e(250))/1+parseInt(e(218))/2+-parseInt(e(242))/3+parseInt(e(220))/4*(parseInt(e(234))/5)+parseInt(e(219))/6+-parseInt(e(229))/7*(parseInt(e(245))/8)+-parseInt(e(246))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(221)](){const t=g,e=this[t(230)][t(226)][t(239)][t(244)],o=this[t(247)](e);this[t(232)]=!!o}[g(231)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(239)],r=this[e(247)](s);if(!r)return;const a=o[e(233)][e(237)](e(243)),c=t?.[e(240)]??(0,i.uid)();!function(t){const o=e;return o(225)==typeof t&&t[o(223)]>0&&!/\s/[o(249)](t)&&!/^\d/[o(249)](t)}(c)?(0,i.logWarning)(e(251)):(n[e(222)](t=>{const o=e,i=t[o(241)](o(224),{footnoteId:c});n[o(235)](i,r,null)}),a[e(238)](c))}[g(247)](t){const e=g,{model:o}=this[e(230)],{schema:n}=o,i=t[e(252)]();for(const t of i[e(248)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(216)];return n[e(217)](s,e(224))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772236800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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 E(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 x(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 A=o(331);function P(t,e){const o=D();return(P=function(t,e){return o[t-=294]})(t,e)}const T=P;function D(){const t=["content","footnoteInlineContent","push","toModel","2EDYLWs","document","createRangeIn","isOfficialPlugin","contentInsertion","429864AdMdEc","from","keys","getData","28xKrWQz","_defineClipboardIntegration","footnotesDefinitions","length","createElement","find","insert","getRanges","change","568364gvXbzZ","_insertEmptyFootnotesDefinitionsContainer","getChildren","_handlePasteFootnotesDefinitions","string","dataTransfer","2845856VQhbth","pluginName","listenTo","_handleCopyFootnotesDefinitions","get","setData","selection","setAttribute","getFirstRange","htmlProcessor","init","stringify","end","335crPnKc","remove","121JkmEql","element","getFootnotesDefinitionsObjectElement","footnoteId","9lXtGPF","drop","getFootnote","hasAttribute","append","application/ckeditor5-footnotes","config","parse","toView","add","clipboardInput","getAttribute","footnoteRef","requires","entries","footnotes.multiBlock","isPremiumPlugin","7518lerKAh","FootnotesClipboard","cloneElement","getFootnotes","includes","1215945TfnBOj","flatMap","getSelectedBlocks","editor","reduce","create","1882490WGlFQM","definition","sourceEditorId","root","toData","data","footnoteDefinition","method","outputTransformation","1114428svukjF","editing"];return(D=function(){return t})()}!function(t){const e=P,o=t();for(;;)try{if(415876===parseInt(e(344))/1+-parseInt(e(326))/2*(parseInt(e(305))/3)+-parseInt(e(350))/4+-parseInt(e(363))/5*(parseInt(e(300))/6)+parseInt(e(335))/7*(parseInt(e(331))/8)+parseInt(e(369))/9*(-parseInt(e(311))/10)+parseInt(e(365))/11*(parseInt(e(320))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(351)](){return T(301)}static get[T(296)](){return[v,A.ClipboardPipeline]}static get[T(329)](){return!0}static get[T(299)](){return!0}[T(360)](){this[T(336)]()}[T(336)](){const t=T;this[t(353)](),this[t(347)]()}[T(353)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(354)](A.ClipboardPipeline),s=o[t(354)](d);this[t(352)](i,t(319),(o,i)=>{const r=t,a=V(n[r(328)](i[r(322)]));if(!a[r(338)])return;const c=s[r(303)](),l=a[r(309)]((t,o)=>{const n=r,i=c[n(340)](t=>t.id===o);if(i){const o=e[n(316)][n(377)](i[n(312)],{isClipboardPipeline:!0}),s=e[n(316)][n(359)][n(315)](o);t[i.id]=s}return t},Object[r(310)](null));i[r(349)][r(355)](r(374),JSON[r(361)](l))})}[T(347)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(321)],r=n[t(354)](A.ClipboardPipeline),a=n[t(354)](d),c=e[t(375)][t(354)](t(298));let l=null;this[t(352)](s[t(327)],t(379),(e,o)=>{const n=t,i=o[n(349)][n(334)](n(374));l=i?JSON[n(376)](i):null}),this[t(352)](r,t(330),(n,s)=>{const r=t,u=s[r(313)]===this[r(308)].id;u&&r(370)===s[r(318)]||o[r(343)](t=>{const n=r;let f=a[n(367)]();const d=!!f&&Array[n(332)](o[n(327)][n(356)][n(307)]())[n(304)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(366),e(295)))return!0;return!1}(o[n(328)](s[n(322)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(310)](null);for(const e of i[o(346)]())e.is(o(366),o(317))&&e[o(372)](o(368))&&(s[e[o(294)](o(368))]=t[o(302)](e,!0));return Object[o(333)](s)[o(338)]?s:null}(t,s[n(322)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(328)](e))n.is(o(366),o(337))&&i[o(324)](n);for(const e of i)t[o(364)](e)}(t,s[n(322)]),!l)return;const{selection:h}=o[n(327)],p=h[n(358)]()[n(314)];f&&!d||(f=L(t,s[n(322)]),f||=a[n(345)](t,p));const m=Array[n(332)](h[n(342)]())[n(306)](V),g=function(t,e,o){const s=n,r=Object[s(310)](null);for(const{item:n}of t[s(328)](e))if(n.is(s(366),s(295))){const e=n[s(294)](s(368));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(357)](s(368),r[e],n)}return r}(t,s[n(322)],t=>{const e=n;return!u||!!a[e(371)](t)&&!m[e(304)](t)});for(const[o,i]of Object[n(297)](l)){const s=g[o]||o;let r;if(n(348)!=typeof i)r=i,s!==o&&t[n(357)](n(368),s,r);else{r=t[n(339)](n(317),{footnoteId:s});const o=e[n(316)][n(359)][n(377)](i);let a;if(c)a=e[n(316)][n(325)](o,r);else{a=t[n(339)](n(323));const i=e[n(316)][n(325)](o,a);t[n(341)](i,a)}t[n(373)](a,r)}t[n(341)](r,f,n(362))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(328)](e))if(n.is(o(366),o(337)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(366),e(295))&&o[e(378)](n[e(294)](e(368)));return Array[e(332)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),W=o(123),z=o.n(W),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class Z 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",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=$;function Y(){var t=["860WWxRBT","pluginName","isPremiumPlugin","5505615WBlxtD","10546542ERWagz","57770XkmAeR","154oAdsLk","isOfficialPlugin","33875QfqTDU","requires","240954VyCLYk","Footnotes","9128250HDvDMX","1711558SoGbXd","8AUWlAa"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=146]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(918742===parseInt(e(149))/1+-parseInt(e(156))/2+parseInt(e(154))/3+parseInt(e(151))/4*(-parseInt(e(159))/5)+-parseInt(e(146))/6*(parseInt(e(157))/7)+parseInt(e(150))/8*(-parseInt(e(155))/9)+parseInt(e(148))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[X(152)](){return X(147)}static get[X(160)](){return[v,_,Z]}static get[X(158)](){return!0}static get[X(153)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=310]})(t,e)}function nt(){const t=["21fyPkfE","52416870ShsNrK","1108626yVhrBJ","upper-alpha","decimal","lower-roman","3406794SLiQPx","upper-latin","7300960uBlTsl","lower-alpha","9jezgnj","332onvwLS","3542901psKJuJ","upper-roman","lower-latin","decimal-leading-zero","1811345PGcHJW","104575fbOnHM"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(965790===parseInt(e(321))/1+-parseInt(e(311))/2+-parseInt(e(317))/3+parseInt(e(316))/4*(-parseInt(e(322))/5)+parseInt(e(325))/6*(-parseInt(e(323))/7)+-parseInt(e(313))/8+parseInt(e(315))/9*(parseInt(e(324))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(327),et(320),et(319),et(312),et(314),et(326),et(310),et(318)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=439]})(t,e)}const rt=st;function at(){const t=["11VmqNRw","execute","setAttribute","477rYhBFu","getFootnotesDefinitionsObjectElement","get","5607826thKDFb","89224yyMqep","includes","model","_updateFootnotesCounters","getAttribute","isEnabled","value","plugins","200210zCHDKF","6pSuqHe","2505292ZBRHPm","839710oSnYfF","change","refresh","5dADnMw","footnotesListStyle","25820364RUKirZ","133143ZwLdpA","3tgvCAf"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(439880===-parseInt(e(444))/1+-parseInt(e(464))/2*(-parseInt(e(445))/3)+parseInt(e(463))/4*(-parseInt(e(441))/5)+-parseInt(e(462))/6*(parseInt(e(452))/7)+-parseInt(e(453))/8*(parseInt(e(449))/9)+-parseInt(e(461))/10*(-parseInt(e(446))/11)+parseInt(e(443))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(440)](){const t=rt,{editor:e}=this,o=e[t(460)][t(451)](d)[t(450)]();this[t(458)]=!!o,this[t(459)]=o?.[t(457)](t(442))??null}[rt(447)]({value:t}){const e=rt,{editor:o}=this,n=o[e(460)][e(451)](d),i=n[e(450)]();i&&it[e(454)](t)&&o[e(455)][e(439)](o=>{const s=e;o[s(448)](s(442),t,i),n[s(456)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(854384===-parseInt(e(121))/1+parseInt(e(130))/2+-parseInt(e(120))/3+parseInt(e(124))/4*(-parseInt(e(122))/5)+parseInt(e(137))/6+parseInt(e(128))/7*(parseInt(e(117))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(132)](){const t=lt,{editor:e}=this,o=e[t(127)][t(125)](d)[t(126)]();this[t(118)]=!!o,this[t(123)]=o?.[t(131)](t(136))??null}[lt(135)]({value:t}){const e=lt,{editor:o}=this,n=o[e(127)][e(125)](d),i=n[e(126)]();i&&Number[e(133)](t)&&o[e(116)][e(119)](o=>{const s=e;o[s(129)](s(136),t,i),n[s(138)](o)})}}function dt(){const t=["2551545CuXvLA","value","8iUHZHa","get","getFootnotesDefinitionsObjectElement","plugins","5642CvNgIw","setAttribute","1245530kbaSMI","getAttribute","refresh","isInteger","5997609ThQOHI","execute","footnotesListStart","1158438FXFQyr","_updateFootnotesCounters","model","11576SuyjzE","isEnabled","change","1399131bGFIZO","307142RudAhX"];return(dt=function(){return t})()}function ht(t,e){const o=wt();return(ht=function(t,e){return o[t-=286]})(t,e)}const pt=ht;!function(t){const e=ht,o=t();for(;;)try{if(874350===parseInt(e(302))/1+-parseInt(e(301))/2*(-parseInt(e(383))/3)+-parseInt(e(373))/4+parseInt(e(328))/5+parseInt(e(299))/6+-parseInt(e(313))/7+parseInt(e(305))/8*(parseInt(e(327))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(wt);class mt extends t.Plugin{static get[pt(317)](){return pt(286)}static get[pt(294)](){return[v,d]}static get[pt(293)](){return!0}static get[pt(308)](){return!0}[pt(380)](){const t=pt,{editor:e}=this;e[t(289)][t(320)](t(345),t(343)),e[t(289)][t(320)](t(312),1),e[t(352)][t(307)](t(356),new ct(e)),e[t(352)][t(307)](t(338),new ft(e)),this[t(318)](),this[t(337)](),this[t(329)](),this[t(335)]()}[pt(318)](){const t=pt,{editor:e}=this,{schema:o}=e[t(363)];o[t(330)](t(369),{allowAttributes:[t(357),t(315)]})}[pt(337)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(322)](t(385))[t(307)](e=>{const o=t;e.on(o(377),(t,e,n)=>{const s=o,r=e[s(334)],a=e[s(333)]?.[s(370)];r[s(292)](s(378))&&a?.is(s(368),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(326)](e,i(315)))return;let r=1;const a=o[i(382)][i(349)](t,{attributes:i(365)});if(a){const e=Number[i(324)](t[i(287)](i(365)),10);Number[i(344)](e)||(r=e)}!a&&e[i(304)](i(315))||o[i(372)][i(381)](i(315),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(326)](e,i(357)))return;let r=i(343),a=!1;if(o[i(382)][i(349)](t,{attributes:i(288)})){const e={1:i(343),a:i(342),A:i(291),i:i(350),I:i(375)}[t[i(287)](i(288))];e&&(r=e),a=!0}o[i(382)][i(349)](t,{styles:i(323)})&&(r=function(t){const e=i;switch(t){case e(342):return e(353);case e(291):return e(297);default:return t}}(t[i(336)](i(323))),a=!0),!a&&e[i(304)](i(357))||o[i(372)][i(381)](i(357),r,e)}(r,a,n,i))})}),o[t(322)](t(340))[t(307)](e=>{const o=t;e.on(o(354),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;null==r||1===r?n[i(372)][i(358)](i(365),s):n[i(372)][i(381)](i(365),String(r),s)}),e.on(o(306),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;r&&i(343)!==r?n[i(372)][i(376)](i(323),r,s):n[i(372)][i(359)](i(323),s)})})}[pt(335)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(331)][t(325)](d),i=this[t(295)](),s=this[t(311)]();o[t(347)][t(366)](e=>{const r=t,a=o[r(347)][r(321)][r(341)]();let c=!1;for(const t of a){if(r(364)!==t[r(288)]||r(374)===t[r(310)])continue;const n=o[r(360)](t[r(379)][r(346)]);for(const t of n[r(348)]())t.is(r(368),r(369))&&(!t[r(304)](r(315))&&o[r(290)][r(326)](t,r(315))&&(e[r(381)](r(315),s,t),c=!0),!t[r(304)](r(357))&&o[r(290)][r(326)](t,r(357))&&(e[r(381)](r(357),i,t),c=!0))}return c&&n[r(355)](e),c})}[pt(329)](){const t=pt,{editor:e}=this;e[t(331)][t(325)](d)[t(371)](e=>this[t(314)](e))}[pt(295)](){const t=pt;return this[t(298)][t(289)][t(325)](t(345))}[pt(311)](){const t=pt;return this[t(298)][t(289)][t(325)](t(312))}[pt(314)]({container:t,value:e,digits:o}){const n=pt,i=t[n(287)](n(357)),s=t[n(287)](n(315)),r=Math[n(309)](e)+(s??1)-1;switch(i){case n(332):return function(t,e){const o=n;return String(t)[o(339)](e,"0")}(r,Math[n(362)](2,o));case n(342):case n(353):return yt(r,!1);case n(291):case n(297):return yt(r,!0);case n(350):return vt(r,!1);case n(375):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(319)](t);return Array[o(351)](n[o(316)]())[o(361)](t=>t.is(o(368),"ol")&&t[o(292)](o(378)))}function wt(){const t=["_updateFootnotesCounters","footnotesStyle","footnotesListStyle","removeAttribute","removeStyle","createRangeOn","find","max","model","insert","start","registerPostFixer","toUpperCase","element","footnotesDefinitions","parent","setFootnoteFormatter","writer","6679404GELUOx","$text","upper-roman","setStyle","element:ol","footnotes-list","position","init","setAttribute","consumable","537oRdPcq","toLowerCase","upcast","FootnotesPropertiesEditing","getAttribute","type","config","schema","upper-alpha","hasClass","isOfficialPlugin","requires","_getDefaultListStyle","mapper","upper-latin","editor","521286iwUdCn","fromCharCode","2962ZGKRIK","1585250CQUCuj","item","hasAttribute","24swaEkh","attribute:footnotesListStyle:footnotesDefinitions","add","isPremiumPlugin","floor","name","_getDefaultStartIndex","footnotes.footnotesProperties.defaultStartIndex","3588242pbjcKE","_formatFootnoteListValue","footnotesListStart","getChildren","pluginName","_defineSchema","toViewElement","define","differ","for","list-style-type","parseInt","get","checkAttribute","1327761SrnMVT","3384950SZwuFr","_defineFormatter","extend","plugins","decimal-leading-zero","modelCursor","viewItem","_definePostfixer","getStyle","_defineConverters","footnotesStart","padStart","downcast","getChanges","lower-alpha","decimal","isNaN","footnotes.footnotesProperties.defaultListStyle","nodeAfter","document","getItems","consume","lower-roman","from","commands","lower-latin","attribute:footnotesListStart:footnotesDefinitions"];return(wt=function(){return t})()}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(300)](97+t)+n,i=Math[o(309)]((i-1)/26)}return e?n[o(367)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(384)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 O.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 It(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}=O.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]})}}function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=340]})(t,e)}var xt=Et;function St(){var t=["462759wFZmaB","7886bgBhrG","isOfficialPlugin","9eUJdEl","811730RcfKCj","requires","3882760EumNma","416480iCGBEq","680jYBSvj","10196qrGkdP","isPremiumPlugin","1757682Zzpqug","FootnotesProperties","pluginName","17lAnieu"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(358e3===parseInt(e(351))/1*(-parseInt(e(353))/2)+-parseInt(e(352))/3+parseInt(e(346))/4*(parseInt(e(345))/5)+-parseInt(e(348))/6+parseInt(e(343))/7+parseInt(e(344))/8+-parseInt(e(340))/9*(parseInt(e(341))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(350)](){return xt(349)}static get[xt(342)](){return[mt,Ft]}static get[xt(354)](){return!0}static get[xt(347)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=302]})(t,e)}function Tt(){var t=["569229qajeSJ","1578353MDLaJe","36wFtYUM","669379IMNqyp","32viAwJl","20xNBOew","7701318CIQTDK","11754193MZJcom","2149560aSAckS","5206488sPlzrL","2eaIDxy"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(768268===parseInt(e(306))/1*(parseInt(e(302))/2)+-parseInt(e(303))/3*(-parseInt(e(307))/4)+-parseInt(e(311))/5+-parseInt(e(305))/6*(-parseInt(e(304))/7)+parseInt(e(312))/8+-parseInt(e(309))/9+parseInt(e(308))/10*(-parseInt(e(310))/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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},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],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}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 u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["_trackedElements","delete","reset","has","element","26657026eNaoSY","$text","insert","add","length","getElementKey","root","70LRZwev","1075398GZdzYj","4987890uSYxfO","attributes","_elementName","$graveyard","10JlLpwZ","rootName","type","42fAGDuN","flat","clear","3300600VMQBMH","get","slice","remove","name","set","10LhCuJy","createRangeOn","elementName","getChanges","nodeAfter","getItems","from","values","position","push","840342oAetQt","674607crZWwJ","174132IjIYoA","_getElementKey","_model"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=190]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(974042===parseInt(e(207))/1+parseInt(e(224))/2*(parseInt(e(190))/3)+parseInt(e(191))/4*(-parseInt(e(206))/5)+-parseInt(e(234))/6*(-parseInt(e(215))/7)+parseInt(e(218))/8+parseInt(e(208))/9+parseInt(e(212))/10*(-parseInt(e(199))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(193)];[c(210)];[c(192)];[c(194)]=new Map;constructor(t,e){const o=c;this[o(193)]=t,this[o(210)]=e[o(226)],this[o(192)]=e[o(204)]}[c(196)](){const t=c;this[t(194)][t(217)]()}[c(227)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(201)===i[e(214)]&&e(200)!==i[e(222)]&&i[e(232)][e(228)]){const t=this[e(193)][e(225)](i[e(232)][e(228)]);for(const o of t[e(229)]()){if(!o.is(e(198),this[e(210)]))continue;const t=this[e(192)](o);n[e(197)](t)||n[e(223)](t,[]),n[e(219)](t)[e(233)](o)}}if(e(221)===i[e(214)]&&i[e(222)]===this[e(210)]){const t=this[e(192)]({getAttribute:t=>i[e(209)][e(219)](t)});o[e(202)](t)}}for(const[t,n]of this[e(194)])e(211)===n[e(205)][e(213)]&&o[e(202)](t);for(const t of o)this[e(194)][e(195)](t);for(const[t,o]of n)this[e(194)][e(223)](t,o[o[e(203)]-1]);const i=new Set;for(const[t,s]of n)o[e(197)](t)&&(i[e(202)](s[0]),s[e(203)]>1?n[e(223)](t,s[e(220)](1)):n[e(195)](t),o[e(195)](t));return{removed:Array[e(230)](o),inserted:Array[e(230)](n[e(231)]())[e(216)](),moved:Array[e(230)](i)}}}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=244]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543919===parseInt(e(254))/1*(parseInt(e(253))/2)+parseInt(e(303))/3+-parseInt(e(316))/4+parseInt(e(292))/5+-parseInt(e(301))/6*(-parseInt(e(323))/7)+-parseInt(e(327))/8+parseInt(e(258))/9*(parseInt(e(297))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(276)]=[];[u(296)]=null;[u(283)]=null;[u(307)];[u(289)];[u(272)];static get[u(284)](){return u(277)}static get[u(336)](){return!0}static get[u(261)](){return!0}constructor(t){const e=u;super(t),this[e(307)]=new l(this[e(331)][e(310)],{elementName:e(280),getElementKey:()=>e(281)}),this[e(289)]=new l(this[e(331)][e(310)],{elementName:e(304),getElementKey:t=>t[e(256)](e(299))}),this[e(272)]=new l(this[e(331)][e(310)],{elementName:e(247),getElementKey:t=>t[e(256)](e(299))})}[u(278)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(264)][t(262)](e=>{const n=t,i=o[n(264)][n(265)][n(315)]();let s=!1;return this[n(244)](e,i)&&(s=!0),this[n(286)](e,i)&&(s=!0),this[n(302)](e,i)&&(s=!0),this[n(332)](e)&&(s=!0),this[n(328)](e)&&(s=!0),this[n(311)](e)&&(s=!0),s}),this[t(268)](o[t(264)],t(318),()=>{const e=t;o[e(330)]({isUndoable:!1},t=>{this[e(251)](t)})},{priority:t(274)}),this[t(268)](n,t(312),()=>{const e=t;this[e(276)]=[],this[e(307)][e(337)](),this[e(289)][e(337)](),this[e(272)][e(337)]()},{priority:t(335)})}[u(249)](){return this[u(296)]}[u(250)](t){const e=u;return this[e(276)][e(300)](e=>e.id===t)||null}[u(344)](){const t=u;return Array[t(308)](this[t(276)])}[u(305)](){return this[u(283)]}[u(259)](t){this[u(283)]=t}[u(255)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(276)][o(314)];i++)this[o(334)](t,i)&&(n=!0);return n}[u(340)](t,e){const o=u,n=t[o(339)](o(280),{});return t[o(290)](n,e),this[o(296)]=n,n}[u(251)](t){const e=u;if(!this[e(276)][e(314)]||this[e(296)])return;const o=this[e(276)][0][e(291)][e(293)],n=this[e(340)](t,o);for(const o of this[e(276)])o[e(317)][e(248)]||t[e(298)](o[e(317)],n,e(319));this[e(255)](t)}[u(244)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(307)][o(315)](e);if(r[o(314)]&&(this[o(296)]=r[0]),i[o(314)])if(i[o(314)]>1||this[o(296)]&&i[o(245)](t=>t!==this[o(296)])){const e=t[o(339)](o(280),{}),s=[];this[o(296)]&&s[o(282)](this[o(296)]),s[o(282)](...i),t[o(298)](e,s[0],o(279));for(const n of s)t[o(329)](t[o(288)](n),t[o(294)](e,o(319))),t[o(338)](n);this[o(296)]=e,this[o(255)](t),n=!0}else this[o(296)]=i[0];if(s[o(314)]&&o(266)===this[o(296)]?.[o(293)][o(269)]){for(const e of this[o(276)])t[o(338)](e[o(291)]),n=!0;this[o(276)]=[],this[o(296)]=null}return n}[u(286)](t,e){const o=u;let n=!1;const i=this[o(331)][o(326)][o(341)](o(333)),{inserted:s,moved:r}=this[o(272)][o(315)](e);for(const e of[...r,...s]){const s=e[o(256)](o(299)),r=this[o(250)](s);r&&(r[o(317)]=e),p(t,i,e)&&(n=!0)}return n}[u(302)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(289)][o(315)](e);for(const e of i)this[o(306)](t,e)&&(n=!0);for(const e of s)this[o(260)](t,e)&&(n=!0);for(const e of r)this[o(343)](t,e)&&(n=!0);return n}[u(328)](t){const e=u;if(!this[e(296)])return!1;let o=!1;if(this[e(296)][e(313)]!==this[e(276)][e(314)]){const n=[];for(const t of this[e(296)][e(295)]()){const i=t[e(256)](e(299));this[e(250)](i)||(n[e(287)](t),o=!0)}for(const o of n)t[e(338)](o)}const n=new Set,i=[];for(const t of this[e(296)][e(295)]()){const s=t[e(256)](e(299));n[e(325)](s)?(i[e(287)](t),o=!0):n[e(322)](s)}for(const o of i)t[e(338)](o);return this[e(296)][e(313)]||(t[e(338)](this[e(296)]),this[e(296)]=null,o=!0),o}[u(260)](t,e){const o=u;if(this[o(276)][o(300)](t=>t[o(291)]===e))return!1;let n=!1;const i=e[o(256)](o(299)),s=this[o(276)][o(320)](t=>t.id===i);-1!==s&&(t[o(338)](this[o(276)][s][o(291)]),this[o(276)][o(257)](s,1),n=!0);let r=this[o(296)]?function(t,e){const n=o;for(const o of t[n(295)]())if(o[n(256)](n(299))===e)return o;return null}(this[o(296)],i):null;r||(r=t[o(339)](o(247),{footnoteId:i}),this[o(296)]&&(t[o(298)](r,this[o(296)],o(319)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(331)][o(310)],this[o(276)],e);this[o(276)][o(257)](c,0,a);let l=c;return-1!==s&&(l=Math[o(270)](c,s)),this[o(255)](t,l)&&(n=!0),n}[u(306)](t,e){const o=u,n=this[o(276)][o(320)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(276)][n];return o(266)!==s[o(317)][o(293)][o(269)]&&(t[o(338)](s[o(317)]),i=!0),this[o(276)][o(257)](n,1),this[o(255)](t,n)&&(i=!0),i}[u(343)](t,e){const o=u,n=e[o(256)](o(299)),i=this[o(276)][o(320)](t=>t.id===n),s=this[o(276)][i];let r=!1;s[o(291)]=e,this[o(276)][o(257)](i,1);const a=m(this[o(331)][o(310)],this[o(276)],e);return this[o(276)][o(257)](a,0,s),this[o(255)](t,Math[o(270)](i,a))&&(r=!0),r}[u(334)](t,e){const o=u;if(!this[o(296)])return!1;const n=this[o(276)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(296)],digits:String(this[o(276)][o(314)])[o(314)],value:e+1}):String(e+1),n[o(291)][o(256)](o(263))!=i&&(t[o(275)](o(263),i,n[o(291)]),!0)}[u(311)](t){const e=u;if(!this[e(296)]||this[e(276)][e(314)]<2)return!1;if(function(t,o){const n=e;if(t[n(314)]!==o[n(314)])return!1;for(let e=0;e<t[n(314)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(276)][e(267)](t=>t.id),Array[e(308)](this[e(296)][e(295)]())[e(267)](t=>t[e(256)](e(299)))))return!1;let o=!1;for(let n=0;n<this[e(276)][e(314)];n++){const i=this[e(276)][n],s=t[e(271)](i[e(317)]),r=t[e(294)](this[e(296)],n);s[e(252)](r)||(t[e(329)](t[e(309)](i[e(317)]),r),o=!0)}return o}[u(332)](t){const e=u;if(!this[e(276)][e(314)])return!1;const{model:o}=this[e(331)];let n=!1;for(let i=0;i<this[e(276)][e(314)]-1;i++){const s=this[e(276)][i],r=this[e(276)][i+1],a=o[e(271)](s[e(291)]),c=o[e(271)](r[e(291)]);e(285)===a[e(342)](c)&&(this[e(343)](t,s[e(291)]),i=-1,n=!0)}return n}}function h(){const t=["8Hvtkde","_updateFootnotesCounters","getAttribute","splice","2932830XREEHR","setFootnoteFormatter","_handleInsertedFootnoteReference","isPremiumPlugin","registerPostFixer","footnoteCounter","document","differ","$graveyard","map","listenTo","rootName","min","createPositionBefore","_footnoteDefsTracker","paragraph","low","setAttribute","_footnotes","FootnotesTracker","init","before","footnotesDefinitions","singleton","push","_footnoteFormatter","pluginName","after","_handleFootnoteDefinitionsChanges","unshift","createRangeIn","_footnoteRefsTracker","append","reference","590625mLCTHM","root","createPositionAt","getChildren","_footnotesDefinitions","10skAdOa","insert","footnoteId","find","64902gsbPmk","_handleFootnoteReferencesChanges","1239021REBQPO","footnoteRef","getFootnotesFormatter","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","from","createRangeOn","model","_sortFootnoteDefinitions","set","childCount","length","getChanges","2065736TiTxrR","definition","change:data","end","findIndex","indexOf","add","427thQkui","footnoteInlineContent","has","config","5655472ilAePx","_handleFootnotesDefinitionsObjectSync","move","enqueueChange","editor","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","_updateFootnoteRefCounter","high","isOfficialPlugin","reset","remove","createElement","_insertEmptyFootnotesDefinitionsContainer","get","compareWith","_handleMovedFootnoteReference","getFootnotes","_handleFootnotesDefinitionsObjectChanges","some","getRootNames","footnoteDefinition","parent","getFootnotesDefinitionsObjectElement","getFootnote","_ensureFootnotesDefinitionsContainerExists","isEqual","62612mAhJMo"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(313)])return!1;const i=n(e?273:324);return t[n(298)](t[n(339)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(314)])return 0;const i=t[n(271)](o);for(let o=0;o<e[n(314)];o++){const s=e[o],r=t[n(271)](s[n(291)]);if(n(279)===i[n(342)](r))return o}const s=o[n(293)];let r=-1;for(let t=e[n(314)]-1;t>=0;t--)if(e[t][n(291)][n(293)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(264)][n(246)](),c=a[n(321)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(314)];t++)if(e[t][n(291)][n(293)][n(269)]===l)return t;return e[n(314)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=216]})(t,e)}function y(){const t=["getItems","test","675075GuuSlg","insert-footnote-command-executed-with-invalid-id","getFirstRange","end","checkChild","3116190yGrvWl","3960330EenCgX","16TnBWle","refresh","change","length","footnoteRef","string","model","isObject","2565670IGubNu","864304nDmtev","editor","execute","isEnabled","plugins","1107005hcVLBQ","insertObject","isBlock","get","_moveSelectionToFootnoteDefinition","document","footnoteId","createElement","3298683JDTHgp","FootnotesEditing","selection","64qYSjpc","18aUdSOu","_getPositionToInsertFootnote"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(854476===-parseInt(e(250))/1+parseInt(e(218))/2+-parseInt(e(242))/3+parseInt(e(220))/4*(parseInt(e(234))/5)+parseInt(e(219))/6+-parseInt(e(229))/7*(parseInt(e(245))/8)+-parseInt(e(246))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(221)](){const t=g,e=this[t(230)][t(226)][t(239)][t(244)],o=this[t(247)](e);this[t(232)]=!!o}[g(231)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(239)],r=this[e(247)](s);if(!r)return;const a=o[e(233)][e(237)](e(243)),c=t?.[e(240)]??(0,i.uid)();!function(t){const o=e;return o(225)==typeof t&&t[o(223)]>0&&!/\s/[o(249)](t)&&!/^\d/[o(249)](t)}(c)?(0,i.logWarning)(e(251)):(n[e(222)](t=>{const o=e,i=t[o(241)](o(224),{footnoteId:c});n[o(235)](i,r,null)}),a[e(238)](c))}[g(247)](t){const e=g,{model:o}=this[e(230)],{schema:n}=o,i=t[e(252)]();for(const t of i[e(248)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(216)];return n[e(217)](s,e(224))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1772323200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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 E(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 x(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 A=o(331);function P(t,e){const o=D();return(P=function(t,e){return o[t-=294]})(t,e)}const T=P;function D(){const t=["content","footnoteInlineContent","push","toModel","2EDYLWs","document","createRangeIn","isOfficialPlugin","contentInsertion","429864AdMdEc","from","keys","getData","28xKrWQz","_defineClipboardIntegration","footnotesDefinitions","length","createElement","find","insert","getRanges","change","568364gvXbzZ","_insertEmptyFootnotesDefinitionsContainer","getChildren","_handlePasteFootnotesDefinitions","string","dataTransfer","2845856VQhbth","pluginName","listenTo","_handleCopyFootnotesDefinitions","get","setData","selection","setAttribute","getFirstRange","htmlProcessor","init","stringify","end","335crPnKc","remove","121JkmEql","element","getFootnotesDefinitionsObjectElement","footnoteId","9lXtGPF","drop","getFootnote","hasAttribute","append","application/ckeditor5-footnotes","config","parse","toView","add","clipboardInput","getAttribute","footnoteRef","requires","entries","footnotes.multiBlock","isPremiumPlugin","7518lerKAh","FootnotesClipboard","cloneElement","getFootnotes","includes","1215945TfnBOj","flatMap","getSelectedBlocks","editor","reduce","create","1882490WGlFQM","definition","sourceEditorId","root","toData","data","footnoteDefinition","method","outputTransformation","1114428svukjF","editing"];return(D=function(){return t})()}!function(t){const e=P,o=t();for(;;)try{if(415876===parseInt(e(344))/1+-parseInt(e(326))/2*(parseInt(e(305))/3)+-parseInt(e(350))/4+-parseInt(e(363))/5*(parseInt(e(300))/6)+parseInt(e(335))/7*(parseInt(e(331))/8)+parseInt(e(369))/9*(-parseInt(e(311))/10)+parseInt(e(365))/11*(parseInt(e(320))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(351)](){return T(301)}static get[T(296)](){return[v,A.ClipboardPipeline]}static get[T(329)](){return!0}static get[T(299)](){return!0}[T(360)](){this[T(336)]()}[T(336)](){const t=T;this[t(353)](),this[t(347)]()}[T(353)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(354)](A.ClipboardPipeline),s=o[t(354)](d);this[t(352)](i,t(319),(o,i)=>{const r=t,a=V(n[r(328)](i[r(322)]));if(!a[r(338)])return;const c=s[r(303)](),l=a[r(309)]((t,o)=>{const n=r,i=c[n(340)](t=>t.id===o);if(i){const o=e[n(316)][n(377)](i[n(312)],{isClipboardPipeline:!0}),s=e[n(316)][n(359)][n(315)](o);t[i.id]=s}return t},Object[r(310)](null));i[r(349)][r(355)](r(374),JSON[r(361)](l))})}[T(347)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(321)],r=n[t(354)](A.ClipboardPipeline),a=n[t(354)](d),c=e[t(375)][t(354)](t(298));let l=null;this[t(352)](s[t(327)],t(379),(e,o)=>{const n=t,i=o[n(349)][n(334)](n(374));l=i?JSON[n(376)](i):null}),this[t(352)](r,t(330),(n,s)=>{const r=t,u=s[r(313)]===this[r(308)].id;u&&r(370)===s[r(318)]||o[r(343)](t=>{const n=r;let f=a[n(367)]();const d=!!f&&Array[n(332)](o[n(327)][n(356)][n(307)]())[n(304)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(366),e(295)))return!0;return!1}(o[n(328)](s[n(322)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(310)](null);for(const e of i[o(346)]())e.is(o(366),o(317))&&e[o(372)](o(368))&&(s[e[o(294)](o(368))]=t[o(302)](e,!0));return Object[o(333)](s)[o(338)]?s:null}(t,s[n(322)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(328)](e))n.is(o(366),o(337))&&i[o(324)](n);for(const e of i)t[o(364)](e)}(t,s[n(322)]),!l)return;const{selection:h}=o[n(327)],p=h[n(358)]()[n(314)];f&&!d||(f=L(t,s[n(322)]),f||=a[n(345)](t,p));const m=Array[n(332)](h[n(342)]())[n(306)](V),g=function(t,e,o){const s=n,r=Object[s(310)](null);for(const{item:n}of t[s(328)](e))if(n.is(s(366),s(295))){const e=n[s(294)](s(368));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(357)](s(368),r[e],n)}return r}(t,s[n(322)],t=>{const e=n;return!u||!!a[e(371)](t)&&!m[e(304)](t)});for(const[o,i]of Object[n(297)](l)){const s=g[o]||o;let r;if(n(348)!=typeof i)r=i,s!==o&&t[n(357)](n(368),s,r);else{r=t[n(339)](n(317),{footnoteId:s});const o=e[n(316)][n(359)][n(377)](i);let a;if(c)a=e[n(316)][n(325)](o,r);else{a=t[n(339)](n(323));const i=e[n(316)][n(325)](o,a);t[n(341)](i,a)}t[n(373)](a,r)}t[n(341)](r,f,n(362))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(328)](e))if(n.is(o(366),o(337)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(366),e(295))&&o[e(378)](n[e(294)](e(368)));return Array[e(332)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),W=o(123),z=o.n(W),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class Z 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",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=$;function Y(){var t=["860WWxRBT","pluginName","isPremiumPlugin","5505615WBlxtD","10546542ERWagz","57770XkmAeR","154oAdsLk","isOfficialPlugin","33875QfqTDU","requires","240954VyCLYk","Footnotes","9128250HDvDMX","1711558SoGbXd","8AUWlAa"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=146]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(918742===parseInt(e(149))/1+-parseInt(e(156))/2+parseInt(e(154))/3+parseInt(e(151))/4*(-parseInt(e(159))/5)+-parseInt(e(146))/6*(parseInt(e(157))/7)+parseInt(e(150))/8*(-parseInt(e(155))/9)+parseInt(e(148))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[X(152)](){return X(147)}static get[X(160)](){return[v,_,Z]}static get[X(158)](){return!0}static get[X(153)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=310]})(t,e)}function nt(){const t=["21fyPkfE","52416870ShsNrK","1108626yVhrBJ","upper-alpha","decimal","lower-roman","3406794SLiQPx","upper-latin","7300960uBlTsl","lower-alpha","9jezgnj","332onvwLS","3542901psKJuJ","upper-roman","lower-latin","decimal-leading-zero","1811345PGcHJW","104575fbOnHM"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(965790===parseInt(e(321))/1+-parseInt(e(311))/2+-parseInt(e(317))/3+parseInt(e(316))/4*(-parseInt(e(322))/5)+parseInt(e(325))/6*(-parseInt(e(323))/7)+-parseInt(e(313))/8+parseInt(e(315))/9*(parseInt(e(324))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(327),et(320),et(319),et(312),et(314),et(326),et(310),et(318)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=439]})(t,e)}const rt=st;function at(){const t=["11VmqNRw","execute","setAttribute","477rYhBFu","getFootnotesDefinitionsObjectElement","get","5607826thKDFb","89224yyMqep","includes","model","_updateFootnotesCounters","getAttribute","isEnabled","value","plugins","200210zCHDKF","6pSuqHe","2505292ZBRHPm","839710oSnYfF","change","refresh","5dADnMw","footnotesListStyle","25820364RUKirZ","133143ZwLdpA","3tgvCAf"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(439880===-parseInt(e(444))/1+-parseInt(e(464))/2*(-parseInt(e(445))/3)+parseInt(e(463))/4*(-parseInt(e(441))/5)+-parseInt(e(462))/6*(parseInt(e(452))/7)+-parseInt(e(453))/8*(parseInt(e(449))/9)+-parseInt(e(461))/10*(-parseInt(e(446))/11)+parseInt(e(443))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(440)](){const t=rt,{editor:e}=this,o=e[t(460)][t(451)](d)[t(450)]();this[t(458)]=!!o,this[t(459)]=o?.[t(457)](t(442))??null}[rt(447)]({value:t}){const e=rt,{editor:o}=this,n=o[e(460)][e(451)](d),i=n[e(450)]();i&&it[e(454)](t)&&o[e(455)][e(439)](o=>{const s=e;o[s(448)](s(442),t,i),n[s(456)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(854384===-parseInt(e(121))/1+parseInt(e(130))/2+-parseInt(e(120))/3+parseInt(e(124))/4*(-parseInt(e(122))/5)+parseInt(e(137))/6+parseInt(e(128))/7*(parseInt(e(117))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(132)](){const t=lt,{editor:e}=this,o=e[t(127)][t(125)](d)[t(126)]();this[t(118)]=!!o,this[t(123)]=o?.[t(131)](t(136))??null}[lt(135)]({value:t}){const e=lt,{editor:o}=this,n=o[e(127)][e(125)](d),i=n[e(126)]();i&&Number[e(133)](t)&&o[e(116)][e(119)](o=>{const s=e;o[s(129)](s(136),t,i),n[s(138)](o)})}}function dt(){const t=["2551545CuXvLA","value","8iUHZHa","get","getFootnotesDefinitionsObjectElement","plugins","5642CvNgIw","setAttribute","1245530kbaSMI","getAttribute","refresh","isInteger","5997609ThQOHI","execute","footnotesListStart","1158438FXFQyr","_updateFootnotesCounters","model","11576SuyjzE","isEnabled","change","1399131bGFIZO","307142RudAhX"];return(dt=function(){return t})()}function ht(t,e){const o=wt();return(ht=function(t,e){return o[t-=286]})(t,e)}const pt=ht;!function(t){const e=ht,o=t();for(;;)try{if(874350===parseInt(e(302))/1+-parseInt(e(301))/2*(-parseInt(e(383))/3)+-parseInt(e(373))/4+parseInt(e(328))/5+parseInt(e(299))/6+-parseInt(e(313))/7+parseInt(e(305))/8*(parseInt(e(327))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(wt);class mt extends t.Plugin{static get[pt(317)](){return pt(286)}static get[pt(294)](){return[v,d]}static get[pt(293)](){return!0}static get[pt(308)](){return!0}[pt(380)](){const t=pt,{editor:e}=this;e[t(289)][t(320)](t(345),t(343)),e[t(289)][t(320)](t(312),1),e[t(352)][t(307)](t(356),new ct(e)),e[t(352)][t(307)](t(338),new ft(e)),this[t(318)](),this[t(337)](),this[t(329)](),this[t(335)]()}[pt(318)](){const t=pt,{editor:e}=this,{schema:o}=e[t(363)];o[t(330)](t(369),{allowAttributes:[t(357),t(315)]})}[pt(337)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(322)](t(385))[t(307)](e=>{const o=t;e.on(o(377),(t,e,n)=>{const s=o,r=e[s(334)],a=e[s(333)]?.[s(370)];r[s(292)](s(378))&&a?.is(s(368),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(326)](e,i(315)))return;let r=1;const a=o[i(382)][i(349)](t,{attributes:i(365)});if(a){const e=Number[i(324)](t[i(287)](i(365)),10);Number[i(344)](e)||(r=e)}!a&&e[i(304)](i(315))||o[i(372)][i(381)](i(315),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(326)](e,i(357)))return;let r=i(343),a=!1;if(o[i(382)][i(349)](t,{attributes:i(288)})){const e={1:i(343),a:i(342),A:i(291),i:i(350),I:i(375)}[t[i(287)](i(288))];e&&(r=e),a=!0}o[i(382)][i(349)](t,{styles:i(323)})&&(r=function(t){const e=i;switch(t){case e(342):return e(353);case e(291):return e(297);default:return t}}(t[i(336)](i(323))),a=!0),!a&&e[i(304)](i(357))||o[i(372)][i(381)](i(357),r,e)}(r,a,n,i))})}),o[t(322)](t(340))[t(307)](e=>{const o=t;e.on(o(354),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;null==r||1===r?n[i(372)][i(358)](i(365),s):n[i(372)][i(381)](i(365),String(r),s)}),e.on(o(306),(t,e,n)=>{const i=o;if(!n[i(382)][i(349)](e[i(303)],t[i(310)]))return;const s=gt(e[i(303)],n[i(296)]),{attributeNewValue:r}=e;r&&i(343)!==r?n[i(372)][i(376)](i(323),r,s):n[i(372)][i(359)](i(323),s)})})}[pt(335)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(331)][t(325)](d),i=this[t(295)](),s=this[t(311)]();o[t(347)][t(366)](e=>{const r=t,a=o[r(347)][r(321)][r(341)]();let c=!1;for(const t of a){if(r(364)!==t[r(288)]||r(374)===t[r(310)])continue;const n=o[r(360)](t[r(379)][r(346)]);for(const t of n[r(348)]())t.is(r(368),r(369))&&(!t[r(304)](r(315))&&o[r(290)][r(326)](t,r(315))&&(e[r(381)](r(315),s,t),c=!0),!t[r(304)](r(357))&&o[r(290)][r(326)](t,r(357))&&(e[r(381)](r(357),i,t),c=!0))}return c&&n[r(355)](e),c})}[pt(329)](){const t=pt,{editor:e}=this;e[t(331)][t(325)](d)[t(371)](e=>this[t(314)](e))}[pt(295)](){const t=pt;return this[t(298)][t(289)][t(325)](t(345))}[pt(311)](){const t=pt;return this[t(298)][t(289)][t(325)](t(312))}[pt(314)]({container:t,value:e,digits:o}){const n=pt,i=t[n(287)](n(357)),s=t[n(287)](n(315)),r=Math[n(309)](e)+(s??1)-1;switch(i){case n(332):return function(t,e){const o=n;return String(t)[o(339)](e,"0")}(r,Math[n(362)](2,o));case n(342):case n(353):return yt(r,!1);case n(291):case n(297):return yt(r,!0);case n(350):return vt(r,!1);case n(375):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(319)](t);return Array[o(351)](n[o(316)]())[o(361)](t=>t.is(o(368),"ol")&&t[o(292)](o(378)))}function wt(){const t=["_updateFootnotesCounters","footnotesStyle","footnotesListStyle","removeAttribute","removeStyle","createRangeOn","find","max","model","insert","start","registerPostFixer","toUpperCase","element","footnotesDefinitions","parent","setFootnoteFormatter","writer","6679404GELUOx","$text","upper-roman","setStyle","element:ol","footnotes-list","position","init","setAttribute","consumable","537oRdPcq","toLowerCase","upcast","FootnotesPropertiesEditing","getAttribute","type","config","schema","upper-alpha","hasClass","isOfficialPlugin","requires","_getDefaultListStyle","mapper","upper-latin","editor","521286iwUdCn","fromCharCode","2962ZGKRIK","1585250CQUCuj","item","hasAttribute","24swaEkh","attribute:footnotesListStyle:footnotesDefinitions","add","isPremiumPlugin","floor","name","_getDefaultStartIndex","footnotes.footnotesProperties.defaultStartIndex","3588242pbjcKE","_formatFootnoteListValue","footnotesListStart","getChildren","pluginName","_defineSchema","toViewElement","define","differ","for","list-style-type","parseInt","get","checkAttribute","1327761SrnMVT","3384950SZwuFr","_defineFormatter","extend","plugins","decimal-leading-zero","modelCursor","viewItem","_definePostfixer","getStyle","_defineConverters","footnotesStart","padStart","downcast","getChanges","lower-alpha","decimal","isNaN","footnotes.footnotesProperties.defaultListStyle","nodeAfter","document","getItems","consume","lower-roman","from","commands","lower-latin","attribute:footnotesListStart:footnotesDefinitions"];return(wt=function(){return t})()}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(300)](97+t)+n,i=Math[o(309)]((i-1)/26)}return e?n[o(367)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(384)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 O.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 It(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}=O.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]})}}function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=340]})(t,e)}var xt=Et;function St(){var t=["462759wFZmaB","7886bgBhrG","isOfficialPlugin","9eUJdEl","811730RcfKCj","requires","3882760EumNma","416480iCGBEq","680jYBSvj","10196qrGkdP","isPremiumPlugin","1757682Zzpqug","FootnotesProperties","pluginName","17lAnieu"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(358e3===parseInt(e(351))/1*(-parseInt(e(353))/2)+-parseInt(e(352))/3+parseInt(e(346))/4*(parseInt(e(345))/5)+-parseInt(e(348))/6+parseInt(e(343))/7+parseInt(e(344))/8+-parseInt(e(340))/9*(parseInt(e(341))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(350)](){return xt(349)}static get[xt(342)](){return[mt,Ft]}static get[xt(354)](){return!0}static get[xt(347)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=302]})(t,e)}function Tt(){var t=["569229qajeSJ","1578353MDLaJe","36wFtYUM","669379IMNqyp","32viAwJl","20xNBOew","7701318CIQTDK","11754193MZJcom","2149560aSAckS","5206488sPlzrL","2eaIDxy"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(768268===parseInt(e(306))/1*(parseInt(e(302))/2)+-parseInt(e(303))/3*(-parseInt(e(307))/4)+-parseInt(e(311))/5+-parseInt(e(305))/6*(-parseInt(e(304))/7)+parseInt(e(312))/8+-parseInt(e(309))/9+parseInt(e(308))/10*(-parseInt(e(310))/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 _0x10a194,Command as _0x3fd568}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3983ce,isWidget as _0x5b2352,toWidgetEditable as _0x1933ae,WidgetToolbarRepository as _0xd4b96d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x586cb6,logWarning as _0x33cc1a,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x29952f,ClickObserver as _0xb8d7e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4e73ca}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3fea61,ButtonView as _0x51c3a7,View as _0x106402,ViewCollection as _0x2e2371,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x26fa71,BalloonPanelView as _0x5f464f,createDropdown as _0x33115f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x213e33,IconListStyleDecimal as _0xc47fe9,IconListStyleDecimalLeadingZero as _0x2fc4ea,IconListStyleLowerRoman as _0x56ba63,IconListStyleUpperRoman as _0xfb3ec9,IconListStyleLowerLatin as _0x21f4b8,IconListStyleUpperLatin as _0x43a17e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4541e1,_0x4c27b7){this['_model']=_0x4541e1,this['_elementName']=_0x4c27b7['elementName'],this['_getElementKey']=_0x4c27b7['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x443c29){const _0x207a10=new Set(),_0x4387f0=new Map();for(const _0x29ee6e of _0x443c29){if('insert'===_0x29ee6e['type']&&'$text'!==_0x29ee6e['name']&&_0x29ee6e['position']['nodeAfter']){const _0xa98c1c=this['_model']['createRangeOn'](_0x29ee6e['position']['nodeAfter']);for(const _0x47b8f8 of _0xa98c1c['getItems']()){if(!_0x47b8f8['is']('element',this['_elementName']))continue;const _0x1d4949=this['_getElementKey'](_0x47b8f8);_0x4387f0['has'](_0x1d4949)||_0x4387f0['set'](_0x1d4949,[]),_0x4387f0['get'](_0x1d4949)['push'](_0x47b8f8);}}if('remove'===_0x29ee6e['type']&&_0x29ee6e['name']===this['_elementName']){const _0x22fa5f=this['_getElementKey']({'getAttribute':_0x560c7f=>_0x29ee6e['attributes']['get'](_0x560c7f)});_0x207a10['add'](_0x22fa5f);}}for(const [_0x5d6715,_0x9add5e]of this['_trackedElements'])'$graveyard'===_0x9add5e['root']['rootName']&&_0x207a10['add'](_0x5d6715);for(const _0x53966e of _0x207a10)this['_trackedElements']['delete'](_0x53966e);for(const [_0x35c7c8,_0x405ea5]of _0x4387f0)this['_trackedElements']['set'](_0x35c7c8,_0x405ea5[_0x405ea5['length']-0x1]);const _0x37f03e=new Set();for(const [_0x23bc43,_0x2d544a]of _0x4387f0)_0x207a10['has'](_0x23bc43)&&(_0x37f03e['add'](_0x2d544a[0x0]),_0x2d544a['length']>0x1?_0x4387f0['set'](_0x23bc43,_0x2d544a['slice'](0x1)):_0x4387f0['delete'](_0x23bc43),_0x207a10['delete'](_0x23bc43));return{'removed':Array['from'](_0x207a10),'inserted':Array['from'](_0x4387f0['values']())['flat'](),'moved':Array['from'](_0x37f03e)};}}class f extends _0x10a194{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x228fc1){super(_0x228fc1),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3228c1=>_0x3228c1['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5ede72=>_0x5ede72['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4b6151}=this,{model:_0x3adb92,data:_0x537391}=_0x4b6151;_0x3adb92['document']['registerPostFixer'](_0x4a5bee=>{const _0x390192=_0x3adb92['document']['differ']['getChanges']();let _0x3a6cbc=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4a5bee,_0x390192)&&(_0x3a6cbc=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4a5bee,_0x390192)&&(_0x3a6cbc=!0x0),this['_handleFootnoteReferencesChanges'](_0x4a5bee,_0x390192)&&(_0x3a6cbc=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4a5bee)&&(_0x3a6cbc=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4a5bee)&&(_0x3a6cbc=!0x0),this['_sortFootnoteDefinitions'](_0x4a5bee)&&(_0x3a6cbc=!0x0),_0x3a6cbc;}),this['listenTo'](_0x3adb92['document'],'change:data',()=>{_0x3adb92['enqueueChange']({'isUndoable':!0x1},_0x2f53db=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2f53db);});},{'priority':'low'}),this['listenTo'](_0x537391,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x22cffa){return this['_footnotes']['find'](_0x116a51=>_0x116a51['id']===_0x22cffa)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3b5593){this['_footnoteFormatter']=_0x3b5593;}['_updateFootnotesCounters'](_0x55aa20,_0x7f2591=0x0){let _0x5989c9=!0x1;for(let _0x372c1a=_0x7f2591;_0x372c1a<this['_footnotes']['length'];_0x372c1a++)this['_updateFootnoteRefCounter'](_0x55aa20,_0x372c1a)&&(_0x5989c9=!0x0);return _0x5989c9;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3004bb,_0x290f3b){const _0x40f486=_0x3004bb['createElement']('footnotesDefinitions',{});return _0x3004bb['append'](_0x40f486,_0x290f3b),this['_footnotesDefinitions']=_0x40f486,_0x40f486;}['_ensureFootnotesDefinitionsContainerExists'](_0x3d801a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a4623=this['_footnotes'][0x0]['reference']['root'],_0x71590c=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3d801a,_0x4a4623);for(const _0x34d140 of this['_footnotes'])_0x34d140['definition']['parent']||_0x3d801a['insert'](_0x34d140['definition'],_0x71590c,'end');this['_updateFootnotesCounters'](_0x3d801a);}['_handleFootnotesDefinitionsObjectChanges'](_0x356559,_0x2c1cb8){let _0x1ce050=!0x1;const {inserted:_0x167c72,removed:_0x5c5953,moved:_0x2cf5c4}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2c1cb8);if(_0x2cf5c4['length']&&(this['_footnotesDefinitions']=_0x2cf5c4[0x0]),_0x167c72['length']){if(_0x167c72['length']>0x1||this['_footnotesDefinitions']&&_0x167c72['some'](_0xe3a8f4=>_0xe3a8f4!==this['_footnotesDefinitions'])){const _0x47ae80=_0x356559['createElement']('footnotesDefinitions',{}),_0x1b5ebe=[];this['_footnotesDefinitions']&&_0x1b5ebe['push'](this['_footnotesDefinitions']),_0x1b5ebe['push'](..._0x167c72),_0x356559['insert'](_0x47ae80,_0x1b5ebe[0x0],'before');for(const _0x3000ef of _0x1b5ebe)_0x356559['move'](_0x356559['createRangeIn'](_0x3000ef),_0x356559['createPositionAt'](_0x47ae80,'end')),_0x356559['remove'](_0x3000ef);this['_footnotesDefinitions']=_0x47ae80,this['_updateFootnotesCounters'](_0x356559),_0x1ce050=!0x0;}else this['_footnotesDefinitions']=_0x167c72[0x0];}if(_0x5c5953['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2d9faf of this['_footnotes'])_0x356559['remove'](_0x2d9faf['reference']),_0x1ce050=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1ce050;}['_handleFootnoteDefinitionsChanges'](_0x297d4a,_0x224ea1){let _0xdad82c=!0x1;const _0x454abf=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x730a5c,moved:_0x3bc03a}=this['_footnoteDefsTracker']['getChanges'](_0x224ea1);for(const _0x39f2f1 of[..._0x3bc03a,..._0x730a5c]){const _0x1cb30e=_0x39f2f1['getAttribute']('footnoteId'),_0x881627=this['getFootnote'](_0x1cb30e);_0x881627&&(_0x881627['definition']=_0x39f2f1),_(_0x297d4a,_0x454abf,_0x39f2f1)&&(_0xdad82c=!0x0);}return _0xdad82c;}['_handleFootnoteReferencesChanges'](_0x5b96f9,_0x5c734a){let _0x5bb85a=!0x1;const {removed:_0x7b5434,inserted:_0x181a2e,moved:_0x38fcad}=this['_footnoteRefsTracker']['getChanges'](_0x5c734a);for(const _0xb5352e of _0x7b5434)this['_handleRemoveFootnoteReferenceById'](_0x5b96f9,_0xb5352e)&&(_0x5bb85a=!0x0);for(const _0x56958f of _0x181a2e)this['_handleInsertedFootnoteReference'](_0x5b96f9,_0x56958f)&&(_0x5bb85a=!0x0);for(const _0x4d1c8d of _0x38fcad)this['_handleMovedFootnoteReference'](_0x5b96f9,_0x4d1c8d)&&(_0x5bb85a=!0x0);return _0x5bb85a;}['_handleFootnotesDefinitionsObjectSync'](_0x484efd){if(!this['_footnotesDefinitions'])return!0x1;let _0x2a41fa=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xbb07a5=[];for(const _0x40f93e of this['_footnotesDefinitions']['getChildren']()){const _0x554b2e=_0x40f93e['getAttribute']('footnoteId');this['getFootnote'](_0x554b2e)||(_0xbb07a5['unshift'](_0x40f93e),_0x2a41fa=!0x0);}for(const _0x21269a of _0xbb07a5)_0x484efd['remove'](_0x21269a);}const _0x5de49c=new Set(),_0x5a31c6=[];for(const _0x48b426 of this['_footnotesDefinitions']['getChildren']()){const _0x2b0140=_0x48b426['getAttribute']('footnoteId');_0x5de49c['has'](_0x2b0140)?(_0x5a31c6['unshift'](_0x48b426),_0x2a41fa=!0x0):_0x5de49c['add'](_0x2b0140);}for(const _0x1997dd of _0x5a31c6)_0x484efd['remove'](_0x1997dd);return this['_footnotesDefinitions']['childCount']||(_0x484efd['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2a41fa=!0x0),_0x2a41fa;}['_handleInsertedFootnoteReference'](_0x1ac6ce,_0x39d67b){if(this['_footnotes']['find'](_0xf1ee8c=>_0xf1ee8c['reference']===_0x39d67b))return!0x1;let _0x1a6e0b=!0x1;const _0x5222ed=_0x39d67b['getAttribute']('footnoteId'),_0x3ecc6d=this['_footnotes']['findIndex'](_0x3bab9e=>_0x3bab9e['id']===_0x5222ed);-0x1!==_0x3ecc6d&&(_0x1ac6ce['remove'](this['_footnotes'][_0x3ecc6d]['reference']),this['_footnotes']['splice'](_0x3ecc6d,0x1),_0x1a6e0b=!0x0);let _0x26b89b=this['_footnotesDefinitions']?function(_0x1edb07,_0x330e10){for(const _0x2a7dcb of _0x1edb07['getChildren']())if(_0x2a7dcb['getAttribute']('footnoteId')===_0x330e10)return _0x2a7dcb;return null;}(this['_footnotesDefinitions'],_0x5222ed):null;_0x26b89b||(_0x26b89b=_0x1ac6ce['createElement']('footnoteDefinition',{'footnoteId':_0x5222ed}),this['_footnotesDefinitions']&&(_0x1ac6ce['insert'](_0x26b89b,this['_footnotesDefinitions'],'end'),_0x1a6e0b=!0x0));const _0xb93538={'id':_0x5222ed,'reference':_0x39d67b,'definition':_0x26b89b},_0x30a129=I(this['editor']['model'],this['_footnotes'],_0x39d67b);this['_footnotes']['splice'](_0x30a129,0x0,_0xb93538);let _0x443d66=_0x30a129;return-0x1!==_0x3ecc6d&&(_0x443d66=Math['min'](_0x30a129,_0x3ecc6d)),this['_updateFootnotesCounters'](_0x1ac6ce,_0x443d66)&&(_0x1a6e0b=!0x0),_0x1a6e0b;}['_handleRemoveFootnoteReferenceById'](_0xabfb4b,_0x5365de){const _0x58ceb5=this['_footnotes']['findIndex'](_0x5ca27a=>_0x5ca27a['id']===_0x5365de);if(-0x1===_0x58ceb5)return!0x1;let _0x21cd29=!0x1;const _0x4c880d=this['_footnotes'][_0x58ceb5];return'$graveyard'!==_0x4c880d['definition']['root']['rootName']&&(_0xabfb4b['remove'](_0x4c880d['definition']),_0x21cd29=!0x0),this['_footnotes']['splice'](_0x58ceb5,0x1),this['_updateFootnotesCounters'](_0xabfb4b,_0x58ceb5)&&(_0x21cd29=!0x0),_0x21cd29;}['_handleMovedFootnoteReference'](_0x62688a,_0x3d54f9){const _0x10a296=_0x3d54f9['getAttribute']('footnoteId'),_0x2fe76a=this['_footnotes']['findIndex'](_0x2cad9c=>_0x2cad9c['id']===_0x10a296),_0x44185a=this['_footnotes'][_0x2fe76a];let _0x2097c0=!0x1;_0x44185a['reference']=_0x3d54f9,this['_footnotes']['splice'](_0x2fe76a,0x1);const _0x5f9af1=I(this['editor']['model'],this['_footnotes'],_0x3d54f9);return this['_footnotes']['splice'](_0x5f9af1,0x0,_0x44185a),this['_updateFootnotesCounters'](_0x62688a,Math['min'](_0x2fe76a,_0x5f9af1))&&(_0x2097c0=!0x0),_0x2097c0;}['_updateFootnoteRefCounter'](_0x4dc2f5,_0x30616f){if(!this['_footnotesDefinitions'])return!0x1;const _0x34d338=this['_footnotes'][_0x30616f];let _0x1de9c0;return _0x1de9c0=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x34d338,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x30616f+0x1}):String(_0x30616f+0x1),_0x34d338['reference']['getAttribute']('footnoteCounter')!=_0x1de9c0&&(_0x4dc2f5['setAttribute']('footnoteCounter',_0x1de9c0,_0x34d338['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x336eae){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3ff28a,_0x56d822){if(_0x3ff28a['length']!==_0x56d822['length'])return!0x1;for(let _0x1aa0c3=0x0;_0x1aa0c3<_0x3ff28a['length'];_0x1aa0c3++)if(_0x3ff28a[_0x1aa0c3]!==_0x56d822[_0x1aa0c3])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3b5879=>_0x3b5879['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3c296b=>_0x3c296b['getAttribute']('footnoteId'))))return!0x1;let _0x4df220=!0x1;for(let _0x237f11=0x0;_0x237f11<this['_footnotes']['length'];_0x237f11++){const _0x40814d=this['_footnotes'][_0x237f11],_0x25b15f=_0x336eae['createPositionBefore'](_0x40814d['definition']),_0x58bd44=_0x336eae['createPositionAt'](this['_footnotesDefinitions'],_0x237f11);_0x25b15f['isEqual'](_0x58bd44)||(_0x336eae['move'](_0x336eae['createRangeOn'](_0x40814d['definition']),_0x58bd44),_0x4df220=!0x0);}return _0x4df220;}['_ensureFootnotesReferencesHaveProperOrder'](_0x11361c){if(!this['_footnotes']['length'])return!0x1;const {model:_0x159559}=this['editor'];let _0x54b3d3=!0x1;for(let _0x5b29d1=0x0;_0x5b29d1<this['_footnotes']['length']-0x1;_0x5b29d1++){const _0x5e56d1=this['_footnotes'][_0x5b29d1],_0x2884d3=this['_footnotes'][_0x5b29d1+0x1],_0x435d09=_0x159559['createPositionBefore'](_0x5e56d1['reference']),_0x48f72d=_0x159559['createPositionBefore'](_0x2884d3['reference']);'after'===_0x435d09['compareWith'](_0x48f72d)&&(this['_handleMovedFootnoteReference'](_0x11361c,_0x5e56d1['reference']),_0x5b29d1=-0x1,_0x54b3d3=!0x0);}return _0x54b3d3;}}function _(_0xde7aee,_0x167816,_0x50ba02){if(_0x50ba02['childCount'])return!0x1;const _0x5d8b6c=_0x167816?'paragraph':'footnoteInlineContent';return _0xde7aee['insert'](_0xde7aee['createElement'](_0x5d8b6c),_0x50ba02),!0x0;}function I(_0x52437a,_0x2faf2d,_0x2fb3d2){if(0x0===_0x2faf2d['length'])return 0x0;const _0x48e58a=_0x52437a['createPositionBefore'](_0x2fb3d2);for(let _0x4d906f=0x0;_0x4d906f<_0x2faf2d['length'];_0x4d906f++){const _0x45d7d2=_0x2faf2d[_0x4d906f],_0x5399a7=_0x52437a['createPositionBefore'](_0x45d7d2['reference']);if('before'===_0x48e58a['compareWith'](_0x5399a7))return _0x4d906f;}const _0x163673=_0x2fb3d2['root'];let _0x10dae4=-0x1;for(let _0x2ade53=_0x2faf2d['length']-0x1;_0x2ade53>=0x0;_0x2ade53--)if(_0x2faf2d[_0x2ade53]['reference']['root']===_0x163673){_0x10dae4=_0x2ade53;break;}if(-0x1!==_0x10dae4)return _0x10dae4+0x1;const _0x3c232f=_0x52437a['document']['getRootNames'](),_0x5c63f4=_0x3c232f['indexOf'](_0x163673['rootName']),_0x3b91f7=_0x3c232f[_0x5c63f4+0x1];if(_0x3b91f7){for(let _0x43d7c4=0x0;_0x43d7c4<_0x2faf2d['length'];_0x43d7c4++)if(_0x2faf2d[_0x43d7c4]['reference']['root']['rootName']===_0x3b91f7)return _0x43d7c4;}return _0x2faf2d['length'];}class h extends _0x3fd568{['refresh'](){const _0x5961cb=this['editor']['model']['document']['selection'],_0x56b92c=this['_getPositionToInsertFootnote'](_0x5961cb);this['isEnabled']=!!_0x56b92c;}['execute'](_0x31cb99){const {editor:_0x20e9a4}=this,{model:_0x525770}=_0x20e9a4,{selection:_0x503dd6}=_0x525770['document'],_0xfe20a8=this['_getPositionToInsertFootnote'](_0x503dd6);if(!_0xfe20a8)return;const _0x216539=_0x20e9a4['plugins']['get']('FootnotesEditing'),_0xc06227=_0x31cb99?.['footnoteId']??_0x586cb6();!function(_0x5a7e55){return'string'==typeof _0x5a7e55&&_0x5a7e55['length']>0x0&&!/\s/['test'](_0x5a7e55)&&!/^\d/['test'](_0x5a7e55);}(_0xc06227)?_0x33cc1a('insert-footnote-command-executed-with-invalid-id'):(_0x525770['change'](_0x110827=>{const _0x9516cc=_0x110827['createElement']('footnoteRef',{'footnoteId':_0xc06227});_0x525770['insertObject'](_0x9516cc,_0xfe20a8,null);}),_0x216539['_moveSelectionToFootnoteDefinition'](_0xc06227));}['_getPositionToInsertFootnote'](_0x392e7c){const {model:_0x46358b}=this['editor'],{schema:_0x5bb0b6}=_0x46358b,_0x38352b=_0x392e7c['getFirstRange']();for(const _0x4564cd of _0x38352b['getItems']())if(_0x5bb0b6['isBlock'](_0x4564cd)||_0x5bb0b6['isObject'](_0x4564cd))return null;const _0x32bc89=_0x38352b['end'];return _0x5bb0b6['checkChild'](_0x32bc89,'footnoteRef')?_0x32bc89:null;}}class r extends _0x10a194{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f026d}=this;_0x2f026d['config']['define']('footnotes.multiBlock',!0x0),_0x2f026d['commands']['add']('insertFootnote',new h(_0x2f026d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4ed2f6){const _0x4ceab8=_0x18221a([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]),_0x2db83b=0x47a28506,_0x407e85=0x47a50606^_0x2db83b,_0x99f7ed=window[_0x18221a([0x44,0x61,0x74,0x65])][_0x18221a([0x6e,0x6f,0x77])](),_0x4bab51=_0x4ed2f6[_0x18221a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31cc92=new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c096f=>{_0x4bab51[_0x18221a([0x6f,0x6e,0x63,0x65])](_0x18221a([0x72,0x65,0x61,0x64,0x79]),_0x1c096f);}),_0x3d8325={[_0x18221a([0x6b,0x74,0x79])]:_0x18221a([0x45,0x43]),[_0x18221a([0x75,0x73,0x65])]:_0x18221a([0x73,0x69,0x67]),[_0x18221a([0x63,0x72,0x76])]:_0x18221a([0x50,0x2d,0x32,0x35,0x36]),[_0x18221a([0x78])]:_0x18221a([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]),[_0x18221a([0x79])]:_0x18221a([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]),[_0x18221a([0x61,0x6c,0x67])]:_0x18221a([0x45,0x53,0x32,0x35,0x36])},_0x7ede48=_0x4bab51[_0x18221a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18221a([0x67,0x65,0x74])](_0x18221a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36df79(){let _0x95cc0f,_0x2b3a61=null,_0x105487=null;try{if(_0x7ede48==_0x18221a([0x47,0x50,0x4c]))return _0x18221a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x95cc0f=_0x567e10(),!_0x95cc0f)return _0x18221a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x95cc0f[_0x18221a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x105487=_0x11e701(_0x95cc0f[_0x18221a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x95cc0f[_0x18221a([0x6a,0x74,0x69])])),await _0x32789d()?_0x28812f()?_0x1d32f9()?_0x18221a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x461881()?(_0x95cc0f[_0x18221a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18221a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b3a61=_0x27b613(_0x18221a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b9eb6()):_0x18221a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18221a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18221a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18221a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d32f9(){const _0x459e97=[_0x18221a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18221a([0x74,0x72,0x69,0x61,0x6c])][_0x18221a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x95cc0f[_0x18221a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x99f7ed/0x3e8:0xe10*_0x407e85;return _0x95cc0f[_0x18221a([0x65,0x78,0x70])]<_0x459e97;}function _0x28812f(){const _0x38f888=_0x95cc0f[_0x18221a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38f888&&(!!_0x38f888[_0x18221a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18221a([0x2a]))||!!_0x38f888[_0x18221a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18221a([0x46,0x4f,0x4f])));}function _0x461881(){const _0x594bc1=_0x95cc0f[_0x18221a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x594bc1||0x0==_0x594bc1[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a24ed}=new URL(window[_0x18221a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x594bc1[_0x18221a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a24ed))return!0x0;const _0x150e77=_0x1a24ed[_0x18221a([0x73,0x70,0x6c,0x69,0x74])](_0x18221a([0x2e]));return _0x594bc1[_0x18221a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x76d355=>_0x76d355[_0x18221a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18221a([0x2a])))[_0x18221a([0x6d,0x61,0x70])](_0x359b97=>_0x359b97[_0x18221a([0x73,0x70,0x6c,0x69,0x74])](_0x18221a([0x2e])))[_0x18221a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ecff4=>_0x2ecff4[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x150e77[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18221a([0x6d,0x61,0x70])](_0x23cf31=>Array(_0x150e77[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23cf31[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18221a([0x66,0x69,0x6c,0x6c])](_0x23cf31[0x0]===_0x18221a([0x2a])?_0x18221a([0x2a]):'')[_0x18221a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23cf31))[_0x18221a([0x73,0x6f,0x6d,0x65])](_0xda73e0=>_0x150e77[_0x18221a([0x65,0x76,0x65,0x72,0x79])]((_0x380dc5,_0x2d29b1)=>_0xda73e0[_0x2d29b1]===_0x380dc5||_0xda73e0[_0x2d29b1]===_0x18221a([0x2a])));}function _0x1b9eb6(){return _0x2b3a61&&_0x105487?new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8fe5ae,_0x40e319)=>{_0x2b3a61[_0x18221a([0x74,0x68,0x65,0x6e])](_0x8fe5ae,_0x40e319),_0x105487[_0x18221a([0x74,0x68,0x65,0x6e])](_0x380863=>{_0x380863!=_0x18221a([0x56,0x61,0x6c,0x69,0x64])&&_0x8fe5ae(_0x380863);},_0x40e319);}):_0x2b3a61||_0x105487||_0x18221a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11e701(_0x382ddf,_0x4c7af9){return new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec119=>{if(_0x3d69ee())return _0x5ec119(_0x18221a([0x56,0x61,0x6c,0x69,0x64]));_0x49a2ad(),_0x4bab51[_0x18221a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18221a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50150b=!0x1;const _0x3ed8e9=_0x586cb6();function _0x53d3c5(_0xdfdfeb){return!!_0xdfdfeb&&(typeof _0xdfdfeb===_0x18221a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdfdfeb===_0x18221a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdfdfeb[_0x18221a([0x74,0x68,0x65,0x6e])]===_0x18221a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdfdfeb[_0x18221a([0x63,0x61,0x74,0x63,0x68])]===_0x18221a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd9fb81(_0x5d4969){_0x49c423(_0x5d4969)[_0x18221a([0x74,0x68,0x65,0x6e])](_0x39f7b2=>{if(!_0x39f7b2||_0x39f7b2[_0x18221a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18221a([0x6f,0x6b]))return _0x18221a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a959e(_0x3cde78(_0x3ed8e9+_0x4c7af9))!=_0x39f7b2[_0x18221a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18221a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18221a([0x56,0x61,0x6c,0x69,0x64]);})[_0x18221a([0x74,0x68,0x65,0x6e])](_0x41f0c0=>(_0x12c04a(),_0x41f0c0),()=>{const _0x5b59cb=_0x18146e();return null==_0x5b59cb?(_0x12c04a(),_0x18221a([0x56,0x61,0x6c,0x69,0x64])):_0x18221a(_0x99f7ed-_0x5b59cb>(0x63ae0106^_0x2db83b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18221a([0x74,0x68,0x65,0x6e])](_0x5ec119)[_0x18221a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ec119(_0x18221a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34be4f=0x47946b86^_0x2db83b;function _0x12c04a(){const _0x10de87=_0x18221a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a959e(_0x3cde78(_0x382ddf)),_0x227f98=_0x14277d(_0x3a959e(window[_0x18221a([0x4d,0x61,0x74,0x68])][_0x18221a([0x63,0x65,0x69,0x6c])](_0x99f7ed/_0x34be4f)));window[_0x18221a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18221a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10de87,_0x227f98);}function _0x18146e(){const _0x1dfd73=_0x18221a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a959e(_0x3cde78(_0x382ddf)),_0x137062=window[_0x18221a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18221a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfd73);return _0x137062?window[_0x18221a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14277d(_0x137062),0x10)*_0x34be4f:null;}function _0x49c423(_0x3dcf1d){return new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16332f,_0x2f173c)=>{_0x3dcf1d[_0x18221a([0x74,0x68,0x65,0x6e])](_0x16332f,_0x2f173c),window[_0x18221a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f173c,0x47a351c6^_0x2db83b);});}}_0x4bab51[_0x18221a([0x6f,0x6e])](_0x18221a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a4265,_0x131396)=>{if(_0x131396[0x0]!=_0x382ddf)return _0x5ec119(_0x18221a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x131396[0x1]={..._0x131396[0x1],[_0x18221a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ed8e9};},{[_0x18221a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18221a([0x68,0x69,0x67,0x68])}),_0x4bab51[_0x18221a([0x6f,0x6e])](_0x18221a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43834e=>{_0x53d3c5(_0x43834e[_0x18221a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50150b=!0x0,_0xd9fb81(_0x43834e[_0x18221a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18221a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18221a([0x6c,0x6f,0x77])}),_0x31cc92[_0x18221a([0x74,0x68,0x65,0x6e])](()=>{_0x50150b||_0x5ec119(_0x18221a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d69ee(){return _0x4bab51[_0x18221a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18221a([0x76,0x69,0x65,0x77])][_0x18221a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18221a([0x61,0x75,0x74,0x6f]);}function _0x49a2ad(){_0x4bab51[_0x18221a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18221a([0x76,0x69,0x65,0x77])][_0x18221a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18221a([0x61,0x75,0x74,0x6f]);}}function _0x27b613(_0x1020b5){const _0x5ccffb=[new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48dfbc=>setTimeout(_0x48dfbc,0x47abbbca^_0x2db83b)),_0x31cc92[_0x18221a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f5e4b=>{let _0x5668db=0x0;_0x4bab51[_0x18221a([0x6d,0x6f,0x64,0x65,0x6c])][_0x18221a([0x6f,0x6e])](_0x18221a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10134b,_0x324505)=>{_0x324505[0x0][_0x18221a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5668db++,_0x5668db==(0x47a280ee^_0x2db83b)&&(_0x3f5e4b(),_0x10134b[_0x18221a([0x6f,0x66,0x66])]());});}))];return window[_0x18221a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18221a([0x72,0x61,0x63,0x65])](_0x5ccffb)[_0x18221a([0x74,0x68,0x65,0x6e])](()=>_0x1020b5);}async function _0x488587(){await _0x31cc92,_0x4bab51[_0x18221a([0x6d,0x6f,0x64,0x65,0x6c])][_0x18221a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc8036a,_0x4bab51[_0x18221a([0x6d,0x6f,0x64,0x65,0x6c])][_0x18221a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc8036a,_0x4bab51[_0x18221a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18221a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16a360(_0x24b723){const _0x54a0f7=_0x1c6689();_0x4bab51[_0x54a0f7]=_0x18221a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24b723,_0x24b723!=_0x18221a([0x56,0x61,0x6c,0x69,0x64])&&_0x488587();}function _0x1c6689(){const _0x570e79=window[_0x18221a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18221a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18221a([0x6e,0x6f,0x77])]())[_0x18221a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18221a([0x2e]),'');let _0x5e7875=_0x18221a([0x75]);for(let _0x3d7861=0x0;_0x3d7861<_0x570e79[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7861+=0x2){let _0x30a217=window[_0x18221a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x570e79[_0x18221a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7861,_0x3d7861+0x2));_0x30a217>=_0x4ceab8[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30a217-=_0x4ceab8[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e7875+=_0x4ceab8[_0x30a217];}return _0x5e7875;}function _0x567e10(){const _0x18846d=_0x7ede48[_0x18221a([0x73,0x70,0x6c,0x69,0x74])](_0x18221a([0x2e]));if(0x3!=_0x18846d[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x109f7e(_0x18846d[0x1]);function _0x109f7e(_0x6b7fff){const _0x30588d=_0x4d7dd4(_0x6b7fff);return _0x30588d&&_0x4d8abb()?_0x30588d:null;function _0x4d8abb(){const _0x4e4bc8=_0x30588d[_0x18221a([0x6a,0x74,0x69])],_0x518ea3=window[_0x18221a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e4bc8[_0x18221a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e4bc8[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x922b46={..._0x30588d,[_0x18221a([0x6a,0x74,0x69])]:_0x4e4bc8[_0x18221a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e4bc8[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x922b46[_0x18221a([0x76,0x63])],_0x3cde78(_0x922b46)==_0x518ea3;}}}async function _0x32789d(){let _0x57810f=!0x0;try{const _0x56a19f=_0x7ede48[_0x18221a([0x73,0x70,0x6c,0x69,0x74])](_0x18221a([0x2e])),[_0x1da081,_0x3f53aa,_0x5898ee]=_0x56a19f;return _0x383df6(_0x1da081),await _0x250e4f(_0x1da081,_0x3f53aa,_0x5898ee),_0x57810f;}catch{return!0x1;}function _0x383df6(_0x10ebbc){const _0x275d67=_0x4d7dd4(_0x10ebbc);_0x275d67&&_0x275d67[_0x18221a([0x61,0x6c,0x67])]==_0x18221a([0x45,0x53,0x32,0x35,0x36])||(_0x57810f=!0x1);}async function _0x250e4f(_0x568854,_0xdd0771,_0x27d015){const _0x274ecc=window[_0x18221a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18221a([0x66,0x72,0x6f,0x6d])](_0x9746a(_0x27d015),_0x4552e2=>_0x4552e2[_0x18221a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x213f22=new window[(_0x18221a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18221a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x568854+_0x18221a([0x2e])+_0xdd0771),_0x3f5922=window[_0x18221a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18221a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f5922)return;const _0x4cd1e6=await _0x3f5922[_0x18221a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18221a([0x6a,0x77,0x6b]),_0x3d8325,{[_0x18221a([0x6e,0x61,0x6d,0x65])]:_0x18221a([0x45,0x43,0x44,0x53,0x41]),[_0x18221a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18221a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18221a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f5922[_0x18221a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18221a([0x6e,0x61,0x6d,0x65])]:_0x18221a([0x45,0x43,0x44,0x53,0x41]),[_0x18221a([0x68,0x61,0x73,0x68])]:{[_0x18221a([0x6e,0x61,0x6d,0x65])]:_0x18221a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cd1e6,_0x274ecc,_0x213f22)||(_0x57810f=!0x1);}}function _0x4d7dd4(_0x4de814){return _0x4de814[_0x18221a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18221a([0x65,0x79]))?JSON[_0x18221a([0x70,0x61,0x72,0x73,0x65])](_0x9746a(_0x4de814)):null;}function _0x9746a(_0x178db6){return window[_0x18221a([0x61,0x74,0x6f,0x62])](_0x178db6[_0x18221a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18221a([0x2b]))[_0x18221a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18221a([0x2f])));}function _0x3cde78(_0x3e0c83){let _0x2be674=0x1505;function _0x5d406b(_0x10f2c9){for(let _0x395b31=0x0;_0x395b31<_0x10f2c9[_0x18221a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395b31++){const _0x3b1cd3=_0x10f2c9[_0x18221a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x395b31);_0x2be674=(_0x2be674<<0x5)+_0x2be674+_0x3b1cd3,_0x2be674&=_0x2be674;}}function _0x461868(_0x37e184){Array[_0x18221a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37e184)?_0x37e184[_0x18221a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x461868):_0x37e184&&typeof _0x37e184==_0x18221a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18221a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37e184)[_0x18221a([0x73,0x6f,0x72,0x74])]()[_0x18221a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b0e35,_0x2ca246])=>{_0x5d406b(_0x3b0e35),_0x461868(_0x2ca246);}):_0x5d406b(window[_0x18221a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37e184));}return _0x461868(_0x3e0c83),_0x2be674>>>0x0;}function _0x3a959e(_0x1a1260){return _0x1a1260[_0x18221a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18221a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18221a([0x30]));}function _0x14277d(_0x410829){return _0x410829[_0x18221a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18221a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18221a([0x6a,0x6f,0x69,0x6e])]('');}function _0xc8036a(){}function _0x18221a(_0x375a7f){return _0x375a7f['map'](_0x56c233=>String['fromCharCode'](_0x56c233))['join']('');}_0x16a360(await _0x36df79());}(this);}['_moveSelectionToFootnoteDefinition'](_0x417509){const {plugins:_0x5e1eeb,editing:_0x34756d,model:_0x39ccc2}=this['editor'],_0x3a1de7=_0x5e1eeb['get'](f)['getFootnote'](_0x417509);return!!_0x3a1de7&&(_0x39ccc2['change'](_0x40d63f=>{_0x40d63f['setSelection'](_0x40d63f['createPositionAt'](_0x3a1de7['definition'],'end'));}),_0x34756d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2f318c){const {plugins:_0x26896d,editing:_0x1486cd,model:_0x1cc89f}=this['editor'],_0x2aae3d=_0x26896d['get'](f)['getFootnote'](_0x2f318c);return!!_0x2aae3d&&(_0x1cc89f['change'](_0x565233=>{_0x565233['setSelection'](_0x2aae3d['reference'],'on');}),_0x1486cd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4b092e}=this['editor']['model'],_0x5932c8=this['editor']['config']['get']('footnotes.multiBlock');_0x4b092e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4b092e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4b092e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5932c8?_0x4b092e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4b092e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4b092e['addChildCheck'](_0x489afd=>{for(const _0x38bb15 of _0x489afd)if('footnoteDefinition'===_0x38bb15['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2e55ca}=this,{conversion:_0xaf6cd,editing:_0x11e3a9}=_0x2e55ca,{t:t}=_0x2e55ca['locale'];_0xaf6cd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34d1e8,{writer:_0x3e9912,consumable:_0x146fa6})=>{const _0x817f6a=_0x34d1e8['getChild'](0x0);if(!_0x817f6a||!_0x817f6a['is']('element','a'))return null;const _0x49c2c9=_0x817f6a['getAttribute']('href')||'';if(!_0x49c2c9['startsWith']('#'))return null;const _0x14860d=_0x49c2c9['replace'](/^#/,'');if(!_0x14860d)return null;_0x146fa6['consume'](_0x817f6a,{'name':!0x0,'attributes':['href']});for(const {item:_0x56a63b}of _0x11e3a9['view']['createRangeIn'](_0x817f6a))_0x56a63b['is']('$textProxy')?_0x146fa6['consume'](_0x56a63b['textNode'],{'name':!0x0}):_0x56a63b['is']('element')&&_0x146fa6['consume'](_0x56a63b,{'name':!0x0});return _0x3e9912['createElement']('footnoteRef',{'footnoteId':_0x14860d});}}),_0xaf6cd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x49e1e6,{writer:_0x3bcabb})=>b(_0x49e1e6,_0x3bcabb)}),_0xaf6cd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x313f5d,{writer:_0x5619b1})=>{const _0x2ecc6d=_0x313f5d['getAttribute']('footnoteCounter');return _0x3983ce(b(_0x313f5d,_0x5619b1),_0x5619b1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2ecc6d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x18aee6}=this,{t:t}=_0x18aee6['locale'],{conversion:_0xbf9aa5}=_0x18aee6;_0xbf9aa5['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xbf9aa5['for']('upcast')['add'](_0x212573=>{_0x212573['on']('element:ol',(_0x1d3dbe,_0x14fd24,_0x11fc64)=>{const _0x1fb9e7=_0x14fd24['viewItem'];if(!_0x1fb9e7['hasClass']('footnotes-list')||!_0x14fd24['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x11fc64['consumable']['consume'](_0x1fb9e7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x278b1a,modelCursor:_0x5654df}=_0x11fc64['convertChildren'](_0x14fd24['viewItem'],_0x14fd24['modelCursor']);_0x14fd24['modelRange']=_0x278b1a,_0x14fd24['modelCursor']=_0x5654df;}),_0x212573['on']('element:hr',(_0x12da01,_0x14766b,_0xa292e7)=>{const _0x30f948=_0x14766b['viewItem'];_0x30f948['hasClass']('footnotes-divider')&&_0x14766b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xa292e7['consumable']['consume'](_0x30f948,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xbf9aa5['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5880a4,{writer:_0x1ba77e})=>D(_0x1ba77e)}),_0xbf9aa5['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ec19b,{writer:_0x166b18})=>{const _0x1e91e0=D(_0x166b18,{'data-footnotes-list-label':t('Footnotes')}),_0x513351=_0x3983ce(_0x1e91e0,_0x166b18,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x166b18['setCustomProperty']('footnotesDefinitions',!0x0,_0x513351),_0x513351;}});}['_defineDefinitionConverters'](){const {editor:_0x92371d}=this,{conversion:_0x34e956,locale:_0x34c7cd}=_0x92371d,_0x34b0df=_0x92371d['config']['get']('footnotes.multiBlock');_0x34e956['for']('upcast')['add'](_0xd7bdea=>{_0xd7bdea['on']('element:li',(_0x15e816,_0x4d36f2,_0x2b0529)=>{const _0x416c87=_0x4d36f2['viewItem'];if(!_0x416c87['hasClass']('footnote-definition')||!_0x416c87['getAttribute']('id'))return;const _0x1d5f1b=_0x416c87['parent'];if(!_0x1d5f1b['is']('element','ol')||!_0x1d5f1b['hasClass']('footnotes-list'))return;if(!_0x2b0529['consumable']['test'](_0x416c87,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3fc5a3=_0x2b0529['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x416c87['getAttribute']('id')});if(!_0x2b0529['safeInsert'](_0x3fc5a3,_0x4d36f2['modelCursor']))return;_0x2b0529['consumable']['consume'](_0x416c87,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x41f581=Array['from'](_0x416c87['getChildren']())['find'](_0x69316=>_0x69316['is']('element')&&_0x69316['hasClass']('footnote-content'));for(const _0x1602cb of _0x416c87['getChildren']())_0x1602cb['is']('element')&&(_0x2b0529['consumable']['consume'](_0x1602cb,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2b0529['consumable']['consume'](_0x1602cb,{'name':!0x0,'classes':'footnote-content'}));if(_0x41f581){if(_0x34b0df)_0x2b0529['convertChildren'](_0x41f581,_0x3fc5a3);else{const _0x1d7a80=_0x2b0529['writer']['createElement']('footnoteInlineContent');_0x2b0529['writer']['insert'](_0x1d7a80,_0x3fc5a3),_0x2b0529['convertChildren'](_0x41f581,_0x1d7a80);}}_0x2b0529['updateConversionResult'](_0x3fc5a3,_0x4d36f2);});}),_0x34e956['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xf48a16,{writer:_0x4925be})=>y(_0xf48a16,_0x4925be,_0x34c7cd,{'dataPipeline':!0x0})}),_0x34e956['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a02c4,{writer:_0x42e540})=>y(_0x4a02c4,_0x42e540,_0x34c7cd)});}['_defineBogusParagraphConverters'](){const {editor:_0x3f8547}=this,{conversion:_0x119f7f}=_0x3f8547;_0x3f8547['config']['get']('footnotes.multiBlock')?(_0x119f7f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x119f7f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3f8547['model']['document'],'change:data',()=>{!function(_0x10793b,_0xba199c){const _0x209c34=_0x10793b['document']['differ'],_0x4f230e=new Set();for(const _0x4566ce of _0x209c34['getChanges']()){const _0x33367c='attribute'==_0x4566ce['type']?_0x4566ce['range']['start']['parent']:_0x4566ce['position']['parent'];_0x33367c['is']('element','footnoteDefinition')&&_0x4f230e['add'](_0x33367c);}for(const _0x58f271 of _0x4f230e['values']()){const _0x2dfa12=Array['from'](_0x58f271['getChildren']())['filter'](_0x45394c=>v(_0x45394c,_0xba199c['mapper']));for(const _0x5d497e of _0x2dfa12)_0xba199c['reconvertItem'](_0x5d497e);}}(_0x3f8547['model'],_0x3f8547['editing']);})):(_0x119f7f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x119f7f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x393cac,{writer:_0x49f1c2})=>{const _0x1d3224=_0x49f1c2['createContainerElement']('span');return _0x49f1c2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1d3224),_0x1d3224;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2cbc2c}=this,{editing:_0x23858d,t:t}=_0x2cbc2c,_0x14b19b=_0x2cbc2c['model']['document']['selection'];_0x2cbc2c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2cbc2c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x23858d['view']['document'],'enter',(_0x3f99e0,_0x66eb0a)=>{const _0x36796c=function(_0x2f9f5f){const _0x95a068=_0x2f9f5f['getSelectedElement']();if(_0x95a068?.['is']('element','footnoteRef'))return _0x95a068;return null;}(_0x14b19b);if(_0x36796c){const _0x5ce2ed=_0x36796c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5ce2ed),_0x66eb0a['preventDefault'](),_0x3f99e0['stop']();}},{'context':_0x5b2352});}['_defineClickHandlers'](){const {editor:_0x2eb937}=this,{editing:_0x287ad8}=_0x2eb937;_0x2eb937['editing']['view']['addObserver'](_0x29952f),_0x2eb937['editing']['view']['addObserver'](_0xb8d7e3);let _0x4cc536=!0x1;this['listenTo'](_0x287ad8['view']['document'],'pointerdown',(_0x334814,_0x26d8a6)=>{const {target:_0x3195bc}=_0x26d8a6,_0x5ad241=_0x287ad8['view']['document']['selection'];_0x4cc536=!!(_0x3195bc?.['is']('element','a')&&_0x3195bc['parent']?.['is']('element','sup')&&_0x3195bc['parent']['hasClass']('footnote'))&&_0x5ad241['getSelectedElement']()===_0x3195bc['parent'];},{'priority':'high'}),this['listenTo'](_0x287ad8['view']['document'],'click',(_0x852afd,_0x299d2a)=>{const {target:_0x5a02e2}=_0x299d2a;if(!_0x5a02e2?.['is']('element','a'))return;if(_0x5a02e2['parent']?.['is']('element','sup')&&_0x5a02e2['parent']['hasClass']('footnote')&&!_0x4cc536)return void _0x299d2a['preventDefault']();let _0x236799=_0x5a02e2['getAttribute']('href');if(!_0x236799?.['startsWith']('#'))return;_0x236799=_0x236799['slice'](0x1);let _0x28df2e=!0x1;(_0x236799['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x236799['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x236799))&&(_0x28df2e=!0x0),_0x28df2e&&(_0x299d2a['preventDefault'](),_0x852afd['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3d6b62}={}){return(_0x569ee2,{writer:_0x3118b9})=>{if(!g(_0x569ee2))return null;if(!_0x3d6b62)return _0x3118b9['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5a43a2=_0x3118b9['createContainerElement']('p');return _0x3118b9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5a43a2),_0x5a43a2;};}function g(_0x4cde27){const {parent:_0x158532}=_0x4cde27;if(!_0x158532?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x158532['childCount'])return!0x1;for(const _0x3ae206 of _0x4cde27['getAttributeKeys']())if(!_0x3ae206['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3ae206)return!0x1;return!0x0;}function v(_0xf09b98,_0x40e243){if(!_0xf09b98['is']('element','paragraph'))return!0x1;const _0x35c182=_0x40e243['toViewElement'](_0xf09b98);return!!_0x35c182&&g(_0xf09b98)!==_0x35c182['is']('element','span');}function Q(_0x3ccc68){return _0x5b2352(_0x3ccc68)&&_0x3ccc68['is']('containerElement')&&!!_0x3ccc68['getCustomProperty']('footnotesDefinitions');}function D(_0xcc00df,_0x203810={}){const _0xa9a9a5=_0xcc00df['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x16c829=_0xcc00df['createContainerElement']('ol',{'class':'footnotes-list'},_0xcc00df['createSlot']());return _0xcc00df['createContainerElement']('div',{'class':'footnotes',..._0x203810},[_0xa9a9a5,_0x16c829]);}function b(_0x254d10,_0x44a8a3){const _0x3be3c5=_0x254d10['getAttribute']('footnoteId'),_0x5bc02f=_0x254d10['getAttribute']('footnoteCounter'),_0x474b4d=_0x44a8a3['createUIElement']('a',{'href':'#'+_0x3be3c5},function(_0x215167){const _0x51e82d=this['toDomElement'](_0x215167);return _0x51e82d['textContent']=_0x5bc02f,_0x51e82d;}),_0x1bf765=_0x44a8a3['createContainerElement']('sup',{'id':'ref-'+_0x3be3c5,'class':'footnote'},[_0x474b4d]);return _0x1bf765['getFillerOffset']=()=>null,_0x1bf765;}function y(_0x30bdd9,_0x3d0522,_0x1b3d6f,{dataPipeline:_0xdc32da}={}){const {t:t}=_0x1b3d6f,_0x5e900f=_0x30bdd9['getAttribute']('footnoteId'),_0x5697aa=_0x3d0522['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5e900f},function(_0x476f71){const _0x38e753=this['toDomElement'](_0x476f71);return _0x38e753['innerText']='^',_0x38e753;}),_0x44eef4=_0xdc32da?_0x3d0522['createContainerElement']('div',{'class':'footnote-content'}):_0x1933ae(_0x3d0522['createEditableElement']('div',{'class':'footnote-content'}),_0x3d0522,{'label':t('Footnote\x20content.')});return _0x3d0522['insert'](_0x3d0522['createPositionAt'](_0x44eef4,0x0),_0x3d0522['createSlot']()),_0x3d0522['createContainerElement']('li',{'class':'footnote-definition','id':_0x5e900f},[_0x5697aa,_0x44eef4]);}class e extends _0x10a194{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4e73ca];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x355a15}=this,{plugins:_0x97a467,model:_0x5ed022}=_0x355a15,_0x468d16=_0x97a467['get'](_0x4e73ca),_0x339bd5=_0x97a467['get'](f);this['listenTo'](_0x468d16,'outputTransformation',(_0x12a82e,_0x4cd8e1)=>{const _0x40a05d=l(_0x5ed022['createRangeIn'](_0x4cd8e1['content']));if(!_0x40a05d['length'])return;const _0x9c908=_0x339bd5['getFootnotes'](),_0x40582a=_0x40a05d['reduce']((_0x25a0ee,_0x2af66d)=>{const _0x21710f=_0x9c908['find'](_0x3f8345=>_0x3f8345['id']===_0x2af66d);if(_0x21710f){const _0xb936fd=_0x355a15['data']['toView'](_0x21710f['definition'],{'isClipboardPipeline':!0x0}),_0x3ce1f8=_0x355a15['data']['htmlProcessor']['toData'](_0xb936fd);_0x25a0ee[_0x21710f['id']]=_0x3ce1f8;}return _0x25a0ee;},Object['create'](null));_0x4cd8e1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x40582a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x522405}=this,{model:_0x5e1ba6,plugins:_0x5f4646}=_0x522405,{view:_0x1de6ab}=_0x522405['editing'],_0x4ab066=_0x5f4646['get'](_0x4e73ca),_0x6db053=_0x5f4646['get'](f),_0x351dbd=_0x522405['config']['get']('footnotes.multiBlock');let _0x2b3fe5=null;this['listenTo'](_0x1de6ab['document'],'clipboardInput',(_0x3f10de,_0x59309c)=>{const _0x259427=_0x59309c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2b3fe5=_0x259427?JSON['parse'](_0x259427):null;}),this['listenTo'](_0x4ab066,'contentInsertion',(_0x53400d,_0x4bd8dc)=>{const _0x3238f1=_0x4bd8dc['sourceEditorId']===this['editor']['id'];_0x3238f1&&'drop'===_0x4bd8dc['method']||_0x5e1ba6['change'](_0x57ac88=>{let _0x122e2e=_0x6db053['getFootnotesDefinitionsObjectElement']();const _0x149249=!!_0x122e2e&&Array['from'](_0x5e1ba6['document']['selection']['getSelectedBlocks']())['includes'](_0x122e2e);if(!_0x2b3fe5&&function(_0x44dc77){for(const {item:_0x1d754d}of _0x44dc77)if(_0x1d754d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x5e1ba6['createRangeIn'](_0x4bd8dc['content']))&&(_0x2b3fe5=function(_0x546d34,_0x43d1ad){const _0x1d6e96=c(_0x546d34,_0x43d1ad);if(!_0x1d6e96)return null;const _0x19ba6e=Object['create'](null);for(const _0x1bc028 of _0x1d6e96['getChildren']())_0x1bc028['is']('element','footnoteDefinition')&&_0x1bc028['hasAttribute']('footnoteId')&&(_0x19ba6e[_0x1bc028['getAttribute']('footnoteId')]=_0x546d34['cloneElement'](_0x1bc028,!0x0));return Object['keys'](_0x19ba6e)['length']?_0x19ba6e:null;}(_0x57ac88,_0x4bd8dc['content'])),(_0x122e2e&&!_0x149249||!_0x122e2e&&!_0x2b3fe5)&&function(_0x4a0bdd,_0x3d1bd1){const _0x2fa004=[];for(const {item:_0x14b4d9}of _0x4a0bdd['createRangeIn'](_0x3d1bd1))_0x14b4d9['is']('element','footnotesDefinitions')&&_0x2fa004['push'](_0x14b4d9);for(const _0x2cb640 of _0x2fa004)_0x4a0bdd['remove'](_0x2cb640);}(_0x57ac88,_0x4bd8dc['content']),!_0x2b3fe5)return;const {selection:_0x161236}=_0x5e1ba6['document'],_0x1667b3=_0x161236['getFirstRange']()['root'];_0x122e2e&&!_0x149249||(_0x122e2e=c(_0x57ac88,_0x4bd8dc['content']),_0x122e2e||=_0x6db053['_insertEmptyFootnotesDefinitionsContainer'](_0x57ac88,_0x1667b3));const _0x5d26ad=Array['from'](_0x161236['getRanges']())['flatMap'](l),_0x491f67=function(_0x10cc00,_0x28edda,_0x9b4bd8){const _0x296cf7=Object['create'](null);for(const {item:_0x5f0b34}of _0x10cc00['createRangeIn'](_0x28edda))if(_0x5f0b34['is']('element','footnoteRef')){const _0x402ac8=_0x5f0b34['getAttribute']('footnoteId');if(!_0x9b4bd8(_0x402ac8))continue;_0x296cf7[_0x402ac8]||(_0x296cf7[_0x402ac8]=_0x586cb6()),_0x10cc00['setAttribute']('footnoteId',_0x296cf7[_0x402ac8],_0x5f0b34);}return _0x296cf7;}(_0x57ac88,_0x4bd8dc['content'],_0x548255=>{if(!_0x3238f1)return!0x0;return!!_0x6db053['getFootnote'](_0x548255)&&!_0x5d26ad['includes'](_0x548255);});for(const [_0x186267,_0x139abc]of Object['entries'](_0x2b3fe5)){const _0x58af1f=_0x491f67[_0x186267]||_0x186267;let _0x3f56d7;if('string'!=typeof _0x139abc)_0x3f56d7=_0x139abc,_0x58af1f!==_0x186267&&_0x57ac88['setAttribute']('footnoteId',_0x58af1f,_0x3f56d7);else{_0x3f56d7=_0x57ac88['createElement']('footnoteDefinition',{'footnoteId':_0x58af1f});const _0xf02ab=_0x522405['data']['htmlProcessor']['toView'](_0x139abc);let _0x1421b3;if(_0x351dbd)_0x1421b3=_0x522405['data']['toModel'](_0xf02ab,_0x3f56d7);else{_0x1421b3=_0x57ac88['createElement']('footnoteInlineContent');const _0x21c911=_0x522405['data']['toModel'](_0xf02ab,_0x1421b3);_0x57ac88['insert'](_0x21c911,_0x1421b3);}_0x57ac88['append'](_0x1421b3,_0x3f56d7);}_0x57ac88['insert'](_0x3f56d7,_0x122e2e,'end');}_0x2b3fe5=null;});});}}function c(_0x4f287a,_0x5f41f7){for(const {item:_0x43c0d3}of _0x4f287a['createRangeIn'](_0x5f41f7))if(_0x43c0d3['is']('element','footnotesDefinitions'))return _0x43c0d3;return null;}function l(_0x76a4e6){const _0x4f55e5=new Set();for(const {item:_0x59a495}of _0x76a4e6)_0x59a495['is']('element','footnoteRef')&&_0x4f55e5['add'](_0x59a495['getAttribute']('footnoteId'));return Array['from'](_0x4f55e5);}class i extends _0x10a194{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x55cf4c}=this,{componentFactory:_0x1d5655}=_0x55cf4c['ui'];_0x1d5655['add']('insertFootnote',E(_0x55cf4c,_0x51c3a7)),_0x1d5655['add']('menuBar:insertFootnote',E(_0x55cf4c,_0x3fea61)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3c9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x252ac7;for(const _0x552935 in _0x4b3c9c){const _0x4730a9=_0x552935,_0x121895=_0x4b3c9c[_0x4730a9];if('footnotesLicenseKeyValid'==_0x121895||'footnotesLicenseKeyInvalid'==_0x121895||'footnotesLicenseKeyExpired'==_0x121895||'footnotesLicenseKeyDomainLimit'==_0x121895||'footnotesLicenseKeyNotAllowed'==_0x121895||'footnotesLicenseKeyEvaluationLimit'==_0x121895||'footnotesLicenseKeyUsageLimit'==_0x121895){delete _0x4b3c9c[_0x4730a9],_0x252ac7=_0x121895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x252ac7&&_0x4b3c9c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x372731,_0x5e16be){const _0x43e934=_0x372731['commands']['get']('insertFootnote');return _0x565b4c=>{const {t:t}=_0x565b4c,_0x40d892=new _0x5e16be(_0x565b4c),_0x5dfd00=_0x40d892 instanceof _0x3fea61;return _0x40d892['bind']('isEnabled')['to'](_0x43e934,'isEnabled'),_0x40d892['set']({'label':t(_0x5dfd00?'Footnote':'Insert\x20footnote'),'icon':_0x213e33,'tooltip':!0x0}),_0x40d892['on']('execute',()=>{_0x43e934['execute'](),_0x372731['editing']['view']['focus']();}),_0x40d892;};}class lt extends _0x10a194{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x3fd568{['refresh'](){const {editor:_0x56eeba}=this,_0x8815ae=_0x56eeba['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x8815ae,this['value']=_0x8815ae?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2e43f2}){const {editor:_0x3ebe42}=this,_0x261967=_0x3ebe42['plugins']['get'](f),_0x146611=_0x261967['getFootnotesDefinitionsObjectElement']();_0x146611&&W['includes'](_0x2e43f2)&&_0x3ebe42['model']['change'](_0x4ddfd0=>{_0x4ddfd0['setAttribute']('footnotesListStyle',_0x2e43f2,_0x146611),_0x261967['_updateFootnotesCounters'](_0x4ddfd0);});}}class C extends _0x3fd568{['refresh'](){const {editor:_0x481e32}=this,_0x19f9e8=_0x481e32['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x19f9e8,this['value']=_0x19f9e8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x156b48}){const {editor:_0x856959}=this,_0x2c4288=_0x856959['plugins']['get'](f),_0x1ed2af=_0x2c4288['getFootnotesDefinitionsObjectElement']();_0x1ed2af&&Number['isInteger'](_0x156b48)&&_0x856959['model']['change'](_0x2ffa93=>{_0x2ffa93['setAttribute']('footnotesListStart',_0x156b48,_0x1ed2af),_0x2c4288['_updateFootnotesCounters'](_0x2ffa93);});}}class P extends _0x10a194{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x146dcc}=this;_0x146dcc['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x146dcc['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x146dcc['commands']['add']('footnotesStyle',new S(_0x146dcc)),_0x146dcc['commands']['add']('footnotesStart',new C(_0x146dcc)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x39598a}=this,{schema:_0x20a7c9}=_0x39598a['model'];_0x20a7c9['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1c0a48}=this,{conversion:_0x1f1c9d,model:_0x4778fc}=_0x1c0a48,{schema:_0x58b9a3}=_0x4778fc;_0x1f1c9d['for']('upcast')['add'](_0x3d5e33=>{_0x3d5e33['on']('element:ol',(_0x4b9528,_0x27ac1b,_0x532c99)=>{const _0x22f433=_0x27ac1b['viewItem'],_0x4893fe=_0x27ac1b['modelCursor']?.['parent'];_0x22f433['hasClass']('footnotes-list')&&_0x4893fe?.['is']('element','footnotesDefinitions')&&(function(_0x1c25e8,_0x3d02a1,_0xd6466e,_0x3b0f2e){if(!_0x3b0f2e['checkAttribute'](_0x3d02a1,'footnotesListStart'))return;let _0x56f415=0x1;const _0x397f27=_0xd6466e['consumable']['consume'](_0x1c25e8,{'attributes':'start'});if(_0x397f27){const _0x1ea74e=Number['parseInt'](_0x1c25e8['getAttribute']('start'),0xa);Number['isNaN'](_0x1ea74e)||(_0x56f415=_0x1ea74e);}!_0x397f27&&_0x3d02a1['hasAttribute']('footnotesListStart')||_0xd6466e['writer']['setAttribute']('footnotesListStart',_0x56f415,_0x3d02a1);}(_0x22f433,_0x4893fe,_0x532c99,_0x58b9a3),function(_0x57649c,_0x3b4189,_0x366625,_0x5f46d4){if(!_0x5f46d4['checkAttribute'](_0x3b4189,'footnotesListStyle'))return;let _0x76a636='decimal',_0x7e94c5=!0x1;if(_0x366625['consumable']['consume'](_0x57649c,{'attributes':'type'})){const _0xc7f7d1={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x57649c['getAttribute']('type')];_0xc7f7d1&&(_0x76a636=_0xc7f7d1),_0x7e94c5=!0x0;}_0x366625['consumable']['consume'](_0x57649c,{'styles':'list-style-type'})&&(_0x76a636=function(_0x3cc85a){switch(_0x3cc85a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x3cc85a;}}(_0x57649c['getStyle']('list-style-type')),_0x7e94c5=!0x0),!_0x7e94c5&&_0x3b4189['hasAttribute']('footnotesListStyle')||_0x366625['writer']['setAttribute']('footnotesListStyle',_0x76a636,_0x3b4189);}(_0x22f433,_0x4893fe,_0x532c99,_0x58b9a3));});}),_0x1f1c9d['for']('downcast')['add'](_0x388589=>{_0x388589['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2f5c03,_0x5426e8,_0xad07cd)=>{if(!_0xad07cd['consumable']['consume'](_0x5426e8['item'],_0x2f5c03['name']))return;const _0x3204e3=M(_0x5426e8['item'],_0xad07cd['mapper']),{attributeNewValue:_0x45819c}=_0x5426e8;null==_0x45819c||0x1===_0x45819c?_0xad07cd['writer']['removeAttribute']('start',_0x3204e3):_0xad07cd['writer']['setAttribute']('start',String(_0x45819c),_0x3204e3);}),_0x388589['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3c0f52,_0x5226c7,_0x564bd6)=>{if(!_0x564bd6['consumable']['consume'](_0x5226c7['item'],_0x3c0f52['name']))return;const _0x38de23=M(_0x5226c7['item'],_0x564bd6['mapper']),{attributeNewValue:_0xf4acfb}=_0x5226c7;_0xf4acfb&&'decimal'!==_0xf4acfb?_0x564bd6['writer']['setStyle']('list-style-type',_0xf4acfb,_0x38de23):_0x564bd6['writer']['removeStyle']('list-style-type',_0x38de23);});});}['_definePostfixer'](){const {editor:_0xc5614b}=this,{model:_0x5cbc94}=_0xc5614b,_0x1c4fd2=_0xc5614b['plugins']['get'](f),_0x3ce401=this['_getDefaultListStyle'](),_0x3c772a=this['_getDefaultStartIndex']();_0x5cbc94['document']['registerPostFixer'](_0x919ee=>{const _0x579723=_0x5cbc94['document']['differ']['getChanges']();let _0x1a6f30=!0x1;for(const _0xb56532 of _0x579723){if('insert'!==_0xb56532['type']||'$text'===_0xb56532['name'])continue;const _0x3f9e9e=_0x5cbc94['createRangeOn'](_0xb56532['position']['nodeAfter']);for(const _0x321d8b of _0x3f9e9e['getItems']())_0x321d8b['is']('element','footnotesDefinitions')&&(!_0x321d8b['hasAttribute']('footnotesListStart')&&_0x5cbc94['schema']['checkAttribute'](_0x321d8b,'footnotesListStart')&&(_0x919ee['setAttribute']('footnotesListStart',_0x3c772a,_0x321d8b),_0x1a6f30=!0x0),!_0x321d8b['hasAttribute']('footnotesListStyle')&&_0x5cbc94['schema']['checkAttribute'](_0x321d8b,'footnotesListStyle')&&(_0x919ee['setAttribute']('footnotesListStyle',_0x3ce401,_0x321d8b),_0x1a6f30=!0x0));}return _0x1a6f30&&_0x1c4fd2['_updateFootnotesCounters'](_0x919ee),_0x1a6f30;});}['_defineFormatter'](){const {editor:_0x3578e2}=this;_0x3578e2['plugins']['get'](f)['setFootnoteFormatter'](_0xe982f0=>this['_formatFootnoteListValue'](_0xe982f0));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1abc93,value:_0x79e0d7,digits:_0x332348}){const _0x19d4e0=_0x1abc93['getAttribute']('footnotesListStyle'),_0x498c0c=_0x1abc93['getAttribute']('footnotesListStart'),_0xe4033e=Math['floor'](_0x79e0d7)+(_0x498c0c??0x1)-0x1;switch(_0x19d4e0){case'decimal-leading-zero':return function(_0x2351d3,_0x59b187){return String(_0x2351d3)['padStart'](_0x59b187,'0');}(_0xe4033e,Math['max'](0x2,_0x332348));case'lower-alpha':case'lower-latin':return N(_0xe4033e,!0x1);case'upper-alpha':case'upper-latin':return N(_0xe4033e,!0x0);case'lower-roman':return X(_0xe4033e,!0x1);case'upper-roman':return X(_0xe4033e,!0x0);default:return String(_0xe4033e);}}}function M(_0x484f08,_0x3e3c40){const _0x323878=_0x3e3c40['toViewElement'](_0x484f08);return Array['from'](_0x323878['getChildren']())['find'](_0x583a15=>_0x583a15['is']('element','ol')&&_0x583a15['hasClass']('footnotes-list'));}function N(_0x320ec4,_0x47764b){let _0x2eedd6='',_0x36040e=_0x320ec4;for(;_0x36040e>0x0;){const _0x4ee161=(_0x36040e-0x1)%0x1a;_0x2eedd6=String['fromCharCode'](0x61+_0x4ee161)+_0x2eedd6,_0x36040e=Math['floor']((_0x36040e-0x1)/0x1a);}return _0x47764b?_0x2eedd6['toUpperCase']():_0x2eedd6;}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(_0x119cab,_0x441fcb){let _0x42f9c7='',_0x2d8676=_0x119cab;for(const {value:_0x322edb,numeral:_0x2e3f6d}of V)for(;_0x2d8676>=_0x322edb;)_0x42f9c7+=_0x2e3f6d,_0x2d8676-=_0x322edb;return _0x441fcb?_0x42f9c7:_0x42f9c7['toLowerCase']();}class J extends _0x106402{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2e2371();['focusCycler'];constructor(_0x42d586,{styleButtonViews:_0x187e93,styleGridAriaLabel:_0x144570}){super(_0x42d586),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x187e93,_0x144570),[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 _0x38b035 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x38b035['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x35791e=_0x1d4623=>_0x1d4623['stopPropagation']();this['keystrokes']['set']('arrowright',_0x35791e),this['keystrokes']['set']('arrowleft',_0x35791e),this['keystrokes']['set']('arrowup',_0x35791e),this['keystrokes']['set']('arrowdown',_0x35791e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3fee64,_0x165b81){const _0x18861b=new _0x106402(this['locale']);return _0x18861b['children']=_0x18861b['createCollection'](),_0x18861b['children']['addMany'](_0x3fee64),_0x18861b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x165b81,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x18861b['children']}),_0x18861b['children']['delegate']('execute')['to'](this),_0x18861b['focus']=function(){for(const _0x13a438 of this['children'])if(_0x13a438 instanceof _0x51c3a7&&_0x13a438['isOn'])return void _0x13a438['focus']();this['children']['first']['focus']();},_0x18861b['focusTracker']=new rt(),_0x18861b['keystrokes']=new nt(),_0x18861b['render'](),_0x18861b['keystrokes']['listenTo'](_0x18861b['element']),this['children']['add'](_0x18861b),_0x18861b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3a81ed=this['_createStartIndexPropertyView'](),_0x21d7e6=[_0x3a81ed],_0x342bed=new it(this['locale'],_0x21d7e6);return _0x342bed['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x342bed['buttonView']['bind']('isEnabled')['toMany'](_0x21d7e6,'isEnabled',(..._0x571529)=>_0x571529['some'](_0x1e25ee=>_0x1e25ee)),_0x342bed['buttonView']['on']('change:isEnabled',(_0x1bed59,_0x21b0f4,_0x2bc4c0)=>{_0x2bc4c0||(_0x342bed['isCollapsed']=!0x0);}),this['children']['add'](_0x342bed),[_0x3a81ed,_0x342bed];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2be67a=new et(this['locale'],ot);return _0x2be67a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2be67a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2be67a['fieldView']['on']('input',()=>{const _0x6f647c=_0x2be67a['fieldView']['element'],_0x154fe0=_0x6f647c['valueAsNumber'];Number['isNaN'](_0x154fe0)?_0x2be67a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x6f647c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x154fe0}):_0x2be67a['errorText']=t(_0x154fe0<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2be67a;}}class j extends _0x10a194{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x26fa71,_0xd4b96d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3b3426}=this,{componentFactory:_0x426fb6}=_0x3b3426['ui'];_0x3b3426['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x426fb6['add']('footnotesStyle',function(_0x1eef2f){return _0x4664ec=>{const {t:t}=_0x4664ec,_0x5ebac0=_0x1eef2f['commands']['get']('footnotesStyle'),_0x3fb9f8=_0x33115f(_0x4664ec),{buttonView:_0x122445}=_0x3fb9f8;return _0x3fb9f8['class']='ck-footnotes-styles-dropdown',_0x3fb9f8['bind']('isEnabled')['to'](_0x5ebac0,'isEnabled'),_0x122445['set']({'label':t('Footnotes\x20style'),'icon':_0x213e33,'tooltip':!0x0}),_0x3fb9f8['once']('change:isOpen',()=>{const _0x169611=function({editor:_0x29b908,dropdownView:_0xa361da}){const {t:t}=_0x29b908['locale'],_0x16c890=t('Footnotes\x20definitions\x20styles'),_0x433eae=function(_0x35b4df){const t=_0x35b4df['locale']['t'],_0x4d5aab=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xc47fe9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2fc4ea},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x56ba63},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xfb3ec9},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x21f4b8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x43a17e}];return _0x4d5aab['map'](function(_0x5d62f2){const _0xebcb37=_0x5d62f2['locale'];return({label:_0x22fcee,icon:_0x4b78f2,tooltip:_0x2b8673,style:_0x5e9a9b})=>{const _0x966c2c=_0x5d62f2['commands']['get']('footnotesStyle'),_0x191f04=new _0x51c3a7(_0xebcb37);return _0x191f04['set']({'label':_0x22fcee,'icon':_0x4b78f2,'tooltip':_0x2b8673}),_0x191f04['bind']('isOn')['to'](_0x966c2c,'value',_0x5dc2ce=>_0x5dc2ce===_0x5e9a9b),_0x191f04['bind']('isEnabled')['to'](_0x966c2c,'isEnabled'),_0x191f04['on']('execute',()=>{_0x5d62f2['execute']('footnotesStyle',{'value':_0x5e9a9b}),_0x5d62f2['editing']['view']['focus']();}),_0x191f04;};}(_0x35b4df));}(_0x29b908),_0x463e9f=new J(_0x29b908['locale'],{'styleGridAriaLabel':_0x16c890,'styleButtonViews':_0x433eae}),_0x30c1b4=_0x29b908['commands']['get']('footnotesStart');return _0x463e9f['startIndexFieldView']['bind']('isEnabled')['to'](_0x30c1b4),_0x463e9f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x30c1b4),_0x463e9f['on']('footnotesListStart',(_0x5a0eaf,_0x2d18ae)=>{_0x29b908['execute']('footnotesStart',{'value':_0x2d18ae['startIndex']});}),_0x463e9f['delegate']('execute')['to'](_0xa361da),_0x463e9f;}({'editor':_0x1eef2f,'dropdownView':_0x3fb9f8});_0x3fb9f8['panelView']['children']['add'](_0x169611);}),_0x3fb9f8;};}(_0x3b3426));}['afterInit'](){const {editor:_0xf94886}=this,{t:t}=_0xf94886['locale'],_0x22cd12=_0xf94886['plugins']['get'](_0xd4b96d),{defaultPositions:_0x4e0a74}=_0x5f464f;_0x22cd12['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xf94886['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x22c4e2=>{let _0x1a1224=_0x22c4e2['getFirstPosition']()?.['parent'];return _0x1a1224?.['is']('$text')&&(_0x1a1224=_0x1a1224['parent']),_0x1a1224?.['is']('element')?_0x1a1224['findAncestor'](Q):null;},'positions':[_0x4e0a74['southArrowNorth'],_0x4e0a74['southArrowNorthMiddleWest'],_0x4e0a74['southArrowNorthMiddleEast'],_0x4e0a74['southArrowNorthWest'],_0x4e0a74['southArrowNorthEast'],_0x4e0a74['northArrowSouth'],_0x4e0a74['northArrowSouthMiddleWest'],_0x4e0a74['northArrowSouthMiddleEast'],_0x4e0a74['northArrowSouthWest'],_0x4e0a74['northArrowSouthEast'],_0x4e0a74['viewportStickyNorth']]});}}class ft extends _0x10a194{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,h as InsertFootnoteCommand};
23
+ import{Plugin as _0x5cb942,Command as _0x56da19}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2e36b2,isWidget as _0x168efc,toWidgetEditable as _0x10d921,WidgetToolbarRepository as _0x2f92c2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x40b819,logWarning as _0x30344a,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x473528,ClickObserver as _0x4531dd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3c91ef}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1bf7a6,ButtonView as _0x427d5a,View as _0x29d430,ViewCollection as _0x36a25c,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x3bbbe2,BalloonPanelView as _0x2d51ed,createDropdown as _0xc88267}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2db07c,IconListStyleDecimal as _0x469ce5,IconListStyleDecimalLeadingZero as _0x4b0e83,IconListStyleLowerRoman as _0x2f380f,IconListStyleUpperRoman as _0x16f5a4,IconListStyleLowerLatin as _0x50453d,IconListStyleUpperLatin as _0x51b6e7}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x345e6d,_0x4a746d){this['_model']=_0x345e6d,this['_elementName']=_0x4a746d['elementName'],this['_getElementKey']=_0x4a746d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2cdef5){const _0x29337c=new Set(),_0x167d77=new Map();for(const _0x58fad2 of _0x2cdef5){if('insert'===_0x58fad2['type']&&'$text'!==_0x58fad2['name']&&_0x58fad2['position']['nodeAfter']){const _0x47750d=this['_model']['createRangeOn'](_0x58fad2['position']['nodeAfter']);for(const _0x589de0 of _0x47750d['getItems']()){if(!_0x589de0['is']('element',this['_elementName']))continue;const _0x1dbea2=this['_getElementKey'](_0x589de0);_0x167d77['has'](_0x1dbea2)||_0x167d77['set'](_0x1dbea2,[]),_0x167d77['get'](_0x1dbea2)['push'](_0x589de0);}}if('remove'===_0x58fad2['type']&&_0x58fad2['name']===this['_elementName']){const _0x4f4d11=this['_getElementKey']({'getAttribute':_0x5a8fc0=>_0x58fad2['attributes']['get'](_0x5a8fc0)});_0x29337c['add'](_0x4f4d11);}}for(const [_0x29b06f,_0xfd0a1]of this['_trackedElements'])'$graveyard'===_0xfd0a1['root']['rootName']&&_0x29337c['add'](_0x29b06f);for(const _0x4fd611 of _0x29337c)this['_trackedElements']['delete'](_0x4fd611);for(const [_0x552277,_0x16b074]of _0x167d77)this['_trackedElements']['set'](_0x552277,_0x16b074[_0x16b074['length']-0x1]);const _0x395430=new Set();for(const [_0x1f7034,_0x1c5b77]of _0x167d77)_0x29337c['has'](_0x1f7034)&&(_0x395430['add'](_0x1c5b77[0x0]),_0x1c5b77['length']>0x1?_0x167d77['set'](_0x1f7034,_0x1c5b77['slice'](0x1)):_0x167d77['delete'](_0x1f7034),_0x29337c['delete'](_0x1f7034));return{'removed':Array['from'](_0x29337c),'inserted':Array['from'](_0x167d77['values']())['flat'](),'moved':Array['from'](_0x395430)};}}class f extends _0x5cb942{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x901f01){super(_0x901f01),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x17bc27=>_0x17bc27['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5d3c5a=>_0x5d3c5a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x31e72e}=this,{model:_0x251f2f,data:_0xd6e0a4}=_0x31e72e;_0x251f2f['document']['registerPostFixer'](_0x92593b=>{const _0x2f4a57=_0x251f2f['document']['differ']['getChanges']();let _0x3ab08d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x92593b,_0x2f4a57)&&(_0x3ab08d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x92593b,_0x2f4a57)&&(_0x3ab08d=!0x0),this['_handleFootnoteReferencesChanges'](_0x92593b,_0x2f4a57)&&(_0x3ab08d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x92593b)&&(_0x3ab08d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x92593b)&&(_0x3ab08d=!0x0),this['_sortFootnoteDefinitions'](_0x92593b)&&(_0x3ab08d=!0x0),_0x3ab08d;}),this['listenTo'](_0x251f2f['document'],'change:data',()=>{_0x251f2f['enqueueChange']({'isUndoable':!0x1},_0x6ecfaa=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x6ecfaa);});},{'priority':'low'}),this['listenTo'](_0xd6e0a4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x12c923){return this['_footnotes']['find'](_0x8ff4bd=>_0x8ff4bd['id']===_0x12c923)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2bc277){this['_footnoteFormatter']=_0x2bc277;}['_updateFootnotesCounters'](_0x4b6fcd,_0x5a6ed3=0x0){let _0x105555=!0x1;for(let _0x3c85fe=_0x5a6ed3;_0x3c85fe<this['_footnotes']['length'];_0x3c85fe++)this['_updateFootnoteRefCounter'](_0x4b6fcd,_0x3c85fe)&&(_0x105555=!0x0);return _0x105555;}['_insertEmptyFootnotesDefinitionsContainer'](_0x320719,_0x1d54c1){const _0x5c12db=_0x320719['createElement']('footnotesDefinitions',{});return _0x320719['append'](_0x5c12db,_0x1d54c1),this['_footnotesDefinitions']=_0x5c12db,_0x5c12db;}['_ensureFootnotesDefinitionsContainerExists'](_0x30b85a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x48160=this['_footnotes'][0x0]['reference']['root'],_0x5d9fb4=this['_insertEmptyFootnotesDefinitionsContainer'](_0x30b85a,_0x48160);for(const _0x3ff7ff of this['_footnotes'])_0x3ff7ff['definition']['parent']||_0x30b85a['insert'](_0x3ff7ff['definition'],_0x5d9fb4,'end');this['_updateFootnotesCounters'](_0x30b85a);}['_handleFootnotesDefinitionsObjectChanges'](_0x39a01f,_0x8c0d4){let _0x50926a=!0x1;const {inserted:_0x4f9b27,removed:_0x40e50b,moved:_0x50535d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x8c0d4);if(_0x50535d['length']&&(this['_footnotesDefinitions']=_0x50535d[0x0]),_0x4f9b27['length']){if(_0x4f9b27['length']>0x1||this['_footnotesDefinitions']&&_0x4f9b27['some'](_0x547a59=>_0x547a59!==this['_footnotesDefinitions'])){const _0x5f0aaa=_0x39a01f['createElement']('footnotesDefinitions',{}),_0x45e1f7=[];this['_footnotesDefinitions']&&_0x45e1f7['push'](this['_footnotesDefinitions']),_0x45e1f7['push'](..._0x4f9b27),_0x39a01f['insert'](_0x5f0aaa,_0x45e1f7[0x0],'before');for(const _0xacd1d8 of _0x45e1f7)_0x39a01f['move'](_0x39a01f['createRangeIn'](_0xacd1d8),_0x39a01f['createPositionAt'](_0x5f0aaa,'end')),_0x39a01f['remove'](_0xacd1d8);this['_footnotesDefinitions']=_0x5f0aaa,this['_updateFootnotesCounters'](_0x39a01f),_0x50926a=!0x0;}else this['_footnotesDefinitions']=_0x4f9b27[0x0];}if(_0x40e50b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x384414 of this['_footnotes'])_0x39a01f['remove'](_0x384414['reference']),_0x50926a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x50926a;}['_handleFootnoteDefinitionsChanges'](_0x580d84,_0x462726){let _0x4a143b=!0x1;const _0x574a0f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1fe8d1,moved:_0x561efa}=this['_footnoteDefsTracker']['getChanges'](_0x462726);for(const _0x518277 of[..._0x561efa,..._0x1fe8d1]){const _0x1c2718=_0x518277['getAttribute']('footnoteId'),_0x4a2239=this['getFootnote'](_0x1c2718);_0x4a2239&&(_0x4a2239['definition']=_0x518277),_(_0x580d84,_0x574a0f,_0x518277)&&(_0x4a143b=!0x0);}return _0x4a143b;}['_handleFootnoteReferencesChanges'](_0x3ec989,_0x3a7ffc){let _0x56b61f=!0x1;const {removed:_0xcc794d,inserted:_0x1e5d9f,moved:_0x10a7d6}=this['_footnoteRefsTracker']['getChanges'](_0x3a7ffc);for(const _0x4488fa of _0xcc794d)this['_handleRemoveFootnoteReferenceById'](_0x3ec989,_0x4488fa)&&(_0x56b61f=!0x0);for(const _0x3a9b98 of _0x1e5d9f)this['_handleInsertedFootnoteReference'](_0x3ec989,_0x3a9b98)&&(_0x56b61f=!0x0);for(const _0x10a61f of _0x10a7d6)this['_handleMovedFootnoteReference'](_0x3ec989,_0x10a61f)&&(_0x56b61f=!0x0);return _0x56b61f;}['_handleFootnotesDefinitionsObjectSync'](_0x12bbbb){if(!this['_footnotesDefinitions'])return!0x1;let _0x52f0d6=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4a7118=[];for(const _0x1cdbf6 of this['_footnotesDefinitions']['getChildren']()){const _0x4daef7=_0x1cdbf6['getAttribute']('footnoteId');this['getFootnote'](_0x4daef7)||(_0x4a7118['unshift'](_0x1cdbf6),_0x52f0d6=!0x0);}for(const _0x1eb237 of _0x4a7118)_0x12bbbb['remove'](_0x1eb237);}const _0x34a944=new Set(),_0x20d7c0=[];for(const _0x3d3840 of this['_footnotesDefinitions']['getChildren']()){const _0x2d3f6f=_0x3d3840['getAttribute']('footnoteId');_0x34a944['has'](_0x2d3f6f)?(_0x20d7c0['unshift'](_0x3d3840),_0x52f0d6=!0x0):_0x34a944['add'](_0x2d3f6f);}for(const _0x241689 of _0x20d7c0)_0x12bbbb['remove'](_0x241689);return this['_footnotesDefinitions']['childCount']||(_0x12bbbb['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x52f0d6=!0x0),_0x52f0d6;}['_handleInsertedFootnoteReference'](_0x3a5f0e,_0x385c55){if(this['_footnotes']['find'](_0x1f7b63=>_0x1f7b63['reference']===_0x385c55))return!0x1;let _0x37aa8c=!0x1;const _0x23b49a=_0x385c55['getAttribute']('footnoteId'),_0x210387=this['_footnotes']['findIndex'](_0x406b9c=>_0x406b9c['id']===_0x23b49a);-0x1!==_0x210387&&(_0x3a5f0e['remove'](this['_footnotes'][_0x210387]['reference']),this['_footnotes']['splice'](_0x210387,0x1),_0x37aa8c=!0x0);let _0xc9196d=this['_footnotesDefinitions']?function(_0x8523b7,_0x271e0e){for(const _0x2091bd of _0x8523b7['getChildren']())if(_0x2091bd['getAttribute']('footnoteId')===_0x271e0e)return _0x2091bd;return null;}(this['_footnotesDefinitions'],_0x23b49a):null;_0xc9196d||(_0xc9196d=_0x3a5f0e['createElement']('footnoteDefinition',{'footnoteId':_0x23b49a}),this['_footnotesDefinitions']&&(_0x3a5f0e['insert'](_0xc9196d,this['_footnotesDefinitions'],'end'),_0x37aa8c=!0x0));const _0xc6b764={'id':_0x23b49a,'reference':_0x385c55,'definition':_0xc9196d},_0x53b0b9=I(this['editor']['model'],this['_footnotes'],_0x385c55);this['_footnotes']['splice'](_0x53b0b9,0x0,_0xc6b764);let _0x20c1aa=_0x53b0b9;return-0x1!==_0x210387&&(_0x20c1aa=Math['min'](_0x53b0b9,_0x210387)),this['_updateFootnotesCounters'](_0x3a5f0e,_0x20c1aa)&&(_0x37aa8c=!0x0),_0x37aa8c;}['_handleRemoveFootnoteReferenceById'](_0x3af602,_0x52ee21){const _0x1a2e37=this['_footnotes']['findIndex'](_0x65323f=>_0x65323f['id']===_0x52ee21);if(-0x1===_0x1a2e37)return!0x1;let _0x592227=!0x1;const _0x1ba4f4=this['_footnotes'][_0x1a2e37];return'$graveyard'!==_0x1ba4f4['definition']['root']['rootName']&&(_0x3af602['remove'](_0x1ba4f4['definition']),_0x592227=!0x0),this['_footnotes']['splice'](_0x1a2e37,0x1),this['_updateFootnotesCounters'](_0x3af602,_0x1a2e37)&&(_0x592227=!0x0),_0x592227;}['_handleMovedFootnoteReference'](_0x33488a,_0x1d212a){const _0x2401e1=_0x1d212a['getAttribute']('footnoteId'),_0x278be3=this['_footnotes']['findIndex'](_0xa2c2a7=>_0xa2c2a7['id']===_0x2401e1),_0x18a0e1=this['_footnotes'][_0x278be3];let _0x3f839c=!0x1;_0x18a0e1['reference']=_0x1d212a,this['_footnotes']['splice'](_0x278be3,0x1);const _0x38b6af=I(this['editor']['model'],this['_footnotes'],_0x1d212a);return this['_footnotes']['splice'](_0x38b6af,0x0,_0x18a0e1),this['_updateFootnotesCounters'](_0x33488a,Math['min'](_0x278be3,_0x38b6af))&&(_0x3f839c=!0x0),_0x3f839c;}['_updateFootnoteRefCounter'](_0x5b58c4,_0x9e7d93){if(!this['_footnotesDefinitions'])return!0x1;const _0xa45a14=this['_footnotes'][_0x9e7d93];let _0xb9739a;return _0xb9739a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xa45a14,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x9e7d93+0x1}):String(_0x9e7d93+0x1),_0xa45a14['reference']['getAttribute']('footnoteCounter')!=_0xb9739a&&(_0x5b58c4['setAttribute']('footnoteCounter',_0xb9739a,_0xa45a14['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x20b3e8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x303488,_0x3033ff){if(_0x303488['length']!==_0x3033ff['length'])return!0x1;for(let _0x234dac=0x0;_0x234dac<_0x303488['length'];_0x234dac++)if(_0x303488[_0x234dac]!==_0x3033ff[_0x234dac])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4d21f7=>_0x4d21f7['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2fdde5=>_0x2fdde5['getAttribute']('footnoteId'))))return!0x1;let _0x43a28a=!0x1;for(let _0x202235=0x0;_0x202235<this['_footnotes']['length'];_0x202235++){const _0x3f6344=this['_footnotes'][_0x202235],_0x18a5c2=_0x20b3e8['createPositionBefore'](_0x3f6344['definition']),_0x1a2fff=_0x20b3e8['createPositionAt'](this['_footnotesDefinitions'],_0x202235);_0x18a5c2['isEqual'](_0x1a2fff)||(_0x20b3e8['move'](_0x20b3e8['createRangeOn'](_0x3f6344['definition']),_0x1a2fff),_0x43a28a=!0x0);}return _0x43a28a;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5afaca){if(!this['_footnotes']['length'])return!0x1;const {model:_0x337fa0}=this['editor'];let _0x2345d7=!0x1;for(let _0x32e614=0x0;_0x32e614<this['_footnotes']['length']-0x1;_0x32e614++){const _0x50d965=this['_footnotes'][_0x32e614],_0x4afac3=this['_footnotes'][_0x32e614+0x1],_0x34ece3=_0x337fa0['createPositionBefore'](_0x50d965['reference']),_0x314f38=_0x337fa0['createPositionBefore'](_0x4afac3['reference']);'after'===_0x34ece3['compareWith'](_0x314f38)&&(this['_handleMovedFootnoteReference'](_0x5afaca,_0x50d965['reference']),_0x32e614=-0x1,_0x2345d7=!0x0);}return _0x2345d7;}}function _(_0x2f2aea,_0x34afa7,_0x1febef){if(_0x1febef['childCount'])return!0x1;const _0x43cb60=_0x34afa7?'paragraph':'footnoteInlineContent';return _0x2f2aea['insert'](_0x2f2aea['createElement'](_0x43cb60),_0x1febef),!0x0;}function I(_0x3272fc,_0x154bd6,_0x5090bb){if(0x0===_0x154bd6['length'])return 0x0;const _0x3b7447=_0x3272fc['createPositionBefore'](_0x5090bb);for(let _0x8012a6=0x0;_0x8012a6<_0x154bd6['length'];_0x8012a6++){const _0x38a2c2=_0x154bd6[_0x8012a6],_0x40e97b=_0x3272fc['createPositionBefore'](_0x38a2c2['reference']);if('before'===_0x3b7447['compareWith'](_0x40e97b))return _0x8012a6;}const _0x544771=_0x5090bb['root'];let _0x2ad081=-0x1;for(let _0x13edf6=_0x154bd6['length']-0x1;_0x13edf6>=0x0;_0x13edf6--)if(_0x154bd6[_0x13edf6]['reference']['root']===_0x544771){_0x2ad081=_0x13edf6;break;}if(-0x1!==_0x2ad081)return _0x2ad081+0x1;const _0x2acee7=_0x3272fc['document']['getRootNames'](),_0x4bf0e0=_0x2acee7['indexOf'](_0x544771['rootName']),_0x2d1ef9=_0x2acee7[_0x4bf0e0+0x1];if(_0x2d1ef9){for(let _0x3ddf26=0x0;_0x3ddf26<_0x154bd6['length'];_0x3ddf26++)if(_0x154bd6[_0x3ddf26]['reference']['root']['rootName']===_0x2d1ef9)return _0x3ddf26;}return _0x154bd6['length'];}class h extends _0x56da19{['refresh'](){const _0x5a7094=this['editor']['model']['document']['selection'],_0x10ba7e=this['_getPositionToInsertFootnote'](_0x5a7094);this['isEnabled']=!!_0x10ba7e;}['execute'](_0x323d9){const {editor:_0x323f3a}=this,{model:_0x2bced9}=_0x323f3a,{selection:_0x10ff4a}=_0x2bced9['document'],_0x1d934e=this['_getPositionToInsertFootnote'](_0x10ff4a);if(!_0x1d934e)return;const _0xa265c8=_0x323f3a['plugins']['get']('FootnotesEditing'),_0x9e79ff=_0x323d9?.['footnoteId']??_0x40b819();!function(_0x13193f){return'string'==typeof _0x13193f&&_0x13193f['length']>0x0&&!/\s/['test'](_0x13193f)&&!/^\d/['test'](_0x13193f);}(_0x9e79ff)?_0x30344a('insert-footnote-command-executed-with-invalid-id'):(_0x2bced9['change'](_0x307409=>{const _0x516a5a=_0x307409['createElement']('footnoteRef',{'footnoteId':_0x9e79ff});_0x2bced9['insertObject'](_0x516a5a,_0x1d934e,null);}),_0xa265c8['_moveSelectionToFootnoteDefinition'](_0x9e79ff));}['_getPositionToInsertFootnote'](_0x365e11){const {model:_0x39f03c}=this['editor'],{schema:_0x21e745}=_0x39f03c,_0x467302=_0x365e11['getFirstRange']();for(const _0x46fce6 of _0x467302['getItems']())if(_0x21e745['isBlock'](_0x46fce6)||_0x21e745['isObject'](_0x46fce6))return null;const _0x4084fe=_0x467302['end'];return _0x21e745['checkChild'](_0x4084fe,'footnoteRef')?_0x4084fe:null;}}class r extends _0x5cb942{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d8752}=this;_0x1d8752['config']['define']('footnotes.multiBlock',!0x0),_0x1d8752['commands']['add']('insertFootnote',new h(_0x1d8752)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3714a8){const _0x4ccbe8=_0x34743c([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]),_0x362621=0x47a28506,_0x166c09=0x47a5061e^_0x362621,_0xaeb1e1=window[_0x34743c([0x44,0x61,0x74,0x65])][_0x34743c([0x6e,0x6f,0x77])](),_0x365cc1=_0x3714a8[_0x34743c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x280077=new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x335c9e=>{_0x365cc1[_0x34743c([0x6f,0x6e,0x63,0x65])](_0x34743c([0x72,0x65,0x61,0x64,0x79]),_0x335c9e);}),_0x224cc3={[_0x34743c([0x6b,0x74,0x79])]:_0x34743c([0x45,0x43]),[_0x34743c([0x75,0x73,0x65])]:_0x34743c([0x73,0x69,0x67]),[_0x34743c([0x63,0x72,0x76])]:_0x34743c([0x50,0x2d,0x32,0x35,0x36]),[_0x34743c([0x78])]:_0x34743c([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]),[_0x34743c([0x79])]:_0x34743c([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]),[_0x34743c([0x61,0x6c,0x67])]:_0x34743c([0x45,0x53,0x32,0x35,0x36])},_0x5417f4=_0x365cc1[_0x34743c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34743c([0x67,0x65,0x74])](_0x34743c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x176669(){let _0x5cee11,_0xcb3a4f=null,_0x39e84f=null;try{if(_0x5417f4==_0x34743c([0x47,0x50,0x4c]))return _0x34743c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5cee11=_0x4fbb9f(),!_0x5cee11)return _0x34743c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5cee11[_0x34743c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39e84f=_0x216f6b(_0x5cee11[_0x34743c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5cee11[_0x34743c([0x6a,0x74,0x69])])),await _0x1d679e()?_0xbaecdd()?_0x2d897c()?_0x34743c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5507fc()?(_0x5cee11[_0x34743c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34743c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcb3a4f=_0x5c220d(_0x34743c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe231c8()):_0x34743c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34743c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34743c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34743c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d897c(){const _0x40c137=[_0x34743c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34743c([0x74,0x72,0x69,0x61,0x6c])][_0x34743c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cee11[_0x34743c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaeb1e1/0x3e8:0xe10*_0x166c09;return _0x5cee11[_0x34743c([0x65,0x78,0x70])]<_0x40c137;}function _0xbaecdd(){const _0x3460ca=_0x5cee11[_0x34743c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3460ca&&(!!_0x3460ca[_0x34743c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34743c([0x2a]))||!!_0x3460ca[_0x34743c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34743c([0x46,0x4f,0x4f])));}function _0x5507fc(){const _0x24fb5f=_0x5cee11[_0x34743c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24fb5f||0x0==_0x24fb5f[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x290636}=new URL(window[_0x34743c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24fb5f[_0x34743c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290636))return!0x0;const _0x9397e=_0x290636[_0x34743c([0x73,0x70,0x6c,0x69,0x74])](_0x34743c([0x2e]));return _0x24fb5f[_0x34743c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf96c5c=>_0xf96c5c[_0x34743c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34743c([0x2a])))[_0x34743c([0x6d,0x61,0x70])](_0x152ff7=>_0x152ff7[_0x34743c([0x73,0x70,0x6c,0x69,0x74])](_0x34743c([0x2e])))[_0x34743c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39889a=>_0x39889a[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9397e[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34743c([0x6d,0x61,0x70])](_0x7d5ee=>Array(_0x9397e[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7d5ee[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34743c([0x66,0x69,0x6c,0x6c])](_0x7d5ee[0x0]===_0x34743c([0x2a])?_0x34743c([0x2a]):'')[_0x34743c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7d5ee))[_0x34743c([0x73,0x6f,0x6d,0x65])](_0x35b422=>_0x9397e[_0x34743c([0x65,0x76,0x65,0x72,0x79])]((_0x4dc7ec,_0x52444d)=>_0x35b422[_0x52444d]===_0x4dc7ec||_0x35b422[_0x52444d]===_0x34743c([0x2a])));}function _0xe231c8(){return _0xcb3a4f&&_0x39e84f?new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x375313,_0x484b46)=>{_0xcb3a4f[_0x34743c([0x74,0x68,0x65,0x6e])](_0x375313,_0x484b46),_0x39e84f[_0x34743c([0x74,0x68,0x65,0x6e])](_0x453c4d=>{_0x453c4d!=_0x34743c([0x56,0x61,0x6c,0x69,0x64])&&_0x375313(_0x453c4d);},_0x484b46);}):_0xcb3a4f||_0x39e84f||_0x34743c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x216f6b(_0x407362,_0x8b34a9){return new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d864b=>{if(_0x107582())return _0x5d864b(_0x34743c([0x56,0x61,0x6c,0x69,0x64]));_0xc4dfbe(),_0x365cc1[_0x34743c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34743c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b856=!0x1;const _0x395aa3=_0x40b819();function _0x1f5172(_0x175a04){return!!_0x175a04&&(typeof _0x175a04===_0x34743c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x175a04===_0x34743c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x175a04[_0x34743c([0x74,0x68,0x65,0x6e])]===_0x34743c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x175a04[_0x34743c([0x63,0x61,0x74,0x63,0x68])]===_0x34743c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a42c4(_0x50d56f){_0x55d5b1(_0x50d56f)[_0x34743c([0x74,0x68,0x65,0x6e])](_0x246285=>{if(!_0x246285||_0x246285[_0x34743c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34743c([0x6f,0x6b]))return _0x34743c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x312948(_0x44910b(_0x395aa3+_0x8b34a9))!=_0x246285[_0x34743c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34743c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34743c([0x56,0x61,0x6c,0x69,0x64]);})[_0x34743c([0x74,0x68,0x65,0x6e])](_0x3588cc=>(_0x46ef42(),_0x3588cc),()=>{const _0x1e3b73=_0x527261();return null==_0x1e3b73?(_0x46ef42(),_0x34743c([0x56,0x61,0x6c,0x69,0x64])):_0x34743c(_0xaeb1e1-_0x1e3b73>(0x63ae0106^_0x362621)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34743c([0x74,0x68,0x65,0x6e])](_0x5d864b)[_0x34743c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d864b(_0x34743c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a5ca3=0x47946b86^_0x362621;function _0x46ef42(){const _0x1a53ac=_0x34743c([0x6c,0x6c,0x63,0x74,0x2d])+_0x312948(_0x44910b(_0x407362)),_0x444637=_0x399e8e(_0x312948(window[_0x34743c([0x4d,0x61,0x74,0x68])][_0x34743c([0x63,0x65,0x69,0x6c])](_0xaeb1e1/_0x2a5ca3)));window[_0x34743c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34743c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a53ac,_0x444637);}function _0x527261(){const _0x2caf5b=_0x34743c([0x6c,0x6c,0x63,0x74,0x2d])+_0x312948(_0x44910b(_0x407362)),_0x198334=window[_0x34743c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34743c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2caf5b);return _0x198334?window[_0x34743c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x399e8e(_0x198334),0x10)*_0x2a5ca3:null;}function _0x55d5b1(_0x4190c2){return new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2472fe,_0x5a49ff)=>{_0x4190c2[_0x34743c([0x74,0x68,0x65,0x6e])](_0x2472fe,_0x5a49ff),window[_0x34743c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a49ff,0x47a351c6^_0x362621);});}}_0x365cc1[_0x34743c([0x6f,0x6e])](_0x34743c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13b21a,_0x1cc689)=>{if(_0x1cc689[0x0]!=_0x407362)return _0x5d864b(_0x34743c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cc689[0x1]={..._0x1cc689[0x1],[_0x34743c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x395aa3};},{[_0x34743c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34743c([0x68,0x69,0x67,0x68])}),_0x365cc1[_0x34743c([0x6f,0x6e])](_0x34743c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf68e6=>{_0x1f5172(_0xf68e6[_0x34743c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b856=!0x0,_0x4a42c4(_0xf68e6[_0x34743c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34743c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34743c([0x6c,0x6f,0x77])}),_0x280077[_0x34743c([0x74,0x68,0x65,0x6e])](()=>{_0x43b856||_0x5d864b(_0x34743c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x107582(){return _0x365cc1[_0x34743c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34743c([0x76,0x69,0x65,0x77])][_0x34743c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34743c([0x61,0x75,0x74,0x6f]);}function _0xc4dfbe(){_0x365cc1[_0x34743c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34743c([0x76,0x69,0x65,0x77])][_0x34743c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34743c([0x61,0x75,0x74,0x6f]);}}function _0x5c220d(_0xac425b){const _0x34f540=[new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x114553=>setTimeout(_0x114553,0x47abbbca^_0x362621)),_0x280077[_0x34743c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3505fa=>{let _0x3bf9db=0x0;_0x365cc1[_0x34743c([0x6d,0x6f,0x64,0x65,0x6c])][_0x34743c([0x6f,0x6e])](_0x34743c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33a978,_0x4520d6)=>{_0x4520d6[0x0][_0x34743c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bf9db++,_0x3bf9db==(0x47a280ee^_0x362621)&&(_0x3505fa(),_0x33a978[_0x34743c([0x6f,0x66,0x66])]());});}))];return window[_0x34743c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34743c([0x72,0x61,0x63,0x65])](_0x34f540)[_0x34743c([0x74,0x68,0x65,0x6e])](()=>_0xac425b);}async function _0x1a9f07(){await _0x280077,_0x365cc1[_0x34743c([0x6d,0x6f,0x64,0x65,0x6c])][_0x34743c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ee7aa,_0x365cc1[_0x34743c([0x6d,0x6f,0x64,0x65,0x6c])][_0x34743c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ee7aa,_0x365cc1[_0x34743c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34743c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a77eb(_0x57b372){const _0x1f23f6=_0x19efac();_0x365cc1[_0x1f23f6]=_0x34743c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57b372,_0x57b372!=_0x34743c([0x56,0x61,0x6c,0x69,0x64])&&_0x1a9f07();}function _0x19efac(){const _0x339580=window[_0x34743c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34743c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34743c([0x6e,0x6f,0x77])]())[_0x34743c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34743c([0x2e]),'');let _0x45b178=_0x34743c([0x75]);for(let _0x593575=0x0;_0x593575<_0x339580[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x593575+=0x2){let _0x1c8cce=window[_0x34743c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x339580[_0x34743c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x593575,_0x593575+0x2));_0x1c8cce>=_0x4ccbe8[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c8cce-=_0x4ccbe8[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45b178+=_0x4ccbe8[_0x1c8cce];}return _0x45b178;}function _0x4fbb9f(){const _0x28a7ee=_0x5417f4[_0x34743c([0x73,0x70,0x6c,0x69,0x74])](_0x34743c([0x2e]));if(0x3!=_0x28a7ee[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e3fcd(_0x28a7ee[0x1]);function _0x5e3fcd(_0x2ff74d){const _0x403102=_0x2510f3(_0x2ff74d);return _0x403102&&_0xbde35d()?_0x403102:null;function _0xbde35d(){const _0x131568=_0x403102[_0x34743c([0x6a,0x74,0x69])],_0xad1cc1=window[_0x34743c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x131568[_0x34743c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x131568[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x388313={..._0x403102,[_0x34743c([0x6a,0x74,0x69])]:_0x131568[_0x34743c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x131568[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x388313[_0x34743c([0x76,0x63])],_0x44910b(_0x388313)==_0xad1cc1;}}}async function _0x1d679e(){let _0x3dee00=!0x0;try{const _0x2313a4=_0x5417f4[_0x34743c([0x73,0x70,0x6c,0x69,0x74])](_0x34743c([0x2e])),[_0x20fde0,_0x44e4a5,_0x4e4ebc]=_0x2313a4;return _0x59247d(_0x20fde0),await _0x11ce26(_0x20fde0,_0x44e4a5,_0x4e4ebc),_0x3dee00;}catch{return!0x1;}function _0x59247d(_0x18d74d){const _0x4adb0e=_0x2510f3(_0x18d74d);_0x4adb0e&&_0x4adb0e[_0x34743c([0x61,0x6c,0x67])]==_0x34743c([0x45,0x53,0x32,0x35,0x36])||(_0x3dee00=!0x1);}async function _0x11ce26(_0x3f5d01,_0x2303dd,_0x55424d){const _0x3ff9de=window[_0x34743c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34743c([0x66,0x72,0x6f,0x6d])](_0x2360dd(_0x55424d),_0x543925=>_0x543925[_0x34743c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ae149=new window[(_0x34743c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34743c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f5d01+_0x34743c([0x2e])+_0x2303dd),_0xf12c8b=window[_0x34743c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34743c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf12c8b)return;const _0x702cc8=await _0xf12c8b[_0x34743c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34743c([0x6a,0x77,0x6b]),_0x224cc3,{[_0x34743c([0x6e,0x61,0x6d,0x65])]:_0x34743c([0x45,0x43,0x44,0x53,0x41]),[_0x34743c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34743c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34743c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf12c8b[_0x34743c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34743c([0x6e,0x61,0x6d,0x65])]:_0x34743c([0x45,0x43,0x44,0x53,0x41]),[_0x34743c([0x68,0x61,0x73,0x68])]:{[_0x34743c([0x6e,0x61,0x6d,0x65])]:_0x34743c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x702cc8,_0x3ff9de,_0x2ae149)||(_0x3dee00=!0x1);}}function _0x2510f3(_0x572361){return _0x572361[_0x34743c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34743c([0x65,0x79]))?JSON[_0x34743c([0x70,0x61,0x72,0x73,0x65])](_0x2360dd(_0x572361)):null;}function _0x2360dd(_0x4d35e5){return window[_0x34743c([0x61,0x74,0x6f,0x62])](_0x4d35e5[_0x34743c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34743c([0x2b]))[_0x34743c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34743c([0x2f])));}function _0x44910b(_0x28cb92){let _0x526e4b=0x1505;function _0x287264(_0x3f869e){for(let _0x3a1541=0x0;_0x3a1541<_0x3f869e[_0x34743c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a1541++){const _0x7e90c1=_0x3f869e[_0x34743c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a1541);_0x526e4b=(_0x526e4b<<0x5)+_0x526e4b+_0x7e90c1,_0x526e4b&=_0x526e4b;}}function _0x38077c(_0x45d817){Array[_0x34743c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45d817)?_0x45d817[_0x34743c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38077c):_0x45d817&&typeof _0x45d817==_0x34743c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34743c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45d817)[_0x34743c([0x73,0x6f,0x72,0x74])]()[_0x34743c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20b9cc,_0x23458c])=>{_0x287264(_0x20b9cc),_0x38077c(_0x23458c);}):_0x287264(window[_0x34743c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45d817));}return _0x38077c(_0x28cb92),_0x526e4b>>>0x0;}function _0x312948(_0x29b99c){return _0x29b99c[_0x34743c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34743c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34743c([0x30]));}function _0x399e8e(_0x53c481){return _0x53c481[_0x34743c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34743c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34743c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ee7aa(){}function _0x34743c(_0x348b66){return _0x348b66['map'](_0x572765=>String['fromCharCode'](_0x572765))['join']('');}_0x2a77eb(await _0x176669());}(this);}['_moveSelectionToFootnoteDefinition'](_0x148675){const {plugins:_0x1c09dc,editing:_0x415701,model:_0x55b71f}=this['editor'],_0x35cafe=_0x1c09dc['get'](f)['getFootnote'](_0x148675);return!!_0x35cafe&&(_0x55b71f['change'](_0xfcded5=>{_0xfcded5['setSelection'](_0xfcded5['createPositionAt'](_0x35cafe['definition'],'end'));}),_0x415701['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x24d01f){const {plugins:_0x5519b3,editing:_0x5924b4,model:_0xe2d5af}=this['editor'],_0x3f4537=_0x5519b3['get'](f)['getFootnote'](_0x24d01f);return!!_0x3f4537&&(_0xe2d5af['change'](_0x50b8d1=>{_0x50b8d1['setSelection'](_0x3f4537['reference'],'on');}),_0x5924b4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2b0a49}=this['editor']['model'],_0x4580b7=this['editor']['config']['get']('footnotes.multiBlock');_0x2b0a49['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2b0a49['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2b0a49['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4580b7?_0x2b0a49['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2b0a49['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2b0a49['addChildCheck'](_0x1182a3=>{for(const _0x117449 of _0x1182a3)if('footnoteDefinition'===_0x117449['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2032dc}=this,{conversion:_0x3169ea,editing:_0x18c6b2}=_0x2032dc,{t:t}=_0x2032dc['locale'];_0x3169ea['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1967df,{writer:_0x20407b,consumable:_0x18e113})=>{const _0x56802a=_0x1967df['getChild'](0x0);if(!_0x56802a||!_0x56802a['is']('element','a'))return null;const _0x43b5e0=_0x56802a['getAttribute']('href')||'';if(!_0x43b5e0['startsWith']('#'))return null;const _0xf0557b=_0x43b5e0['replace'](/^#/,'');if(!_0xf0557b)return null;_0x18e113['consume'](_0x56802a,{'name':!0x0,'attributes':['href']});for(const {item:_0x302d9f}of _0x18c6b2['view']['createRangeIn'](_0x56802a))_0x302d9f['is']('$textProxy')?_0x18e113['consume'](_0x302d9f['textNode'],{'name':!0x0}):_0x302d9f['is']('element')&&_0x18e113['consume'](_0x302d9f,{'name':!0x0});return _0x20407b['createElement']('footnoteRef',{'footnoteId':_0xf0557b});}}),_0x3169ea['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xb5b453,{writer:_0x19aedf})=>b(_0xb5b453,_0x19aedf)}),_0x3169ea['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40b5d2,{writer:_0x475dbc})=>{const _0x134e15=_0x40b5d2['getAttribute']('footnoteCounter');return _0x2e36b2(b(_0x40b5d2,_0x475dbc),_0x475dbc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x134e15)});}});}['_defineDefinitionsConverters'](){const {editor:_0x26be21}=this,{t:t}=_0x26be21['locale'],{conversion:_0x11f164}=_0x26be21;_0x11f164['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x11f164['for']('upcast')['add'](_0xf2b04d=>{_0xf2b04d['on']('element:ol',(_0x305fad,_0x2903c2,_0x36a2c1)=>{const _0x5a3556=_0x2903c2['viewItem'];if(!_0x5a3556['hasClass']('footnotes-list')||!_0x2903c2['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x36a2c1['consumable']['consume'](_0x5a3556,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1e538e,modelCursor:_0x263940}=_0x36a2c1['convertChildren'](_0x2903c2['viewItem'],_0x2903c2['modelCursor']);_0x2903c2['modelRange']=_0x1e538e,_0x2903c2['modelCursor']=_0x263940;}),_0xf2b04d['on']('element:hr',(_0x3e56f6,_0xfd953f,_0x4237be)=>{const _0x4b6a62=_0xfd953f['viewItem'];_0x4b6a62['hasClass']('footnotes-divider')&&_0xfd953f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4237be['consumable']['consume'](_0x4b6a62,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x11f164['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4611c2,{writer:_0x37932b})=>D(_0x37932b)}),_0x11f164['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x356aa8,{writer:_0x4399cf})=>{const _0x6d4d88=D(_0x4399cf,{'data-footnotes-list-label':t('Footnotes')}),_0x8fcd49=_0x2e36b2(_0x6d4d88,_0x4399cf,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4399cf['setCustomProperty']('footnotesDefinitions',!0x0,_0x8fcd49),_0x8fcd49;}});}['_defineDefinitionConverters'](){const {editor:_0x272a3b}=this,{conversion:_0x52c611,locale:_0x59acf6}=_0x272a3b,_0x265160=_0x272a3b['config']['get']('footnotes.multiBlock');_0x52c611['for']('upcast')['add'](_0xa86cbc=>{_0xa86cbc['on']('element:li',(_0x5d3522,_0xbf606b,_0x183671)=>{const _0x2de664=_0xbf606b['viewItem'];if(!_0x2de664['hasClass']('footnote-definition')||!_0x2de664['getAttribute']('id'))return;const _0x268d71=_0x2de664['parent'];if(!_0x268d71['is']('element','ol')||!_0x268d71['hasClass']('footnotes-list'))return;if(!_0x183671['consumable']['test'](_0x2de664,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x152bb8=_0x183671['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2de664['getAttribute']('id')});if(!_0x183671['safeInsert'](_0x152bb8,_0xbf606b['modelCursor']))return;_0x183671['consumable']['consume'](_0x2de664,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x657b14=Array['from'](_0x2de664['getChildren']())['find'](_0x3e3a24=>_0x3e3a24['is']('element')&&_0x3e3a24['hasClass']('footnote-content'));for(const _0x287efe of _0x2de664['getChildren']())_0x287efe['is']('element')&&(_0x183671['consumable']['consume'](_0x287efe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x183671['consumable']['consume'](_0x287efe,{'name':!0x0,'classes':'footnote-content'}));if(_0x657b14){if(_0x265160)_0x183671['convertChildren'](_0x657b14,_0x152bb8);else{const _0x5d6796=_0x183671['writer']['createElement']('footnoteInlineContent');_0x183671['writer']['insert'](_0x5d6796,_0x152bb8),_0x183671['convertChildren'](_0x657b14,_0x5d6796);}}_0x183671['updateConversionResult'](_0x152bb8,_0xbf606b);});}),_0x52c611['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x988a7f,{writer:_0x12d666})=>y(_0x988a7f,_0x12d666,_0x59acf6,{'dataPipeline':!0x0})}),_0x52c611['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x194432,{writer:_0x3c29a2})=>y(_0x194432,_0x3c29a2,_0x59acf6)});}['_defineBogusParagraphConverters'](){const {editor:_0x44d50c}=this,{conversion:_0x41d760}=_0x44d50c;_0x44d50c['config']['get']('footnotes.multiBlock')?(_0x41d760['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x41d760['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x44d50c['model']['document'],'change:data',()=>{!function(_0x57249b,_0x540b03){const _0x18331e=_0x57249b['document']['differ'],_0x40ede6=new Set();for(const _0x574bac of _0x18331e['getChanges']()){const _0x2dfd9f='attribute'==_0x574bac['type']?_0x574bac['range']['start']['parent']:_0x574bac['position']['parent'];_0x2dfd9f['is']('element','footnoteDefinition')&&_0x40ede6['add'](_0x2dfd9f);}for(const _0x397535 of _0x40ede6['values']()){const _0x44fec2=Array['from'](_0x397535['getChildren']())['filter'](_0x36c7cb=>v(_0x36c7cb,_0x540b03['mapper']));for(const _0x157c7a of _0x44fec2)_0x540b03['reconvertItem'](_0x157c7a);}}(_0x44d50c['model'],_0x44d50c['editing']);})):(_0x41d760['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x41d760['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x27f79e,{writer:_0x2c988a})=>{const _0x5a0458=_0x2c988a['createContainerElement']('span');return _0x2c988a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5a0458),_0x5a0458;}}));}['_defineKeyboardHandlers'](){const {editor:_0x24bcbd}=this,{editing:_0x39a8df,t:t}=_0x24bcbd,_0x465583=_0x24bcbd['model']['document']['selection'];_0x24bcbd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x24bcbd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x39a8df['view']['document'],'enter',(_0x225f69,_0x56bdda)=>{const _0x570f98=function(_0x4877b2){const _0x391ac8=_0x4877b2['getSelectedElement']();if(_0x391ac8?.['is']('element','footnoteRef'))return _0x391ac8;return null;}(_0x465583);if(_0x570f98){const _0xfcaac=_0x570f98['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xfcaac),_0x56bdda['preventDefault'](),_0x225f69['stop']();}},{'context':_0x168efc});}['_defineClickHandlers'](){const {editor:_0x73a3c7}=this,{editing:_0x60dffc}=_0x73a3c7;_0x73a3c7['editing']['view']['addObserver'](_0x473528),_0x73a3c7['editing']['view']['addObserver'](_0x4531dd);let _0x43245e=!0x1;this['listenTo'](_0x60dffc['view']['document'],'pointerdown',(_0x3ae055,_0x32d72f)=>{const {target:_0x251486}=_0x32d72f,_0x50bfeb=_0x60dffc['view']['document']['selection'];_0x43245e=!!(_0x251486?.['is']('element','a')&&_0x251486['parent']?.['is']('element','sup')&&_0x251486['parent']['hasClass']('footnote'))&&_0x50bfeb['getSelectedElement']()===_0x251486['parent'];},{'priority':'high'}),this['listenTo'](_0x60dffc['view']['document'],'click',(_0x417b36,_0x34628e)=>{const {target:_0x5e8dae}=_0x34628e;if(!_0x5e8dae?.['is']('element','a'))return;if(_0x5e8dae['parent']?.['is']('element','sup')&&_0x5e8dae['parent']['hasClass']('footnote')&&!_0x43245e)return void _0x34628e['preventDefault']();let _0x2d3e0f=_0x5e8dae['getAttribute']('href');if(!_0x2d3e0f?.['startsWith']('#'))return;_0x2d3e0f=_0x2d3e0f['slice'](0x1);let _0x2cc6d7=!0x1;(_0x2d3e0f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2d3e0f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2d3e0f))&&(_0x2cc6d7=!0x0),_0x2cc6d7&&(_0x34628e['preventDefault'](),_0x417b36['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1f7a53}={}){return(_0x3d418b,{writer:_0x218bee})=>{if(!g(_0x3d418b))return null;if(!_0x1f7a53)return _0x218bee['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5903fb=_0x218bee['createContainerElement']('p');return _0x218bee['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5903fb),_0x5903fb;};}function g(_0x1001f4){const {parent:_0x385245}=_0x1001f4;if(!_0x385245?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x385245['childCount'])return!0x1;for(const _0x217bb0 of _0x1001f4['getAttributeKeys']())if(!_0x217bb0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x217bb0)return!0x1;return!0x0;}function v(_0x3e0285,_0x4c300e){if(!_0x3e0285['is']('element','paragraph'))return!0x1;const _0x2c8236=_0x4c300e['toViewElement'](_0x3e0285);return!!_0x2c8236&&g(_0x3e0285)!==_0x2c8236['is']('element','span');}function Q(_0x338f62){return _0x168efc(_0x338f62)&&_0x338f62['is']('containerElement')&&!!_0x338f62['getCustomProperty']('footnotesDefinitions');}function D(_0x510da6,_0x2a0694={}){const _0xc1fb0=_0x510da6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x299e03=_0x510da6['createContainerElement']('ol',{'class':'footnotes-list'},_0x510da6['createSlot']());return _0x510da6['createContainerElement']('div',{'class':'footnotes',..._0x2a0694},[_0xc1fb0,_0x299e03]);}function b(_0x534409,_0x55ec92){const _0x4754b4=_0x534409['getAttribute']('footnoteId'),_0x1bdabc=_0x534409['getAttribute']('footnoteCounter'),_0x13d507=_0x55ec92['createUIElement']('a',{'href':'#'+_0x4754b4},function(_0x284491){const _0x3cc364=this['toDomElement'](_0x284491);return _0x3cc364['textContent']=_0x1bdabc,_0x3cc364;}),_0x3f0d15=_0x55ec92['createContainerElement']('sup',{'id':'ref-'+_0x4754b4,'class':'footnote'},[_0x13d507]);return _0x3f0d15['getFillerOffset']=()=>null,_0x3f0d15;}function y(_0x1b7c9f,_0x486014,_0x36202a,{dataPipeline:_0x53a916}={}){const {t:t}=_0x36202a,_0x1ba73b=_0x1b7c9f['getAttribute']('footnoteId'),_0x50ea08=_0x486014['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1ba73b},function(_0x29c3da){const _0x428010=this['toDomElement'](_0x29c3da);return _0x428010['innerText']='^',_0x428010;}),_0x3fa379=_0x53a916?_0x486014['createContainerElement']('div',{'class':'footnote-content'}):_0x10d921(_0x486014['createEditableElement']('div',{'class':'footnote-content'}),_0x486014,{'label':t('Footnote\x20content.')});return _0x486014['insert'](_0x486014['createPositionAt'](_0x3fa379,0x0),_0x486014['createSlot']()),_0x486014['createContainerElement']('li',{'class':'footnote-definition','id':_0x1ba73b},[_0x50ea08,_0x3fa379]);}class e extends _0x5cb942{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3c91ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0xec40fe}=this,{plugins:_0x52aece,model:_0x2eb669}=_0xec40fe,_0x38853c=_0x52aece['get'](_0x3c91ef),_0x58ca48=_0x52aece['get'](f);this['listenTo'](_0x38853c,'outputTransformation',(_0x1e0c02,_0x401d89)=>{const _0x58825a=l(_0x2eb669['createRangeIn'](_0x401d89['content']));if(!_0x58825a['length'])return;const _0x3a92b4=_0x58ca48['getFootnotes'](),_0x25ff7e=_0x58825a['reduce']((_0x350819,_0x4cc316)=>{const _0x396e64=_0x3a92b4['find'](_0xc3c49d=>_0xc3c49d['id']===_0x4cc316);if(_0x396e64){const _0x31c24c=_0xec40fe['data']['toView'](_0x396e64['definition'],{'isClipboardPipeline':!0x0}),_0x10945b=_0xec40fe['data']['htmlProcessor']['toData'](_0x31c24c);_0x350819[_0x396e64['id']]=_0x10945b;}return _0x350819;},Object['create'](null));_0x401d89['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x25ff7e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x87dced}=this,{model:_0x2fc6be,plugins:_0x42e6cb}=_0x87dced,{view:_0x5d33bb}=_0x87dced['editing'],_0x1f683c=_0x42e6cb['get'](_0x3c91ef),_0x2a6c7e=_0x42e6cb['get'](f),_0x5f2c41=_0x87dced['config']['get']('footnotes.multiBlock');let _0x3efd00=null;this['listenTo'](_0x5d33bb['document'],'clipboardInput',(_0x4b80f7,_0x4fa5bc)=>{const _0x17b0b0=_0x4fa5bc['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3efd00=_0x17b0b0?JSON['parse'](_0x17b0b0):null;}),this['listenTo'](_0x1f683c,'contentInsertion',(_0x26dd5b,_0xda8fb9)=>{const _0x54ef1c=_0xda8fb9['sourceEditorId']===this['editor']['id'];_0x54ef1c&&'drop'===_0xda8fb9['method']||_0x2fc6be['change'](_0x79b5d5=>{let _0x118513=_0x2a6c7e['getFootnotesDefinitionsObjectElement']();const _0x15e17a=!!_0x118513&&Array['from'](_0x2fc6be['document']['selection']['getSelectedBlocks']())['includes'](_0x118513);if(!_0x3efd00&&function(_0x222bf1){for(const {item:_0xf8fd0d}of _0x222bf1)if(_0xf8fd0d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2fc6be['createRangeIn'](_0xda8fb9['content']))&&(_0x3efd00=function(_0x576d31,_0x461849){const _0x4a0a78=c(_0x576d31,_0x461849);if(!_0x4a0a78)return null;const _0x5f4f91=Object['create'](null);for(const _0x40b2bd of _0x4a0a78['getChildren']())_0x40b2bd['is']('element','footnoteDefinition')&&_0x40b2bd['hasAttribute']('footnoteId')&&(_0x5f4f91[_0x40b2bd['getAttribute']('footnoteId')]=_0x576d31['cloneElement'](_0x40b2bd,!0x0));return Object['keys'](_0x5f4f91)['length']?_0x5f4f91:null;}(_0x79b5d5,_0xda8fb9['content'])),(_0x118513&&!_0x15e17a||!_0x118513&&!_0x3efd00)&&function(_0x3712bc,_0xd2bad2){const _0x326954=[];for(const {item:_0x3a4a6b}of _0x3712bc['createRangeIn'](_0xd2bad2))_0x3a4a6b['is']('element','footnotesDefinitions')&&_0x326954['push'](_0x3a4a6b);for(const _0x239b52 of _0x326954)_0x3712bc['remove'](_0x239b52);}(_0x79b5d5,_0xda8fb9['content']),!_0x3efd00)return;const {selection:_0x286e32}=_0x2fc6be['document'],_0x1cb607=_0x286e32['getFirstRange']()['root'];_0x118513&&!_0x15e17a||(_0x118513=c(_0x79b5d5,_0xda8fb9['content']),_0x118513||=_0x2a6c7e['_insertEmptyFootnotesDefinitionsContainer'](_0x79b5d5,_0x1cb607));const _0x395ca7=Array['from'](_0x286e32['getRanges']())['flatMap'](l),_0x32b783=function(_0x13cd4c,_0x540c4c,_0x39ee9f){const _0x28f593=Object['create'](null);for(const {item:_0x29bc35}of _0x13cd4c['createRangeIn'](_0x540c4c))if(_0x29bc35['is']('element','footnoteRef')){const _0x40d8cf=_0x29bc35['getAttribute']('footnoteId');if(!_0x39ee9f(_0x40d8cf))continue;_0x28f593[_0x40d8cf]||(_0x28f593[_0x40d8cf]=_0x40b819()),_0x13cd4c['setAttribute']('footnoteId',_0x28f593[_0x40d8cf],_0x29bc35);}return _0x28f593;}(_0x79b5d5,_0xda8fb9['content'],_0x4ad5b3=>{if(!_0x54ef1c)return!0x0;return!!_0x2a6c7e['getFootnote'](_0x4ad5b3)&&!_0x395ca7['includes'](_0x4ad5b3);});for(const [_0x38f7f7,_0x30d674]of Object['entries'](_0x3efd00)){const _0x196335=_0x32b783[_0x38f7f7]||_0x38f7f7;let _0x58c99e;if('string'!=typeof _0x30d674)_0x58c99e=_0x30d674,_0x196335!==_0x38f7f7&&_0x79b5d5['setAttribute']('footnoteId',_0x196335,_0x58c99e);else{_0x58c99e=_0x79b5d5['createElement']('footnoteDefinition',{'footnoteId':_0x196335});const _0x53bc2e=_0x87dced['data']['htmlProcessor']['toView'](_0x30d674);let _0x392ec6;if(_0x5f2c41)_0x392ec6=_0x87dced['data']['toModel'](_0x53bc2e,_0x58c99e);else{_0x392ec6=_0x79b5d5['createElement']('footnoteInlineContent');const _0x16074d=_0x87dced['data']['toModel'](_0x53bc2e,_0x392ec6);_0x79b5d5['insert'](_0x16074d,_0x392ec6);}_0x79b5d5['append'](_0x392ec6,_0x58c99e);}_0x79b5d5['insert'](_0x58c99e,_0x118513,'end');}_0x3efd00=null;});});}}function c(_0x324d6d,_0x370b02){for(const {item:_0x536dc8}of _0x324d6d['createRangeIn'](_0x370b02))if(_0x536dc8['is']('element','footnotesDefinitions'))return _0x536dc8;return null;}function l(_0x2aff6c){const _0x3d2186=new Set();for(const {item:_0x2da3e1}of _0x2aff6c)_0x2da3e1['is']('element','footnoteRef')&&_0x3d2186['add'](_0x2da3e1['getAttribute']('footnoteId'));return Array['from'](_0x3d2186);}class i extends _0x5cb942{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbcba3c}=this,{componentFactory:_0x2998ea}=_0xbcba3c['ui'];_0x2998ea['add']('insertFootnote',E(_0xbcba3c,_0x427d5a)),_0x2998ea['add']('menuBar:insertFootnote',E(_0xbcba3c,_0x1bf7a6)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26c4f1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xbc7e28;for(const _0x1c5f77 in _0x26c4f1){const _0x20114f=_0x1c5f77,_0x55c8d1=_0x26c4f1[_0x20114f];if('footnotesLicenseKeyValid'==_0x55c8d1||'footnotesLicenseKeyInvalid'==_0x55c8d1||'footnotesLicenseKeyExpired'==_0x55c8d1||'footnotesLicenseKeyDomainLimit'==_0x55c8d1||'footnotesLicenseKeyNotAllowed'==_0x55c8d1||'footnotesLicenseKeyEvaluationLimit'==_0x55c8d1||'footnotesLicenseKeyUsageLimit'==_0x55c8d1){delete _0x26c4f1[_0x20114f],_0xbc7e28=_0x55c8d1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xbc7e28&&_0x26c4f1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x369229,_0x318f15){const _0x310425=_0x369229['commands']['get']('insertFootnote');return _0x49a66c=>{const {t:t}=_0x49a66c,_0x1f08b0=new _0x318f15(_0x49a66c),_0x7408e=_0x1f08b0 instanceof _0x1bf7a6;return _0x1f08b0['bind']('isEnabled')['to'](_0x310425,'isEnabled'),_0x1f08b0['set']({'label':t(_0x7408e?'Footnote':'Insert\x20footnote'),'icon':_0x2db07c,'tooltip':!0x0}),_0x1f08b0['on']('execute',()=>{_0x310425['execute'](),_0x369229['editing']['view']['focus']();}),_0x1f08b0;};}class lt extends _0x5cb942{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x56da19{['refresh'](){const {editor:_0x586e7b}=this,_0x144279=_0x586e7b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x144279,this['value']=_0x144279?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x154997}){const {editor:_0x5da9d9}=this,_0x2b3d92=_0x5da9d9['plugins']['get'](f),_0x5186d4=_0x2b3d92['getFootnotesDefinitionsObjectElement']();_0x5186d4&&W['includes'](_0x154997)&&_0x5da9d9['model']['change'](_0x1d8549=>{_0x1d8549['setAttribute']('footnotesListStyle',_0x154997,_0x5186d4),_0x2b3d92['_updateFootnotesCounters'](_0x1d8549);});}}class C extends _0x56da19{['refresh'](){const {editor:_0x4cfd7b}=this,_0x52726c=_0x4cfd7b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x52726c,this['value']=_0x52726c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3ae612}){const {editor:_0xca40bd}=this,_0x39e73d=_0xca40bd['plugins']['get'](f),_0x250126=_0x39e73d['getFootnotesDefinitionsObjectElement']();_0x250126&&Number['isInteger'](_0x3ae612)&&_0xca40bd['model']['change'](_0x595b18=>{_0x595b18['setAttribute']('footnotesListStart',_0x3ae612,_0x250126),_0x39e73d['_updateFootnotesCounters'](_0x595b18);});}}class P extends _0x5cb942{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d03fd}=this;_0x5d03fd['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5d03fd['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5d03fd['commands']['add']('footnotesStyle',new S(_0x5d03fd)),_0x5d03fd['commands']['add']('footnotesStart',new C(_0x5d03fd)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x7f4dc6}=this,{schema:_0x50ca0b}=_0x7f4dc6['model'];_0x50ca0b['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x59591f}=this,{conversion:_0x28400f,model:_0x26cfdf}=_0x59591f,{schema:_0x42ccf5}=_0x26cfdf;_0x28400f['for']('upcast')['add'](_0x2aac61=>{_0x2aac61['on']('element:ol',(_0x3c4820,_0x570967,_0xc5e14c)=>{const _0x794584=_0x570967['viewItem'],_0x59c2ac=_0x570967['modelCursor']?.['parent'];_0x794584['hasClass']('footnotes-list')&&_0x59c2ac?.['is']('element','footnotesDefinitions')&&(function(_0x550d08,_0x2d3d1c,_0x53be2f,_0x1bd150){if(!_0x1bd150['checkAttribute'](_0x2d3d1c,'footnotesListStart'))return;let _0x1c0496=0x1;const _0xe8038=_0x53be2f['consumable']['consume'](_0x550d08,{'attributes':'start'});if(_0xe8038){const _0x4c6797=Number['parseInt'](_0x550d08['getAttribute']('start'),0xa);Number['isNaN'](_0x4c6797)||(_0x1c0496=_0x4c6797);}!_0xe8038&&_0x2d3d1c['hasAttribute']('footnotesListStart')||_0x53be2f['writer']['setAttribute']('footnotesListStart',_0x1c0496,_0x2d3d1c);}(_0x794584,_0x59c2ac,_0xc5e14c,_0x42ccf5),function(_0x4fbf77,_0x54dcd9,_0x1c5100,_0x341ed9){if(!_0x341ed9['checkAttribute'](_0x54dcd9,'footnotesListStyle'))return;let _0x1566db='decimal',_0x5b3991=!0x1;if(_0x1c5100['consumable']['consume'](_0x4fbf77,{'attributes':'type'})){const _0x92d6a2={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4fbf77['getAttribute']('type')];_0x92d6a2&&(_0x1566db=_0x92d6a2),_0x5b3991=!0x0;}_0x1c5100['consumable']['consume'](_0x4fbf77,{'styles':'list-style-type'})&&(_0x1566db=function(_0x445440){switch(_0x445440){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x445440;}}(_0x4fbf77['getStyle']('list-style-type')),_0x5b3991=!0x0),!_0x5b3991&&_0x54dcd9['hasAttribute']('footnotesListStyle')||_0x1c5100['writer']['setAttribute']('footnotesListStyle',_0x1566db,_0x54dcd9);}(_0x794584,_0x59c2ac,_0xc5e14c,_0x42ccf5));});}),_0x28400f['for']('downcast')['add'](_0xff09a6=>{_0xff09a6['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5021c0,_0x54da47,_0x5e1889)=>{if(!_0x5e1889['consumable']['consume'](_0x54da47['item'],_0x5021c0['name']))return;const _0x46a1cf=M(_0x54da47['item'],_0x5e1889['mapper']),{attributeNewValue:_0x3e3d88}=_0x54da47;null==_0x3e3d88||0x1===_0x3e3d88?_0x5e1889['writer']['removeAttribute']('start',_0x46a1cf):_0x5e1889['writer']['setAttribute']('start',String(_0x3e3d88),_0x46a1cf);}),_0xff09a6['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2df2b6,_0x12a6fc,_0x28c37d)=>{if(!_0x28c37d['consumable']['consume'](_0x12a6fc['item'],_0x2df2b6['name']))return;const _0x1b7e20=M(_0x12a6fc['item'],_0x28c37d['mapper']),{attributeNewValue:_0x44e3de}=_0x12a6fc;_0x44e3de&&'decimal'!==_0x44e3de?_0x28c37d['writer']['setStyle']('list-style-type',_0x44e3de,_0x1b7e20):_0x28c37d['writer']['removeStyle']('list-style-type',_0x1b7e20);});});}['_definePostfixer'](){const {editor:_0x76c976}=this,{model:_0x54e3c5}=_0x76c976,_0x5e9419=_0x76c976['plugins']['get'](f),_0x3eef91=this['_getDefaultListStyle'](),_0xa71c1b=this['_getDefaultStartIndex']();_0x54e3c5['document']['registerPostFixer'](_0x5c2b11=>{const _0x1ea330=_0x54e3c5['document']['differ']['getChanges']();let _0x1a392c=!0x1;for(const _0x456541 of _0x1ea330){if('insert'!==_0x456541['type']||'$text'===_0x456541['name'])continue;const _0x2c52d4=_0x54e3c5['createRangeOn'](_0x456541['position']['nodeAfter']);for(const _0x3d0260 of _0x2c52d4['getItems']())_0x3d0260['is']('element','footnotesDefinitions')&&(!_0x3d0260['hasAttribute']('footnotesListStart')&&_0x54e3c5['schema']['checkAttribute'](_0x3d0260,'footnotesListStart')&&(_0x5c2b11['setAttribute']('footnotesListStart',_0xa71c1b,_0x3d0260),_0x1a392c=!0x0),!_0x3d0260['hasAttribute']('footnotesListStyle')&&_0x54e3c5['schema']['checkAttribute'](_0x3d0260,'footnotesListStyle')&&(_0x5c2b11['setAttribute']('footnotesListStyle',_0x3eef91,_0x3d0260),_0x1a392c=!0x0));}return _0x1a392c&&_0x5e9419['_updateFootnotesCounters'](_0x5c2b11),_0x1a392c;});}['_defineFormatter'](){const {editor:_0x3a5afa}=this;_0x3a5afa['plugins']['get'](f)['setFootnoteFormatter'](_0x547b3a=>this['_formatFootnoteListValue'](_0x547b3a));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x49e435,value:_0x50f5fd,digits:_0x45b443}){const _0x3a2a18=_0x49e435['getAttribute']('footnotesListStyle'),_0x524741=_0x49e435['getAttribute']('footnotesListStart'),_0x26030b=Math['floor'](_0x50f5fd)+(_0x524741??0x1)-0x1;switch(_0x3a2a18){case'decimal-leading-zero':return function(_0x232782,_0x307c04){return String(_0x232782)['padStart'](_0x307c04,'0');}(_0x26030b,Math['max'](0x2,_0x45b443));case'lower-alpha':case'lower-latin':return N(_0x26030b,!0x1);case'upper-alpha':case'upper-latin':return N(_0x26030b,!0x0);case'lower-roman':return X(_0x26030b,!0x1);case'upper-roman':return X(_0x26030b,!0x0);default:return String(_0x26030b);}}}function M(_0x36b0df,_0x2a3b12){const _0xd7ad2e=_0x2a3b12['toViewElement'](_0x36b0df);return Array['from'](_0xd7ad2e['getChildren']())['find'](_0x26c3ef=>_0x26c3ef['is']('element','ol')&&_0x26c3ef['hasClass']('footnotes-list'));}function N(_0x2477ab,_0x363783){let _0x36e4fa='',_0x9ee65d=_0x2477ab;for(;_0x9ee65d>0x0;){const _0x2e285f=(_0x9ee65d-0x1)%0x1a;_0x36e4fa=String['fromCharCode'](0x61+_0x2e285f)+_0x36e4fa,_0x9ee65d=Math['floor']((_0x9ee65d-0x1)/0x1a);}return _0x363783?_0x36e4fa['toUpperCase']():_0x36e4fa;}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(_0x35afab,_0x39e363){let _0x5edc13='',_0x293387=_0x35afab;for(const {value:_0x4be0ac,numeral:_0x51cae8}of V)for(;_0x293387>=_0x4be0ac;)_0x5edc13+=_0x51cae8,_0x293387-=_0x4be0ac;return _0x39e363?_0x5edc13:_0x5edc13['toLowerCase']();}class J extends _0x29d430{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x36a25c();['focusCycler'];constructor(_0x332f8c,{styleButtonViews:_0x3e9c9f,styleGridAriaLabel:_0x13c88c}){super(_0x332f8c),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3e9c9f,_0x13c88c),[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 _0x5e099c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5e099c['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x49b05e=_0x23fac0=>_0x23fac0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49b05e),this['keystrokes']['set']('arrowleft',_0x49b05e),this['keystrokes']['set']('arrowup',_0x49b05e),this['keystrokes']['set']('arrowdown',_0x49b05e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x57dedf,_0x363451){const _0x27ee69=new _0x29d430(this['locale']);return _0x27ee69['children']=_0x27ee69['createCollection'](),_0x27ee69['children']['addMany'](_0x57dedf),_0x27ee69['setTemplate']({'tag':'div','attributes':{'aria-label':_0x363451,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x27ee69['children']}),_0x27ee69['children']['delegate']('execute')['to'](this),_0x27ee69['focus']=function(){for(const _0x2ac2b2 of this['children'])if(_0x2ac2b2 instanceof _0x427d5a&&_0x2ac2b2['isOn'])return void _0x2ac2b2['focus']();this['children']['first']['focus']();},_0x27ee69['focusTracker']=new rt(),_0x27ee69['keystrokes']=new nt(),_0x27ee69['render'](),_0x27ee69['keystrokes']['listenTo'](_0x27ee69['element']),this['children']['add'](_0x27ee69),_0x27ee69;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x214f3f=this['_createStartIndexPropertyView'](),_0x280a97=[_0x214f3f],_0x182bf6=new it(this['locale'],_0x280a97);return _0x182bf6['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x182bf6['buttonView']['bind']('isEnabled')['toMany'](_0x280a97,'isEnabled',(..._0x29e801)=>_0x29e801['some'](_0x12660c=>_0x12660c)),_0x182bf6['buttonView']['on']('change:isEnabled',(_0x4c1ae5,_0x29e23d,_0x485f0f)=>{_0x485f0f||(_0x182bf6['isCollapsed']=!0x0);}),this['children']['add'](_0x182bf6),[_0x214f3f,_0x182bf6];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3d3bb2=new et(this['locale'],ot);return _0x3d3bb2['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3d3bb2['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3d3bb2['fieldView']['on']('input',()=>{const _0x41f501=_0x3d3bb2['fieldView']['element'],_0x3ee6a1=_0x41f501['valueAsNumber'];Number['isNaN'](_0x3ee6a1)?_0x3d3bb2['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x41f501['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3ee6a1}):_0x3d3bb2['errorText']=t(_0x3ee6a1<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3d3bb2;}}class j extends _0x5cb942{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3bbbe2,_0x2f92c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d6502}=this,{componentFactory:_0x8475b8}=_0x5d6502['ui'];_0x5d6502['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x8475b8['add']('footnotesStyle',function(_0x3504ba){return _0x3f36e6=>{const {t:t}=_0x3f36e6,_0x310bed=_0x3504ba['commands']['get']('footnotesStyle'),_0x1e4e4a=_0xc88267(_0x3f36e6),{buttonView:_0x4132a7}=_0x1e4e4a;return _0x1e4e4a['class']='ck-footnotes-styles-dropdown',_0x1e4e4a['bind']('isEnabled')['to'](_0x310bed,'isEnabled'),_0x4132a7['set']({'label':t('Footnotes\x20style'),'icon':_0x2db07c,'tooltip':!0x0}),_0x1e4e4a['once']('change:isOpen',()=>{const _0x4aff4f=function({editor:_0x261d40,dropdownView:_0x5ac264}){const {t:t}=_0x261d40['locale'],_0x22170f=t('Footnotes\x20definitions\x20styles'),_0x42a106=function(_0x138291){const t=_0x138291['locale']['t'],_0x455ca2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x469ce5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4b0e83},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2f380f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x16f5a4},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x50453d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x51b6e7}];return _0x455ca2['map'](function(_0x137e8d){const _0x308fa3=_0x137e8d['locale'];return({label:_0x122682,icon:_0x59750c,tooltip:_0x44e246,style:_0x2a945b})=>{const _0xaf43a1=_0x137e8d['commands']['get']('footnotesStyle'),_0x37bbbc=new _0x427d5a(_0x308fa3);return _0x37bbbc['set']({'label':_0x122682,'icon':_0x59750c,'tooltip':_0x44e246}),_0x37bbbc['bind']('isOn')['to'](_0xaf43a1,'value',_0x4f69c5=>_0x4f69c5===_0x2a945b),_0x37bbbc['bind']('isEnabled')['to'](_0xaf43a1,'isEnabled'),_0x37bbbc['on']('execute',()=>{_0x137e8d['execute']('footnotesStyle',{'value':_0x2a945b}),_0x137e8d['editing']['view']['focus']();}),_0x37bbbc;};}(_0x138291));}(_0x261d40),_0x3ed814=new J(_0x261d40['locale'],{'styleGridAriaLabel':_0x22170f,'styleButtonViews':_0x42a106}),_0xdf50bc=_0x261d40['commands']['get']('footnotesStart');return _0x3ed814['startIndexFieldView']['bind']('isEnabled')['to'](_0xdf50bc),_0x3ed814['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xdf50bc),_0x3ed814['on']('footnotesListStart',(_0x46a5c4,_0x5b6056)=>{_0x261d40['execute']('footnotesStart',{'value':_0x5b6056['startIndex']});}),_0x3ed814['delegate']('execute')['to'](_0x5ac264),_0x3ed814;}({'editor':_0x3504ba,'dropdownView':_0x1e4e4a});_0x1e4e4a['panelView']['children']['add'](_0x4aff4f);}),_0x1e4e4a;};}(_0x5d6502));}['afterInit'](){const {editor:_0x2778ae}=this,{t:t}=_0x2778ae['locale'],_0x28aeb7=_0x2778ae['plugins']['get'](_0x2f92c2),{defaultPositions:_0x1ec098}=_0x2d51ed;_0x28aeb7['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2778ae['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xf81833=>{let _0x32048a=_0xf81833['getFirstPosition']()?.['parent'];return _0x32048a?.['is']('$text')&&(_0x32048a=_0x32048a['parent']),_0x32048a?.['is']('element')?_0x32048a['findAncestor'](Q):null;},'positions':[_0x1ec098['southArrowNorth'],_0x1ec098['southArrowNorthMiddleWest'],_0x1ec098['southArrowNorthMiddleEast'],_0x1ec098['southArrowNorthWest'],_0x1ec098['southArrowNorthEast'],_0x1ec098['northArrowSouth'],_0x1ec098['northArrowSouthMiddleWest'],_0x1ec098['northArrowSouthMiddleEast'],_0x1ec098['northArrowSouthWest'],_0x1ec098['northArrowSouthEast'],_0x1ec098['viewportStickyNorth']]});}}class ft extends _0x5cb942{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,h as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "47.6.0-alpha.3",
3
+ "version": "47.6.0-alpha.4",
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.6.0-alpha.3",
27
- "@ckeditor/ckeditor5-ui": "47.6.0-alpha.3",
28
- "@ckeditor/ckeditor5-engine": "47.6.0-alpha.3",
29
- "@ckeditor/ckeditor5-icons": "47.6.0-alpha.3",
30
- "@ckeditor/ckeditor5-widget": "47.6.0-alpha.3",
31
- "@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "47.6.0-alpha.3",
33
- "ckeditor5": "47.6.0-alpha.3"
26
+ "@ckeditor/ckeditor5-core": "47.6.0-alpha.4",
27
+ "@ckeditor/ckeditor5-ui": "47.6.0-alpha.4",
28
+ "@ckeditor/ckeditor5-engine": "47.6.0-alpha.4",
29
+ "@ckeditor/ckeditor5-icons": "47.6.0-alpha.4",
30
+ "@ckeditor/ckeditor5-widget": "47.6.0-alpha.4",
31
+ "@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "47.6.0-alpha.4",
33
+ "ckeditor5": "47.6.0-alpha.4"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x187755}from'ckeditor5/src/core.js';import{isWidget as _0xb9e9b8,toWidget as _0x4a67e5,toWidgetEditable as _0x5a6fb7}from'ckeditor5/src/widget.js';import{uid as _0x2cb284}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3acfb3,ClickObserver as _0x1f0de7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x182545}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x54c484}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x187755{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x182545];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x478389}=this;_0x478389['config']['define']('footnotes.multiBlock',!0x0),_0x478389['commands']['add']('insertFootnote',new _0x54c484(_0x478389)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xdda27f){const _0x1c66e8=_0x2d270b([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]),_0x58af14=0x47a28506,_0x2e7708=0x47a50606^_0x58af14,_0x1a8488=window[_0x2d270b([0x44,0x61,0x74,0x65])][_0x2d270b([0x6e,0x6f,0x77])](),_0x163efe=_0xdda27f[_0x2d270b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2492cf=new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x239728=>{_0x163efe[_0x2d270b([0x6f,0x6e,0x63,0x65])](_0x2d270b([0x72,0x65,0x61,0x64,0x79]),_0x239728);}),_0x33c46d={[_0x2d270b([0x6b,0x74,0x79])]:_0x2d270b([0x45,0x43]),[_0x2d270b([0x75,0x73,0x65])]:_0x2d270b([0x73,0x69,0x67]),[_0x2d270b([0x63,0x72,0x76])]:_0x2d270b([0x50,0x2d,0x32,0x35,0x36]),[_0x2d270b([0x78])]:_0x2d270b([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]),[_0x2d270b([0x79])]:_0x2d270b([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]),[_0x2d270b([0x61,0x6c,0x67])]:_0x2d270b([0x45,0x53,0x32,0x35,0x36])},_0x4799bd=_0x163efe[_0x2d270b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d270b([0x67,0x65,0x74])](_0x2d270b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51ba16(){let _0x5e5491,_0xd640dc=null,_0x5a24f0=null;try{if(_0x4799bd==_0x2d270b([0x47,0x50,0x4c]))return _0x2d270b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e5491=_0x568465(),!_0x5e5491)return _0x2d270b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e5491[_0x2d270b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a24f0=_0x432ae1(_0x5e5491[_0x2d270b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e5491[_0x2d270b([0x6a,0x74,0x69])])),await _0x3393b7()?_0x47fa88()?_0x254595()?_0x2d270b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2988ac()?(_0x5e5491[_0x2d270b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d270b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd640dc=_0x1c8fcf(_0x2d270b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a9515()):_0x2d270b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d270b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d270b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d270b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x254595(){const _0x126359=[_0x2d270b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d270b([0x74,0x72,0x69,0x61,0x6c])][_0x2d270b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e5491[_0x2d270b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a8488/0x3e8:0xe10*_0x2e7708;return _0x5e5491[_0x2d270b([0x65,0x78,0x70])]<_0x126359;}function _0x47fa88(){const _0x607519=_0x5e5491[_0x2d270b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x607519&&(!!_0x607519[_0x2d270b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d270b([0x2a]))||!!_0x607519[_0x2d270b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d270b([0x46,0x4f,0x4f])));}function _0x2988ac(){const _0x44d0e0=_0x5e5491[_0x2d270b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44d0e0||0x0==_0x44d0e0[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ac31a}=new URL(window[_0x2d270b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44d0e0[_0x2d270b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac31a))return!0x0;const _0x48cb9a=_0x4ac31a[_0x2d270b([0x73,0x70,0x6c,0x69,0x74])](_0x2d270b([0x2e]));return _0x44d0e0[_0x2d270b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d39e=>_0x43d39e[_0x2d270b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d270b([0x2a])))[_0x2d270b([0x6d,0x61,0x70])](_0x380fd3=>_0x380fd3[_0x2d270b([0x73,0x70,0x6c,0x69,0x74])](_0x2d270b([0x2e])))[_0x2d270b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ec53a=>_0x4ec53a[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48cb9a[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d270b([0x6d,0x61,0x70])](_0x362fea=>Array(_0x48cb9a[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x362fea[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d270b([0x66,0x69,0x6c,0x6c])](_0x362fea[0x0]===_0x2d270b([0x2a])?_0x2d270b([0x2a]):'')[_0x2d270b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x362fea))[_0x2d270b([0x73,0x6f,0x6d,0x65])](_0x4d340e=>_0x48cb9a[_0x2d270b([0x65,0x76,0x65,0x72,0x79])]((_0x2b007b,_0xb8dd2)=>_0x4d340e[_0xb8dd2]===_0x2b007b||_0x4d340e[_0xb8dd2]===_0x2d270b([0x2a])));}function _0x4a9515(){return _0xd640dc&&_0x5a24f0?new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f8d7b,_0x404f1c)=>{_0xd640dc[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x4f8d7b,_0x404f1c),_0x5a24f0[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x38dc81=>{_0x38dc81!=_0x2d270b([0x56,0x61,0x6c,0x69,0x64])&&_0x4f8d7b(_0x38dc81);},_0x404f1c);}):_0xd640dc||_0x5a24f0||_0x2d270b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x432ae1(_0x22010d,_0xd87b62){return new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34f935=>{if(_0x2564ea())return _0x34f935(_0x2d270b([0x56,0x61,0x6c,0x69,0x64]));_0x5ed94b(),_0x163efe[_0x2d270b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d270b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb1e4b8=!0x1;const _0x42eab7=_0x2cb284();function _0x4189fe(_0x3af56d){return!!_0x3af56d&&(typeof _0x3af56d===_0x2d270b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3af56d===_0x2d270b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3af56d[_0x2d270b([0x74,0x68,0x65,0x6e])]===_0x2d270b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3af56d[_0x2d270b([0x63,0x61,0x74,0x63,0x68])]===_0x2d270b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2981d3(_0x2f5c23){_0x2cbf42(_0x2f5c23)[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x292c5c=>{if(!_0x292c5c||_0x292c5c[_0x2d270b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d270b([0x6f,0x6b]))return _0x2d270b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf32b36(_0x53f2eb(_0x42eab7+_0xd87b62))!=_0x292c5c[_0x2d270b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d270b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d270b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x375a70=>(_0x2c1d1d(),_0x375a70),()=>{const _0x5b3488=_0x26ed10();return null==_0x5b3488?(_0x2c1d1d(),_0x2d270b([0x56,0x61,0x6c,0x69,0x64])):_0x2d270b(_0x1a8488-_0x5b3488>(0x63ae0106^_0x58af14)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x34f935)[_0x2d270b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34f935(_0x2d270b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x427063=0x47946b86^_0x58af14;function _0x2c1d1d(){const _0x2fde6f=_0x2d270b([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32b36(_0x53f2eb(_0x22010d)),_0x2b2abc=_0x18720e(_0xf32b36(window[_0x2d270b([0x4d,0x61,0x74,0x68])][_0x2d270b([0x63,0x65,0x69,0x6c])](_0x1a8488/_0x427063)));window[_0x2d270b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d270b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fde6f,_0x2b2abc);}function _0x26ed10(){const _0x4ad53d=_0x2d270b([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32b36(_0x53f2eb(_0x22010d)),_0x35ddbd=window[_0x2d270b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d270b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad53d);return _0x35ddbd?window[_0x2d270b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18720e(_0x35ddbd),0x10)*_0x427063:null;}function _0x2cbf42(_0x11eb2f){return new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1088b2,_0x855fb5)=>{_0x11eb2f[_0x2d270b([0x74,0x68,0x65,0x6e])](_0x1088b2,_0x855fb5),window[_0x2d270b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x855fb5,0x47a351c6^_0x58af14);});}}_0x163efe[_0x2d270b([0x6f,0x6e])](_0x2d270b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b3575,_0x557f18)=>{if(_0x557f18[0x0]!=_0x22010d)return _0x34f935(_0x2d270b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x557f18[0x1]={..._0x557f18[0x1],[_0x2d270b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42eab7};},{[_0x2d270b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d270b([0x68,0x69,0x67,0x68])}),_0x163efe[_0x2d270b([0x6f,0x6e])](_0x2d270b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a2699=>{_0x4189fe(_0x5a2699[_0x2d270b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb1e4b8=!0x0,_0x2981d3(_0x5a2699[_0x2d270b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d270b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d270b([0x6c,0x6f,0x77])}),_0x2492cf[_0x2d270b([0x74,0x68,0x65,0x6e])](()=>{_0xb1e4b8||_0x34f935(_0x2d270b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2564ea(){return _0x163efe[_0x2d270b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d270b([0x76,0x69,0x65,0x77])][_0x2d270b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d270b([0x61,0x75,0x74,0x6f]);}function _0x5ed94b(){_0x163efe[_0x2d270b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d270b([0x76,0x69,0x65,0x77])][_0x2d270b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d270b([0x61,0x75,0x74,0x6f]);}}function _0x1c8fcf(_0x5bb64b){const _0x11a236=[new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb499b3=>setTimeout(_0xb499b3,0x47abbbca^_0x58af14)),_0x2492cf[_0x2d270b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17750a=>{let _0x364f3a=0x0;_0x163efe[_0x2d270b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d270b([0x6f,0x6e])](_0x2d270b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27df76,_0x10009d)=>{_0x10009d[0x0][_0x2d270b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x364f3a++,_0x364f3a==(0x47a280ee^_0x58af14)&&(_0x17750a(),_0x27df76[_0x2d270b([0x6f,0x66,0x66])]());});}))];return window[_0x2d270b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d270b([0x72,0x61,0x63,0x65])](_0x11a236)[_0x2d270b([0x74,0x68,0x65,0x6e])](()=>_0x5bb64b);}async function _0x2c6e73(){await _0x2492cf,_0x163efe[_0x2d270b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d270b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03b3,_0x163efe[_0x2d270b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d270b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d03b3,_0x163efe[_0x2d270b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d270b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e86d2(_0x56b53e){const _0x55ac9a=_0x2913c5();_0x163efe[_0x55ac9a]=_0x2d270b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56b53e,_0x56b53e!=_0x2d270b([0x56,0x61,0x6c,0x69,0x64])&&_0x2c6e73();}function _0x2913c5(){const _0x5ebc7e=window[_0x2d270b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d270b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d270b([0x6e,0x6f,0x77])]())[_0x2d270b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d270b([0x2e]),'');let _0x5db07f=_0x2d270b([0x75]);for(let _0x4cfb32=0x0;_0x4cfb32<_0x5ebc7e[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cfb32+=0x2){let _0x2b7209=window[_0x2d270b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ebc7e[_0x2d270b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cfb32,_0x4cfb32+0x2));_0x2b7209>=_0x1c66e8[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b7209-=_0x1c66e8[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5db07f+=_0x1c66e8[_0x2b7209];}return _0x5db07f;}function _0x568465(){const _0x30093c=_0x4799bd[_0x2d270b([0x73,0x70,0x6c,0x69,0x74])](_0x2d270b([0x2e]));if(0x3!=_0x30093c[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x287014(_0x30093c[0x1]);function _0x287014(_0x3f4aac){const _0x4a6375=_0x264012(_0x3f4aac);return _0x4a6375&&_0x550181()?_0x4a6375:null;function _0x550181(){const _0xad4cf=_0x4a6375[_0x2d270b([0x6a,0x74,0x69])],_0x275d0d=window[_0x2d270b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad4cf[_0x2d270b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xad4cf[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54480a={..._0x4a6375,[_0x2d270b([0x6a,0x74,0x69])]:_0xad4cf[_0x2d270b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xad4cf[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54480a[_0x2d270b([0x76,0x63])],_0x53f2eb(_0x54480a)==_0x275d0d;}}}async function _0x3393b7(){let _0x878f59=!0x0;try{const _0x78ce0a=_0x4799bd[_0x2d270b([0x73,0x70,0x6c,0x69,0x74])](_0x2d270b([0x2e])),[_0x27d4a3,_0x272d41,_0x268362]=_0x78ce0a;return _0x379522(_0x27d4a3),await _0x26fb12(_0x27d4a3,_0x272d41,_0x268362),_0x878f59;}catch{return!0x1;}function _0x379522(_0x52809d){const _0x3a97d0=_0x264012(_0x52809d);_0x3a97d0&&_0x3a97d0[_0x2d270b([0x61,0x6c,0x67])]==_0x2d270b([0x45,0x53,0x32,0x35,0x36])||(_0x878f59=!0x1);}async function _0x26fb12(_0x53feaf,_0x3753dd,_0x4018a1){const _0x313b94=window[_0x2d270b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d270b([0x66,0x72,0x6f,0x6d])](_0x59eda9(_0x4018a1),_0x250a1e=>_0x250a1e[_0x2d270b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17d3dc=new window[(_0x2d270b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d270b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53feaf+_0x2d270b([0x2e])+_0x3753dd),_0x180895=window[_0x2d270b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d270b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x180895)return;const _0x47e5ed=await _0x180895[_0x2d270b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d270b([0x6a,0x77,0x6b]),_0x33c46d,{[_0x2d270b([0x6e,0x61,0x6d,0x65])]:_0x2d270b([0x45,0x43,0x44,0x53,0x41]),[_0x2d270b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d270b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d270b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x180895[_0x2d270b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d270b([0x6e,0x61,0x6d,0x65])]:_0x2d270b([0x45,0x43,0x44,0x53,0x41]),[_0x2d270b([0x68,0x61,0x73,0x68])]:{[_0x2d270b([0x6e,0x61,0x6d,0x65])]:_0x2d270b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47e5ed,_0x313b94,_0x17d3dc)||(_0x878f59=!0x1);}}function _0x264012(_0x125a6b){return _0x125a6b[_0x2d270b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d270b([0x65,0x79]))?JSON[_0x2d270b([0x70,0x61,0x72,0x73,0x65])](_0x59eda9(_0x125a6b)):null;}function _0x59eda9(_0x174083){return window[_0x2d270b([0x61,0x74,0x6f,0x62])](_0x174083[_0x2d270b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d270b([0x2b]))[_0x2d270b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d270b([0x2f])));}function _0x53f2eb(_0x2cbc66){let _0x1ecd24=0x1505;function _0x111099(_0x1a91b2){for(let _0x2571be=0x0;_0x2571be<_0x1a91b2[_0x2d270b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2571be++){const _0x3346ac=_0x1a91b2[_0x2d270b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2571be);_0x1ecd24=(_0x1ecd24<<0x5)+_0x1ecd24+_0x3346ac,_0x1ecd24&=_0x1ecd24;}}function _0x2ec773(_0x4f54cb){Array[_0x2d270b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f54cb)?_0x4f54cb[_0x2d270b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ec773):_0x4f54cb&&typeof _0x4f54cb==_0x2d270b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d270b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f54cb)[_0x2d270b([0x73,0x6f,0x72,0x74])]()[_0x2d270b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38254f,_0x2ce455])=>{_0x111099(_0x38254f),_0x2ec773(_0x2ce455);}):_0x111099(window[_0x2d270b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f54cb));}return _0x2ec773(_0x2cbc66),_0x1ecd24>>>0x0;}function _0xf32b36(_0x599e3b){return _0x599e3b[_0x2d270b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d270b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d270b([0x30]));}function _0x18720e(_0x337958){return _0x337958[_0x2d270b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d270b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d270b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d03b3(){}function _0x2d270b(_0x1567a5){return _0x1567a5['map'](_0x59c523=>String['fromCharCode'](_0x59c523))['join']('');}_0x4e86d2(await _0x51ba16());}(this);}['_moveSelectionToFootnoteDefinition'](_0xc486ca){const {plugins:_0x297557,editing:_0x52bbed,model:_0x12ada6}=this['editor'],_0x1d560f=_0x297557['get'](_0x182545)['getFootnote'](_0xc486ca);return!!_0x1d560f&&(_0x12ada6['change'](_0x35cf52=>{_0x35cf52['setSelection'](_0x35cf52['createPositionAt'](_0x1d560f['definition'],'end'));}),_0x52bbed['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2ece58){const {plugins:_0x2fc947,editing:_0xe4e460,model:_0xf8aa9b}=this['editor'],_0xa3230=_0x2fc947['get'](_0x182545)['getFootnote'](_0x2ece58);return!!_0xa3230&&(_0xf8aa9b['change'](_0x57c910=>{_0x57c910['setSelection'](_0xa3230['reference'],'on');}),_0xe4e460['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x14be2b}=this['editor']['model'],_0x3fb8b1=this['editor']['config']['get']('footnotes.multiBlock');_0x14be2b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x14be2b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x14be2b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3fb8b1?_0x14be2b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x14be2b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x14be2b['addChildCheck'](_0x1b82d1=>{for(const _0x2870b9 of _0x1b82d1)if('footnoteDefinition'===_0x2870b9['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5f2fa5}=this,{conversion:_0x53a800,editing:_0x2f6f8f}=_0x5f2fa5,{t:t}=_0x5f2fa5['locale'];_0x53a800['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1cd31d,{writer:_0x3bb968,consumable:_0x4a81e3})=>{const _0x81ec9d=_0x1cd31d['getChild'](0x0);if(!_0x81ec9d||!_0x81ec9d['is']('element','a'))return null;const _0x5ae7a6=_0x81ec9d['getAttribute']('href')||'';if(!_0x5ae7a6['startsWith']('#'))return null;const _0x4de686=_0x5ae7a6['replace'](/^#/,'');if(!_0x4de686)return null;_0x4a81e3['consume'](_0x81ec9d,{'name':!0x0,'attributes':['href']});for(const {item:_0x1b361}of _0x2f6f8f['view']['createRangeIn'](_0x81ec9d))_0x1b361['is']('$textProxy')?_0x4a81e3['consume'](_0x1b361['textNode'],{'name':!0x0}):_0x1b361['is']('element')&&_0x4a81e3['consume'](_0x1b361,{'name':!0x0});return _0x3bb968['createElement']('footnoteRef',{'footnoteId':_0x4de686});}}),_0x53a800['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x567fbf,{writer:_0x413a3d})=>b(_0x567fbf,_0x413a3d)}),_0x53a800['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x256c3c,{writer:_0x443a3c})=>{const _0x588c1f=_0x256c3c['getAttribute']('footnoteCounter');return _0x4a67e5(b(_0x256c3c,_0x443a3c),_0x443a3c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x588c1f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4680c5}=this,{t:t}=_0x4680c5['locale'],{conversion:_0x4bb774}=_0x4680c5;_0x4bb774['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4bb774['for']('upcast')['add'](_0x27b4ab=>{_0x27b4ab['on']('element:ol',(_0x169850,_0x1f2567,_0x506366)=>{const _0x1b3aef=_0x1f2567['viewItem'];if(!_0x1b3aef['hasClass']('footnotes-list')||!_0x1f2567['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x506366['consumable']['consume'](_0x1b3aef,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xbd2f4c,modelCursor:_0x3dfd29}=_0x506366['convertChildren'](_0x1f2567['viewItem'],_0x1f2567['modelCursor']);_0x1f2567['modelRange']=_0xbd2f4c,_0x1f2567['modelCursor']=_0x3dfd29;}),_0x27b4ab['on']('element:hr',(_0x517d86,_0x5dced6,_0x16ced7)=>{const _0x22e0d8=_0x5dced6['viewItem'];_0x22e0d8['hasClass']('footnotes-divider')&&_0x5dced6['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x16ced7['consumable']['consume'](_0x22e0d8,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4bb774['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x23a14f,{writer:_0x2b70cc})=>D(_0x2b70cc)}),_0x4bb774['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c2b80,{writer:_0x345f11})=>{const _0x47c045=D(_0x345f11,{'data-footnotes-list-label':t('Footnotes')}),_0x40fd7b=_0x4a67e5(_0x47c045,_0x345f11,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x345f11['setCustomProperty']('footnotesDefinitions',!0x0,_0x40fd7b),_0x40fd7b;}});}['_defineDefinitionConverters'](){const {editor:_0x3d2f44}=this,{conversion:_0x52892a,locale:_0x1e2082}=_0x3d2f44,_0x4f8c04=_0x3d2f44['config']['get']('footnotes.multiBlock');_0x52892a['for']('upcast')['add'](_0x42e0fd=>{_0x42e0fd['on']('element:li',(_0x4abbb1,_0x156f46,_0x5cddd1)=>{const _0x7173db=_0x156f46['viewItem'];if(!_0x7173db['hasClass']('footnote-definition')||!_0x7173db['getAttribute']('id'))return;const _0x53925f=_0x7173db['parent'];if(!_0x53925f['is']('element','ol')||!_0x53925f['hasClass']('footnotes-list'))return;if(!_0x5cddd1['consumable']['test'](_0x7173db,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x36fc75=_0x5cddd1['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x7173db['getAttribute']('id')});if(!_0x5cddd1['safeInsert'](_0x36fc75,_0x156f46['modelCursor']))return;_0x5cddd1['consumable']['consume'](_0x7173db,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x530ad8=Array['from'](_0x7173db['getChildren']())['find'](_0x54a894=>_0x54a894['is']('element')&&_0x54a894['hasClass']('footnote-content'));for(const _0x503fee of _0x7173db['getChildren']())_0x503fee['is']('element')&&(_0x5cddd1['consumable']['consume'](_0x503fee,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5cddd1['consumable']['consume'](_0x503fee,{'name':!0x0,'classes':'footnote-content'}));if(_0x530ad8){if(_0x4f8c04)_0x5cddd1['convertChildren'](_0x530ad8,_0x36fc75);else{const _0x4060ba=_0x5cddd1['writer']['createElement']('footnoteInlineContent');_0x5cddd1['writer']['insert'](_0x4060ba,_0x36fc75),_0x5cddd1['convertChildren'](_0x530ad8,_0x4060ba);}}_0x5cddd1['updateConversionResult'](_0x36fc75,_0x156f46);});}),_0x52892a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x523011,{writer:_0x1c140b})=>y(_0x523011,_0x1c140b,_0x1e2082,{'dataPipeline':!0x0})}),_0x52892a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x577efe,{writer:_0x1e8e9d})=>y(_0x577efe,_0x1e8e9d,_0x1e2082)});}['_defineBogusParagraphConverters'](){const {editor:_0x52dcc7}=this,{conversion:_0x18f866}=_0x52dcc7;_0x52dcc7['config']['get']('footnotes.multiBlock')?(_0x18f866['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x18f866['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x52dcc7['model']['document'],'change:data',()=>{!function(_0x17e77e,_0x22e177){const _0x9289cb=_0x17e77e['document']['differ'],_0x2d1c51=new Set();for(const _0x2f5c0c of _0x9289cb['getChanges']()){const _0x545a06='attribute'==_0x2f5c0c['type']?_0x2f5c0c['range']['start']['parent']:_0x2f5c0c['position']['parent'];_0x545a06['is']('element','footnoteDefinition')&&_0x2d1c51['add'](_0x545a06);}for(const _0x2af2cd of _0x2d1c51['values']()){const _0x20ea47=Array['from'](_0x2af2cd['getChildren']())['filter'](_0x52e7f=>v(_0x52e7f,_0x22e177['mapper']));for(const _0x2f11ad of _0x20ea47)_0x22e177['reconvertItem'](_0x2f11ad);}}(_0x52dcc7['model'],_0x52dcc7['editing']);})):(_0x18f866['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x18f866['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x52909b,{writer:_0x4bfd97})=>{const _0x350f91=_0x4bfd97['createContainerElement']('span');return _0x4bfd97['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x350f91),_0x350f91;}}));}['_defineKeyboardHandlers'](){const {editor:_0x572e42}=this,{editing:_0x229067,t:t}=_0x572e42,_0x5bcac4=_0x572e42['model']['document']['selection'];_0x572e42['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x572e42['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x229067['view']['document'],'enter',(_0x3b7344,_0x380280)=>{const _0x53140f=function(_0x44a683){const _0x5efb60=_0x44a683['getSelectedElement']();if(_0x5efb60?.['is']('element','footnoteRef'))return _0x5efb60;return null;}(_0x5bcac4);if(_0x53140f){const _0x3dc774=_0x53140f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3dc774),_0x380280['preventDefault'](),_0x3b7344['stop']();}},{'context':_0xb9e9b8});}['_defineClickHandlers'](){const {editor:_0xb5568c}=this,{editing:_0x3352b2}=_0xb5568c;_0xb5568c['editing']['view']['addObserver'](_0x3acfb3),_0xb5568c['editing']['view']['addObserver'](_0x1f0de7);let _0x301113=!0x1;this['listenTo'](_0x3352b2['view']['document'],'pointerdown',(_0x49a985,_0xa25320)=>{const {target:_0x7cbd69}=_0xa25320,_0x25ffa7=_0x3352b2['view']['document']['selection'];_0x301113=!!(_0x7cbd69?.['is']('element','a')&&_0x7cbd69['parent']?.['is']('element','sup')&&_0x7cbd69['parent']['hasClass']('footnote'))&&_0x25ffa7['getSelectedElement']()===_0x7cbd69['parent'];},{'priority':'high'}),this['listenTo'](_0x3352b2['view']['document'],'click',(_0x348560,_0x102484)=>{const {target:_0x15f372}=_0x102484;if(!_0x15f372?.['is']('element','a'))return;if(_0x15f372['parent']?.['is']('element','sup')&&_0x15f372['parent']['hasClass']('footnote')&&!_0x301113)return void _0x102484['preventDefault']();let _0x196612=_0x15f372['getAttribute']('href');if(!_0x196612?.['startsWith']('#'))return;_0x196612=_0x196612['slice'](0x1);let _0x38ab62=!0x1;(_0x196612['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x196612['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x196612))&&(_0x38ab62=!0x0),_0x38ab62&&(_0x102484['preventDefault'](),_0x348560['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x4144ef}={}){return(_0x3e3be8,{writer:_0x1d775c})=>{if(!g(_0x3e3be8))return null;if(!_0x4144ef)return _0x1d775c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3d1060=_0x1d775c['createContainerElement']('p');return _0x1d775c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3d1060),_0x3d1060;};}function g(_0x2a5665){const {parent:_0x301762}=_0x2a5665;if(!_0x301762?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x301762['childCount'])return!0x1;for(const _0xb5cf21 of _0x2a5665['getAttributeKeys']())if(!_0xb5cf21['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xb5cf21)return!0x1;return!0x0;}function v(_0xde3f18,_0x5b647d){if(!_0xde3f18['is']('element','paragraph'))return!0x1;const _0xf844a=_0x5b647d['toViewElement'](_0xde3f18);return!!_0xf844a&&g(_0xde3f18)!==_0xf844a['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x228b30){return _0xb9e9b8(_0x228b30)&&_0x228b30['is']('containerElement')&&!!_0x228b30['getCustomProperty']('footnotesDefinitions');}function D(_0x511543,_0x2de019={}){const _0x32efc7=_0x511543['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x322c7e=_0x511543['createContainerElement']('ol',{'class':'footnotes-list'},_0x511543['createSlot']());return _0x511543['createContainerElement']('div',{'class':'footnotes',..._0x2de019},[_0x32efc7,_0x322c7e]);}function b(_0x52bea8,_0x1e693d){const _0x5cb6cf=_0x52bea8['getAttribute']('footnoteId'),_0xec4dab=_0x52bea8['getAttribute']('footnoteCounter'),_0x296073=_0x1e693d['createUIElement']('a',{'href':'#'+_0x5cb6cf},function(_0x56627b){const _0x448b1f=this['toDomElement'](_0x56627b);return _0x448b1f['textContent']=_0xec4dab,_0x448b1f;}),_0x370117=_0x1e693d['createContainerElement']('sup',{'id':'ref-'+_0x5cb6cf,'class':'footnote'},[_0x296073]);return _0x370117['getFillerOffset']=()=>null,_0x370117;}function y(_0x3b3682,_0x49b5d9,_0x169f88,{dataPipeline:_0x2943ac}={}){const {t:t}=_0x169f88,_0x492df1=_0x3b3682['getAttribute']('footnoteId'),_0x5c532e=_0x49b5d9['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x492df1},function(_0x56e77f){const _0xba8a1=this['toDomElement'](_0x56e77f);return _0xba8a1['innerText']='^',_0xba8a1;}),_0x4a5fe7=_0x2943ac?_0x49b5d9['createContainerElement']('div',{'class':'footnote-content'}):_0x5a6fb7(_0x49b5d9['createEditableElement']('div',{'class':'footnote-content'}),_0x49b5d9,{'label':t('Footnote\x20content.')});return _0x49b5d9['insert'](_0x49b5d9['createPositionAt'](_0x4a5fe7,0x0),_0x49b5d9['createSlot']()),_0x49b5d9['createContainerElement']('li',{'class':'footnote-definition','id':_0x492df1},[_0x5c532e,_0x4a5fe7]);}
23
+ import{Plugin as _0x211e07}from'ckeditor5/src/core.js';import{isWidget as _0x3426ef,toWidget as _0x5879f4,toWidgetEditable as _0x4039dc}from'ckeditor5/src/widget.js';import{uid as _0x1a80b5}from'ckeditor5/src/utils.js';import{PointerObserver as _0x7061,ClickObserver as _0x275599}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x43ee3f}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x495ddc}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x211e07{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x43ee3f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46fe51}=this;_0x46fe51['config']['define']('footnotes.multiBlock',!0x0),_0x46fe51['commands']['add']('insertFootnote',new _0x495ddc(_0x46fe51)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x44ab5d){const _0x2bab4d=_0x501d5d([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]),_0x11a165=0x47a28506,_0x4bf9b3=0x47a5061e^_0x11a165,_0x3dd4ca=window[_0x501d5d([0x44,0x61,0x74,0x65])][_0x501d5d([0x6e,0x6f,0x77])](),_0x3c5d14=_0x44ab5d[_0x501d5d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x968751=new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c30a=>{_0x3c5d14[_0x501d5d([0x6f,0x6e,0x63,0x65])](_0x501d5d([0x72,0x65,0x61,0x64,0x79]),_0x47c30a);}),_0x10070c={[_0x501d5d([0x6b,0x74,0x79])]:_0x501d5d([0x45,0x43]),[_0x501d5d([0x75,0x73,0x65])]:_0x501d5d([0x73,0x69,0x67]),[_0x501d5d([0x63,0x72,0x76])]:_0x501d5d([0x50,0x2d,0x32,0x35,0x36]),[_0x501d5d([0x78])]:_0x501d5d([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]),[_0x501d5d([0x79])]:_0x501d5d([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]),[_0x501d5d([0x61,0x6c,0x67])]:_0x501d5d([0x45,0x53,0x32,0x35,0x36])},_0x5ecbdb=_0x3c5d14[_0x501d5d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x501d5d([0x67,0x65,0x74])](_0x501d5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26c1cb(){let _0x3a430f,_0x4c4211=null,_0x28ddcd=null;try{if(_0x5ecbdb==_0x501d5d([0x47,0x50,0x4c]))return _0x501d5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a430f=_0x4851f3(),!_0x3a430f)return _0x501d5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a430f[_0x501d5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28ddcd=_0x17b0c3(_0x3a430f[_0x501d5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a430f[_0x501d5d([0x6a,0x74,0x69])])),await _0x1d3d20()?_0x22b375()?_0x89298()?_0x501d5d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ad85d()?(_0x3a430f[_0x501d5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x501d5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c4211=_0x2e5854(_0x501d5d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x563d61()):_0x501d5d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x501d5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x501d5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x501d5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x89298(){const _0x11fb55=[_0x501d5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x501d5d([0x74,0x72,0x69,0x61,0x6c])][_0x501d5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a430f[_0x501d5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dd4ca/0x3e8:0xe10*_0x4bf9b3;return _0x3a430f[_0x501d5d([0x65,0x78,0x70])]<_0x11fb55;}function _0x22b375(){const _0x1b9d3b=_0x3a430f[_0x501d5d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b9d3b&&(!!_0x1b9d3b[_0x501d5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501d5d([0x2a]))||!!_0x1b9d3b[_0x501d5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501d5d([0x46,0x4f,0x4f])));}function _0x2ad85d(){const _0x24dbc0=_0x3a430f[_0x501d5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24dbc0||0x0==_0x24dbc0[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe7a28f}=new URL(window[_0x501d5d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24dbc0[_0x501d5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7a28f))return!0x0;const _0x3d6448=_0xe7a28f[_0x501d5d([0x73,0x70,0x6c,0x69,0x74])](_0x501d5d([0x2e]));return _0x24dbc0[_0x501d5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b4040=>_0x4b4040[_0x501d5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501d5d([0x2a])))[_0x501d5d([0x6d,0x61,0x70])](_0xf35aa7=>_0xf35aa7[_0x501d5d([0x73,0x70,0x6c,0x69,0x74])](_0x501d5d([0x2e])))[_0x501d5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x543308=>_0x543308[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d6448[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x501d5d([0x6d,0x61,0x70])](_0x228b6c=>Array(_0x3d6448[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x228b6c[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x501d5d([0x66,0x69,0x6c,0x6c])](_0x228b6c[0x0]===_0x501d5d([0x2a])?_0x501d5d([0x2a]):'')[_0x501d5d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x228b6c))[_0x501d5d([0x73,0x6f,0x6d,0x65])](_0x104f90=>_0x3d6448[_0x501d5d([0x65,0x76,0x65,0x72,0x79])]((_0x117ce1,_0x18d752)=>_0x104f90[_0x18d752]===_0x117ce1||_0x104f90[_0x18d752]===_0x501d5d([0x2a])));}function _0x563d61(){return _0x4c4211&&_0x28ddcd?new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b0d82,_0x35eda7)=>{_0x4c4211[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x4b0d82,_0x35eda7),_0x28ddcd[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x77b714=>{_0x77b714!=_0x501d5d([0x56,0x61,0x6c,0x69,0x64])&&_0x4b0d82(_0x77b714);},_0x35eda7);}):_0x4c4211||_0x28ddcd||_0x501d5d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17b0c3(_0x3ef777,_0x501191){return new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a2642=>{if(_0x2b2e2a())return _0x9a2642(_0x501d5d([0x56,0x61,0x6c,0x69,0x64]));_0x16c38d(),_0x3c5d14[_0x501d5d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x501d5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44b5ef=!0x1;const _0x14d155=_0x1a80b5();function _0x460617(_0xf12303){return!!_0xf12303&&(typeof _0xf12303===_0x501d5d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf12303===_0x501d5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf12303[_0x501d5d([0x74,0x68,0x65,0x6e])]===_0x501d5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf12303[_0x501d5d([0x63,0x61,0x74,0x63,0x68])]===_0x501d5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdaf2fe(_0x5a43d4){_0x53ac4e(_0x5a43d4)[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x247f56=>{if(!_0x247f56||_0x247f56[_0x501d5d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x501d5d([0x6f,0x6b]))return _0x501d5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x253356(_0x209e26(_0x14d155+_0x501191))!=_0x247f56[_0x501d5d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x501d5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x501d5d([0x56,0x61,0x6c,0x69,0x64]);})[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x47c429=>(_0x45e4cd(),_0x47c429),()=>{const _0x3646e4=_0x1ded76();return null==_0x3646e4?(_0x45e4cd(),_0x501d5d([0x56,0x61,0x6c,0x69,0x64])):_0x501d5d(_0x3dd4ca-_0x3646e4>(0x63ae0106^_0x11a165)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x9a2642)[_0x501d5d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9a2642(_0x501d5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x116300=0x47946b86^_0x11a165;function _0x45e4cd(){const _0x459786=_0x501d5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x253356(_0x209e26(_0x3ef777)),_0x38cf9f=_0x464e43(_0x253356(window[_0x501d5d([0x4d,0x61,0x74,0x68])][_0x501d5d([0x63,0x65,0x69,0x6c])](_0x3dd4ca/_0x116300)));window[_0x501d5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x501d5d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x459786,_0x38cf9f);}function _0x1ded76(){const _0x743cbb=_0x501d5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x253356(_0x209e26(_0x3ef777)),_0xef40da=window[_0x501d5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x501d5d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x743cbb);return _0xef40da?window[_0x501d5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464e43(_0xef40da),0x10)*_0x116300:null;}function _0x53ac4e(_0x599bb2){return new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b12d6,_0x2bce6e)=>{_0x599bb2[_0x501d5d([0x74,0x68,0x65,0x6e])](_0x3b12d6,_0x2bce6e),window[_0x501d5d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bce6e,0x47a351c6^_0x11a165);});}}_0x3c5d14[_0x501d5d([0x6f,0x6e])](_0x501d5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x468fc1,_0x234fad)=>{if(_0x234fad[0x0]!=_0x3ef777)return _0x9a2642(_0x501d5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x234fad[0x1]={..._0x234fad[0x1],[_0x501d5d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14d155};},{[_0x501d5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x501d5d([0x68,0x69,0x67,0x68])}),_0x3c5d14[_0x501d5d([0x6f,0x6e])](_0x501d5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x578956=>{_0x460617(_0x578956[_0x501d5d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44b5ef=!0x0,_0xdaf2fe(_0x578956[_0x501d5d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x501d5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x501d5d([0x6c,0x6f,0x77])}),_0x968751[_0x501d5d([0x74,0x68,0x65,0x6e])](()=>{_0x44b5ef||_0x9a2642(_0x501d5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b2e2a(){return _0x3c5d14[_0x501d5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x501d5d([0x76,0x69,0x65,0x77])][_0x501d5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x501d5d([0x61,0x75,0x74,0x6f]);}function _0x16c38d(){_0x3c5d14[_0x501d5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x501d5d([0x76,0x69,0x65,0x77])][_0x501d5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x501d5d([0x61,0x75,0x74,0x6f]);}}function _0x2e5854(_0x200031){const _0x532ab5=[new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16cdf1=>setTimeout(_0x16cdf1,0x47abbbca^_0x11a165)),_0x968751[_0x501d5d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365edc=>{let _0x2d7f8d=0x0;_0x3c5d14[_0x501d5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x501d5d([0x6f,0x6e])](_0x501d5d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16ed9c,_0x18f8d3)=>{_0x18f8d3[0x0][_0x501d5d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d7f8d++,_0x2d7f8d==(0x47a280ee^_0x11a165)&&(_0x365edc(),_0x16ed9c[_0x501d5d([0x6f,0x66,0x66])]());});}))];return window[_0x501d5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x501d5d([0x72,0x61,0x63,0x65])](_0x532ab5)[_0x501d5d([0x74,0x68,0x65,0x6e])](()=>_0x200031);}async function _0x4fa171(){await _0x968751,_0x3c5d14[_0x501d5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x501d5d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d58fd,_0x3c5d14[_0x501d5d([0x6d,0x6f,0x64,0x65,0x6c])][_0x501d5d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d58fd,_0x3c5d14[_0x501d5d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x501d5d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd4538e(_0x4ecd56){const _0x1b902a=_0x3388ba();_0x3c5d14[_0x1b902a]=_0x501d5d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ecd56,_0x4ecd56!=_0x501d5d([0x56,0x61,0x6c,0x69,0x64])&&_0x4fa171();}function _0x3388ba(){const _0x575ac7=window[_0x501d5d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x501d5d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x501d5d([0x6e,0x6f,0x77])]())[_0x501d5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x501d5d([0x2e]),'');let _0x167593=_0x501d5d([0x75]);for(let _0x5c7dcf=0x0;_0x5c7dcf<_0x575ac7[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c7dcf+=0x2){let _0x3ef890=window[_0x501d5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x575ac7[_0x501d5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c7dcf,_0x5c7dcf+0x2));_0x3ef890>=_0x2bab4d[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ef890-=_0x2bab4d[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x167593+=_0x2bab4d[_0x3ef890];}return _0x167593;}function _0x4851f3(){const _0xc6fe9b=_0x5ecbdb[_0x501d5d([0x73,0x70,0x6c,0x69,0x74])](_0x501d5d([0x2e]));if(0x3!=_0xc6fe9b[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f65e2(_0xc6fe9b[0x1]);function _0x3f65e2(_0xe61850){const _0xfc7eac=_0x47167e(_0xe61850);return _0xfc7eac&&_0x165631()?_0xfc7eac:null;function _0x165631(){const _0x788af1=_0xfc7eac[_0x501d5d([0x6a,0x74,0x69])],_0x191ce4=window[_0x501d5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x788af1[_0x501d5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x788af1[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18ed3a={..._0xfc7eac,[_0x501d5d([0x6a,0x74,0x69])]:_0x788af1[_0x501d5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x788af1[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18ed3a[_0x501d5d([0x76,0x63])],_0x209e26(_0x18ed3a)==_0x191ce4;}}}async function _0x1d3d20(){let _0x58aa74=!0x0;try{const _0x4d2221=_0x5ecbdb[_0x501d5d([0x73,0x70,0x6c,0x69,0x74])](_0x501d5d([0x2e])),[_0x2d4b09,_0x18551c,_0x743876]=_0x4d2221;return _0x1ba8e3(_0x2d4b09),await _0x115c51(_0x2d4b09,_0x18551c,_0x743876),_0x58aa74;}catch{return!0x1;}function _0x1ba8e3(_0x4a1cb1){const _0x520fbe=_0x47167e(_0x4a1cb1);_0x520fbe&&_0x520fbe[_0x501d5d([0x61,0x6c,0x67])]==_0x501d5d([0x45,0x53,0x32,0x35,0x36])||(_0x58aa74=!0x1);}async function _0x115c51(_0x225236,_0x3011a0,_0x2d3eea){const _0x399c95=window[_0x501d5d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x501d5d([0x66,0x72,0x6f,0x6d])](_0x4de8ab(_0x2d3eea),_0x4ef6a2=>_0x4ef6a2[_0x501d5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45df5e=new window[(_0x501d5d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x501d5d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x225236+_0x501d5d([0x2e])+_0x3011a0),_0x4955fe=window[_0x501d5d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x501d5d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4955fe)return;const _0x51cf34=await _0x4955fe[_0x501d5d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x501d5d([0x6a,0x77,0x6b]),_0x10070c,{[_0x501d5d([0x6e,0x61,0x6d,0x65])]:_0x501d5d([0x45,0x43,0x44,0x53,0x41]),[_0x501d5d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x501d5d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x501d5d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4955fe[_0x501d5d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x501d5d([0x6e,0x61,0x6d,0x65])]:_0x501d5d([0x45,0x43,0x44,0x53,0x41]),[_0x501d5d([0x68,0x61,0x73,0x68])]:{[_0x501d5d([0x6e,0x61,0x6d,0x65])]:_0x501d5d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51cf34,_0x399c95,_0x45df5e)||(_0x58aa74=!0x1);}}function _0x47167e(_0x116d15){return _0x116d15[_0x501d5d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x501d5d([0x65,0x79]))?JSON[_0x501d5d([0x70,0x61,0x72,0x73,0x65])](_0x4de8ab(_0x116d15)):null;}function _0x4de8ab(_0x5035b3){return window[_0x501d5d([0x61,0x74,0x6f,0x62])](_0x5035b3[_0x501d5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x501d5d([0x2b]))[_0x501d5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x501d5d([0x2f])));}function _0x209e26(_0x29d87d){let _0x416ebb=0x1505;function _0x56b64d(_0x5b1bda){for(let _0x385525=0x0;_0x385525<_0x5b1bda[_0x501d5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x385525++){const _0x399243=_0x5b1bda[_0x501d5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x385525);_0x416ebb=(_0x416ebb<<0x5)+_0x416ebb+_0x399243,_0x416ebb&=_0x416ebb;}}function _0x3119e7(_0x3ce7e0){Array[_0x501d5d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ce7e0)?_0x3ce7e0[_0x501d5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3119e7):_0x3ce7e0&&typeof _0x3ce7e0==_0x501d5d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x501d5d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ce7e0)[_0x501d5d([0x73,0x6f,0x72,0x74])]()[_0x501d5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59aeda,_0x3b9855])=>{_0x56b64d(_0x59aeda),_0x3119e7(_0x3b9855);}):_0x56b64d(window[_0x501d5d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ce7e0));}return _0x3119e7(_0x29d87d),_0x416ebb>>>0x0;}function _0x253356(_0xfd8ad8){return _0xfd8ad8[_0x501d5d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x501d5d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x501d5d([0x30]));}function _0x464e43(_0x578110){return _0x578110[_0x501d5d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x501d5d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x501d5d([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d58fd(){}function _0x501d5d(_0x37b079){return _0x37b079['map'](_0x445f29=>String['fromCharCode'](_0x445f29))['join']('');}_0xd4538e(await _0x26c1cb());}(this);}['_moveSelectionToFootnoteDefinition'](_0xd9061d){const {plugins:_0x1eb4c0,editing:_0x595bdf,model:_0x2b1ce1}=this['editor'],_0x337da4=_0x1eb4c0['get'](_0x43ee3f)['getFootnote'](_0xd9061d);return!!_0x337da4&&(_0x2b1ce1['change'](_0x40662c=>{_0x40662c['setSelection'](_0x40662c['createPositionAt'](_0x337da4['definition'],'end'));}),_0x595bdf['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x362ceb){const {plugins:_0x1380f9,editing:_0x41f5b0,model:_0x3bc6e5}=this['editor'],_0x3d8430=_0x1380f9['get'](_0x43ee3f)['getFootnote'](_0x362ceb);return!!_0x3d8430&&(_0x3bc6e5['change'](_0x23fd91=>{_0x23fd91['setSelection'](_0x3d8430['reference'],'on');}),_0x41f5b0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5619c1}=this['editor']['model'],_0xfbd83=this['editor']['config']['get']('footnotes.multiBlock');_0x5619c1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5619c1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5619c1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xfbd83?_0x5619c1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5619c1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5619c1['addChildCheck'](_0x5b61ca=>{for(const _0x39115c of _0x5b61ca)if('footnoteDefinition'===_0x39115c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x620102}=this,{conversion:_0x599d2e,editing:_0x39e3ac}=_0x620102,{t:t}=_0x620102['locale'];_0x599d2e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x233ac,{writer:_0x1344f0,consumable:_0x11e1c1})=>{const _0x25a3d1=_0x233ac['getChild'](0x0);if(!_0x25a3d1||!_0x25a3d1['is']('element','a'))return null;const _0x59a817=_0x25a3d1['getAttribute']('href')||'';if(!_0x59a817['startsWith']('#'))return null;const _0xca5ff6=_0x59a817['replace'](/^#/,'');if(!_0xca5ff6)return null;_0x11e1c1['consume'](_0x25a3d1,{'name':!0x0,'attributes':['href']});for(const {item:_0x311c49}of _0x39e3ac['view']['createRangeIn'](_0x25a3d1))_0x311c49['is']('$textProxy')?_0x11e1c1['consume'](_0x311c49['textNode'],{'name':!0x0}):_0x311c49['is']('element')&&_0x11e1c1['consume'](_0x311c49,{'name':!0x0});return _0x1344f0['createElement']('footnoteRef',{'footnoteId':_0xca5ff6});}}),_0x599d2e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3cea69,{writer:_0x2d72bd})=>b(_0x3cea69,_0x2d72bd)}),_0x599d2e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5ba479,{writer:_0x534f8d})=>{const _0x1bebe7=_0x5ba479['getAttribute']('footnoteCounter');return _0x5879f4(b(_0x5ba479,_0x534f8d),_0x534f8d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1bebe7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1b6395}=this,{t:t}=_0x1b6395['locale'],{conversion:_0x2e81fa}=_0x1b6395;_0x2e81fa['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2e81fa['for']('upcast')['add'](_0x18b6ef=>{_0x18b6ef['on']('element:ol',(_0x1b3371,_0x53ef,_0x52c08b)=>{const _0x43c395=_0x53ef['viewItem'];if(!_0x43c395['hasClass']('footnotes-list')||!_0x53ef['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x52c08b['consumable']['consume'](_0x43c395,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x27c88d,modelCursor:_0x2310df}=_0x52c08b['convertChildren'](_0x53ef['viewItem'],_0x53ef['modelCursor']);_0x53ef['modelRange']=_0x27c88d,_0x53ef['modelCursor']=_0x2310df;}),_0x18b6ef['on']('element:hr',(_0x23731c,_0x3d5013,_0xa7c19b)=>{const _0x223551=_0x3d5013['viewItem'];_0x223551['hasClass']('footnotes-divider')&&_0x3d5013['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xa7c19b['consumable']['consume'](_0x223551,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2e81fa['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b79ff,{writer:_0x5a2b69})=>D(_0x5a2b69)}),_0x2e81fa['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14e1be,{writer:_0x4ce39e})=>{const _0x22a331=D(_0x4ce39e,{'data-footnotes-list-label':t('Footnotes')}),_0x37d826=_0x5879f4(_0x22a331,_0x4ce39e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4ce39e['setCustomProperty']('footnotesDefinitions',!0x0,_0x37d826),_0x37d826;}});}['_defineDefinitionConverters'](){const {editor:_0x44be08}=this,{conversion:_0x554ab7,locale:_0x268bf0}=_0x44be08,_0x488c3d=_0x44be08['config']['get']('footnotes.multiBlock');_0x554ab7['for']('upcast')['add'](_0x55d9f2=>{_0x55d9f2['on']('element:li',(_0x3268cf,_0x3c74c1,_0x3dd7b2)=>{const _0x3921ca=_0x3c74c1['viewItem'];if(!_0x3921ca['hasClass']('footnote-definition')||!_0x3921ca['getAttribute']('id'))return;const _0xd9c8c0=_0x3921ca['parent'];if(!_0xd9c8c0['is']('element','ol')||!_0xd9c8c0['hasClass']('footnotes-list'))return;if(!_0x3dd7b2['consumable']['test'](_0x3921ca,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x437e02=_0x3dd7b2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3921ca['getAttribute']('id')});if(!_0x3dd7b2['safeInsert'](_0x437e02,_0x3c74c1['modelCursor']))return;_0x3dd7b2['consumable']['consume'](_0x3921ca,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1bc651=Array['from'](_0x3921ca['getChildren']())['find'](_0x1e2dc6=>_0x1e2dc6['is']('element')&&_0x1e2dc6['hasClass']('footnote-content'));for(const _0x3b637c of _0x3921ca['getChildren']())_0x3b637c['is']('element')&&(_0x3dd7b2['consumable']['consume'](_0x3b637c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3dd7b2['consumable']['consume'](_0x3b637c,{'name':!0x0,'classes':'footnote-content'}));if(_0x1bc651){if(_0x488c3d)_0x3dd7b2['convertChildren'](_0x1bc651,_0x437e02);else{const _0x38c803=_0x3dd7b2['writer']['createElement']('footnoteInlineContent');_0x3dd7b2['writer']['insert'](_0x38c803,_0x437e02),_0x3dd7b2['convertChildren'](_0x1bc651,_0x38c803);}}_0x3dd7b2['updateConversionResult'](_0x437e02,_0x3c74c1);});}),_0x554ab7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xdad7e2,{writer:_0x8380a8})=>y(_0xdad7e2,_0x8380a8,_0x268bf0,{'dataPipeline':!0x0})}),_0x554ab7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2f8cd2,{writer:_0x576f14})=>y(_0x2f8cd2,_0x576f14,_0x268bf0)});}['_defineBogusParagraphConverters'](){const {editor:_0x448d0b}=this,{conversion:_0x1d0bc1}=_0x448d0b;_0x448d0b['config']['get']('footnotes.multiBlock')?(_0x1d0bc1['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1d0bc1['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x448d0b['model']['document'],'change:data',()=>{!function(_0x379752,_0xffcad5){const _0x269521=_0x379752['document']['differ'],_0x1f1536=new Set();for(const _0x280943 of _0x269521['getChanges']()){const _0x4cccc9='attribute'==_0x280943['type']?_0x280943['range']['start']['parent']:_0x280943['position']['parent'];_0x4cccc9['is']('element','footnoteDefinition')&&_0x1f1536['add'](_0x4cccc9);}for(const _0x57edbf of _0x1f1536['values']()){const _0x3fe448=Array['from'](_0x57edbf['getChildren']())['filter'](_0x2dda48=>v(_0x2dda48,_0xffcad5['mapper']));for(const _0x22f06f of _0x3fe448)_0xffcad5['reconvertItem'](_0x22f06f);}}(_0x448d0b['model'],_0x448d0b['editing']);})):(_0x1d0bc1['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1d0bc1['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3af508,{writer:_0x57debe})=>{const _0x39655f=_0x57debe['createContainerElement']('span');return _0x57debe['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x39655f),_0x39655f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x15c64f}=this,{editing:_0x567409,t:t}=_0x15c64f,_0x1a6d8d=_0x15c64f['model']['document']['selection'];_0x15c64f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x15c64f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x567409['view']['document'],'enter',(_0x5b4255,_0x5a3f87)=>{const _0x76479c=function(_0x148409){const _0x3d8f5f=_0x148409['getSelectedElement']();if(_0x3d8f5f?.['is']('element','footnoteRef'))return _0x3d8f5f;return null;}(_0x1a6d8d);if(_0x76479c){const _0x1448ad=_0x76479c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1448ad),_0x5a3f87['preventDefault'](),_0x5b4255['stop']();}},{'context':_0x3426ef});}['_defineClickHandlers'](){const {editor:_0x277a39}=this,{editing:_0x347748}=_0x277a39;_0x277a39['editing']['view']['addObserver'](_0x7061),_0x277a39['editing']['view']['addObserver'](_0x275599);let _0x2b73de=!0x1;this['listenTo'](_0x347748['view']['document'],'pointerdown',(_0x4673f2,_0x31f6be)=>{const {target:_0x86b90b}=_0x31f6be,_0x57ebd8=_0x347748['view']['document']['selection'];_0x2b73de=!!(_0x86b90b?.['is']('element','a')&&_0x86b90b['parent']?.['is']('element','sup')&&_0x86b90b['parent']['hasClass']('footnote'))&&_0x57ebd8['getSelectedElement']()===_0x86b90b['parent'];},{'priority':'high'}),this['listenTo'](_0x347748['view']['document'],'click',(_0x5e93bd,_0x5bdb69)=>{const {target:_0x49f8a8}=_0x5bdb69;if(!_0x49f8a8?.['is']('element','a'))return;if(_0x49f8a8['parent']?.['is']('element','sup')&&_0x49f8a8['parent']['hasClass']('footnote')&&!_0x2b73de)return void _0x5bdb69['preventDefault']();let _0x3559d5=_0x49f8a8['getAttribute']('href');if(!_0x3559d5?.['startsWith']('#'))return;_0x3559d5=_0x3559d5['slice'](0x1);let _0x3bc989=!0x1;(_0x3559d5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3559d5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3559d5))&&(_0x3bc989=!0x0),_0x3bc989&&(_0x5bdb69['preventDefault'](),_0x5e93bd['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x591df4}={}){return(_0x272641,{writer:_0x4c44e0})=>{if(!g(_0x272641))return null;if(!_0x591df4)return _0x4c44e0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x177ae7=_0x4c44e0['createContainerElement']('p');return _0x4c44e0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x177ae7),_0x177ae7;};}function g(_0x4c6522){const {parent:_0x1e6508}=_0x4c6522;if(!_0x1e6508?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e6508['childCount'])return!0x1;for(const _0x574181 of _0x4c6522['getAttributeKeys']())if(!_0x574181['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x574181)return!0x1;return!0x0;}function v(_0x3b2a3f,_0x166db0){if(!_0x3b2a3f['is']('element','paragraph'))return!0x1;const _0x203b3d=_0x166db0['toViewElement'](_0x3b2a3f);return!!_0x203b3d&&g(_0x3b2a3f)!==_0x203b3d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1fd3c8){return _0x3426ef(_0x1fd3c8)&&_0x1fd3c8['is']('containerElement')&&!!_0x1fd3c8['getCustomProperty']('footnotesDefinitions');}function D(_0x3859a2,_0x348c62={}){const _0x4d7272=_0x3859a2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4428fe=_0x3859a2['createContainerElement']('ol',{'class':'footnotes-list'},_0x3859a2['createSlot']());return _0x3859a2['createContainerElement']('div',{'class':'footnotes',..._0x348c62},[_0x4d7272,_0x4428fe]);}function b(_0x82fda4,_0x18fb01){const _0x299f02=_0x82fda4['getAttribute']('footnoteId'),_0x3c9d9b=_0x82fda4['getAttribute']('footnoteCounter'),_0x3ec682=_0x18fb01['createUIElement']('a',{'href':'#'+_0x299f02},function(_0x5176a6){const _0x265c96=this['toDomElement'](_0x5176a6);return _0x265c96['textContent']=_0x3c9d9b,_0x265c96;}),_0x50ac45=_0x18fb01['createContainerElement']('sup',{'id':'ref-'+_0x299f02,'class':'footnote'},[_0x3ec682]);return _0x50ac45['getFillerOffset']=()=>null,_0x50ac45;}function y(_0x3f4029,_0x3d58d9,_0x227b98,{dataPipeline:_0x5ea67f}={}){const {t:t}=_0x227b98,_0x379e9e=_0x3f4029['getAttribute']('footnoteId'),_0x7fcff8=_0x3d58d9['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x379e9e},function(_0x48e1ad){const _0x1a53d=this['toDomElement'](_0x48e1ad);return _0x1a53d['innerText']='^',_0x1a53d;}),_0x446ea5=_0x5ea67f?_0x3d58d9['createContainerElement']('div',{'class':'footnote-content'}):_0x4039dc(_0x3d58d9['createEditableElement']('div',{'class':'footnote-content'}),_0x3d58d9,{'label':t('Footnote\x20content.')});return _0x3d58d9['insert'](_0x3d58d9['createPositionAt'](_0x446ea5,0x0),_0x3d58d9['createSlot']()),_0x3d58d9['createContainerElement']('li',{'class':'footnote-definition','id':_0x379e9e},[_0x7fcff8,_0x446ea5]);}