@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251206.0 → 0.0.0-nightly-20251208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,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:()=>G,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=347]})(t,e)}const a=r;function c(){const t=["add","delete","3342qAODIW","name","get","6429jBKEmY","1089315CAUIBQ","394yPgTmS","_trackedElements","from","values","1820742cEzUuD","$graveyard","_model","reset","84485loxulI","_getElementKey","length","type","clear","1910292fBBots","getChanges","50IXNNoB","has","createRangeOn","push","element","56hGAxQu","flat","rootName","root","elementName","_elementName","set","$text","getElementKey","slice","position","473788QcUrqg","430vntlia","attributes","nodeAfter","getItems","insert","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(308158===-parseInt(e(379))/1+parseInt(e(371))/2*(-parseInt(e(369))/3)+-parseInt(e(384))/4+parseInt(e(358))/5*(parseInt(e(366))/6)+parseInt(e(357))/7*(parseInt(e(391))/8)+parseInt(e(370))/9*(parseInt(e(386))/10)+parseInt(e(375))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(377)];[a(351)];[a(380)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(377)]=t,this[o(351)]=e[o(350)],this[o(380)]=e[o(354)]}[a(378)](){const t=a;this[t(372)][t(383)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(382)]&&e(353)!==i[e(367)]&&i[e(356)][e(360)]){const t=this[e(377)][e(388)](i[e(356)][e(360)]);for(const o of t[e(361)]()){if(!o.is(e(390),this[e(351)]))continue;const t=this[e(380)](o);n[e(387)](t)||n[e(352)](t,[]),n[e(368)](t)[e(389)](o)}}if(e(363)===i[e(382)]&&i[e(367)]===this[e(351)]){const t=this[e(380)]({getAttribute:t=>i[e(359)][e(368)](t)});o[e(364)](t)}}for(const[t,n]of this[e(372)])e(376)===n[e(349)][e(348)]&&o[e(364)](t);for(const t of o)this[e(372)][e(365)](t);for(const[t,o]of n)this[e(372)][e(352)](t,o[o[e(381)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(364)](s[0]),s[e(381)]>1?n[e(352)](t,s[e(355)](1)):n[e(365)](t),o[e(365)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(374)]())[e(347)](),moved:Array[e(373)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=212]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(655678===-parseInt(e(279))/1*(parseInt(e(271))/2)+parseInt(e(262))/3+parseInt(e(272))/4*(-parseInt(e(246))/5)+-parseInt(e(232))/6+-parseInt(e(250))/7*(-parseInt(e(254))/8)+-parseInt(e(223))/9*(-parseInt(e(273))/10)+parseInt(e(280))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(305)]=[];[u(236)]=null;[u(302)]=null;[u(291)];[u(218)];[u(264)];static get[u(233)](){return u(313)}static get[u(297)](){return!0}static get[u(213)](){return!0}constructor(t){const e=u;super(t),this[e(291)]=new l(this[e(308)][e(231)],{elementName:e(235),getElementKey:()=>e(277)}),this[e(218)]=new l(this[e(308)][e(231)],{elementName:e(307),getElementKey:t=>t[e(237)](e(229))}),this[e(264)]=new l(this[e(308)][e(231)],{elementName:e(274),getElementKey:t=>t[e(237)](e(229))})}[u(265)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(228)](e=>{const n=t,i=o[n(243)][n(294)][n(306)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(225)](e,i)&&(s=!0),this[n(263)](e,i)&&(s=!0),this[n(299)](e)&&(s=!0),this[n(278)](e)&&(s=!0),this[n(258)](e)&&(s=!0),s}),this[t(270)](o[t(243)],t(300),()=>{const e=t;o[e(304)]({isUndoable:!1},t=>{this[e(292)](t)})},{priority:t(303)}),this[t(270)](n,t(216),()=>{const e=t;this[e(305)]=[],this[e(291)][e(275)](),this[e(218)][e(275)](),this[e(264)][e(275)]()},{priority:t(252)})}[u(230)](){return this[u(236)]}[u(257)](t){const e=u;return this[e(305)][e(247)](e=>e.id===t)||null}[u(287)](){const t=u;return Array[t(284)](this[t(305)])}[u(298)](){return this[u(302)]}[u(221)](t){this[u(302)]=t}[u(220)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(305)][o(214)];i++)this[o(224)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(259)](o(235),{});return t[o(283)](n,e),this[o(236)]=n,n}[u(292)](t){const e=u;if(!this[e(305)][e(214)]||this[e(236)])return;const o=this[e(305)][0][e(248)][e(267)],n=this[e(296)](t,o);for(const o of this[e(305)])o[e(217)][e(276)]||t[e(286)](o[e(217)],n,e(222));this[e(220)](t)}[u(212)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(291)][o(306)](e);if(r[o(214)]&&(this[o(236)]=r[0]),i[o(214)])if(i[o(214)]>1||this[o(236)]&&i[o(311)](t=>t!==this[o(236)])){const e=t[o(259)](o(235),{}),s=[];this[o(236)]&&s[o(293)](this[o(236)]),s[o(293)](...i),t[o(286)](e,s[0],o(240));for(const n of s)t[o(309)](t[o(285)](n),t[o(261)](e,o(222))),t[o(310)](n);this[o(236)]=e,this[o(220)](t),n=!0}else this[o(236)]=i[0];if(s[o(214)]&&o(290)===this[o(236)]?.[o(267)][o(234)]){for(const e of this[o(305)])t[o(310)](e[o(248)]),n=!0;this[o(305)]=[],this[o(236)]=null}return n}[u(225)](t,e){const o=u;let n=!1;const i=this[o(308)][o(226)][o(242)](o(266)),{inserted:s,moved:r}=this[o(264)][o(306)](e);for(const e of[...r,...s]){const s=e[o(237)](o(229)),r=this[o(257)](s);r&&(r[o(217)]=e),p(t,i,e)&&(n=!0)}return n}[u(263)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(218)][o(306)](e);for(const e of i)this[o(255)](t,e)&&(n=!0);for(const e of s)this[o(269)](t,e)&&(n=!0);for(const e of r)this[o(288)](t,e)&&(n=!0);return n}[u(278)](t){const e=u;if(!this[e(236)])return!1;let o=!1;if(this[e(236)][e(227)]!==this[e(305)][e(214)]){const n=[];for(const t of this[e(236)][e(289)]()){const i=t[e(237)](e(229));this[e(257)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(310)](o)}const n=new Set,i=[];for(const t of this[e(236)][e(289)]()){const s=t[e(237)](e(229));n[e(244)](s)?(i[e(241)](t),o=!0):n[e(282)](s)}for(const o of i)t[e(310)](o);return this[e(236)][e(227)]||(t[e(310)](this[e(236)]),this[e(236)]=null,o=!0),o}[u(269)](t,e){const o=u;if(this[o(305)][o(247)](t=>t[o(248)]===e))return!1;let n=!1;const i=e[o(237)](o(229)),s=this[o(305)][o(215)](t=>t.id===i);-1!==s&&(t[o(310)](this[o(305)][s][o(248)]),this[o(305)][o(238)](s,1),n=!0);let r=this[o(236)]?function(t,e){const n=o;for(const o of t[n(289)]())if(o[n(237)](n(229))===e)return o;return null}(this[o(236)],i):null;r||(r=t[o(259)](o(274),{footnoteId:i}),this[o(236)]&&(t[o(286)](r,this[o(236)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(308)][o(231)],this[o(305)],e);this[o(305)][o(238)](c,0,a);let l=c;return-1!==s&&(l=Math[o(301)](c,s)),this[o(220)](t,l)&&(n=!0),n}[u(255)](t,e){const o=u,n=this[o(305)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(305)][n];return o(290)!==s[o(217)][o(267)][o(234)]&&(t[o(310)](s[o(217)]),i=!0),this[o(305)][o(238)](n,1),this[o(220)](t,n)&&(i=!0),i}[u(288)](t,e){const o=u,n=e[o(237)](o(229)),i=this[o(305)][o(215)](t=>t.id===n),s=this[o(305)][i];let r=!1;s[o(248)]=e,this[o(305)][o(238)](i,1);const a=h(this[o(308)][o(231)],this[o(305)],e);return this[o(305)][o(238)](a,0,s),this[o(220)](t,Math[o(301)](i,a))&&(r=!0),r}[u(224)](t,e){const o=u;if(!this[o(236)])return!1;const n=this[o(305)][e];let i;return i=this[o(302)]?this[o(302)]({footnote:n,container:this[o(236)],digits:String(this[o(305)][o(214)])[o(214)],value:e+1}):String(e+1),n[o(248)][o(237)](o(239))!=i&&(t[o(253)](o(239),i,n[o(248)]),!0)}[u(258)](t){const e=u;if(!this[e(236)]||this[e(305)][e(214)]<2)return!1;if(function(t,o){const n=e;if(t[n(214)]!==o[n(214)])return!1;for(let e=0;e<t[n(214)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(305)][e(251)](t=>t.id),Array[e(284)](this[e(236)][e(289)]())[e(251)](t=>t[e(237)](e(229)))))return!1;let o=!1;for(let n=0;n<this[e(305)][e(214)];n++){const i=this[e(305)][n],s=t[e(312)](i[e(217)]),r=t[e(261)](this[e(236)],n);s[e(219)](r)||(t[e(309)](t[e(256)](i[e(217)]),r),o=!0)}return o}[u(299)](t){const e=u;if(!this[e(305)][e(214)])return!1;const{model:o}=this[e(308)];let n=!1;for(let i=0;i<this[e(305)][e(214)]-1;i++){const s=this[e(305)][i],r=this[e(305)][i+1],a=o[e(312)](s[e(248)]),c=o[e(312)](r[e(248)]);e(281)===a[e(245)](c)&&(this[e(288)](t,s[e(248)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(227)])return!1;const i=n(e?249:268);return t[n(286)](t[n(259)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(214)])return 0;const i=t[n(312)](o);for(let o=0;o<e[n(214)];o++){const s=e[o],r=t[n(312)](s[n(248)]);if(n(240)===i[n(245)](r))return o}const s=o[n(267)];let r=-1;for(let t=e[n(214)]-1;t>=0;t--)if(e[t][n(248)][n(267)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(295)](),c=a[n(260)](s[n(234)]),l=a[c+1];if(l)for(let t=0;t<e[n(214)];t++)if(e[t][n(248)][n(267)][n(234)]===l)return t;return e[n(214)]}function m(){const t=["10838784dFrDcm","after","add","append","from","createRangeIn","insert","getFootnotes","_handleMovedFootnoteReference","getChildren","$graveyard","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","push","differ","getRootNames","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","change:data","min","_footnoteFormatter","low","enqueueChange","_footnotes","getChanges","footnoteRef","editor","move","remove","some","createPositionBefore","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","length","findIndex","set","definition","_footnoteRefsTracker","isEqual","_updateFootnotesCounters","setFootnoteFormatter","end","2237328MrDUrA","_updateFootnoteRefCounter","_handleFootnoteDefinitionsChanges","config","childCount","registerPostFixer","footnoteId","getFootnotesDefinitionsObjectElement","model","5107854NclYTz","pluginName","rootName","footnotesDefinitions","_footnotesDefinitions","getAttribute","splice","footnoteCounter","before","unshift","get","document","has","compareWith","5wxQOTT","find","reference","paragraph","91YNHZdR","map","high","setAttribute","657128iUlZNt","_handleRemoveFootnoteReferenceById","createRangeOn","getFootnote","_sortFootnoteDefinitions","createElement","indexOf","createPositionAt","1958943cDDkgz","_handleFootnoteReferencesChanges","_footnoteDefsTracker","init","footnotes.multiBlock","root","footnoteInlineContent","_handleInsertedFootnoteReference","listenTo","12DmiLhQ","5156108LyBWcX","50fzwDJi","footnoteDefinition","reset","parent","singleton","_handleFootnotesDefinitionsObjectSync","192184OckteC"];return(m=function(){return t})()}const g=y;function w(){const t=["string","261zjspjd","test","document","isBlock","2679477QDMVLR","isEnabled","FootnotesEditing","get","selection","createElement","change","getItems","plugins","8xpBGyU","3498486bHniUK","checkChild","157760XAwNDX","footnoteId","20302ZfreIL","end","refresh","length","isObject","footnoteRef","execute","editor","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","model","7642850dmXZzR","_getPositionToInsertFootnote","4366320QIUbre","43RCbvHf","insertObject","getFirstRange","1745080vRoZnU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(474450===parseInt(e(156))/1*(parseInt(e(142))/2)+-parseInt(e(128))/3+parseInt(e(137))/4*(parseInt(e(122))/5)+-parseInt(e(138))/6+parseInt(e(155))/7+-parseInt(e(140))/8*(parseInt(e(124))/9)+parseInt(e(153))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(144)](){const t=g,e=this[t(149)][t(152)][t(126)][t(132)],o=this[t(154)](e);this[t(129)]=!!o}[g(148)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(126)],r=this[e(154)](s);if(!r)return;const a=o[e(136)][e(131)](e(130)),c=t?.[e(141)]??(0,i.uid)();!function(t){const o=e;return o(123)==typeof t&&t[o(145)]>0&&!/\s/[o(125)](t)&&!/^\d/[o(125)](t)}(c)?(0,i.logWarning)(e(151)):(n[e(134)](t=>{const o=e,i=t[o(133)](o(147),{footnoteId:c});n[o(157)](i,r,null)}),a[e(150)](c))}[g(154)](t){const e=g,{model:o}=this[e(149)],{schema:n}=o,i=t[e(121)]();for(const t of i[e(135)]())if(n[e(127)](t)||n[e(146)](t))return null;const s=i[e(143)];return n[e(139)](s,e(147))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764979200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(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 D=o(331);const S=A;function A(t,e){const o=P();return(A=function(t,e){return o[t-=111]})(t,e)}function P(){const t=["drop","selection","footnoteRef","editor","get","FootnotesClipboard","getSelectedBlocks","380osOmYr","createElement","create","outputTransformation","end","footnotes.multiBlock","createRangeIn","pluginName","insert","application/ckeditor5-footnotes","toView","_defineClipboardIntegration","reduce","append","_handlePasteFootnotesDefinitions","length","contentInsertion","find","remove","toData","push","isOfficialPlugin","15193780SJhreg","footnotesDefinitions","520971upFJQr","editing","getFootnotesDefinitionsObjectElement","2410050DLedMm","getFootnote","22841kgiRdT","element","setData","change","1616ixkMOH","getData","footnoteId","from","getRanges","data","51416wRDPLf","init","isPremiumPlugin","includes","toModel","document","getFootnotes","add","requires","clipboardInput","3006288CRvuoN","_handleCopyFootnotesDefinitions","footnoteInlineContent","getFirstRange","method","root","setAttribute","htmlProcessor","entries","parse","flatMap","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","15dqKnVq","dataTransfer","content","definition","listenTo","sourceEditorId","config","342586oFkpYA","stringify","getAttribute"];return(P=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(527363===-parseInt(e(168))/1+-parseInt(e(134))/2*(parseInt(e(127))/3)+-parseInt(e(183))/4*(-parseInt(e(144))/5)+parseInt(e(171))/6+parseInt(e(173))/7*(-parseInt(e(177))/8)+-parseInt(e(114))/9+parseInt(e(166))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class L extends t.Plugin{static get[S(151)](){return S(142)}static get[S(112)](){return[v,D.ClipboardPipeline]}static get[S(165)](){return!0}static get[S(185)](){return!0}[S(184)](){this[S(155)]()}[S(155)](){const t=S;this[t(115)](),this[t(158)]()}[S(115)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](D.ClipboardPipeline),s=o[t(141)](d);this[t(131)](i,t(147),(o,i)=>{const r=t,a=_(n[r(150)](i[r(129)]));if(!a[r(159)])return;const c=s[r(189)](),l=a[r(156)]((t,o)=>{const n=r,i=c[n(161)](t=>t.id===o);if(i){const o=e[n(182)][n(154)](i[n(130)],{isClipboardPipeline:!0}),s=e[n(182)][n(121)][n(163)](o);t[i.id]=s}return t},Object[r(146)](null));i[r(128)][r(175)](r(153),JSON[r(135)](l))})}[S(158)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](D.ClipboardPipeline),a=n[t(141)](d),c=e[t(133)][t(141)](t(149));let l=null;this[t(131)](s[t(188)],t(113),(e,o)=>{const n=t,i=o[n(128)][n(178)](n(153));l=i?JSON[n(123)](i):null}),this[t(131)](r,t(160),(n,s)=>{const r=t,u=s[r(132)]===this[r(140)].id;u&&r(137)===s[r(118)]||o[r(176)](t=>{const n=r;let f=a[n(170)]();const d=!!f&&Array[n(180)](o[n(188)][n(138)][n(143)]())[n(186)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(150)](e))n.is(o(174),o(167))&&i[o(164)](n);for(const e of i)t[o(162)](e)}(t,s[n(129)]),!l)return;const{selection:p}=o[n(188)],h=p[n(117)]()[n(119)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(150)](e))if(n.is(o(174),o(167)))return n;return null}(t,s[n(129)]),f||=a[n(126)](t,h));const m=Array[n(180)](p[n(181)]())[n(124)](_),g=function(t,e,o){const s=n,r=Object[s(146)](null);for(const{item:n}of t[s(150)](e))if(n.is(s(174),s(139))){const e=n[s(136)](s(179));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(120)](s(179),r[e],n)}return r}(t,s[n(129)],t=>{const e=n;return!u||!!a[e(172)](t)&&!m[e(186)](t)});for(const[o,i]of Object[n(122)](l)){const s=g[o]||o,r=t[n(145)](n(125),{footnoteId:s}),a=e[n(182)][n(121)][n(154)](i);let l;if(c)l=e[n(182)][n(187)](a,r);else{l=t[n(145)](n(116));const o=e[n(182)][n(187)](a,l);t[n(152)](o,l)}t[n(157)](l,r),t[n(152)](r,f,n(148))}l=null})})}}function _(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(174),e(139))&&o[e(111)](n[e(136)](e(179)));return Array[e(180)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=z();R()(J.A,X);J.A&&J.A.locals&&J.A.locals;class q 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,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["34635807ynWCcQ","pluginName","requires","isPremiumPlugin","8234100jwiyvb","1044127IWtDnF","614464iowmqQ","1414FCYqwX","Footnotes","2MOOulP","27606TsrTUv","2507200eKpJmL","3653601NRJopV","isOfficialPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=167]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(830009===parseInt(e(176))/1+-parseInt(e(180))/2*(-parseInt(e(169))/3)+parseInt(e(177))/4+parseInt(e(175))/5+-parseInt(e(167))/6*(-parseInt(e(178))/7)+-parseInt(e(168))/8+-parseInt(e(171))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Y(172)](){return Y(179)}static get[Y(173)](){return[v,L,q]}static get[Y(170)](){return!0}static get[Y(174)](){return!0}}function tt(){const t=["decimal","10yTFJcW","decimal-leading-zero","888WZpogb","67075VPxNNE","upper-roman","lower-roman","71832YJcbOQ","upper-alpha","2hzULph","135885zGnUdm","1834857rtiAdV","lower-alpha","30331vCneXy","19115217yWtlmR","3612305civPks","6OTpqWZ","upper-latin","lower-latin"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(460778===parseInt(e(124))/1*(parseInt(e(129))/2)+parseInt(e(130))/3+parseInt(e(127))/4+-parseInt(e(135))/5*(parseInt(e(136))/6)+-parseInt(e(133))/7*(parseInt(e(123))/8)+-parseInt(e(131))/9*(parseInt(e(121))/10)+parseInt(e(134))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(120),et(122),et(138),et(137),et(132),et(128),et(126),et(125)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=261]})(t,e)}function rt(){const t=["plugins","298049wvisPe","change","getAttribute","refresh","getFootnotesDefinitionsObjectElement","setAttribute","isEnabled","2HbMFHk","1954998xPcFrA","272715DLvqXi","126468tfetBF","footnotesListStyle","21zJNsfl","includes","710DmasjW","value","execute","8417431nJsgdt","get","_updateFootnotesCounters","50EIYCVF","model","444kgBUmu","480824HZdMCP"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(215897===-parseInt(e(279))/1*(-parseInt(e(261))/2)+parseInt(e(263))/3+parseInt(e(276))/4*(parseInt(e(268))/5)+parseInt(e(262))/6+parseInt(e(266))/7*(parseInt(e(277))/8)+-parseInt(e(264))/9*(-parseInt(e(274))/10)+-parseInt(e(271))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(282)](){const t=it,{editor:e}=this,o=e[t(278)][t(272)](d)[t(283)]();this[t(285)]=!!o,this[t(269)]=o?.[t(281)](t(265))??null}[it(270)]({value:t}){const e=it,{editor:o}=this,n=o[e(278)][e(272)](d),i=n[e(283)]();i&&nt[e(267)](t)&&o[e(275)][e(280)](o=>{const s=e;o[s(284)](s(265),t,i),n[s(273)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(171042===-parseInt(e(237))/1+-parseInt(e(236))/2*(-parseInt(e(226))/3)+parseInt(e(223))/4+parseInt(e(217))/5+-parseInt(e(214))/6*(parseInt(e(221))/7)+-parseInt(e(233))/8+-parseInt(e(230))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(229)](){const t=ct,{editor:e}=this,o=e[t(232)][t(227)](d)[t(224)]();this[t(234)]=!!o,this[t(218)]=o?.[t(220)](t(231))??null}[ct(216)]({value:t}){const e=ct,{editor:o}=this,n=o[e(232)][e(227)](d),i=n[e(224)]();i&&Number[e(219)](t)&&o[e(225)][e(235)](o=>{const s=e;o[s(215)](s(231),t,i),n[s(222)](o)})}}function ft(){const t=["2610agEMhx","refresh","1746wQSMLY","footnotesListStart","plugins","587480YNRTTV","isEnabled","change","2ZHRYUT","281775UtpbBV","18qprAcF","setAttribute","execute","1056825jYaHNL","value","isInteger","getAttribute","135443ICErvs","_updateFootnotesCounters","1222268gKWlnm","getFootnotesDefinitionsObjectElement","model","50199SsZsHJ","get"];return(ft=function(){return t})()}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=138]})(t,e)}function ht(){const t=["downcast","toViewElement","element:ol","8544216MuLckH","getItems","upper-alpha","lower-latin","$text","isPremiumPlugin","init","add","start","isNaN","_definePostfixer","isOfficialPlugin","removeAttribute","564heScHV","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","getAttribute","hasAttribute","upper-latin","upcast","for","_updateFootnotesCounters","element","config","626095uALuTN","lower-roman","toUpperCase","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotesDefinitions","footnotesListStyle","187vbvjVa","parseInt","name","getChanges","setAttribute","type","hasClass","setStyle","checkAttribute","_getDefaultStartIndex","padStart","FootnotesPropertiesEditing","footnotesStart","lower-alpha","insert","requires","document","define","from","model","get","upper-roman","getChildren","viewItem","find","427884BfPxXu","extend","list-style-type","decimal","registerPostFixer","editor","3148MEYZdI","parent","3QwTpaA","footnotesListStart","9LjlKZc","761BApDtQ","_defineConverters","consume","setFootnoteFormatter","commands","getStyle","floor","footnotesStyle","_defineFormatter","toLowerCase","writer","pluginName","consumable","createRangeOn","212484llZJzi","attribute:footnotesListStyle:footnotesDefinitions","item","max","footnotes.footnotesProperties.defaultStartIndex","removeStyle","10661650MiLpOi","91483CaWgML","differ","nodeAfter","fromCharCode","_formatFootnoteListValue","footnotes-list","position","mapper","schema","plugins","_defineSchema"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(970375===-parseInt(e(188))/1*(-parseInt(e(183))/2)+parseInt(e(185))/3*(-parseInt(e(202))/4)+parseInt(e(145))/5+parseInt(e(236))/6*(parseInt(e(209))/7)+parseInt(e(223))/8*(-parseInt(e(187))/9)+-parseInt(e(208))/10+-parseInt(e(152))/11*(-parseInt(e(177))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(199)](){return dt(163)}static get[dt(167)](){return[v,d]}static get[dt(234)](){return!0}static get[dt(228)](){return!0}[dt(229)](){const t=dt,{editor:e}=this;e[t(144)][t(169)](t(238),t(180)),e[t(144)][t(169)](t(206),1),e[t(192)][t(230)](t(195),new at(e)),e[t(192)][t(230)](t(164),new ut(e)),this[t(219)](),this[t(189)](),this[t(196)](),this[t(233)]()}[dt(219)](){const t=dt,{editor:e}=this,{schema:o}=e[t(171)];o[t(178)](t(150),{allowAttributes:[t(151),t(186)]})}[dt(189)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(140))[t(230)](e=>{const o=t;e.on(o(222),(t,e,n)=>{const s=o,r=e[s(175)],a=e[s(149)]?.[s(184)];r[s(158)](s(214))&&a?.is(s(143),s(150))&&(function(t,e,o,n){const i=s;if(!n[i(160)](e,i(186)))return;let r=1;const a=o[i(200)][i(190)](t,{attributes:i(231)});if(a){const e=Number[i(153)](t[i(240)](i(231)),10);Number[i(232)](e)||(r=e)}!a&&e[i(138)](i(186))||o[i(198)][i(156)](i(186),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(160)](e,i(151)))return;let r=i(180),a=!1;if(o[i(200)][i(190)](t,{attributes:i(157)})){const e={1:i(180),a:i(165),A:i(225),i:i(146),I:i(173)}[t[i(240)](i(157))];e&&(r=e),a=!0}o[i(200)][i(190)](t,{styles:i(179)})&&(r=function(t){const e=i;switch(t){case e(165):return e(226);case e(225):return e(139);default:return t}}(t[i(193)](i(179))),a=!0),!a&&e[i(138)](i(151))||o[i(198)][i(156)](i(151),r,e)}(r,a,n,i))})}),o[t(141)](t(220))[t(230)](e=>{const o=t;e.on(o(148),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;null==r||1===r?n[i(198)][i(235)](i(231),s):n[i(198)][i(156)](i(231),String(r),s)}),e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;r&&i(180)!==r?n[i(198)][i(159)](i(179),r,s):n[i(198)][i(207)](i(179),s)})})}[dt(233)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(218)][t(172)](d),i=this[t(237)](),s=this[t(161)]();o[t(168)][t(181)](e=>{const r=t,a=o[r(168)][r(210)][r(155)]();let c=!1;for(const t of a){if(r(166)!==t[r(157)]||r(227)===t[r(154)])continue;const n=o[r(201)](t[r(215)][r(211)]);for(const t of n[r(224)]())t.is(r(143),r(150))&&(!t[r(138)](r(186))&&o[r(217)][r(160)](t,r(186))&&(e[r(156)](r(186),s,t),c=!0),!t[r(138)](r(151))&&o[r(217)][r(160)](t,r(151))&&(e[r(156)](r(151),i,t),c=!0))}return c&&n[r(142)](e),c})}[dt(196)](){const t=dt,{editor:e}=this;e[t(218)][t(172)](d)[t(191)](e=>this[t(213)](e))}[dt(237)](){const t=dt;return this[t(182)][t(144)][t(172)](t(238))}[dt(161)](){const t=dt;return this[t(182)][t(144)][t(172)](t(206))}[dt(213)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(151)),s=t[n(240)](n(186)),r=Math[n(194)](e)+(s??1)-1;switch(i){case n(239):return function(t,e){const o=n;return String(t)[o(162)](e,"0")}(r,Math[n(205)](2,o));case n(165):case n(226):return wt(r,!1);case n(225):case n(139):return wt(r,!0);case n(146):return bt(r,!1);case n(173):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(170)](n[o(174)]())[o(176)](t=>t.is(o(143),"ol")&&t[o(158)](o(214)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(212)](97+t)+n,i=Math[o(194)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(197)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=219]})(t,e)}var xt=Ft;function Et(){var t=["7458552CHyHXO","28528VbKaNx","848640hOJAdB","requires","FootnotesProperties","488578CUJXmG","1169jkRWRS","392TXUbZS","pluginName","6IHlbxd","isPremiumPlugin","64680yLVxyn","1141641XwJckf","isOfficialPlugin","4955160JvgOBt"];return(Et=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(769823===parseInt(e(225))/1*(-parseInt(e(229))/2)+parseInt(e(232))/3+parseInt(e(227))/4*(parseInt(e(231))/5)+-parseInt(e(222))/6+parseInt(e(226))/7*(-parseInt(e(221))/8)+parseInt(e(220))/9+parseInt(e(219))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Tt extends t.Plugin{static get[xt(228)](){return xt(224)}static get[xt(223)](){return[mt,Ct]}static get[xt(233)](){return!0}static get[xt(230)](){return!0}}function Dt(t,e){var o=St();return(Dt=function(t,e){return o[t-=364]})(t,e)}function St(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(St=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(196866===-parseInt(e(366))/1+-parseInt(e(364))/2*(parseInt(e(369))/3)+-parseInt(e(368))/4+parseInt(e(367))/5*(parseInt(e(365))/6)+-parseInt(e(371))/7*(parseInt(e(370))/8)+parseInt(e(372))/9+parseInt(e(373))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,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:()=>G,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=347]})(t,e)}const a=r;function c(){const t=["add","delete","3342qAODIW","name","get","6429jBKEmY","1089315CAUIBQ","394yPgTmS","_trackedElements","from","values","1820742cEzUuD","$graveyard","_model","reset","84485loxulI","_getElementKey","length","type","clear","1910292fBBots","getChanges","50IXNNoB","has","createRangeOn","push","element","56hGAxQu","flat","rootName","root","elementName","_elementName","set","$text","getElementKey","slice","position","473788QcUrqg","430vntlia","attributes","nodeAfter","getItems","insert","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(308158===-parseInt(e(379))/1+parseInt(e(371))/2*(-parseInt(e(369))/3)+-parseInt(e(384))/4+parseInt(e(358))/5*(parseInt(e(366))/6)+parseInt(e(357))/7*(parseInt(e(391))/8)+parseInt(e(370))/9*(parseInt(e(386))/10)+parseInt(e(375))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(377)];[a(351)];[a(380)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(377)]=t,this[o(351)]=e[o(350)],this[o(380)]=e[o(354)]}[a(378)](){const t=a;this[t(372)][t(383)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(382)]&&e(353)!==i[e(367)]&&i[e(356)][e(360)]){const t=this[e(377)][e(388)](i[e(356)][e(360)]);for(const o of t[e(361)]()){if(!o.is(e(390),this[e(351)]))continue;const t=this[e(380)](o);n[e(387)](t)||n[e(352)](t,[]),n[e(368)](t)[e(389)](o)}}if(e(363)===i[e(382)]&&i[e(367)]===this[e(351)]){const t=this[e(380)]({getAttribute:t=>i[e(359)][e(368)](t)});o[e(364)](t)}}for(const[t,n]of this[e(372)])e(376)===n[e(349)][e(348)]&&o[e(364)](t);for(const t of o)this[e(372)][e(365)](t);for(const[t,o]of n)this[e(372)][e(352)](t,o[o[e(381)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(364)](s[0]),s[e(381)]>1?n[e(352)](t,s[e(355)](1)):n[e(365)](t),o[e(365)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(374)]())[e(347)](),moved:Array[e(373)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=212]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(655678===-parseInt(e(279))/1*(parseInt(e(271))/2)+parseInt(e(262))/3+parseInt(e(272))/4*(-parseInt(e(246))/5)+-parseInt(e(232))/6+-parseInt(e(250))/7*(-parseInt(e(254))/8)+-parseInt(e(223))/9*(-parseInt(e(273))/10)+parseInt(e(280))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(305)]=[];[u(236)]=null;[u(302)]=null;[u(291)];[u(218)];[u(264)];static get[u(233)](){return u(313)}static get[u(297)](){return!0}static get[u(213)](){return!0}constructor(t){const e=u;super(t),this[e(291)]=new l(this[e(308)][e(231)],{elementName:e(235),getElementKey:()=>e(277)}),this[e(218)]=new l(this[e(308)][e(231)],{elementName:e(307),getElementKey:t=>t[e(237)](e(229))}),this[e(264)]=new l(this[e(308)][e(231)],{elementName:e(274),getElementKey:t=>t[e(237)](e(229))})}[u(265)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(228)](e=>{const n=t,i=o[n(243)][n(294)][n(306)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(225)](e,i)&&(s=!0),this[n(263)](e,i)&&(s=!0),this[n(299)](e)&&(s=!0),this[n(278)](e)&&(s=!0),this[n(258)](e)&&(s=!0),s}),this[t(270)](o[t(243)],t(300),()=>{const e=t;o[e(304)]({isUndoable:!1},t=>{this[e(292)](t)})},{priority:t(303)}),this[t(270)](n,t(216),()=>{const e=t;this[e(305)]=[],this[e(291)][e(275)](),this[e(218)][e(275)](),this[e(264)][e(275)]()},{priority:t(252)})}[u(230)](){return this[u(236)]}[u(257)](t){const e=u;return this[e(305)][e(247)](e=>e.id===t)||null}[u(287)](){const t=u;return Array[t(284)](this[t(305)])}[u(298)](){return this[u(302)]}[u(221)](t){this[u(302)]=t}[u(220)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(305)][o(214)];i++)this[o(224)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(259)](o(235),{});return t[o(283)](n,e),this[o(236)]=n,n}[u(292)](t){const e=u;if(!this[e(305)][e(214)]||this[e(236)])return;const o=this[e(305)][0][e(248)][e(267)],n=this[e(296)](t,o);for(const o of this[e(305)])o[e(217)][e(276)]||t[e(286)](o[e(217)],n,e(222));this[e(220)](t)}[u(212)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(291)][o(306)](e);if(r[o(214)]&&(this[o(236)]=r[0]),i[o(214)])if(i[o(214)]>1||this[o(236)]&&i[o(311)](t=>t!==this[o(236)])){const e=t[o(259)](o(235),{}),s=[];this[o(236)]&&s[o(293)](this[o(236)]),s[o(293)](...i),t[o(286)](e,s[0],o(240));for(const n of s)t[o(309)](t[o(285)](n),t[o(261)](e,o(222))),t[o(310)](n);this[o(236)]=e,this[o(220)](t),n=!0}else this[o(236)]=i[0];if(s[o(214)]&&o(290)===this[o(236)]?.[o(267)][o(234)]){for(const e of this[o(305)])t[o(310)](e[o(248)]),n=!0;this[o(305)]=[],this[o(236)]=null}return n}[u(225)](t,e){const o=u;let n=!1;const i=this[o(308)][o(226)][o(242)](o(266)),{inserted:s,moved:r}=this[o(264)][o(306)](e);for(const e of[...r,...s]){const s=e[o(237)](o(229)),r=this[o(257)](s);r&&(r[o(217)]=e),p(t,i,e)&&(n=!0)}return n}[u(263)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(218)][o(306)](e);for(const e of i)this[o(255)](t,e)&&(n=!0);for(const e of s)this[o(269)](t,e)&&(n=!0);for(const e of r)this[o(288)](t,e)&&(n=!0);return n}[u(278)](t){const e=u;if(!this[e(236)])return!1;let o=!1;if(this[e(236)][e(227)]!==this[e(305)][e(214)]){const n=[];for(const t of this[e(236)][e(289)]()){const i=t[e(237)](e(229));this[e(257)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(310)](o)}const n=new Set,i=[];for(const t of this[e(236)][e(289)]()){const s=t[e(237)](e(229));n[e(244)](s)?(i[e(241)](t),o=!0):n[e(282)](s)}for(const o of i)t[e(310)](o);return this[e(236)][e(227)]||(t[e(310)](this[e(236)]),this[e(236)]=null,o=!0),o}[u(269)](t,e){const o=u;if(this[o(305)][o(247)](t=>t[o(248)]===e))return!1;let n=!1;const i=e[o(237)](o(229)),s=this[o(305)][o(215)](t=>t.id===i);-1!==s&&(t[o(310)](this[o(305)][s][o(248)]),this[o(305)][o(238)](s,1),n=!0);let r=this[o(236)]?function(t,e){const n=o;for(const o of t[n(289)]())if(o[n(237)](n(229))===e)return o;return null}(this[o(236)],i):null;r||(r=t[o(259)](o(274),{footnoteId:i}),this[o(236)]&&(t[o(286)](r,this[o(236)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(308)][o(231)],this[o(305)],e);this[o(305)][o(238)](c,0,a);let l=c;return-1!==s&&(l=Math[o(301)](c,s)),this[o(220)](t,l)&&(n=!0),n}[u(255)](t,e){const o=u,n=this[o(305)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(305)][n];return o(290)!==s[o(217)][o(267)][o(234)]&&(t[o(310)](s[o(217)]),i=!0),this[o(305)][o(238)](n,1),this[o(220)](t,n)&&(i=!0),i}[u(288)](t,e){const o=u,n=e[o(237)](o(229)),i=this[o(305)][o(215)](t=>t.id===n),s=this[o(305)][i];let r=!1;s[o(248)]=e,this[o(305)][o(238)](i,1);const a=h(this[o(308)][o(231)],this[o(305)],e);return this[o(305)][o(238)](a,0,s),this[o(220)](t,Math[o(301)](i,a))&&(r=!0),r}[u(224)](t,e){const o=u;if(!this[o(236)])return!1;const n=this[o(305)][e];let i;return i=this[o(302)]?this[o(302)]({footnote:n,container:this[o(236)],digits:String(this[o(305)][o(214)])[o(214)],value:e+1}):String(e+1),n[o(248)][o(237)](o(239))!=i&&(t[o(253)](o(239),i,n[o(248)]),!0)}[u(258)](t){const e=u;if(!this[e(236)]||this[e(305)][e(214)]<2)return!1;if(function(t,o){const n=e;if(t[n(214)]!==o[n(214)])return!1;for(let e=0;e<t[n(214)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(305)][e(251)](t=>t.id),Array[e(284)](this[e(236)][e(289)]())[e(251)](t=>t[e(237)](e(229)))))return!1;let o=!1;for(let n=0;n<this[e(305)][e(214)];n++){const i=this[e(305)][n],s=t[e(312)](i[e(217)]),r=t[e(261)](this[e(236)],n);s[e(219)](r)||(t[e(309)](t[e(256)](i[e(217)]),r),o=!0)}return o}[u(299)](t){const e=u;if(!this[e(305)][e(214)])return!1;const{model:o}=this[e(308)];let n=!1;for(let i=0;i<this[e(305)][e(214)]-1;i++){const s=this[e(305)][i],r=this[e(305)][i+1],a=o[e(312)](s[e(248)]),c=o[e(312)](r[e(248)]);e(281)===a[e(245)](c)&&(this[e(288)](t,s[e(248)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(227)])return!1;const i=n(e?249:268);return t[n(286)](t[n(259)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(214)])return 0;const i=t[n(312)](o);for(let o=0;o<e[n(214)];o++){const s=e[o],r=t[n(312)](s[n(248)]);if(n(240)===i[n(245)](r))return o}const s=o[n(267)];let r=-1;for(let t=e[n(214)]-1;t>=0;t--)if(e[t][n(248)][n(267)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(295)](),c=a[n(260)](s[n(234)]),l=a[c+1];if(l)for(let t=0;t<e[n(214)];t++)if(e[t][n(248)][n(267)][n(234)]===l)return t;return e[n(214)]}function m(){const t=["10838784dFrDcm","after","add","append","from","createRangeIn","insert","getFootnotes","_handleMovedFootnoteReference","getChildren","$graveyard","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","push","differ","getRootNames","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","change:data","min","_footnoteFormatter","low","enqueueChange","_footnotes","getChanges","footnoteRef","editor","move","remove","some","createPositionBefore","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","length","findIndex","set","definition","_footnoteRefsTracker","isEqual","_updateFootnotesCounters","setFootnoteFormatter","end","2237328MrDUrA","_updateFootnoteRefCounter","_handleFootnoteDefinitionsChanges","config","childCount","registerPostFixer","footnoteId","getFootnotesDefinitionsObjectElement","model","5107854NclYTz","pluginName","rootName","footnotesDefinitions","_footnotesDefinitions","getAttribute","splice","footnoteCounter","before","unshift","get","document","has","compareWith","5wxQOTT","find","reference","paragraph","91YNHZdR","map","high","setAttribute","657128iUlZNt","_handleRemoveFootnoteReferenceById","createRangeOn","getFootnote","_sortFootnoteDefinitions","createElement","indexOf","createPositionAt","1958943cDDkgz","_handleFootnoteReferencesChanges","_footnoteDefsTracker","init","footnotes.multiBlock","root","footnoteInlineContent","_handleInsertedFootnoteReference","listenTo","12DmiLhQ","5156108LyBWcX","50fzwDJi","footnoteDefinition","reset","parent","singleton","_handleFootnotesDefinitionsObjectSync","192184OckteC"];return(m=function(){return t})()}const g=y;function w(){const t=["string","261zjspjd","test","document","isBlock","2679477QDMVLR","isEnabled","FootnotesEditing","get","selection","createElement","change","getItems","plugins","8xpBGyU","3498486bHniUK","checkChild","157760XAwNDX","footnoteId","20302ZfreIL","end","refresh","length","isObject","footnoteRef","execute","editor","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","model","7642850dmXZzR","_getPositionToInsertFootnote","4366320QIUbre","43RCbvHf","insertObject","getFirstRange","1745080vRoZnU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(474450===parseInt(e(156))/1*(parseInt(e(142))/2)+-parseInt(e(128))/3+parseInt(e(137))/4*(parseInt(e(122))/5)+-parseInt(e(138))/6+parseInt(e(155))/7+-parseInt(e(140))/8*(parseInt(e(124))/9)+parseInt(e(153))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(144)](){const t=g,e=this[t(149)][t(152)][t(126)][t(132)],o=this[t(154)](e);this[t(129)]=!!o}[g(148)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(126)],r=this[e(154)](s);if(!r)return;const a=o[e(136)][e(131)](e(130)),c=t?.[e(141)]??(0,i.uid)();!function(t){const o=e;return o(123)==typeof t&&t[o(145)]>0&&!/\s/[o(125)](t)&&!/^\d/[o(125)](t)}(c)?(0,i.logWarning)(e(151)):(n[e(134)](t=>{const o=e,i=t[o(133)](o(147),{footnoteId:c});n[o(157)](i,r,null)}),a[e(150)](c))}[g(154)](t){const e=g,{model:o}=this[e(149)],{schema:n}=o,i=t[e(121)]();for(const t of i[e(135)]())if(n[e(127)](t)||n[e(146)](t))return null;const s=i[e(143)];return n[e(139)](s,e(147))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765152e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(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 D=o(331);const S=A;function A(t,e){const o=P();return(A=function(t,e){return o[t-=111]})(t,e)}function P(){const t=["drop","selection","footnoteRef","editor","get","FootnotesClipboard","getSelectedBlocks","380osOmYr","createElement","create","outputTransformation","end","footnotes.multiBlock","createRangeIn","pluginName","insert","application/ckeditor5-footnotes","toView","_defineClipboardIntegration","reduce","append","_handlePasteFootnotesDefinitions","length","contentInsertion","find","remove","toData","push","isOfficialPlugin","15193780SJhreg","footnotesDefinitions","520971upFJQr","editing","getFootnotesDefinitionsObjectElement","2410050DLedMm","getFootnote","22841kgiRdT","element","setData","change","1616ixkMOH","getData","footnoteId","from","getRanges","data","51416wRDPLf","init","isPremiumPlugin","includes","toModel","document","getFootnotes","add","requires","clipboardInput","3006288CRvuoN","_handleCopyFootnotesDefinitions","footnoteInlineContent","getFirstRange","method","root","setAttribute","htmlProcessor","entries","parse","flatMap","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","15dqKnVq","dataTransfer","content","definition","listenTo","sourceEditorId","config","342586oFkpYA","stringify","getAttribute"];return(P=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(527363===-parseInt(e(168))/1+-parseInt(e(134))/2*(parseInt(e(127))/3)+-parseInt(e(183))/4*(-parseInt(e(144))/5)+parseInt(e(171))/6+parseInt(e(173))/7*(-parseInt(e(177))/8)+-parseInt(e(114))/9+parseInt(e(166))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class L extends t.Plugin{static get[S(151)](){return S(142)}static get[S(112)](){return[v,D.ClipboardPipeline]}static get[S(165)](){return!0}static get[S(185)](){return!0}[S(184)](){this[S(155)]()}[S(155)](){const t=S;this[t(115)](),this[t(158)]()}[S(115)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](D.ClipboardPipeline),s=o[t(141)](d);this[t(131)](i,t(147),(o,i)=>{const r=t,a=_(n[r(150)](i[r(129)]));if(!a[r(159)])return;const c=s[r(189)](),l=a[r(156)]((t,o)=>{const n=r,i=c[n(161)](t=>t.id===o);if(i){const o=e[n(182)][n(154)](i[n(130)],{isClipboardPipeline:!0}),s=e[n(182)][n(121)][n(163)](o);t[i.id]=s}return t},Object[r(146)](null));i[r(128)][r(175)](r(153),JSON[r(135)](l))})}[S(158)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](D.ClipboardPipeline),a=n[t(141)](d),c=e[t(133)][t(141)](t(149));let l=null;this[t(131)](s[t(188)],t(113),(e,o)=>{const n=t,i=o[n(128)][n(178)](n(153));l=i?JSON[n(123)](i):null}),this[t(131)](r,t(160),(n,s)=>{const r=t,u=s[r(132)]===this[r(140)].id;u&&r(137)===s[r(118)]||o[r(176)](t=>{const n=r;let f=a[n(170)]();const d=!!f&&Array[n(180)](o[n(188)][n(138)][n(143)]())[n(186)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(150)](e))n.is(o(174),o(167))&&i[o(164)](n);for(const e of i)t[o(162)](e)}(t,s[n(129)]),!l)return;const{selection:p}=o[n(188)],h=p[n(117)]()[n(119)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(150)](e))if(n.is(o(174),o(167)))return n;return null}(t,s[n(129)]),f||=a[n(126)](t,h));const m=Array[n(180)](p[n(181)]())[n(124)](_),g=function(t,e,o){const s=n,r=Object[s(146)](null);for(const{item:n}of t[s(150)](e))if(n.is(s(174),s(139))){const e=n[s(136)](s(179));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(120)](s(179),r[e],n)}return r}(t,s[n(129)],t=>{const e=n;return!u||!!a[e(172)](t)&&!m[e(186)](t)});for(const[o,i]of Object[n(122)](l)){const s=g[o]||o,r=t[n(145)](n(125),{footnoteId:s}),a=e[n(182)][n(121)][n(154)](i);let l;if(c)l=e[n(182)][n(187)](a,r);else{l=t[n(145)](n(116));const o=e[n(182)][n(187)](a,l);t[n(152)](o,l)}t[n(157)](l,r),t[n(152)](r,f,n(148))}l=null})})}}function _(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(174),e(139))&&o[e(111)](n[e(136)](e(179)));return Array[e(180)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=z();R()(J.A,X);J.A&&J.A.locals&&J.A.locals;class q 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,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["34635807ynWCcQ","pluginName","requires","isPremiumPlugin","8234100jwiyvb","1044127IWtDnF","614464iowmqQ","1414FCYqwX","Footnotes","2MOOulP","27606TsrTUv","2507200eKpJmL","3653601NRJopV","isOfficialPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=167]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(830009===parseInt(e(176))/1+-parseInt(e(180))/2*(-parseInt(e(169))/3)+parseInt(e(177))/4+parseInt(e(175))/5+-parseInt(e(167))/6*(-parseInt(e(178))/7)+-parseInt(e(168))/8+-parseInt(e(171))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Y(172)](){return Y(179)}static get[Y(173)](){return[v,L,q]}static get[Y(170)](){return!0}static get[Y(174)](){return!0}}function tt(){const t=["decimal","10yTFJcW","decimal-leading-zero","888WZpogb","67075VPxNNE","upper-roman","lower-roman","71832YJcbOQ","upper-alpha","2hzULph","135885zGnUdm","1834857rtiAdV","lower-alpha","30331vCneXy","19115217yWtlmR","3612305civPks","6OTpqWZ","upper-latin","lower-latin"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(460778===parseInt(e(124))/1*(parseInt(e(129))/2)+parseInt(e(130))/3+parseInt(e(127))/4+-parseInt(e(135))/5*(parseInt(e(136))/6)+-parseInt(e(133))/7*(parseInt(e(123))/8)+-parseInt(e(131))/9*(parseInt(e(121))/10)+parseInt(e(134))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(120),et(122),et(138),et(137),et(132),et(128),et(126),et(125)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=261]})(t,e)}function rt(){const t=["plugins","298049wvisPe","change","getAttribute","refresh","getFootnotesDefinitionsObjectElement","setAttribute","isEnabled","2HbMFHk","1954998xPcFrA","272715DLvqXi","126468tfetBF","footnotesListStyle","21zJNsfl","includes","710DmasjW","value","execute","8417431nJsgdt","get","_updateFootnotesCounters","50EIYCVF","model","444kgBUmu","480824HZdMCP"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(215897===-parseInt(e(279))/1*(-parseInt(e(261))/2)+parseInt(e(263))/3+parseInt(e(276))/4*(parseInt(e(268))/5)+parseInt(e(262))/6+parseInt(e(266))/7*(parseInt(e(277))/8)+-parseInt(e(264))/9*(-parseInt(e(274))/10)+-parseInt(e(271))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(282)](){const t=it,{editor:e}=this,o=e[t(278)][t(272)](d)[t(283)]();this[t(285)]=!!o,this[t(269)]=o?.[t(281)](t(265))??null}[it(270)]({value:t}){const e=it,{editor:o}=this,n=o[e(278)][e(272)](d),i=n[e(283)]();i&&nt[e(267)](t)&&o[e(275)][e(280)](o=>{const s=e;o[s(284)](s(265),t,i),n[s(273)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(171042===-parseInt(e(237))/1+-parseInt(e(236))/2*(-parseInt(e(226))/3)+parseInt(e(223))/4+parseInt(e(217))/5+-parseInt(e(214))/6*(parseInt(e(221))/7)+-parseInt(e(233))/8+-parseInt(e(230))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(229)](){const t=ct,{editor:e}=this,o=e[t(232)][t(227)](d)[t(224)]();this[t(234)]=!!o,this[t(218)]=o?.[t(220)](t(231))??null}[ct(216)]({value:t}){const e=ct,{editor:o}=this,n=o[e(232)][e(227)](d),i=n[e(224)]();i&&Number[e(219)](t)&&o[e(225)][e(235)](o=>{const s=e;o[s(215)](s(231),t,i),n[s(222)](o)})}}function ft(){const t=["2610agEMhx","refresh","1746wQSMLY","footnotesListStart","plugins","587480YNRTTV","isEnabled","change","2ZHRYUT","281775UtpbBV","18qprAcF","setAttribute","execute","1056825jYaHNL","value","isInteger","getAttribute","135443ICErvs","_updateFootnotesCounters","1222268gKWlnm","getFootnotesDefinitionsObjectElement","model","50199SsZsHJ","get"];return(ft=function(){return t})()}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=138]})(t,e)}function ht(){const t=["downcast","toViewElement","element:ol","8544216MuLckH","getItems","upper-alpha","lower-latin","$text","isPremiumPlugin","init","add","start","isNaN","_definePostfixer","isOfficialPlugin","removeAttribute","564heScHV","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","getAttribute","hasAttribute","upper-latin","upcast","for","_updateFootnotesCounters","element","config","626095uALuTN","lower-roman","toUpperCase","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotesDefinitions","footnotesListStyle","187vbvjVa","parseInt","name","getChanges","setAttribute","type","hasClass","setStyle","checkAttribute","_getDefaultStartIndex","padStart","FootnotesPropertiesEditing","footnotesStart","lower-alpha","insert","requires","document","define","from","model","get","upper-roman","getChildren","viewItem","find","427884BfPxXu","extend","list-style-type","decimal","registerPostFixer","editor","3148MEYZdI","parent","3QwTpaA","footnotesListStart","9LjlKZc","761BApDtQ","_defineConverters","consume","setFootnoteFormatter","commands","getStyle","floor","footnotesStyle","_defineFormatter","toLowerCase","writer","pluginName","consumable","createRangeOn","212484llZJzi","attribute:footnotesListStyle:footnotesDefinitions","item","max","footnotes.footnotesProperties.defaultStartIndex","removeStyle","10661650MiLpOi","91483CaWgML","differ","nodeAfter","fromCharCode","_formatFootnoteListValue","footnotes-list","position","mapper","schema","plugins","_defineSchema"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(970375===-parseInt(e(188))/1*(-parseInt(e(183))/2)+parseInt(e(185))/3*(-parseInt(e(202))/4)+parseInt(e(145))/5+parseInt(e(236))/6*(parseInt(e(209))/7)+parseInt(e(223))/8*(-parseInt(e(187))/9)+-parseInt(e(208))/10+-parseInt(e(152))/11*(-parseInt(e(177))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(199)](){return dt(163)}static get[dt(167)](){return[v,d]}static get[dt(234)](){return!0}static get[dt(228)](){return!0}[dt(229)](){const t=dt,{editor:e}=this;e[t(144)][t(169)](t(238),t(180)),e[t(144)][t(169)](t(206),1),e[t(192)][t(230)](t(195),new at(e)),e[t(192)][t(230)](t(164),new ut(e)),this[t(219)](),this[t(189)](),this[t(196)](),this[t(233)]()}[dt(219)](){const t=dt,{editor:e}=this,{schema:o}=e[t(171)];o[t(178)](t(150),{allowAttributes:[t(151),t(186)]})}[dt(189)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(140))[t(230)](e=>{const o=t;e.on(o(222),(t,e,n)=>{const s=o,r=e[s(175)],a=e[s(149)]?.[s(184)];r[s(158)](s(214))&&a?.is(s(143),s(150))&&(function(t,e,o,n){const i=s;if(!n[i(160)](e,i(186)))return;let r=1;const a=o[i(200)][i(190)](t,{attributes:i(231)});if(a){const e=Number[i(153)](t[i(240)](i(231)),10);Number[i(232)](e)||(r=e)}!a&&e[i(138)](i(186))||o[i(198)][i(156)](i(186),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(160)](e,i(151)))return;let r=i(180),a=!1;if(o[i(200)][i(190)](t,{attributes:i(157)})){const e={1:i(180),a:i(165),A:i(225),i:i(146),I:i(173)}[t[i(240)](i(157))];e&&(r=e),a=!0}o[i(200)][i(190)](t,{styles:i(179)})&&(r=function(t){const e=i;switch(t){case e(165):return e(226);case e(225):return e(139);default:return t}}(t[i(193)](i(179))),a=!0),!a&&e[i(138)](i(151))||o[i(198)][i(156)](i(151),r,e)}(r,a,n,i))})}),o[t(141)](t(220))[t(230)](e=>{const o=t;e.on(o(148),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;null==r||1===r?n[i(198)][i(235)](i(231),s):n[i(198)][i(156)](i(231),String(r),s)}),e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;r&&i(180)!==r?n[i(198)][i(159)](i(179),r,s):n[i(198)][i(207)](i(179),s)})})}[dt(233)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(218)][t(172)](d),i=this[t(237)](),s=this[t(161)]();o[t(168)][t(181)](e=>{const r=t,a=o[r(168)][r(210)][r(155)]();let c=!1;for(const t of a){if(r(166)!==t[r(157)]||r(227)===t[r(154)])continue;const n=o[r(201)](t[r(215)][r(211)]);for(const t of n[r(224)]())t.is(r(143),r(150))&&(!t[r(138)](r(186))&&o[r(217)][r(160)](t,r(186))&&(e[r(156)](r(186),s,t),c=!0),!t[r(138)](r(151))&&o[r(217)][r(160)](t,r(151))&&(e[r(156)](r(151),i,t),c=!0))}return c&&n[r(142)](e),c})}[dt(196)](){const t=dt,{editor:e}=this;e[t(218)][t(172)](d)[t(191)](e=>this[t(213)](e))}[dt(237)](){const t=dt;return this[t(182)][t(144)][t(172)](t(238))}[dt(161)](){const t=dt;return this[t(182)][t(144)][t(172)](t(206))}[dt(213)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(151)),s=t[n(240)](n(186)),r=Math[n(194)](e)+(s??1)-1;switch(i){case n(239):return function(t,e){const o=n;return String(t)[o(162)](e,"0")}(r,Math[n(205)](2,o));case n(165):case n(226):return wt(r,!1);case n(225):case n(139):return wt(r,!0);case n(146):return bt(r,!1);case n(173):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(170)](n[o(174)]())[o(176)](t=>t.is(o(143),"ol")&&t[o(158)](o(214)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(212)](97+t)+n,i=Math[o(194)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(197)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=219]})(t,e)}var xt=Ft;function Et(){var t=["7458552CHyHXO","28528VbKaNx","848640hOJAdB","requires","FootnotesProperties","488578CUJXmG","1169jkRWRS","392TXUbZS","pluginName","6IHlbxd","isPremiumPlugin","64680yLVxyn","1141641XwJckf","isOfficialPlugin","4955160JvgOBt"];return(Et=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(769823===parseInt(e(225))/1*(-parseInt(e(229))/2)+parseInt(e(232))/3+parseInt(e(227))/4*(parseInt(e(231))/5)+-parseInt(e(222))/6+parseInt(e(226))/7*(-parseInt(e(221))/8)+parseInt(e(220))/9+parseInt(e(219))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Tt extends t.Plugin{static get[xt(228)](){return xt(224)}static get[xt(223)](){return[mt,Ct]}static get[xt(233)](){return!0}static get[xt(230)](){return!0}}function Dt(t,e){var o=St();return(Dt=function(t,e){return o[t-=364]})(t,e)}function St(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(St=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(196866===-parseInt(e(366))/1+-parseInt(e(364))/2*(parseInt(e(369))/3)+-parseInt(e(368))/4+parseInt(e(367))/5*(parseInt(e(365))/6)+-parseInt(e(371))/7*(parseInt(e(370))/8)+parseInt(e(372))/9+parseInt(e(373))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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 _0xdc1d92,Command as _0x2922a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x456aae,isWidget as _0x492a9c,toWidgetEditable as _0x232f1e,WidgetToolbarRepository as _0x41e8fb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1d1e30,logWarning as _0x4e11b0,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2f5e72,ClickObserver as _0x297110}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3ca5ad}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4c975f,ButtonView as _0x3c7b9c,View as _0x5addd1,ViewCollection as _0x5a99c4,FocusCycler as _0x69f264,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x2f927b,BalloonPanelView as _0x354bcb,createDropdown as _0x229e8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5bc017,IconListStyleDecimal as _0x54e97f,IconListStyleDecimalLeadingZero as _0x3a044a,IconListStyleLowerRoman as _0x234538,IconListStyleUpperRoman as _0x5edc10,IconListStyleLowerLatin as _0x3d019f,IconListStyleUpperLatin as _0x1a86d1}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x10f0e3,_0x1623da){this['_model']=_0x10f0e3,this['_elementName']=_0x1623da['elementName'],this['_getElementKey']=_0x1623da['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x111fed){const _0x43962f=new Set(),_0x359ea1=new Map();for(const _0x1fdaac of _0x111fed){if('insert'===_0x1fdaac['type']&&'$text'!==_0x1fdaac['name']&&_0x1fdaac['position']['nodeAfter']){const _0x1fd7a7=this['_model']['createRangeOn'](_0x1fdaac['position']['nodeAfter']);for(const _0x495fd6 of _0x1fd7a7['getItems']()){if(!_0x495fd6['is']('element',this['_elementName']))continue;const _0x597e6e=this['_getElementKey'](_0x495fd6);_0x359ea1['has'](_0x597e6e)||_0x359ea1['set'](_0x597e6e,[]),_0x359ea1['get'](_0x597e6e)['push'](_0x495fd6);}}if('remove'===_0x1fdaac['type']&&_0x1fdaac['name']===this['_elementName']){const _0x255d1b=this['_getElementKey']({'getAttribute':_0x14ef13=>_0x1fdaac['attributes']['get'](_0x14ef13)});_0x43962f['add'](_0x255d1b);}}for(const [_0x122a2f,_0x2121b3]of this['_trackedElements'])'$graveyard'===_0x2121b3['root']['rootName']&&_0x43962f['add'](_0x122a2f);for(const _0xf8ae56 of _0x43962f)this['_trackedElements']['delete'](_0xf8ae56);for(const [_0x42bdda,_0x358d54]of _0x359ea1)this['_trackedElements']['set'](_0x42bdda,_0x358d54[_0x358d54['length']-0x1]);const _0x160b50=new Set();for(const [_0x40a30f,_0x1aa0f7]of _0x359ea1)_0x43962f['has'](_0x40a30f)&&(_0x160b50['add'](_0x1aa0f7[0x0]),_0x1aa0f7['length']>0x1?_0x359ea1['set'](_0x40a30f,_0x1aa0f7['slice'](0x1)):_0x359ea1['delete'](_0x40a30f),_0x43962f['delete'](_0x40a30f));return{'removed':Array['from'](_0x43962f),'inserted':Array['from'](_0x359ea1['values']())['flat'](),'moved':Array['from'](_0x160b50)};}}class f extends _0xdc1d92{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40d301){super(_0x40d301),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x41e276=>_0x41e276['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4992b6=>_0x4992b6['getAttribute']('footnoteId')});}['init'](){const {editor:_0x16305c}=this,{model:_0x53bb63,data:_0x5b5ec9}=_0x16305c;_0x53bb63['document']['registerPostFixer'](_0x34f223=>{const _0x2285c8=_0x53bb63['document']['differ']['getChanges']();let _0x28124e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x34f223,_0x2285c8)&&(_0x28124e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x34f223,_0x2285c8)&&(_0x28124e=!0x0),this['_handleFootnoteReferencesChanges'](_0x34f223,_0x2285c8)&&(_0x28124e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x34f223)&&(_0x28124e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x34f223)&&(_0x28124e=!0x0),this['_sortFootnoteDefinitions'](_0x34f223)&&(_0x28124e=!0x0),_0x28124e;}),this['listenTo'](_0x53bb63['document'],'change:data',()=>{_0x53bb63['enqueueChange']({'isUndoable':!0x1},_0x3a4555=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x3a4555);});},{'priority':'low'}),this['listenTo'](_0x5b5ec9,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2a302a){return this['_footnotes']['find'](_0x5e85bf=>_0x5e85bf['id']===_0x2a302a)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x540e0c){this['_footnoteFormatter']=_0x540e0c;}['_updateFootnotesCounters'](_0x36ba89,_0x1ab7d7=0x0){let _0x561ce6=!0x1;for(let _0x372218=_0x1ab7d7;_0x372218<this['_footnotes']['length'];_0x372218++)this['_updateFootnoteRefCounter'](_0x36ba89,_0x372218)&&(_0x561ce6=!0x0);return _0x561ce6;}['_insertEmptyFootnotesDefinitionsContainer'](_0x442c64,_0x5f0605){const _0x6e6441=_0x442c64['createElement']('footnotesDefinitions',{});return _0x442c64['append'](_0x6e6441,_0x5f0605),this['_footnotesDefinitions']=_0x6e6441,_0x6e6441;}['_ensureFootnotesDefinitionsContainerExists'](_0x32ee25){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x10e051=this['_footnotes'][0x0]['reference']['root'],_0x5ab70a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x32ee25,_0x10e051);for(const _0x25a1a7 of this['_footnotes'])_0x25a1a7['definition']['parent']||_0x32ee25['insert'](_0x25a1a7['definition'],_0x5ab70a,'end');this['_updateFootnotesCounters'](_0x32ee25);}['_handleFootnotesDefinitionsObjectChanges'](_0x34aa03,_0x1a22c7){let _0x178d8f=!0x1;const {inserted:_0x4308d3,removed:_0x2781ef,moved:_0x4e80b3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1a22c7);if(_0x4e80b3['length']&&(this['_footnotesDefinitions']=_0x4e80b3[0x0]),_0x4308d3['length']){if(_0x4308d3['length']>0x1||this['_footnotesDefinitions']&&_0x4308d3['some'](_0x313a6b=>_0x313a6b!==this['_footnotesDefinitions'])){const _0x4d5c31=_0x34aa03['createElement']('footnotesDefinitions',{}),_0x4d5c54=[];this['_footnotesDefinitions']&&_0x4d5c54['push'](this['_footnotesDefinitions']),_0x4d5c54['push'](..._0x4308d3),_0x34aa03['insert'](_0x4d5c31,_0x4d5c54[0x0],'before');for(const _0xad2b90 of _0x4d5c54)_0x34aa03['move'](_0x34aa03['createRangeIn'](_0xad2b90),_0x34aa03['createPositionAt'](_0x4d5c31,'end')),_0x34aa03['remove'](_0xad2b90);this['_footnotesDefinitions']=_0x4d5c31,this['_updateFootnotesCounters'](_0x34aa03),_0x178d8f=!0x0;}else this['_footnotesDefinitions']=_0x4308d3[0x0];}if(_0x2781ef['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x465816 of this['_footnotes'])_0x34aa03['remove'](_0x465816['reference']),_0x178d8f=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x178d8f;}['_handleFootnoteDefinitionsChanges'](_0x4557b4,_0x53d3b8){let _0x54828e=!0x1;const _0x35fd41=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4043e6,moved:_0x4b1b8b}=this['_footnoteDefsTracker']['getChanges'](_0x53d3b8);for(const _0x5aee67 of[..._0x4b1b8b,..._0x4043e6]){const _0x7dca93=_0x5aee67['getAttribute']('footnoteId'),_0x23293d=this['getFootnote'](_0x7dca93);_0x23293d&&(_0x23293d['definition']=_0x5aee67),_(_0x4557b4,_0x35fd41,_0x5aee67)&&(_0x54828e=!0x0);}return _0x54828e;}['_handleFootnoteReferencesChanges'](_0xcc0040,_0x44ee6c){let _0x4def7b=!0x1;const {removed:_0x58d9c7,inserted:_0x289c4d,moved:_0x3a9a45}=this['_footnoteRefsTracker']['getChanges'](_0x44ee6c);for(const _0x1daada of _0x58d9c7)this['_handleRemoveFootnoteReferenceById'](_0xcc0040,_0x1daada)&&(_0x4def7b=!0x0);for(const _0x2f0914 of _0x289c4d)this['_handleInsertedFootnoteReference'](_0xcc0040,_0x2f0914)&&(_0x4def7b=!0x0);for(const _0x5998c1 of _0x3a9a45)this['_handleMovedFootnoteReference'](_0xcc0040,_0x5998c1)&&(_0x4def7b=!0x0);return _0x4def7b;}['_handleFootnotesDefinitionsObjectSync'](_0x1bafae){if(!this['_footnotesDefinitions'])return!0x1;let _0x46b61c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x58f234=[];for(const _0x138699 of this['_footnotesDefinitions']['getChildren']()){const _0x921518=_0x138699['getAttribute']('footnoteId');this['getFootnote'](_0x921518)||(_0x58f234['unshift'](_0x138699),_0x46b61c=!0x0);}for(const _0x45dbe3 of _0x58f234)_0x1bafae['remove'](_0x45dbe3);}const _0x469b23=new Set(),_0x43312b=[];for(const _0x4700f7 of this['_footnotesDefinitions']['getChildren']()){const _0x2d6c94=_0x4700f7['getAttribute']('footnoteId');_0x469b23['has'](_0x2d6c94)?(_0x43312b['unshift'](_0x4700f7),_0x46b61c=!0x0):_0x469b23['add'](_0x2d6c94);}for(const _0x101234 of _0x43312b)_0x1bafae['remove'](_0x101234);return this['_footnotesDefinitions']['childCount']||(_0x1bafae['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x46b61c=!0x0),_0x46b61c;}['_handleInsertedFootnoteReference'](_0x5c8cb9,_0x485da3){if(this['_footnotes']['find'](_0x596a3f=>_0x596a3f['reference']===_0x485da3))return!0x1;let _0x41e0bb=!0x1;const _0x185bd3=_0x485da3['getAttribute']('footnoteId'),_0x4adc98=this['_footnotes']['findIndex'](_0x43e9f9=>_0x43e9f9['id']===_0x185bd3);-0x1!==_0x4adc98&&(_0x5c8cb9['remove'](this['_footnotes'][_0x4adc98]['reference']),this['_footnotes']['splice'](_0x4adc98,0x1),_0x41e0bb=!0x0);let _0x41e8ea=this['_footnotesDefinitions']?function(_0x4538ce,_0x1b5545){for(const _0x4114c0 of _0x4538ce['getChildren']())if(_0x4114c0['getAttribute']('footnoteId')===_0x1b5545)return _0x4114c0;return null;}(this['_footnotesDefinitions'],_0x185bd3):null;_0x41e8ea||(_0x41e8ea=_0x5c8cb9['createElement']('footnoteDefinition',{'footnoteId':_0x185bd3}),this['_footnotesDefinitions']&&(_0x5c8cb9['insert'](_0x41e8ea,this['_footnotesDefinitions'],'end'),_0x41e0bb=!0x0));const _0x33d22e={'id':_0x185bd3,'reference':_0x485da3,'definition':_0x41e8ea},_0x3822d2=I(this['editor']['model'],this['_footnotes'],_0x485da3);this['_footnotes']['splice'](_0x3822d2,0x0,_0x33d22e);let _0x3e61cf=_0x3822d2;return-0x1!==_0x4adc98&&(_0x3e61cf=Math['min'](_0x3822d2,_0x4adc98)),this['_updateFootnotesCounters'](_0x5c8cb9,_0x3e61cf)&&(_0x41e0bb=!0x0),_0x41e0bb;}['_handleRemoveFootnoteReferenceById'](_0x5d82b9,_0xac17cb){const _0x392f7f=this['_footnotes']['findIndex'](_0x3efe32=>_0x3efe32['id']===_0xac17cb);if(-0x1===_0x392f7f)return!0x1;let _0x1ed507=!0x1;const _0x1e704c=this['_footnotes'][_0x392f7f];return'$graveyard'!==_0x1e704c['definition']['root']['rootName']&&(_0x5d82b9['remove'](_0x1e704c['definition']),_0x1ed507=!0x0),this['_footnotes']['splice'](_0x392f7f,0x1),this['_updateFootnotesCounters'](_0x5d82b9,_0x392f7f)&&(_0x1ed507=!0x0),_0x1ed507;}['_handleMovedFootnoteReference'](_0x5ef11e,_0x1433ba){const _0x476ecb=_0x1433ba['getAttribute']('footnoteId'),_0x2c500b=this['_footnotes']['findIndex'](_0x4686bb=>_0x4686bb['id']===_0x476ecb),_0x27bc09=this['_footnotes'][_0x2c500b];let _0x334b5c=!0x1;_0x27bc09['reference']=_0x1433ba,this['_footnotes']['splice'](_0x2c500b,0x1);const _0x41ecce=I(this['editor']['model'],this['_footnotes'],_0x1433ba);return this['_footnotes']['splice'](_0x41ecce,0x0,_0x27bc09),this['_updateFootnotesCounters'](_0x5ef11e,Math['min'](_0x2c500b,_0x41ecce))&&(_0x334b5c=!0x0),_0x334b5c;}['_updateFootnoteRefCounter'](_0x28f40b,_0x3386fc){if(!this['_footnotesDefinitions'])return!0x1;const _0x44ca44=this['_footnotes'][_0x3386fc];let _0x15e45b;return _0x15e45b=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x44ca44,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3386fc+0x1}):String(_0x3386fc+0x1),_0x44ca44['reference']['getAttribute']('footnoteCounter')!=_0x15e45b&&(_0x28f40b['setAttribute']('footnoteCounter',_0x15e45b,_0x44ca44['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x29b688){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4a9fd2,_0x2538b7){if(_0x4a9fd2['length']!==_0x2538b7['length'])return!0x1;for(let _0x487066=0x0;_0x487066<_0x4a9fd2['length'];_0x487066++)if(_0x4a9fd2[_0x487066]!==_0x2538b7[_0x487066])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12a948=>_0x12a948['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5e85b6=>_0x5e85b6['getAttribute']('footnoteId'))))return!0x1;let _0xce6d42=!0x1;for(let _0xd7d66f=0x0;_0xd7d66f<this['_footnotes']['length'];_0xd7d66f++){const _0x14c661=this['_footnotes'][_0xd7d66f],_0x417049=_0x29b688['createPositionBefore'](_0x14c661['definition']),_0x5505f3=_0x29b688['createPositionAt'](this['_footnotesDefinitions'],_0xd7d66f);_0x417049['isEqual'](_0x5505f3)||(_0x29b688['move'](_0x29b688['createRangeOn'](_0x14c661['definition']),_0x5505f3),_0xce6d42=!0x0);}return _0xce6d42;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4c9d44){if(!this['_footnotes']['length'])return!0x1;const {model:_0x18831f}=this['editor'];let _0x10e9f3=!0x1;for(let _0x16cf5b=0x0;_0x16cf5b<this['_footnotes']['length']-0x1;_0x16cf5b++){const _0x54b964=this['_footnotes'][_0x16cf5b],_0x2b307d=this['_footnotes'][_0x16cf5b+0x1],_0x11b8a5=_0x18831f['createPositionBefore'](_0x54b964['reference']),_0x5e34c8=_0x18831f['createPositionBefore'](_0x2b307d['reference']);'after'===_0x11b8a5['compareWith'](_0x5e34c8)&&(this['_handleMovedFootnoteReference'](_0x4c9d44,_0x54b964['reference']),_0x16cf5b=-0x1,_0x10e9f3=!0x0);}return _0x10e9f3;}}function _(_0x2e0078,_0xd97fab,_0x346f41){if(_0x346f41['childCount'])return!0x1;const _0x14fc3e=_0xd97fab?'paragraph':'footnoteInlineContent';return _0x2e0078['insert'](_0x2e0078['createElement'](_0x14fc3e),_0x346f41),!0x0;}function I(_0x5c9e45,_0x13b6c0,_0x2ecf78){if(0x0===_0x13b6c0['length'])return 0x0;const _0x4e9619=_0x5c9e45['createPositionBefore'](_0x2ecf78);for(let _0x45fb98=0x0;_0x45fb98<_0x13b6c0['length'];_0x45fb98++){const _0x1d0f30=_0x13b6c0[_0x45fb98],_0x36ab02=_0x5c9e45['createPositionBefore'](_0x1d0f30['reference']);if('before'===_0x4e9619['compareWith'](_0x36ab02))return _0x45fb98;}const _0x42370a=_0x2ecf78['root'];let _0x4df7d2=-0x1;for(let _0x428a0a=_0x13b6c0['length']-0x1;_0x428a0a>=0x0;_0x428a0a--)if(_0x13b6c0[_0x428a0a]['reference']['root']===_0x42370a){_0x4df7d2=_0x428a0a;break;}if(-0x1!==_0x4df7d2)return _0x4df7d2+0x1;const _0x48fc4e=_0x5c9e45['document']['getRootNames'](),_0x1a8d5a=_0x48fc4e['indexOf'](_0x42370a['rootName']),_0x5d0850=_0x48fc4e[_0x1a8d5a+0x1];if(_0x5d0850){for(let _0x54d041=0x0;_0x54d041<_0x13b6c0['length'];_0x54d041++)if(_0x13b6c0[_0x54d041]['reference']['root']['rootName']===_0x5d0850)return _0x54d041;}return _0x13b6c0['length'];}class m extends _0x2922a0{['refresh'](){const _0x727bb5=this['editor']['model']['document']['selection'],_0x2dba92=this['_getPositionToInsertFootnote'](_0x727bb5);this['isEnabled']=!!_0x2dba92;}['execute'](_0x5cffae){const {editor:_0x599317}=this,{model:_0x4b15de}=_0x599317,{selection:_0x56c8a5}=_0x4b15de['document'],_0x311555=this['_getPositionToInsertFootnote'](_0x56c8a5);if(!_0x311555)return;const _0x14be06=_0x599317['plugins']['get']('FootnotesEditing'),_0x299ef4=_0x5cffae?.['footnoteId']??_0x1d1e30();!function(_0x23ab2a){return'string'==typeof _0x23ab2a&&_0x23ab2a['length']>0x0&&!/\s/['test'](_0x23ab2a)&&!/^\d/['test'](_0x23ab2a);}(_0x299ef4)?_0x4e11b0('insert-footnote-command-executed-with-invalid-id'):(_0x4b15de['change'](_0x5fb253=>{const _0x502287=_0x5fb253['createElement']('footnoteRef',{'footnoteId':_0x299ef4});_0x4b15de['insertObject'](_0x502287,_0x311555,null);}),_0x14be06['_moveSelectionToFootnoteDefinition'](_0x299ef4));}['_getPositionToInsertFootnote'](_0x181ea){const {model:_0x2d7fd7}=this['editor'],{schema:_0xe47f83}=_0x2d7fd7,_0x48d763=_0x181ea['getFirstRange']();for(const _0x4410d8 of _0x48d763['getItems']())if(_0xe47f83['isBlock'](_0x4410d8)||_0xe47f83['isObject'](_0x4410d8))return null;const _0x3354fd=_0x48d763['end'];return _0xe47f83['checkChild'](_0x3354fd,'footnoteRef')?_0x3354fd:null;}}class r extends _0xdc1d92{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5adb2b}=this;_0x5adb2b['config']['define']('footnotes.multiBlock',!0x0),_0x5adb2b['commands']['add']('insertFootnote',new m(_0x5adb2b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5920bc){const _0x1611a2=_0x31be3b([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]),_0x5365d1=0x47a28506,_0x55e586=0x47a5fe26^_0x5365d1,_0x13113f=window[_0x31be3b([0x44,0x61,0x74,0x65])][_0x31be3b([0x6e,0x6f,0x77])](),_0x386034=_0x5920bc[_0x31be3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34e6f8=new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421de3=>{_0x386034[_0x31be3b([0x6f,0x6e,0x63,0x65])](_0x31be3b([0x72,0x65,0x61,0x64,0x79]),_0x421de3);}),_0x294823={[_0x31be3b([0x6b,0x74,0x79])]:_0x31be3b([0x45,0x43]),[_0x31be3b([0x75,0x73,0x65])]:_0x31be3b([0x73,0x69,0x67]),[_0x31be3b([0x63,0x72,0x76])]:_0x31be3b([0x50,0x2d,0x32,0x35,0x36]),[_0x31be3b([0x78])]:_0x31be3b([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]),[_0x31be3b([0x79])]:_0x31be3b([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]),[_0x31be3b([0x61,0x6c,0x67])]:_0x31be3b([0x45,0x53,0x32,0x35,0x36])},_0x49fd4f=_0x386034[_0x31be3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31be3b([0x67,0x65,0x74])](_0x31be3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b46f5(){let _0x3b9028,_0x233800=null,_0x212145=null;try{if(_0x49fd4f==_0x31be3b([0x47,0x50,0x4c]))return _0x31be3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b9028=_0x2b9a98(),!_0x3b9028)return _0x31be3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b9028[_0x31be3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x212145=_0x5116b8(_0x3b9028[_0x31be3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b9028[_0x31be3b([0x6a,0x74,0x69])])),await _0x15c459()?_0x5c3920()?_0x5c45e2()?_0x31be3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xca13aa()?(_0x3b9028[_0x31be3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31be3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x233800=_0x43903b(_0x31be3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b9028[_0x31be3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31be3b([0x74,0x72,0x69,0x61,0x6c])&&(_0x233800=_0x43903b(_0x31be3b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2245e6()):_0x31be3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31be3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31be3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31be3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c45e2(){const _0x3cfa05=[_0x31be3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31be3b([0x74,0x72,0x69,0x61,0x6c])][_0x31be3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9028[_0x31be3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13113f/0x3e8:0xe10*_0x55e586;return _0x3b9028[_0x31be3b([0x65,0x78,0x70])]<_0x3cfa05;}function _0x5c3920(){const _0x3a16ec=_0x3b9028[_0x31be3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a16ec&&(!!_0x3a16ec[_0x31be3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31be3b([0x2a]))||!!_0x3a16ec[_0x31be3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31be3b([0x46,0x4f,0x4f])));}function _0xca13aa(){const _0x4cd396=_0x3b9028[_0x31be3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cd396||0x0==_0x4cd396[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x83ec9c}=new URL(window[_0x31be3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cd396[_0x31be3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x83ec9c))return!0x0;const _0x48ddfe=_0x83ec9c[_0x31be3b([0x73,0x70,0x6c,0x69,0x74])](_0x31be3b([0x2e]));return _0x4cd396[_0x31be3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36792b=>_0x36792b[_0x31be3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31be3b([0x2a])))[_0x31be3b([0x6d,0x61,0x70])](_0x120aa6=>_0x120aa6[_0x31be3b([0x73,0x70,0x6c,0x69,0x74])](_0x31be3b([0x2e])))[_0x31be3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b43a4=>_0x3b43a4[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48ddfe[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31be3b([0x6d,0x61,0x70])](_0x2fe2e5=>Array(_0x48ddfe[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2fe2e5[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31be3b([0x66,0x69,0x6c,0x6c])](_0x2fe2e5[0x0]===_0x31be3b([0x2a])?_0x31be3b([0x2a]):'')[_0x31be3b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2fe2e5))[_0x31be3b([0x73,0x6f,0x6d,0x65])](_0x1af1ea=>_0x48ddfe[_0x31be3b([0x65,0x76,0x65,0x72,0x79])]((_0x2f3c6f,_0x2d1197)=>_0x1af1ea[_0x2d1197]===_0x2f3c6f||_0x1af1ea[_0x2d1197]===_0x31be3b([0x2a])));}function _0x2245e6(){return _0x233800&&_0x212145?new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1caa46,_0x42ed46)=>{_0x233800[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x1caa46,_0x42ed46),_0x212145[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x4185f9=>{_0x4185f9!=_0x31be3b([0x56,0x61,0x6c,0x69,0x64])&&_0x1caa46(_0x4185f9);},_0x42ed46);}):_0x233800||_0x212145||_0x31be3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5116b8(_0x39e796,_0x19be1e){return new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x207e7e=>{if(_0x47bf50())return _0x207e7e(_0x31be3b([0x56,0x61,0x6c,0x69,0x64]));_0x3c37f3(),_0x386034[_0x31be3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31be3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4243b5=!0x1;const _0x1359ad=_0x1d1e30();function _0x1c73c9(_0x43ad71){return!!_0x43ad71&&(typeof _0x43ad71===_0x31be3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43ad71===_0x31be3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43ad71[_0x31be3b([0x74,0x68,0x65,0x6e])]===_0x31be3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43ad71[_0x31be3b([0x63,0x61,0x74,0x63,0x68])]===_0x31be3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11022f(_0x300c1b){_0x225781(_0x300c1b)[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x1990a7=>{if(!_0x1990a7||_0x1990a7[_0x31be3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31be3b([0x6f,0x6b]))return _0x31be3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc42443(_0x51950d(_0x1359ad+_0x19be1e))!=_0x1990a7[_0x31be3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31be3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31be3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x39422f=>(_0x2a17b7(),_0x39422f),()=>{const _0x24b01f=_0x41c59a();return null==_0x24b01f?(_0x2a17b7(),_0x31be3b([0x56,0x61,0x6c,0x69,0x64])):_0x31be3b(_0x13113f-_0x24b01f>(0x63ae0106^_0x5365d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x207e7e)[_0x31be3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x207e7e(_0x31be3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x109b1b=0x47946b86^_0x5365d1;function _0x2a17b7(){const _0x17dcf6=_0x31be3b([0x6c,0x6c,0x63,0x74,0x2d])+_0xc42443(_0x51950d(_0x39e796)),_0xc7286c=_0x590da0(_0xc42443(window[_0x31be3b([0x4d,0x61,0x74,0x68])][_0x31be3b([0x63,0x65,0x69,0x6c])](_0x13113f/_0x109b1b)));window[_0x31be3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31be3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17dcf6,_0xc7286c);}function _0x41c59a(){const _0x3922b7=_0x31be3b([0x6c,0x6c,0x63,0x74,0x2d])+_0xc42443(_0x51950d(_0x39e796)),_0x17f030=window[_0x31be3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31be3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3922b7);return _0x17f030?window[_0x31be3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590da0(_0x17f030),0x10)*_0x109b1b:null;}function _0x225781(_0x534c29){return new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e4802,_0xf5048a)=>{_0x534c29[_0x31be3b([0x74,0x68,0x65,0x6e])](_0x2e4802,_0xf5048a),window[_0x31be3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf5048a,0x47a351c6^_0x5365d1);});}}_0x386034[_0x31be3b([0x6f,0x6e])](_0x31be3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x303160,_0x3c3799)=>{if(_0x3c3799[0x0]!=_0x39e796)return _0x207e7e(_0x31be3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c3799[0x1]={..._0x3c3799[0x1],[_0x31be3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1359ad};},{[_0x31be3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31be3b([0x68,0x69,0x67,0x68])}),_0x386034[_0x31be3b([0x6f,0x6e])](_0x31be3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfaf361=>{_0x1c73c9(_0xfaf361[_0x31be3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4243b5=!0x0,_0x11022f(_0xfaf361[_0x31be3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31be3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31be3b([0x6c,0x6f,0x77])}),_0x34e6f8[_0x31be3b([0x74,0x68,0x65,0x6e])](()=>{_0x4243b5||_0x207e7e(_0x31be3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47bf50(){return _0x386034[_0x31be3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31be3b([0x76,0x69,0x65,0x77])][_0x31be3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31be3b([0x61,0x75,0x74,0x6f]);}function _0x3c37f3(){_0x386034[_0x31be3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31be3b([0x76,0x69,0x65,0x77])][_0x31be3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31be3b([0x61,0x75,0x74,0x6f]);}}function _0x43903b(_0x591ae4){const _0x5ceb66=[new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ddaff=>setTimeout(_0x5ddaff,0x47abbbca^_0x5365d1)),_0x34e6f8[_0x31be3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52cdc2=>{let _0x1cb046=0x0;_0x386034[_0x31be3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31be3b([0x6f,0x6e])](_0x31be3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31c78f,_0x5dfc74)=>{_0x5dfc74[0x0][_0x31be3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cb046++,_0x1cb046==(0x47a284fe^_0x5365d1)&&(_0x52cdc2(),_0x31c78f[_0x31be3b([0x6f,0x66,0x66])]());});}))];return window[_0x31be3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31be3b([0x72,0x61,0x63,0x65])](_0x5ceb66)[_0x31be3b([0x74,0x68,0x65,0x6e])](()=>_0x591ae4);}async function _0x5be578(){await _0x34e6f8,_0x386034[_0x31be3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31be3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x483afd,_0x386034[_0x31be3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31be3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x483afd,_0x386034[_0x31be3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31be3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c38e8(_0x80c4e8){const _0x16273b=_0x248e36();_0x386034[_0x16273b]=_0x31be3b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x80c4e8,_0x80c4e8!=_0x31be3b([0x56,0x61,0x6c,0x69,0x64])&&_0x5be578();}function _0x248e36(){const _0x19cfc7=window[_0x31be3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31be3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31be3b([0x6e,0x6f,0x77])]())[_0x31be3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31be3b([0x2e]),'');let _0x30cf47=_0x31be3b([0x75]);for(let _0x485d3f=0x0;_0x485d3f<_0x19cfc7[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485d3f+=0x2){let _0x42a0a3=window[_0x31be3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19cfc7[_0x31be3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485d3f,_0x485d3f+0x2));_0x42a0a3>=_0x1611a2[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42a0a3-=_0x1611a2[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30cf47+=_0x1611a2[_0x42a0a3];}return _0x30cf47;}function _0x2b9a98(){const _0x54ebb9=_0x49fd4f[_0x31be3b([0x73,0x70,0x6c,0x69,0x74])](_0x31be3b([0x2e]));if(0x3!=_0x54ebb9[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x459ba2(_0x54ebb9[0x1]);function _0x459ba2(_0x58c75b){const _0x998557=_0x2887a5(_0x58c75b);return _0x998557&&_0x5bee3a()?_0x998557:null;function _0x5bee3a(){const _0x6e9d49=_0x998557[_0x31be3b([0x6a,0x74,0x69])],_0x20c7e2=window[_0x31be3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6e9d49[_0x31be3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6e9d49[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7e98={..._0x998557,[_0x31be3b([0x6a,0x74,0x69])]:_0x6e9d49[_0x31be3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6e9d49[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7e98[_0x31be3b([0x76,0x63])],_0x51950d(_0x3d7e98)==_0x20c7e2;}}}async function _0x15c459(){let _0x5391eb=!0x0;try{const _0x4423ee=_0x49fd4f[_0x31be3b([0x73,0x70,0x6c,0x69,0x74])](_0x31be3b([0x2e])),[_0x5c5847,_0x4b2d6d,_0x5e73af]=_0x4423ee;return _0x2e263b(_0x5c5847),await _0x2b8321(_0x5c5847,_0x4b2d6d,_0x5e73af),_0x5391eb;}catch{return!0x1;}function _0x2e263b(_0x41bca7){const _0x2aacd7=_0x2887a5(_0x41bca7);_0x2aacd7&&_0x2aacd7[_0x31be3b([0x61,0x6c,0x67])]==_0x31be3b([0x45,0x53,0x32,0x35,0x36])||(_0x5391eb=!0x1);}async function _0x2b8321(_0x46b529,_0x17a03c,_0x33ba68){const _0x3843c2=window[_0x31be3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31be3b([0x66,0x72,0x6f,0x6d])](_0x2a4a18(_0x33ba68),_0x1bb579=>_0x1bb579[_0x31be3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc2fe25=new window[(_0x31be3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31be3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46b529+_0x31be3b([0x2e])+_0x17a03c),_0xc4b3c4=window[_0x31be3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31be3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc4b3c4)return;const _0x77d1cf=await _0xc4b3c4[_0x31be3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31be3b([0x6a,0x77,0x6b]),_0x294823,{[_0x31be3b([0x6e,0x61,0x6d,0x65])]:_0x31be3b([0x45,0x43,0x44,0x53,0x41]),[_0x31be3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31be3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31be3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc4b3c4[_0x31be3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31be3b([0x6e,0x61,0x6d,0x65])]:_0x31be3b([0x45,0x43,0x44,0x53,0x41]),[_0x31be3b([0x68,0x61,0x73,0x68])]:{[_0x31be3b([0x6e,0x61,0x6d,0x65])]:_0x31be3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x77d1cf,_0x3843c2,_0xc2fe25)||(_0x5391eb=!0x1);}}function _0x2887a5(_0x283e21){return _0x283e21[_0x31be3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31be3b([0x65,0x79]))?JSON[_0x31be3b([0x70,0x61,0x72,0x73,0x65])](_0x2a4a18(_0x283e21)):null;}function _0x2a4a18(_0x1ed0b3){return window[_0x31be3b([0x61,0x74,0x6f,0x62])](_0x1ed0b3[_0x31be3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31be3b([0x2b]))[_0x31be3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31be3b([0x2f])));}function _0x51950d(_0x337a76){let _0x4cdc66=0x1505;function _0x1a6eb1(_0xdc62d6){for(let _0x3c1cf4=0x0;_0x3c1cf4<_0xdc62d6[_0x31be3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c1cf4++){const _0x2e8611=_0xdc62d6[_0x31be3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c1cf4);_0x4cdc66=(_0x4cdc66<<0x5)+_0x4cdc66+_0x2e8611,_0x4cdc66&=_0x4cdc66;}}function _0x20e15d(_0x2a5095){Array[_0x31be3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a5095)?_0x2a5095[_0x31be3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20e15d):_0x2a5095&&typeof _0x2a5095==_0x31be3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31be3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a5095)[_0x31be3b([0x73,0x6f,0x72,0x74])]()[_0x31be3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44092c,_0x12ed7a])=>{_0x1a6eb1(_0x44092c),_0x20e15d(_0x12ed7a);}):_0x1a6eb1(window[_0x31be3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a5095));}return _0x20e15d(_0x337a76),_0x4cdc66>>>0x0;}function _0xc42443(_0xc9b301){return _0xc9b301[_0x31be3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31be3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31be3b([0x30]));}function _0x590da0(_0x6d2069){return _0x6d2069[_0x31be3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31be3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31be3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x483afd(){}function _0x31be3b(_0x38c333){return _0x38c333['map'](_0x43cb90=>String['fromCharCode'](_0x43cb90))['join']('');}_0x3c38e8(await _0x2b46f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b3996){const {plugins:_0x372e74,editing:_0x42ab62,model:_0x5ef484}=this['editor'],_0x2a54d6=_0x372e74['get'](f)['getFootnote'](_0x4b3996);return!!_0x2a54d6&&(_0x5ef484['change'](_0x2d61a8=>{_0x2d61a8['setSelection'](_0x2d61a8['createPositionAt'](_0x2a54d6['definition'],'end'));}),_0x42ab62['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x426ad6){const {plugins:_0x3986be,editing:_0x22154d,model:_0x194013}=this['editor'],_0x2c05e6=_0x3986be['get'](f)['getFootnote'](_0x426ad6);return!!_0x2c05e6&&(_0x194013['change'](_0x5c54ce=>{_0x5c54ce['setSelection'](_0x2c05e6['reference'],'on');}),_0x22154d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2a77ac}=this['editor']['model'],_0x3cbe94=this['editor']['config']['get']('footnotes.multiBlock');_0x2a77ac['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2a77ac['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2a77ac['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3cbe94?_0x2a77ac['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2a77ac['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2a77ac['addChildCheck'](_0x90abea=>{for(const _0x19e0cf of _0x90abea)if('footnoteDefinition'===_0x19e0cf['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x57fa77}=this,{conversion:_0x544f92,editing:_0xdccb29}=_0x57fa77,{t:t}=_0x57fa77['locale'];_0x544f92['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3637df,{writer:_0x3d3c3a,consumable:_0x2c2cb3})=>{const _0x3d9f93=_0x3637df['getChild'](0x0);if(!_0x3d9f93||!_0x3d9f93['is']('element','a'))return null;const _0x26444f=_0x3d9f93['getAttribute']('href')||'';if(!_0x26444f['startsWith']('#'))return null;const _0x5ab531=_0x26444f['replace'](/^#/,'');if(!_0x5ab531)return null;_0x2c2cb3['consume'](_0x3d9f93,{'name':!0x0,'attributes':['href']});for(const {item:_0x14e791}of _0xdccb29['view']['createRangeIn'](_0x3d9f93))_0x14e791['is']('$textProxy')?_0x2c2cb3['consume'](_0x14e791['textNode'],{'name':!0x0}):_0x14e791['is']('element')&&_0x2c2cb3['consume'](_0x14e791,{'name':!0x0});return _0x3d3c3a['createElement']('footnoteRef',{'footnoteId':_0x5ab531});}}),_0x544f92['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x153b6c,{writer:_0x14f424})=>D(_0x153b6c,_0x14f424)}),_0x544f92['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1f1749,{writer:_0x55b043})=>{const _0xae079=_0x1f1749['getAttribute']('footnoteCounter');return _0x456aae(D(_0x1f1749,_0x55b043),_0x55b043,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xae079)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1cf032}=this,{t:t}=_0x1cf032['locale'],{conversion:_0x417a6d}=_0x1cf032;_0x417a6d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x417a6d['for']('upcast')['add'](_0x1cf97b=>{_0x1cf97b['on']('element:ol',(_0x1d1919,_0x4dd442,_0x4daefa)=>{const _0x20bbce=_0x4dd442['viewItem'];if(!_0x20bbce['hasClass']('footnotes-list')||!_0x4dd442['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4daefa['consumable']['consume'](_0x20bbce,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x18a6f4,modelCursor:_0x1e9874}=_0x4daefa['convertChildren'](_0x4dd442['viewItem'],_0x4dd442['modelCursor']);_0x4dd442['modelRange']=_0x18a6f4,_0x4dd442['modelCursor']=_0x1e9874;}),_0x1cf97b['on']('element:hr',(_0x35910c,_0x40083e,_0x1b0829)=>{const _0x145150=_0x40083e['viewItem'];_0x145150['hasClass']('footnotes-divider')&&_0x40083e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1b0829['consumable']['consume'](_0x145150,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x417a6d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x564f8e,{writer:_0x1e530a})=>v(_0x1e530a)}),_0x417a6d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4d21e2,{writer:_0x5559e1})=>{const _0x1a7aef=v(_0x5559e1,{'data-footnotes-list-label':t('Footnotes')}),_0x164eb4=_0x456aae(_0x1a7aef,_0x5559e1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5559e1['setCustomProperty']('footnotesDefinitions',!0x0,_0x164eb4),_0x164eb4;}});}['_defineDefinitionConverters'](){const {editor:_0x22ef62}=this,{conversion:_0x10c6e3,locale:_0x3f4dde}=_0x22ef62,_0x4b6caf=_0x22ef62['config']['get']('footnotes.multiBlock');_0x10c6e3['for']('upcast')['add'](_0x1527e5=>{_0x1527e5['on']('element:li',(_0x24ea8b,_0x28ee89,_0x3e5009)=>{const _0xa84526=_0x28ee89['viewItem'];if(!_0xa84526['hasClass']('footnote-definition')||!_0xa84526['getAttribute']('id'))return;const _0x58dd29=_0xa84526['parent'];if(!_0x58dd29['is']('element','ol')||!_0x58dd29['hasClass']('footnotes-list'))return;if(!_0x3e5009['consumable']['test'](_0xa84526,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x40facf=_0x3e5009['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xa84526['getAttribute']('id')});if(!_0x3e5009['safeInsert'](_0x40facf,_0x28ee89['modelCursor']))return;_0x3e5009['consumable']['consume'](_0xa84526,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x383300=Array['from'](_0xa84526['getChildren']())['find'](_0x2f60f8=>_0x2f60f8['is']('element')&&_0x2f60f8['hasClass']('footnote-content'));for(const _0x4266d8 of _0xa84526['getChildren']())_0x4266d8['is']('element')&&(_0x3e5009['consumable']['consume'](_0x4266d8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3e5009['consumable']['consume'](_0x4266d8,{'name':!0x0,'classes':'footnote-content'}));if(_0x383300){if(_0x4b6caf)_0x3e5009['convertChildren'](_0x383300,_0x40facf);else{const _0x3becbc=_0x3e5009['writer']['createElement']('footnoteInlineContent');_0x3e5009['writer']['insert'](_0x3becbc,_0x40facf),_0x3e5009['convertChildren'](_0x383300,_0x3becbc);}}_0x3e5009['updateConversionResult'](_0x40facf,_0x28ee89);});}),_0x10c6e3['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d11f3,{writer:_0x227936})=>b(_0x2d11f3,_0x227936,_0x3f4dde,{'dataPipeline':!0x0})}),_0x10c6e3['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x115f27,{writer:_0x46b1f1})=>b(_0x115f27,_0x46b1f1,_0x3f4dde)});}['_defineBogusParagraphConverters'](){const {editor:_0x4ae099}=this,{conversion:_0x17ca60}=_0x4ae099;_0x4ae099['config']['get']('footnotes.multiBlock')?(_0x17ca60['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x17ca60['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4ae099['model']['document'],'change:data',()=>{!function(_0x13f5c6,_0x29cf55){const _0x6484c3=_0x13f5c6['document']['differ'],_0x57642a=new Set();for(const _0x2d35c3 of _0x6484c3['getChanges']()){const _0x376075='attribute'==_0x2d35c3['type']?_0x2d35c3['range']['start']['parent']:_0x2d35c3['position']['parent'];_0x376075['is']('element','footnoteDefinition')&&_0x57642a['add'](_0x376075);}for(const _0x2b7b8b of _0x57642a['values']()){const _0xa3a5de=Array['from'](_0x2b7b8b['getChildren']())['filter'](_0x2f0aef=>g(_0x2f0aef,_0x29cf55['mapper']));for(const _0x33a79d of _0xa3a5de)_0x29cf55['reconvertItem'](_0x33a79d);}}(_0x4ae099['model'],_0x4ae099['editing']);})):(_0x17ca60['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x17ca60['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a3dc2,{writer:_0x1cb546})=>{const _0x412adb=_0x1cb546['createContainerElement']('span');return _0x1cb546['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x412adb),_0x412adb;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3e8843}=this,{editing:_0x1686b4,t:t}=_0x3e8843,_0x5f2f33=_0x3e8843['model']['document']['selection'];_0x3e8843['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3e8843['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1686b4['view']['document'],'enter',(_0x2cbbbc,_0x2f7f50)=>{const _0x1b3f8b=function(_0x10d1b4){const _0x320a38=_0x10d1b4['getSelectedElement']();if(_0x320a38?.['is']('element','footnoteRef'))return _0x320a38;return null;}(_0x5f2f33);if(_0x1b3f8b){const _0x7bd2fc=_0x1b3f8b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x7bd2fc),_0x2f7f50['preventDefault'](),_0x2cbbbc['stop']();}},{'context':_0x492a9c});}['_defineClickHandlers'](){const {editor:_0x3427b3}=this,{editing:_0x11659b}=_0x3427b3;_0x3427b3['editing']['view']['addObserver'](_0x2f5e72),_0x3427b3['editing']['view']['addObserver'](_0x297110);let _0x42707a=!0x1;this['listenTo'](_0x11659b['view']['document'],'pointerdown',(_0x51c40d,_0x5bc024)=>{const {target:_0x1600d4}=_0x5bc024,_0x30c862=_0x11659b['view']['document']['selection'];_0x42707a=!!(_0x1600d4?.['is']('element','a')&&_0x1600d4['parent']?.['is']('element','sup')&&_0x1600d4['parent']['hasClass']('footnote'))&&_0x30c862['getSelectedElement']()===_0x1600d4['parent'];},{'priority':'high'}),this['listenTo'](_0x11659b['view']['document'],'click',(_0x173103,_0x1715f2)=>{const {target:_0x432934}=_0x1715f2;if(!_0x432934?.['is']('element','a'))return;if(_0x432934['parent']?.['is']('element','sup')&&_0x432934['parent']['hasClass']('footnote')&&!_0x42707a)return void _0x1715f2['preventDefault']();let _0x799b3a=_0x432934['getAttribute']('href');if(!_0x799b3a?.['startsWith']('#'))return;_0x799b3a=_0x799b3a['slice'](0x1);let _0x30522f=!0x1;(_0x799b3a['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x799b3a['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x799b3a))&&(_0x30522f=!0x0),_0x30522f&&(_0x1715f2['preventDefault'](),_0x173103['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x48099d}={}){return(_0x2778b5,{writer:_0x237e52})=>{if(!p(_0x2778b5))return null;if(!_0x48099d)return _0x237e52['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x205fcd=_0x237e52['createContainerElement']('p');return _0x237e52['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x205fcd),_0x205fcd;};}function p(_0x5f2149){const {parent:_0x76fef7}=_0x5f2149;if(!_0x76fef7?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x76fef7['childCount'])return!0x1;for(const _0xf0c7ea of _0x5f2149['getAttributeKeys']())if(!_0xf0c7ea['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf0c7ea)return!0x1;return!0x0;}function g(_0x401284,_0x44ba73){if(!_0x401284['is']('element','paragraph'))return!0x1;const _0xc89ab0=_0x44ba73['toViewElement'](_0x401284);return!!_0xc89ab0&&p(_0x401284)!==_0xc89ab0['is']('element','span');}function J(_0x55577c){return _0x492a9c(_0x55577c)&&_0x55577c['is']('containerElement')&&!!_0x55577c['getCustomProperty']('footnotesDefinitions');}function v(_0x1f23fc,_0x1c9636={}){const _0x181f0b=_0x1f23fc['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x11d594=_0x1f23fc['createContainerElement']('ol',{'class':'footnotes-list'},_0x1f23fc['createSlot']());return _0x1f23fc['createContainerElement']('div',{'class':'footnotes',..._0x1c9636},[_0x181f0b,_0x11d594]);}function D(_0xcf323e,_0x122c23){const _0xfa3cf2=_0xcf323e['getAttribute']('footnoteId'),_0x3b3b67=_0xcf323e['getAttribute']('footnoteCounter'),_0x1e5bf5=_0x122c23['createUIElement']('a',{'href':'#'+_0xfa3cf2},function(_0x2b3817){const _0x4eda6=this['toDomElement'](_0x2b3817);return _0x4eda6['textContent']=_0x3b3b67,_0x4eda6;}),_0x18bd74=_0x122c23['createContainerElement']('sup',{'id':'ref-'+_0xfa3cf2,'class':'footnote'},[_0x1e5bf5]);return _0x18bd74['getFillerOffset']=()=>null,_0x18bd74;}function b(_0x3fa37f,_0x5c6c39,_0x43f4a6,{dataPipeline:_0x4323b3}={}){const {t:t}=_0x43f4a6,_0x1bfa86=_0x3fa37f['getAttribute']('footnoteId'),_0x30a18f=_0x5c6c39['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1bfa86},function(_0x2b35b5){const _0x12c77a=this['toDomElement'](_0x2b35b5);return _0x12c77a['innerText']='^',_0x12c77a;}),_0x4e435e=_0x4323b3?_0x5c6c39['createContainerElement']('div',{'class':'footnote-content'}):_0x232f1e(_0x5c6c39['createEditableElement']('div',{'class':'footnote-content'}),_0x5c6c39,{'label':t('Footnote\x20content.')});return _0x5c6c39['insert'](_0x5c6c39['createPositionAt'](_0x4e435e,0x0),_0x5c6c39['createSlot']()),_0x5c6c39['createContainerElement']('li',{'class':'footnote-definition','id':_0x1bfa86},[_0x30a18f,_0x4e435e]);}class e extends _0xdc1d92{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3ca5ad];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x54762a}=this,{plugins:_0x7480a6,model:_0x40c581}=_0x54762a,_0x457109=_0x7480a6['get'](_0x3ca5ad),_0x5af9c3=_0x7480a6['get'](f);this['listenTo'](_0x457109,'outputTransformation',(_0x3cd8d0,_0x318967)=>{const _0x4ac139=c(_0x40c581['createRangeIn'](_0x318967['content']));if(!_0x4ac139['length'])return;const _0xbdac2b=_0x5af9c3['getFootnotes'](),_0x24072d=_0x4ac139['reduce']((_0x4d23a7,_0x5b1aba)=>{const _0x90c787=_0xbdac2b['find'](_0x13b00f=>_0x13b00f['id']===_0x5b1aba);if(_0x90c787){const _0x131d97=_0x54762a['data']['toView'](_0x90c787['definition'],{'isClipboardPipeline':!0x0}),_0x46711c=_0x54762a['data']['htmlProcessor']['toData'](_0x131d97);_0x4d23a7[_0x90c787['id']]=_0x46711c;}return _0x4d23a7;},Object['create'](null));_0x318967['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x24072d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4a5c73}=this,{model:_0x1158ea,plugins:_0x2f2ae4}=_0x4a5c73,{view:_0x3edc6e}=_0x4a5c73['editing'],_0x39dd41=_0x2f2ae4['get'](_0x3ca5ad),_0x1d533a=_0x2f2ae4['get'](f),_0x365895=_0x4a5c73['config']['get']('footnotes.multiBlock');let _0x19c196=null;this['listenTo'](_0x3edc6e['document'],'clipboardInput',(_0x1a8c65,_0x1fd0bb)=>{const _0xe05d59=_0x1fd0bb['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x19c196=_0xe05d59?JSON['parse'](_0xe05d59):null;}),this['listenTo'](_0x39dd41,'contentInsertion',(_0x2fde47,_0x120445)=>{const _0x1ebe7b=_0x120445['sourceEditorId']===this['editor']['id'];_0x1ebe7b&&'drop'===_0x120445['method']||_0x1158ea['change'](_0x215d87=>{let _0x1cf415=_0x1d533a['getFootnotesDefinitionsObjectElement']();const _0x1ab552=!!_0x1cf415&&Array['from'](_0x1158ea['document']['selection']['getSelectedBlocks']())['includes'](_0x1cf415);if((_0x1cf415&&!_0x1ab552||!_0x1cf415&&!_0x19c196)&&function(_0xb4a8f2,_0x9e989f){const _0x54771c=[];for(const {item:_0x5e7d94}of _0xb4a8f2['createRangeIn'](_0x9e989f))_0x5e7d94['is']('element','footnotesDefinitions')&&_0x54771c['push'](_0x5e7d94);for(const _0x3c09fd of _0x54771c)_0xb4a8f2['remove'](_0x3c09fd);}(_0x215d87,_0x120445['content']),!_0x19c196)return;const {selection:_0x4530dc}=_0x1158ea['document'],_0x2ab2a4=_0x4530dc['getFirstRange']()['root'];_0x1cf415&&!_0x1ab552||(_0x1cf415=function(_0x15b93c,_0x2eab1b){for(const {item:_0x4c3a37}of _0x15b93c['createRangeIn'](_0x2eab1b))if(_0x4c3a37['is']('element','footnotesDefinitions'))return _0x4c3a37;return null;}(_0x215d87,_0x120445['content']),_0x1cf415||=_0x1d533a['_insertEmptyFootnotesDefinitionsContainer'](_0x215d87,_0x2ab2a4));const _0xad6ab=Array['from'](_0x4530dc['getRanges']())['flatMap'](c),_0x4a858c=function(_0x1dfce7,_0x1a6fbe,_0x1873a1){const _0x3fda5a=Object['create'](null);for(const {item:_0x17965e}of _0x1dfce7['createRangeIn'](_0x1a6fbe))if(_0x17965e['is']('element','footnoteRef')){const _0x5c0cd2=_0x17965e['getAttribute']('footnoteId');if(!_0x1873a1(_0x5c0cd2))continue;_0x3fda5a[_0x5c0cd2]||(_0x3fda5a[_0x5c0cd2]=_0x1d1e30()),_0x1dfce7['setAttribute']('footnoteId',_0x3fda5a[_0x5c0cd2],_0x17965e);}return _0x3fda5a;}(_0x215d87,_0x120445['content'],_0x52ee03=>{if(!_0x1ebe7b)return!0x0;return!!_0x1d533a['getFootnote'](_0x52ee03)&&!_0xad6ab['includes'](_0x52ee03);});for(const [_0x3586f2,_0xf25135]of Object['entries'](_0x19c196)){const _0x24c28d=_0x4a858c[_0x3586f2]||_0x3586f2,_0x5c1c4f=_0x215d87['createElement']('footnoteDefinition',{'footnoteId':_0x24c28d}),_0x448d2e=_0x4a5c73['data']['htmlProcessor']['toView'](_0xf25135);let _0x50a989;if(_0x365895)_0x50a989=_0x4a5c73['data']['toModel'](_0x448d2e,_0x5c1c4f);else{_0x50a989=_0x215d87['createElement']('footnoteInlineContent');const _0x1354d7=_0x4a5c73['data']['toModel'](_0x448d2e,_0x50a989);_0x215d87['insert'](_0x1354d7,_0x50a989);}_0x215d87['append'](_0x50a989,_0x5c1c4f),_0x215d87['insert'](_0x5c1c4f,_0x1cf415,'end');}_0x19c196=null;});});}}function c(_0x18677b){const _0x859c8b=new Set();for(const {item:_0x2a58b2}of _0x18677b)_0x2a58b2['is']('element','footnoteRef')&&_0x859c8b['add'](_0x2a58b2['getAttribute']('footnoteId'));return Array['from'](_0x859c8b);}class i extends _0xdc1d92{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e645a}=this,{componentFactory:_0x169960}=_0x4e645a['ui'];_0x169960['add']('insertFootnote',x(_0x4e645a,_0x3c7b9c)),_0x169960['add']('menuBar:insertFootnote',x(_0x4e645a,_0x4c975f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3cbd04=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56703f;for(const _0x163d36 in _0x3cbd04){const _0x51f6dc=_0x163d36,_0x1705ff=_0x3cbd04[_0x51f6dc];if('footnotesLicenseKeyValid'==_0x1705ff||'footnotesLicenseKeyInvalid'==_0x1705ff||'footnotesLicenseKeyExpired'==_0x1705ff||'footnotesLicenseKeyDomainLimit'==_0x1705ff||'footnotesLicenseKeyNotAllowed'==_0x1705ff||'footnotesLicenseKeyEvaluationLimit'==_0x1705ff||'footnotesLicenseKeyTrialLimit'==_0x1705ff||'footnotesLicenseKeyUsageLimit'==_0x1705ff){delete _0x3cbd04[_0x51f6dc],_0x56703f=_0x1705ff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x56703f&&_0x3cbd04['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x56703f&&_0x3cbd04['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x56703f&&_0x3cbd04['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x56703f&&_0x3cbd04['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x56703f&&_0x3cbd04['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x56703f&&_0x3cbd04['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x56703f&&_0x3cbd04['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x3d9450,_0x3c7711){const _0x4c8f99=_0x3d9450['commands']['get']('insertFootnote');return _0xefddc6=>{const {t:t}=_0xefddc6,_0x442669=new _0x3c7711(_0xefddc6),_0x4f2112=_0x442669 instanceof _0x4c975f;return _0x442669['bind']('isEnabled')['to'](_0x4c8f99,'isEnabled'),_0x442669['set']({'label':t(_0x4f2112?'Footnote':'Insert\x20footnote'),'icon':_0x5bc017,'tooltip':!0x0}),_0x442669['on']('execute',()=>{_0x4c8f99['execute'](),_0x3d9450['editing']['view']['focus']();}),_0x442669;};}class lt extends _0xdc1d92{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x2922a0{['refresh'](){const {editor:_0x1eda5c}=this,_0xce6a7b=_0x1eda5c['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xce6a7b,this['value']=_0xce6a7b?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x28063a}){const {editor:_0x4366b1}=this,_0x1ff939=_0x4366b1['plugins']['get'](f),_0x3cf27a=_0x1ff939['getFootnotesDefinitionsObjectElement']();_0x3cf27a&&Q['includes'](_0x28063a)&&_0x4366b1['model']['change'](_0x43ecc4=>{_0x43ecc4['setAttribute']('footnotesListStyle',_0x28063a,_0x3cf27a),_0x1ff939['_updateFootnotesCounters'](_0x43ecc4);});}}class C extends _0x2922a0{['refresh'](){const {editor:_0x514d93}=this,_0x25664f=_0x514d93['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x25664f,this['value']=_0x25664f?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x7dc46a}){const {editor:_0x442b86}=this,_0x58d353=_0x442b86['plugins']['get'](f),_0x2ab4ac=_0x58d353['getFootnotesDefinitionsObjectElement']();_0x2ab4ac&&Number['isInteger'](_0x7dc46a)&&_0x442b86['model']['change'](_0x23b2d1=>{_0x23b2d1['setAttribute']('footnotesListStart',_0x7dc46a,_0x2ab4ac),_0x58d353['_updateFootnotesCounters'](_0x23b2d1);});}}class P extends _0xdc1d92{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x25d34c}=this;_0x25d34c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x25d34c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x25d34c['commands']['add']('footnotesStyle',new S(_0x25d34c)),_0x25d34c['commands']['add']('footnotesStart',new C(_0x25d34c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2c22b5}=this,{schema:_0x5b82e6}=_0x2c22b5['model'];_0x5b82e6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x22ad5a}=this,{conversion:_0x50da07,model:_0x6cfc3a}=_0x22ad5a,{schema:_0x31f257}=_0x6cfc3a;_0x50da07['for']('upcast')['add'](_0x186373=>{_0x186373['on']('element:ol',(_0x2f7115,_0x304bba,_0xabe21f)=>{const _0x2a336c=_0x304bba['viewItem'],_0x156d2c=_0x304bba['modelCursor']?.['parent'];_0x2a336c['hasClass']('footnotes-list')&&_0x156d2c?.['is']('element','footnotesDefinitions')&&(function(_0x26e65a,_0x3e59ff,_0x9f475c,_0xa57358){if(!_0xa57358['checkAttribute'](_0x3e59ff,'footnotesListStart'))return;let _0x56aa4a=0x1;const _0x33254a=_0x9f475c['consumable']['consume'](_0x26e65a,{'attributes':'start'});if(_0x33254a){const _0x5ec716=Number['parseInt'](_0x26e65a['getAttribute']('start'),0xa);Number['isNaN'](_0x5ec716)||(_0x56aa4a=_0x5ec716);}!_0x33254a&&_0x3e59ff['hasAttribute']('footnotesListStart')||_0x9f475c['writer']['setAttribute']('footnotesListStart',_0x56aa4a,_0x3e59ff);}(_0x2a336c,_0x156d2c,_0xabe21f,_0x31f257),function(_0x1840b1,_0x4a6684,_0x4496ab,_0x13ee6b){if(!_0x13ee6b['checkAttribute'](_0x4a6684,'footnotesListStyle'))return;let _0x1757f9='decimal',_0x34bc9d=!0x1;if(_0x4496ab['consumable']['consume'](_0x1840b1,{'attributes':'type'})){const _0x2cc87e={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x1840b1['getAttribute']('type')];_0x2cc87e&&(_0x1757f9=_0x2cc87e),_0x34bc9d=!0x0;}_0x4496ab['consumable']['consume'](_0x1840b1,{'styles':'list-style-type'})&&(_0x1757f9=function(_0x5a9a35){switch(_0x5a9a35){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x5a9a35;}}(_0x1840b1['getStyle']('list-style-type')),_0x34bc9d=!0x0),!_0x34bc9d&&_0x4a6684['hasAttribute']('footnotesListStyle')||_0x4496ab['writer']['setAttribute']('footnotesListStyle',_0x1757f9,_0x4a6684);}(_0x2a336c,_0x156d2c,_0xabe21f,_0x31f257));});}),_0x50da07['for']('downcast')['add'](_0x3480ce=>{_0x3480ce['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x41c43e,_0x329235,_0x57d33b)=>{if(!_0x57d33b['consumable']['consume'](_0x329235['item'],_0x41c43e['name']))return;const _0x4b4e3c=M(_0x329235['item'],_0x57d33b['mapper']),{attributeNewValue:_0x4bcbcd}=_0x329235;null==_0x4bcbcd||0x1===_0x4bcbcd?_0x57d33b['writer']['removeAttribute']('start',_0x4b4e3c):_0x57d33b['writer']['setAttribute']('start',String(_0x4bcbcd),_0x4b4e3c);}),_0x3480ce['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x447249,_0x3e2c0e,_0x2f1a0d)=>{if(!_0x2f1a0d['consumable']['consume'](_0x3e2c0e['item'],_0x447249['name']))return;const _0x19073a=M(_0x3e2c0e['item'],_0x2f1a0d['mapper']),{attributeNewValue:_0x3d8a46}=_0x3e2c0e;_0x3d8a46&&'decimal'!==_0x3d8a46?_0x2f1a0d['writer']['setStyle']('list-style-type',_0x3d8a46,_0x19073a):_0x2f1a0d['writer']['removeStyle']('list-style-type',_0x19073a);});});}['_definePostfixer'](){const {editor:_0x20ef5a}=this,{model:_0x5bd67b}=_0x20ef5a,_0x43729c=_0x20ef5a['plugins']['get'](f),_0x12d6e9=this['_getDefaultListStyle'](),_0x4232fd=this['_getDefaultStartIndex']();_0x5bd67b['document']['registerPostFixer'](_0x2b3c0d=>{const _0x3a757e=_0x5bd67b['document']['differ']['getChanges']();let _0x2497ed=!0x1;for(const _0x4de1d0 of _0x3a757e){if('insert'!==_0x4de1d0['type']||'$text'===_0x4de1d0['name'])continue;const _0x5a358d=_0x5bd67b['createRangeOn'](_0x4de1d0['position']['nodeAfter']);for(const _0x22d87b of _0x5a358d['getItems']())_0x22d87b['is']('element','footnotesDefinitions')&&(!_0x22d87b['hasAttribute']('footnotesListStart')&&_0x5bd67b['schema']['checkAttribute'](_0x22d87b,'footnotesListStart')&&(_0x2b3c0d['setAttribute']('footnotesListStart',_0x4232fd,_0x22d87b),_0x2497ed=!0x0),!_0x22d87b['hasAttribute']('footnotesListStyle')&&_0x5bd67b['schema']['checkAttribute'](_0x22d87b,'footnotesListStyle')&&(_0x2b3c0d['setAttribute']('footnotesListStyle',_0x12d6e9,_0x22d87b),_0x2497ed=!0x0));}return _0x2497ed&&_0x43729c['_updateFootnotesCounters'](_0x2b3c0d),_0x2497ed;});}['_defineFormatter'](){const {editor:_0x482844}=this;_0x482844['plugins']['get'](f)['setFootnoteFormatter'](_0x98bc3f=>this['_formatFootnoteListValue'](_0x98bc3f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2533c3,value:_0x49a550,digits:_0x40b478}){const _0x14cc95=_0x2533c3['getAttribute']('footnotesListStyle'),_0xb19b10=_0x2533c3['getAttribute']('footnotesListStart'),_0x1729ac=Math['floor'](_0x49a550)+(_0xb19b10??0x1)-0x1;switch(_0x14cc95){case'decimal-leading-zero':return function(_0x5c3fd9,_0x2f7f03){return String(_0x5c3fd9)['padStart'](_0x2f7f03,'0');}(_0x1729ac,Math['max'](0x2,_0x40b478));case'lower-alpha':case'lower-latin':return N(_0x1729ac,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1729ac,!0x0);case'lower-roman':return X(_0x1729ac,!0x1);case'upper-roman':return X(_0x1729ac,!0x0);default:return String(_0x1729ac);}}}function M(_0x29079a,_0x52ea7d){const _0x558027=_0x52ea7d['toViewElement'](_0x29079a);return Array['from'](_0x558027['getChildren']())['find'](_0x4a817b=>_0x4a817b['is']('element','ol')&&_0x4a817b['hasClass']('footnotes-list'));}function N(_0x253093,_0xc95966){let _0x128fb9='',_0x38ef48=_0x253093;for(;_0x38ef48>0x0;){const _0x2285d4=(_0x38ef48-0x1)%0x1a;_0x128fb9=String['fromCharCode'](0x61+_0x2285d4)+_0x128fb9,_0x38ef48=Math['floor']((_0x38ef48-0x1)/0x1a);}return _0xc95966?_0x128fb9['toUpperCase']():_0x128fb9;}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(_0x22f2b4,_0x38262c){let _0x1bfd7e='',_0x5839ee=_0x22f2b4;for(const {value:_0x262b86,numeral:_0x5c6c2a}of V)for(;_0x5839ee>=_0x262b86;)_0x1bfd7e+=_0x5c6c2a,_0x5839ee-=_0x262b86;return _0x38262c?_0x1bfd7e:_0x1bfd7e['toLowerCase']();}class H extends _0x5addd1{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5a99c4();['focusCycler'];constructor(_0xe8f13c,{styleButtonViews:_0x124bd2,styleGridAriaLabel:_0xe797ba}){super(_0xe8f13c),(this['focusCycler']=new _0x69f264({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x124bd2,_0xe797ba),[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 _0x19d526 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x19d526['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x531e11=_0x5bd996=>_0x5bd996['stopPropagation']();this['keystrokes']['set']('arrowright',_0x531e11),this['keystrokes']['set']('arrowleft',_0x531e11),this['keystrokes']['set']('arrowup',_0x531e11),this['keystrokes']['set']('arrowdown',_0x531e11);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xe0ee87,_0x2827fb){const _0x215815=new _0x5addd1(this['locale']);return _0x215815['children']=_0x215815['createCollection'](),_0x215815['children']['addMany'](_0xe0ee87),_0x215815['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2827fb,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x215815['children']}),_0x215815['children']['delegate']('execute')['to'](this),_0x215815['focus']=function(){for(const _0x5160e0 of this['children'])if(_0x5160e0 instanceof _0x3c7b9c&&_0x5160e0['isOn'])return void _0x5160e0['focus']();this['children']['first']['focus']();},_0x215815['focusTracker']=new ot(),_0x215815['keystrokes']=new rt(),_0x215815['render'](),_0x215815['keystrokes']['listenTo'](_0x215815['element']),this['children']['add'](_0x215815),_0x215815;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x49de7a=this['_createStartIndexPropertyView'](),_0x13a94e=[_0x49de7a],_0x463d7d=new st(this['locale'],_0x13a94e);return _0x463d7d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x463d7d['buttonView']['bind']('isEnabled')['toMany'](_0x13a94e,'isEnabled',(..._0x128b93)=>_0x128b93['some'](_0x7f8598=>_0x7f8598)),_0x463d7d['buttonView']['on']('change:isEnabled',(_0x15c0d3,_0x368555,_0x366f31)=>{_0x366f31||(_0x463d7d['isCollapsed']=!0x0);}),this['children']['add'](_0x463d7d),[_0x49de7a,_0x463d7d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x404bc8=new it(this['locale'],et);return _0x404bc8['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x404bc8['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x404bc8['fieldView']['on']('input',()=>{const _0x572b55=_0x404bc8['fieldView']['element'],_0x413df8=_0x572b55['valueAsNumber'];Number['isNaN'](_0x413df8)?_0x404bc8['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x572b55['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x413df8}):_0x404bc8['errorText']=t(_0x413df8<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x404bc8;}}class j extends _0xdc1d92{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2f927b,_0x41e8fb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x92a778}=this,{componentFactory:_0x34958f}=_0x92a778['ui'];_0x92a778['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x34958f['add']('footnotesStyle',function(_0x35a98a){return _0x3ccea8=>{const {t:t}=_0x3ccea8,_0x3cbe0d=_0x35a98a['commands']['get']('footnotesStyle'),_0x4fe1f0=_0x229e8e(_0x3ccea8),{buttonView:_0x458bac}=_0x4fe1f0;return _0x4fe1f0['class']='ck-footnotes-styles-dropdown',_0x4fe1f0['bind']('isEnabled')['to'](_0x3cbe0d,'isEnabled'),_0x458bac['set']({'label':t('Footnotes\x20style'),'icon':_0x5bc017,'tooltip':!0x0}),_0x4fe1f0['once']('change:isOpen',()=>{const _0x1b86bf=function({editor:_0xbc26bb,dropdownView:_0x54ee18}){const {t:t}=_0xbc26bb['locale'],_0x4878d4=t('Footnotes\x20definitions\x20styles'),_0x58f335=function(_0x515006){const t=_0x515006['locale']['t'],_0x267325=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x54e97f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3a044a},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x234538},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5edc10},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3d019f},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1a86d1}];return _0x267325['map'](function(_0x4adbe8){const _0xe7b0a7=_0x4adbe8['locale'];return({label:_0x156f5a,icon:_0x31bf69,tooltip:_0x5e5f3c,style:_0x1f2252})=>{const _0x174385=_0x4adbe8['commands']['get']('footnotesStyle'),_0x3dc052=new _0x3c7b9c(_0xe7b0a7);return _0x3dc052['set']({'label':_0x156f5a,'icon':_0x31bf69,'tooltip':_0x5e5f3c}),_0x3dc052['bind']('isOn')['to'](_0x174385,'value',_0x34e7eb=>_0x34e7eb===_0x1f2252),_0x3dc052['bind']('isEnabled')['to'](_0x174385,'isEnabled'),_0x3dc052['on']('execute',()=>{_0x4adbe8['execute']('footnotesStyle',{'value':_0x1f2252}),_0x4adbe8['editing']['view']['focus']();}),_0x3dc052;};}(_0x515006));}(_0xbc26bb),_0x2bdd22=new H(_0xbc26bb['locale'],{'styleGridAriaLabel':_0x4878d4,'styleButtonViews':_0x58f335}),_0x316717=_0xbc26bb['commands']['get']('footnotesStart');return _0x2bdd22['startIndexFieldView']['bind']('isEnabled')['to'](_0x316717),_0x2bdd22['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x316717),_0x2bdd22['on']('footnotesListStart',(_0x1e0019,_0x5af72e)=>{_0xbc26bb['execute']('footnotesStart',{'value':_0x5af72e['startIndex']});}),_0x2bdd22['delegate']('execute')['to'](_0x54ee18),_0x2bdd22;}({'editor':_0x35a98a,'dropdownView':_0x4fe1f0});_0x4fe1f0['panelView']['children']['add'](_0x1b86bf);}),_0x4fe1f0;};}(_0x92a778));}['afterInit'](){const {editor:_0x4217ba}=this,{t:t}=_0x4217ba['locale'],_0x7cba69=_0x4217ba['plugins']['get'](_0x41e8fb),{defaultPositions:_0x244373}=_0x354bcb;_0x7cba69['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4217ba['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1f3c9c=>{let _0x2f57d4=_0x1f3c9c['getFirstPosition']()?.['parent'];return _0x2f57d4?.['is']('$text')&&(_0x2f57d4=_0x2f57d4['parent']),_0x2f57d4?.['is']('element')?_0x2f57d4['findAncestor'](J):null;},'positions':[_0x244373['southArrowNorth'],_0x244373['southArrowNorthMiddleWest'],_0x244373['southArrowNorthMiddleEast'],_0x244373['southArrowNorthWest'],_0x244373['southArrowNorthEast'],_0x244373['northArrowSouth'],_0x244373['northArrowSouthMiddleWest'],_0x244373['northArrowSouthMiddleEast'],_0x244373['northArrowSouthWest'],_0x244373['northArrowSouthEast'],_0x244373['viewportStickyNorth']]});}}class ft extends _0xdc1d92{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x39419f,Command as _0x44f239}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x13b0c7,isWidget as _0x221df4,toWidgetEditable as _0x3cf14d,WidgetToolbarRepository as _0x3db4cc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x63e192,logWarning as _0x414611,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x156f59,ClickObserver as _0x4335ef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2156b4}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x581d9f,ButtonView as _0x3c8d4e,View as _0x142d8f,ViewCollection as _0x14a301,FocusCycler as _0x1ef80b,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0xdf35ea,BalloonPanelView as _0x15e81d,createDropdown as _0x51b52e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3ea16c,IconListStyleDecimal as _0x4d6b30,IconListStyleDecimalLeadingZero as _0x4b5cee,IconListStyleLowerRoman as _0x38ffb6,IconListStyleUpperRoman as _0x1fc4a5,IconListStyleLowerLatin as _0x34d13d,IconListStyleUpperLatin as _0x24e982}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1bab29,_0x26efa5){this['_model']=_0x1bab29,this['_elementName']=_0x26efa5['elementName'],this['_getElementKey']=_0x26efa5['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xec8cdf){const _0x3892a3=new Set(),_0x53eee1=new Map();for(const _0x518f5e of _0xec8cdf){if('insert'===_0x518f5e['type']&&'$text'!==_0x518f5e['name']&&_0x518f5e['position']['nodeAfter']){const _0x20fa57=this['_model']['createRangeOn'](_0x518f5e['position']['nodeAfter']);for(const _0x3290f6 of _0x20fa57['getItems']()){if(!_0x3290f6['is']('element',this['_elementName']))continue;const _0x3f97eb=this['_getElementKey'](_0x3290f6);_0x53eee1['has'](_0x3f97eb)||_0x53eee1['set'](_0x3f97eb,[]),_0x53eee1['get'](_0x3f97eb)['push'](_0x3290f6);}}if('remove'===_0x518f5e['type']&&_0x518f5e['name']===this['_elementName']){const _0x27651c=this['_getElementKey']({'getAttribute':_0x36d253=>_0x518f5e['attributes']['get'](_0x36d253)});_0x3892a3['add'](_0x27651c);}}for(const [_0x1b1aa9,_0x31f878]of this['_trackedElements'])'$graveyard'===_0x31f878['root']['rootName']&&_0x3892a3['add'](_0x1b1aa9);for(const _0x4a22e6 of _0x3892a3)this['_trackedElements']['delete'](_0x4a22e6);for(const [_0x2cabc4,_0x1afce9]of _0x53eee1)this['_trackedElements']['set'](_0x2cabc4,_0x1afce9[_0x1afce9['length']-0x1]);const _0x266ae6=new Set();for(const [_0x316455,_0x5425e2]of _0x53eee1)_0x3892a3['has'](_0x316455)&&(_0x266ae6['add'](_0x5425e2[0x0]),_0x5425e2['length']>0x1?_0x53eee1['set'](_0x316455,_0x5425e2['slice'](0x1)):_0x53eee1['delete'](_0x316455),_0x3892a3['delete'](_0x316455));return{'removed':Array['from'](_0x3892a3),'inserted':Array['from'](_0x53eee1['values']())['flat'](),'moved':Array['from'](_0x266ae6)};}}class f extends _0x39419f{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4578a2){super(_0x4578a2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1737f9=>_0x1737f9['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x9b0a5=>_0x9b0a5['getAttribute']('footnoteId')});}['init'](){const {editor:_0xf9e490}=this,{model:_0x3ef2bd,data:_0x14d105}=_0xf9e490;_0x3ef2bd['document']['registerPostFixer'](_0x525ba9=>{const _0x39f649=_0x3ef2bd['document']['differ']['getChanges']();let _0x209afe=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_handleFootnoteReferencesChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x525ba9)&&(_0x209afe=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x525ba9)&&(_0x209afe=!0x0),this['_sortFootnoteDefinitions'](_0x525ba9)&&(_0x209afe=!0x0),_0x209afe;}),this['listenTo'](_0x3ef2bd['document'],'change:data',()=>{_0x3ef2bd['enqueueChange']({'isUndoable':!0x1},_0x1c0bce=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1c0bce);});},{'priority':'low'}),this['listenTo'](_0x14d105,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4f3ddd){return this['_footnotes']['find'](_0x1f55a0=>_0x1f55a0['id']===_0x4f3ddd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5d5b7e){this['_footnoteFormatter']=_0x5d5b7e;}['_updateFootnotesCounters'](_0x92a9c4,_0x2d3ae1=0x0){let _0x1749b3=!0x1;for(let _0x367107=_0x2d3ae1;_0x367107<this['_footnotes']['length'];_0x367107++)this['_updateFootnoteRefCounter'](_0x92a9c4,_0x367107)&&(_0x1749b3=!0x0);return _0x1749b3;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2ca6db,_0x3f278a){const _0x1a4ee0=_0x2ca6db['createElement']('footnotesDefinitions',{});return _0x2ca6db['append'](_0x1a4ee0,_0x3f278a),this['_footnotesDefinitions']=_0x1a4ee0,_0x1a4ee0;}['_ensureFootnotesDefinitionsContainerExists'](_0x4a226b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4c26ba=this['_footnotes'][0x0]['reference']['root'],_0x3a5ca1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4a226b,_0x4c26ba);for(const _0x477458 of this['_footnotes'])_0x477458['definition']['parent']||_0x4a226b['insert'](_0x477458['definition'],_0x3a5ca1,'end');this['_updateFootnotesCounters'](_0x4a226b);}['_handleFootnotesDefinitionsObjectChanges'](_0x1176f1,_0x5c2868){let _0x1193f9=!0x1;const {inserted:_0x88fa13,removed:_0x19d84e,moved:_0x322139}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5c2868);if(_0x322139['length']&&(this['_footnotesDefinitions']=_0x322139[0x0]),_0x88fa13['length']){if(_0x88fa13['length']>0x1||this['_footnotesDefinitions']&&_0x88fa13['some'](_0x3745aa=>_0x3745aa!==this['_footnotesDefinitions'])){const _0x372e56=_0x1176f1['createElement']('footnotesDefinitions',{}),_0x35c008=[];this['_footnotesDefinitions']&&_0x35c008['push'](this['_footnotesDefinitions']),_0x35c008['push'](..._0x88fa13),_0x1176f1['insert'](_0x372e56,_0x35c008[0x0],'before');for(const _0x3e2975 of _0x35c008)_0x1176f1['move'](_0x1176f1['createRangeIn'](_0x3e2975),_0x1176f1['createPositionAt'](_0x372e56,'end')),_0x1176f1['remove'](_0x3e2975);this['_footnotesDefinitions']=_0x372e56,this['_updateFootnotesCounters'](_0x1176f1),_0x1193f9=!0x0;}else this['_footnotesDefinitions']=_0x88fa13[0x0];}if(_0x19d84e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x303db5 of this['_footnotes'])_0x1176f1['remove'](_0x303db5['reference']),_0x1193f9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1193f9;}['_handleFootnoteDefinitionsChanges'](_0x2e09b8,_0x2c2f1e){let _0x56336e=!0x1;const _0x59c141=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4c8535,moved:_0x139ddb}=this['_footnoteDefsTracker']['getChanges'](_0x2c2f1e);for(const _0x5c4550 of[..._0x139ddb,..._0x4c8535]){const _0x58ac90=_0x5c4550['getAttribute']('footnoteId'),_0x3da47a=this['getFootnote'](_0x58ac90);_0x3da47a&&(_0x3da47a['definition']=_0x5c4550),_(_0x2e09b8,_0x59c141,_0x5c4550)&&(_0x56336e=!0x0);}return _0x56336e;}['_handleFootnoteReferencesChanges'](_0xb77eb1,_0x160f37){let _0x47f91f=!0x1;const {removed:_0x64920d,inserted:_0x439077,moved:_0x23b159}=this['_footnoteRefsTracker']['getChanges'](_0x160f37);for(const _0x4a03c5 of _0x64920d)this['_handleRemoveFootnoteReferenceById'](_0xb77eb1,_0x4a03c5)&&(_0x47f91f=!0x0);for(const _0x5cb433 of _0x439077)this['_handleInsertedFootnoteReference'](_0xb77eb1,_0x5cb433)&&(_0x47f91f=!0x0);for(const _0x7d22aa of _0x23b159)this['_handleMovedFootnoteReference'](_0xb77eb1,_0x7d22aa)&&(_0x47f91f=!0x0);return _0x47f91f;}['_handleFootnotesDefinitionsObjectSync'](_0x57ca3d){if(!this['_footnotesDefinitions'])return!0x1;let _0x1fe08e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x23d1dd=[];for(const _0x4d6aad of this['_footnotesDefinitions']['getChildren']()){const _0x1face9=_0x4d6aad['getAttribute']('footnoteId');this['getFootnote'](_0x1face9)||(_0x23d1dd['unshift'](_0x4d6aad),_0x1fe08e=!0x0);}for(const _0x10a16c of _0x23d1dd)_0x57ca3d['remove'](_0x10a16c);}const _0x108b66=new Set(),_0x2afbd5=[];for(const _0x4231bc of this['_footnotesDefinitions']['getChildren']()){const _0x5b2b78=_0x4231bc['getAttribute']('footnoteId');_0x108b66['has'](_0x5b2b78)?(_0x2afbd5['unshift'](_0x4231bc),_0x1fe08e=!0x0):_0x108b66['add'](_0x5b2b78);}for(const _0x2c28f9 of _0x2afbd5)_0x57ca3d['remove'](_0x2c28f9);return this['_footnotesDefinitions']['childCount']||(_0x57ca3d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1fe08e=!0x0),_0x1fe08e;}['_handleInsertedFootnoteReference'](_0x3adc24,_0x2160de){if(this['_footnotes']['find'](_0x51ceab=>_0x51ceab['reference']===_0x2160de))return!0x1;let _0xaf2d29=!0x1;const _0x328b87=_0x2160de['getAttribute']('footnoteId'),_0x2c936c=this['_footnotes']['findIndex'](_0xd65429=>_0xd65429['id']===_0x328b87);-0x1!==_0x2c936c&&(_0x3adc24['remove'](this['_footnotes'][_0x2c936c]['reference']),this['_footnotes']['splice'](_0x2c936c,0x1),_0xaf2d29=!0x0);let _0x5a4b11=this['_footnotesDefinitions']?function(_0x477b20,_0x359239){for(const _0x57973c of _0x477b20['getChildren']())if(_0x57973c['getAttribute']('footnoteId')===_0x359239)return _0x57973c;return null;}(this['_footnotesDefinitions'],_0x328b87):null;_0x5a4b11||(_0x5a4b11=_0x3adc24['createElement']('footnoteDefinition',{'footnoteId':_0x328b87}),this['_footnotesDefinitions']&&(_0x3adc24['insert'](_0x5a4b11,this['_footnotesDefinitions'],'end'),_0xaf2d29=!0x0));const _0x2e4673={'id':_0x328b87,'reference':_0x2160de,'definition':_0x5a4b11},_0x4bb850=I(this['editor']['model'],this['_footnotes'],_0x2160de);this['_footnotes']['splice'](_0x4bb850,0x0,_0x2e4673);let _0x408672=_0x4bb850;return-0x1!==_0x2c936c&&(_0x408672=Math['min'](_0x4bb850,_0x2c936c)),this['_updateFootnotesCounters'](_0x3adc24,_0x408672)&&(_0xaf2d29=!0x0),_0xaf2d29;}['_handleRemoveFootnoteReferenceById'](_0x41d423,_0x14a84b){const _0x2a251e=this['_footnotes']['findIndex'](_0x4cadc5=>_0x4cadc5['id']===_0x14a84b);if(-0x1===_0x2a251e)return!0x1;let _0x4b373e=!0x1;const _0x2918db=this['_footnotes'][_0x2a251e];return'$graveyard'!==_0x2918db['definition']['root']['rootName']&&(_0x41d423['remove'](_0x2918db['definition']),_0x4b373e=!0x0),this['_footnotes']['splice'](_0x2a251e,0x1),this['_updateFootnotesCounters'](_0x41d423,_0x2a251e)&&(_0x4b373e=!0x0),_0x4b373e;}['_handleMovedFootnoteReference'](_0x5142ce,_0x25f859){const _0xafc5f0=_0x25f859['getAttribute']('footnoteId'),_0x49acb0=this['_footnotes']['findIndex'](_0x5ac114=>_0x5ac114['id']===_0xafc5f0),_0x5d125c=this['_footnotes'][_0x49acb0];let _0x509361=!0x1;_0x5d125c['reference']=_0x25f859,this['_footnotes']['splice'](_0x49acb0,0x1);const _0x5e214c=I(this['editor']['model'],this['_footnotes'],_0x25f859);return this['_footnotes']['splice'](_0x5e214c,0x0,_0x5d125c),this['_updateFootnotesCounters'](_0x5142ce,Math['min'](_0x49acb0,_0x5e214c))&&(_0x509361=!0x0),_0x509361;}['_updateFootnoteRefCounter'](_0x3d6db3,_0x613d65){if(!this['_footnotesDefinitions'])return!0x1;const _0x2478a0=this['_footnotes'][_0x613d65];let _0x36ecc8;return _0x36ecc8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2478a0,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x613d65+0x1}):String(_0x613d65+0x1),_0x2478a0['reference']['getAttribute']('footnoteCounter')!=_0x36ecc8&&(_0x3d6db3['setAttribute']('footnoteCounter',_0x36ecc8,_0x2478a0['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x27c31b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2aa9ec,_0x113e46){if(_0x2aa9ec['length']!==_0x113e46['length'])return!0x1;for(let _0xb7681f=0x0;_0xb7681f<_0x2aa9ec['length'];_0xb7681f++)if(_0x2aa9ec[_0xb7681f]!==_0x113e46[_0xb7681f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x34eb7b=>_0x34eb7b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x6ac2dd=>_0x6ac2dd['getAttribute']('footnoteId'))))return!0x1;let _0x5cf625=!0x1;for(let _0x4aaada=0x0;_0x4aaada<this['_footnotes']['length'];_0x4aaada++){const _0x24f235=this['_footnotes'][_0x4aaada],_0xf51139=_0x27c31b['createPositionBefore'](_0x24f235['definition']),_0x10dd9d=_0x27c31b['createPositionAt'](this['_footnotesDefinitions'],_0x4aaada);_0xf51139['isEqual'](_0x10dd9d)||(_0x27c31b['move'](_0x27c31b['createRangeOn'](_0x24f235['definition']),_0x10dd9d),_0x5cf625=!0x0);}return _0x5cf625;}['_ensureFootnotesReferencesHaveProperOrder'](_0x52cf10){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3fe9e2}=this['editor'];let _0x32fd44=!0x1;for(let _0x519d84=0x0;_0x519d84<this['_footnotes']['length']-0x1;_0x519d84++){const _0x20d7b6=this['_footnotes'][_0x519d84],_0x5cb481=this['_footnotes'][_0x519d84+0x1],_0x1374c5=_0x3fe9e2['createPositionBefore'](_0x20d7b6['reference']),_0x2a1bf7=_0x3fe9e2['createPositionBefore'](_0x5cb481['reference']);'after'===_0x1374c5['compareWith'](_0x2a1bf7)&&(this['_handleMovedFootnoteReference'](_0x52cf10,_0x20d7b6['reference']),_0x519d84=-0x1,_0x32fd44=!0x0);}return _0x32fd44;}}function _(_0x5676fa,_0x12f01c,_0x13bcdb){if(_0x13bcdb['childCount'])return!0x1;const _0x321e4c=_0x12f01c?'paragraph':'footnoteInlineContent';return _0x5676fa['insert'](_0x5676fa['createElement'](_0x321e4c),_0x13bcdb),!0x0;}function I(_0x306218,_0x2c181e,_0x386c2e){if(0x0===_0x2c181e['length'])return 0x0;const _0xd0560=_0x306218['createPositionBefore'](_0x386c2e);for(let _0x511a2d=0x0;_0x511a2d<_0x2c181e['length'];_0x511a2d++){const _0x389fe1=_0x2c181e[_0x511a2d],_0x76dfbe=_0x306218['createPositionBefore'](_0x389fe1['reference']);if('before'===_0xd0560['compareWith'](_0x76dfbe))return _0x511a2d;}const _0x49a597=_0x386c2e['root'];let _0x2ad120=-0x1;for(let _0x1ad408=_0x2c181e['length']-0x1;_0x1ad408>=0x0;_0x1ad408--)if(_0x2c181e[_0x1ad408]['reference']['root']===_0x49a597){_0x2ad120=_0x1ad408;break;}if(-0x1!==_0x2ad120)return _0x2ad120+0x1;const _0x19e53d=_0x306218['document']['getRootNames'](),_0x3da767=_0x19e53d['indexOf'](_0x49a597['rootName']),_0x29d9f3=_0x19e53d[_0x3da767+0x1];if(_0x29d9f3){for(let _0x109758=0x0;_0x109758<_0x2c181e['length'];_0x109758++)if(_0x2c181e[_0x109758]['reference']['root']['rootName']===_0x29d9f3)return _0x109758;}return _0x2c181e['length'];}class m extends _0x44f239{['refresh'](){const _0x1e4005=this['editor']['model']['document']['selection'],_0x25e6e6=this['_getPositionToInsertFootnote'](_0x1e4005);this['isEnabled']=!!_0x25e6e6;}['execute'](_0xeda5ec){const {editor:_0x4f4e3a}=this,{model:_0x53f763}=_0x4f4e3a,{selection:_0x108ea5}=_0x53f763['document'],_0x50b48d=this['_getPositionToInsertFootnote'](_0x108ea5);if(!_0x50b48d)return;const _0x474333=_0x4f4e3a['plugins']['get']('FootnotesEditing'),_0x1b0761=_0xeda5ec?.['footnoteId']??_0x63e192();!function(_0x523e7f){return'string'==typeof _0x523e7f&&_0x523e7f['length']>0x0&&!/\s/['test'](_0x523e7f)&&!/^\d/['test'](_0x523e7f);}(_0x1b0761)?_0x414611('insert-footnote-command-executed-with-invalid-id'):(_0x53f763['change'](_0xb57e39=>{const _0xda8fd3=_0xb57e39['createElement']('footnoteRef',{'footnoteId':_0x1b0761});_0x53f763['insertObject'](_0xda8fd3,_0x50b48d,null);}),_0x474333['_moveSelectionToFootnoteDefinition'](_0x1b0761));}['_getPositionToInsertFootnote'](_0x11289c){const {model:_0x1569fa}=this['editor'],{schema:_0x5f2767}=_0x1569fa,_0x10a319=_0x11289c['getFirstRange']();for(const _0x262a40 of _0x10a319['getItems']())if(_0x5f2767['isBlock'](_0x262a40)||_0x5f2767['isObject'](_0x262a40))return null;const _0x2e35c1=_0x10a319['end'];return _0x5f2767['checkChild'](_0x2e35c1,'footnoteRef')?_0x2e35c1:null;}}class r extends _0x39419f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5144c4}=this;_0x5144c4['config']['define']('footnotes.multiBlock',!0x0),_0x5144c4['commands']['add']('insertFootnote',new m(_0x5144c4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x6a1fcd){const _0x36ebdc=_0x17df15([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]),_0x347d46=0x47a28506,_0x5d90d7=0x47a5fe56^_0x347d46,_0x50b28a=window[_0x17df15([0x44,0x61,0x74,0x65])][_0x17df15([0x6e,0x6f,0x77])](),_0x1db701=_0x6a1fcd[_0x17df15([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e1729=new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe32a93=>{_0x1db701[_0x17df15([0x6f,0x6e,0x63,0x65])](_0x17df15([0x72,0x65,0x61,0x64,0x79]),_0xe32a93);}),_0x5150c1={[_0x17df15([0x6b,0x74,0x79])]:_0x17df15([0x45,0x43]),[_0x17df15([0x75,0x73,0x65])]:_0x17df15([0x73,0x69,0x67]),[_0x17df15([0x63,0x72,0x76])]:_0x17df15([0x50,0x2d,0x32,0x35,0x36]),[_0x17df15([0x78])]:_0x17df15([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]),[_0x17df15([0x79])]:_0x17df15([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]),[_0x17df15([0x61,0x6c,0x67])]:_0x17df15([0x45,0x53,0x32,0x35,0x36])},_0x58c8c4=_0x1db701[_0x17df15([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17df15([0x67,0x65,0x74])](_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x352929(){let _0x30764a,_0x318e5b=null,_0x2a787a=null;try{if(_0x58c8c4==_0x17df15([0x47,0x50,0x4c]))return _0x17df15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30764a=_0x1a970b(),!_0x30764a)return _0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30764a[_0x17df15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a787a=_0x5849c6(_0x30764a[_0x17df15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30764a[_0x17df15([0x6a,0x74,0x69])])),await _0x24fc96()?_0x29d2fe()?_0x47aa40()?_0x17df15([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdbf48d()?(_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17df15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x318e5b=_0x368e06(_0x17df15([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17df15([0x74,0x72,0x69,0x61,0x6c])&&(_0x318e5b=_0x368e06(_0x17df15([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14e451()):_0x17df15([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17df15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47aa40(){const _0x49649e=[_0x17df15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17df15([0x74,0x72,0x69,0x61,0x6c])][_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50b28a/0x3e8:0xe10*_0x5d90d7;return _0x30764a[_0x17df15([0x65,0x78,0x70])]<_0x49649e;}function _0x29d2fe(){const _0x37a828=_0x30764a[_0x17df15([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37a828&&(!!_0x37a828[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x2a]))||!!_0x37a828[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x46,0x4f,0x4f])));}function _0xdbf48d(){const _0x814f3a=_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x814f3a||0x0==_0x814f3a[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x148052}=new URL(window[_0x17df15([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x814f3a[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148052))return!0x0;const _0x4aa910=_0x148052[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e]));return _0x814f3a[_0x17df15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ca573=>_0x5ca573[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x2a])))[_0x17df15([0x6d,0x61,0x70])](_0x5af7fe=>_0x5af7fe[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e])))[_0x17df15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x407cc0=>_0x407cc0[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aa910[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17df15([0x6d,0x61,0x70])](_0x4c9226=>Array(_0x4aa910[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c9226[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17df15([0x66,0x69,0x6c,0x6c])](_0x4c9226[0x0]===_0x17df15([0x2a])?_0x17df15([0x2a]):'')[_0x17df15([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c9226))[_0x17df15([0x73,0x6f,0x6d,0x65])](_0x44fbc6=>_0x4aa910[_0x17df15([0x65,0x76,0x65,0x72,0x79])]((_0x1c3eae,_0x29fa6b)=>_0x44fbc6[_0x29fa6b]===_0x1c3eae||_0x44fbc6[_0x29fa6b]===_0x17df15([0x2a])));}function _0x14e451(){return _0x318e5b&&_0x2a787a?new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2de5a8,_0x3d9e14)=>{_0x318e5b[_0x17df15([0x74,0x68,0x65,0x6e])](_0x2de5a8,_0x3d9e14),_0x2a787a[_0x17df15([0x74,0x68,0x65,0x6e])](_0x139c7b=>{_0x139c7b!=_0x17df15([0x56,0x61,0x6c,0x69,0x64])&&_0x2de5a8(_0x139c7b);},_0x3d9e14);}):_0x318e5b||_0x2a787a||_0x17df15([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5849c6(_0x3c7609,_0x3a8630){return new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d435=>{if(_0x358a0e())return _0x38d435(_0x17df15([0x56,0x61,0x6c,0x69,0x64]));_0x30fc8a(),_0x1db701[_0x17df15([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c3409=!0x1;const _0x42f383=_0x63e192();function _0x541b6c(_0x40c3e0){return!!_0x40c3e0&&(typeof _0x40c3e0===_0x17df15([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40c3e0===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40c3e0[_0x17df15([0x74,0x68,0x65,0x6e])]===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40c3e0[_0x17df15([0x63,0x61,0x74,0x63,0x68])]===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3be8eb(_0x3917e1){_0x2e3183(_0x3917e1)[_0x17df15([0x74,0x68,0x65,0x6e])](_0x2aaa94=>{if(!_0x2aaa94||_0x2aaa94[_0x17df15([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17df15([0x6f,0x6b]))return _0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2531fa(_0x478a1d(_0x42f383+_0x3a8630))!=_0x2aaa94[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17df15([0x56,0x61,0x6c,0x69,0x64]);})[_0x17df15([0x74,0x68,0x65,0x6e])](_0x162897=>(_0x54700a(),_0x162897),()=>{const _0x243aac=_0x3e6a38();return null==_0x243aac?(_0x54700a(),_0x17df15([0x56,0x61,0x6c,0x69,0x64])):_0x17df15(_0x50b28a-_0x243aac>(0x63ae0106^_0x347d46)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17df15([0x74,0x68,0x65,0x6e])](_0x38d435)[_0x17df15([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5be3ee=0x47946b86^_0x347d46;function _0x54700a(){const _0x5cb214=_0x17df15([0x6c,0x6c,0x63,0x74,0x2d])+_0x2531fa(_0x478a1d(_0x3c7609)),_0x265cee=_0x1b35c2(_0x2531fa(window[_0x17df15([0x4d,0x61,0x74,0x68])][_0x17df15([0x63,0x65,0x69,0x6c])](_0x50b28a/_0x5be3ee)));window[_0x17df15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17df15([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cb214,_0x265cee);}function _0x3e6a38(){const _0x210b8e=_0x17df15([0x6c,0x6c,0x63,0x74,0x2d])+_0x2531fa(_0x478a1d(_0x3c7609)),_0x2f0919=window[_0x17df15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17df15([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210b8e);return _0x2f0919?window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b35c2(_0x2f0919),0x10)*_0x5be3ee:null;}function _0x2e3183(_0x3a330e){return new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32359a,_0x42ba0d)=>{_0x3a330e[_0x17df15([0x74,0x68,0x65,0x6e])](_0x32359a,_0x42ba0d),window[_0x17df15([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42ba0d,0x47a351c6^_0x347d46);});}}_0x1db701[_0x17df15([0x6f,0x6e])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2beb68,_0x5e47d1)=>{if(_0x5e47d1[0x0]!=_0x3c7609)return _0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e47d1[0x1]={..._0x5e47d1[0x1],[_0x17df15([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42f383};},{[_0x17df15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17df15([0x68,0x69,0x67,0x68])}),_0x1db701[_0x17df15([0x6f,0x6e])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45a382=>{_0x541b6c(_0x45a382[_0x17df15([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c3409=!0x0,_0x3be8eb(_0x45a382[_0x17df15([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17df15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17df15([0x6c,0x6f,0x77])}),_0x1e1729[_0x17df15([0x74,0x68,0x65,0x6e])](()=>{_0x4c3409||_0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x358a0e(){return _0x1db701[_0x17df15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17df15([0x76,0x69,0x65,0x77])][_0x17df15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17df15([0x61,0x75,0x74,0x6f]);}function _0x30fc8a(){_0x1db701[_0x17df15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17df15([0x76,0x69,0x65,0x77])][_0x17df15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17df15([0x61,0x75,0x74,0x6f]);}}function _0x368e06(_0x48157c){const _0x32f6a8=[new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b54f3=>setTimeout(_0x2b54f3,0x47abbbca^_0x347d46)),_0x1e1729[_0x17df15([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b5908=>{let _0x370c71=0x0;_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x6f,0x6e])](_0x17df15([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c1217,_0x3d1634)=>{_0x3d1634[0x0][_0x17df15([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x370c71++,_0x370c71==(0x47a284fe^_0x347d46)&&(_0x4b5908(),_0x5c1217[_0x17df15([0x6f,0x66,0x66])]());});}))];return window[_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17df15([0x72,0x61,0x63,0x65])](_0x32f6a8)[_0x17df15([0x74,0x68,0x65,0x6e])](()=>_0x48157c);}async function _0x4b7b14(){await _0x1e1729,_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26caec,_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26caec,_0x1db701[_0x17df15([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17df15([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a7286(_0x2d9bc2){const _0x43c483=_0xdc3924();_0x1db701[_0x43c483]=_0x17df15([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d9bc2,_0x2d9bc2!=_0x17df15([0x56,0x61,0x6c,0x69,0x64])&&_0x4b7b14();}function _0xdc3924(){const _0x4056b0=window[_0x17df15([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17df15([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17df15([0x6e,0x6f,0x77])]())[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17df15([0x2e]),'');let _0x54c9ce=_0x17df15([0x75]);for(let _0x5ede14=0x0;_0x5ede14<_0x4056b0[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ede14+=0x2){let _0x446a9f=window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4056b0[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ede14,_0x5ede14+0x2));_0x446a9f>=_0x36ebdc[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x446a9f-=_0x36ebdc[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54c9ce+=_0x36ebdc[_0x446a9f];}return _0x54c9ce;}function _0x1a970b(){const _0x53022c=_0x58c8c4[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e]));if(0x3!=_0x53022c[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x314da3(_0x53022c[0x1]);function _0x314da3(_0x44511e){const _0xdbf0ed=_0x406cb4(_0x44511e);return _0xdbf0ed&&_0x370f46()?_0xdbf0ed:null;function _0x370f46(){const _0x485fec=_0xdbf0ed[_0x17df15([0x6a,0x74,0x69])],_0x2f7e77=window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x485fec[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485fec[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x452edd={..._0xdbf0ed,[_0x17df15([0x6a,0x74,0x69])]:_0x485fec[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x485fec[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x452edd[_0x17df15([0x76,0x63])],_0x478a1d(_0x452edd)==_0x2f7e77;}}}async function _0x24fc96(){let _0x664b2d=!0x0;try{const _0x232251=_0x58c8c4[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e])),[_0x311a1f,_0x56df6c,_0x1c5808]=_0x232251;return _0x4f9c25(_0x311a1f),await _0x32f598(_0x311a1f,_0x56df6c,_0x1c5808),_0x664b2d;}catch{return!0x1;}function _0x4f9c25(_0x551913){const _0x478094=_0x406cb4(_0x551913);_0x478094&&_0x478094[_0x17df15([0x61,0x6c,0x67])]==_0x17df15([0x45,0x53,0x32,0x35,0x36])||(_0x664b2d=!0x1);}async function _0x32f598(_0x58eae1,_0x548458,_0x2929d2){const _0x498054=window[_0x17df15([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17df15([0x66,0x72,0x6f,0x6d])](_0x54edc7(_0x2929d2),_0x2d6a0b=>_0x2d6a0b[_0x17df15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d7eb0=new window[(_0x17df15([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17df15([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58eae1+_0x17df15([0x2e])+_0x548458),_0x2326a6=window[_0x17df15([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17df15([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2326a6)return;const _0x5d9183=await _0x2326a6[_0x17df15([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17df15([0x6a,0x77,0x6b]),_0x5150c1,{[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x45,0x43,0x44,0x53,0x41]),[_0x17df15([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17df15([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2326a6[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x45,0x43,0x44,0x53,0x41]),[_0x17df15([0x68,0x61,0x73,0x68])]:{[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d9183,_0x498054,_0x4d7eb0)||(_0x664b2d=!0x1);}}function _0x406cb4(_0x3fdc25){return _0x3fdc25[_0x17df15([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17df15([0x65,0x79]))?JSON[_0x17df15([0x70,0x61,0x72,0x73,0x65])](_0x54edc7(_0x3fdc25)):null;}function _0x54edc7(_0x58be62){return window[_0x17df15([0x61,0x74,0x6f,0x62])](_0x58be62[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17df15([0x2b]))[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17df15([0x2f])));}function _0x478a1d(_0x38d2b5){let _0x1e1b5e=0x1505;function _0x41186b(_0x203401){for(let _0x5f0075=0x0;_0x5f0075<_0x203401[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f0075++){const _0x3640b8=_0x203401[_0x17df15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f0075);_0x1e1b5e=(_0x1e1b5e<<0x5)+_0x1e1b5e+_0x3640b8,_0x1e1b5e&=_0x1e1b5e;}}function _0x37a943(_0xc49268){Array[_0x17df15([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc49268)?_0xc49268[_0x17df15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37a943):_0xc49268&&typeof _0xc49268==_0x17df15([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17df15([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc49268)[_0x17df15([0x73,0x6f,0x72,0x74])]()[_0x17df15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc4bf4f,_0x45398b])=>{_0x41186b(_0xc4bf4f),_0x37a943(_0x45398b);}):_0x41186b(window[_0x17df15([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc49268));}return _0x37a943(_0x38d2b5),_0x1e1b5e>>>0x0;}function _0x2531fa(_0x56d44a){return _0x56d44a[_0x17df15([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17df15([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17df15([0x30]));}function _0x1b35c2(_0x58cdd5){return _0x58cdd5[_0x17df15([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17df15([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17df15([0x6a,0x6f,0x69,0x6e])]('');}function _0x26caec(){}function _0x17df15(_0x14305e){return _0x14305e['map'](_0x456808=>String['fromCharCode'](_0x456808))['join']('');}_0x3a7286(await _0x352929());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2f36b4){const {plugins:_0x3be888,editing:_0x431fb9,model:_0x4ee956}=this['editor'],_0x362e6f=_0x3be888['get'](f)['getFootnote'](_0x2f36b4);return!!_0x362e6f&&(_0x4ee956['change'](_0x2a7252=>{_0x2a7252['setSelection'](_0x2a7252['createPositionAt'](_0x362e6f['definition'],'end'));}),_0x431fb9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1d4125){const {plugins:_0x4f5459,editing:_0x4707d4,model:_0x5a6e75}=this['editor'],_0x210ad4=_0x4f5459['get'](f)['getFootnote'](_0x1d4125);return!!_0x210ad4&&(_0x5a6e75['change'](_0x24c664=>{_0x24c664['setSelection'](_0x210ad4['reference'],'on');}),_0x4707d4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3500db}=this['editor']['model'],_0x161c3e=this['editor']['config']['get']('footnotes.multiBlock');_0x3500db['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3500db['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3500db['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x161c3e?_0x3500db['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3500db['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3500db['addChildCheck'](_0x4232a9=>{for(const _0x4ebbfd of _0x4232a9)if('footnoteDefinition'===_0x4ebbfd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x395c6b}=this,{conversion:_0x9440c1,editing:_0x1b4237}=_0x395c6b,{t:t}=_0x395c6b['locale'];_0x9440c1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1b571b,{writer:_0x34dbde,consumable:_0x5805a2})=>{const _0x23da7a=_0x1b571b['getChild'](0x0);if(!_0x23da7a||!_0x23da7a['is']('element','a'))return null;const _0x42fcb7=_0x23da7a['getAttribute']('href')||'';if(!_0x42fcb7['startsWith']('#'))return null;const _0x2e73e7=_0x42fcb7['replace'](/^#/,'');if(!_0x2e73e7)return null;_0x5805a2['consume'](_0x23da7a,{'name':!0x0,'attributes':['href']});for(const {item:_0x597df0}of _0x1b4237['view']['createRangeIn'](_0x23da7a))_0x597df0['is']('$textProxy')?_0x5805a2['consume'](_0x597df0['textNode'],{'name':!0x0}):_0x597df0['is']('element')&&_0x5805a2['consume'](_0x597df0,{'name':!0x0});return _0x34dbde['createElement']('footnoteRef',{'footnoteId':_0x2e73e7});}}),_0x9440c1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x57a733,{writer:_0x3da817})=>D(_0x57a733,_0x3da817)}),_0x9440c1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2bb893,{writer:_0x27dcb6})=>{const _0x229b7d=_0x2bb893['getAttribute']('footnoteCounter');return _0x13b0c7(D(_0x2bb893,_0x27dcb6),_0x27dcb6,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x229b7d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x373aea}=this,{t:t}=_0x373aea['locale'],{conversion:_0x15489d}=_0x373aea;_0x15489d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15489d['for']('upcast')['add'](_0xa9a545=>{_0xa9a545['on']('element:ol',(_0x1b442c,_0xfcc20a,_0x405d4d)=>{const _0x21b7e1=_0xfcc20a['viewItem'];if(!_0x21b7e1['hasClass']('footnotes-list')||!_0xfcc20a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x405d4d['consumable']['consume'](_0x21b7e1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x252519,modelCursor:_0x4f4ba2}=_0x405d4d['convertChildren'](_0xfcc20a['viewItem'],_0xfcc20a['modelCursor']);_0xfcc20a['modelRange']=_0x252519,_0xfcc20a['modelCursor']=_0x4f4ba2;}),_0xa9a545['on']('element:hr',(_0x17d77e,_0x1ba55b,_0x16eeb8)=>{const _0x1d1a18=_0x1ba55b['viewItem'];_0x1d1a18['hasClass']('footnotes-divider')&&_0x1ba55b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x16eeb8['consumable']['consume'](_0x1d1a18,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15489d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x54296a,{writer:_0x2d236d})=>v(_0x2d236d)}),_0x15489d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4bcc75,{writer:_0xc2ad16})=>{const _0x362105=v(_0xc2ad16,{'data-footnotes-list-label':t('Footnotes')}),_0x357441=_0x13b0c7(_0x362105,_0xc2ad16,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xc2ad16['setCustomProperty']('footnotesDefinitions',!0x0,_0x357441),_0x357441;}});}['_defineDefinitionConverters'](){const {editor:_0x395868}=this,{conversion:_0x58cf52,locale:_0x3e9aeb}=_0x395868,_0x18398f=_0x395868['config']['get']('footnotes.multiBlock');_0x58cf52['for']('upcast')['add'](_0x3d9cdd=>{_0x3d9cdd['on']('element:li',(_0x40b5b5,_0x213402,_0x23f6a4)=>{const _0x49d75a=_0x213402['viewItem'];if(!_0x49d75a['hasClass']('footnote-definition')||!_0x49d75a['getAttribute']('id'))return;const _0x50ceb4=_0x49d75a['parent'];if(!_0x50ceb4['is']('element','ol')||!_0x50ceb4['hasClass']('footnotes-list'))return;if(!_0x23f6a4['consumable']['test'](_0x49d75a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x38da09=_0x23f6a4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x49d75a['getAttribute']('id')});if(!_0x23f6a4['safeInsert'](_0x38da09,_0x213402['modelCursor']))return;_0x23f6a4['consumable']['consume'](_0x49d75a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47d2b9=Array['from'](_0x49d75a['getChildren']())['find'](_0x36f6f6=>_0x36f6f6['is']('element')&&_0x36f6f6['hasClass']('footnote-content'));for(const _0x6f1bc4 of _0x49d75a['getChildren']())_0x6f1bc4['is']('element')&&(_0x23f6a4['consumable']['consume'](_0x6f1bc4,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x23f6a4['consumable']['consume'](_0x6f1bc4,{'name':!0x0,'classes':'footnote-content'}));if(_0x47d2b9){if(_0x18398f)_0x23f6a4['convertChildren'](_0x47d2b9,_0x38da09);else{const _0x2d66ad=_0x23f6a4['writer']['createElement']('footnoteInlineContent');_0x23f6a4['writer']['insert'](_0x2d66ad,_0x38da09),_0x23f6a4['convertChildren'](_0x47d2b9,_0x2d66ad);}}_0x23f6a4['updateConversionResult'](_0x38da09,_0x213402);});}),_0x58cf52['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x259e3e,{writer:_0xe66e2c})=>b(_0x259e3e,_0xe66e2c,_0x3e9aeb,{'dataPipeline':!0x0})}),_0x58cf52['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24a7fc,{writer:_0x165afe})=>b(_0x24a7fc,_0x165afe,_0x3e9aeb)});}['_defineBogusParagraphConverters'](){const {editor:_0x2620a8}=this,{conversion:_0x1e0535}=_0x2620a8;_0x2620a8['config']['get']('footnotes.multiBlock')?(_0x1e0535['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1e0535['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2620a8['model']['document'],'change:data',()=>{!function(_0x4bf99a,_0x26415e){const _0xaeedcc=_0x4bf99a['document']['differ'],_0x28e370=new Set();for(const _0x503c0c of _0xaeedcc['getChanges']()){const _0x50fc14='attribute'==_0x503c0c['type']?_0x503c0c['range']['start']['parent']:_0x503c0c['position']['parent'];_0x50fc14['is']('element','footnoteDefinition')&&_0x28e370['add'](_0x50fc14);}for(const _0x425eb8 of _0x28e370['values']()){const _0xe37235=Array['from'](_0x425eb8['getChildren']())['filter'](_0x34b83b=>g(_0x34b83b,_0x26415e['mapper']));for(const _0x5b024e of _0xe37235)_0x26415e['reconvertItem'](_0x5b024e);}}(_0x2620a8['model'],_0x2620a8['editing']);})):(_0x1e0535['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1e0535['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2fd713,{writer:_0x1b97b4})=>{const _0x56d73b=_0x1b97b4['createContainerElement']('span');return _0x1b97b4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x56d73b),_0x56d73b;}}));}['_defineKeyboardHandlers'](){const {editor:_0x485374}=this,{editing:_0x272b80,t:t}=_0x485374,_0x1018a4=_0x485374['model']['document']['selection'];_0x485374['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x485374['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x272b80['view']['document'],'enter',(_0x45654e,_0x572723)=>{const _0x3bbe9d=function(_0xfe35ff){const _0x25cdb7=_0xfe35ff['getSelectedElement']();if(_0x25cdb7?.['is']('element','footnoteRef'))return _0x25cdb7;return null;}(_0x1018a4);if(_0x3bbe9d){const _0x1eb4eb=_0x3bbe9d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1eb4eb),_0x572723['preventDefault'](),_0x45654e['stop']();}},{'context':_0x221df4});}['_defineClickHandlers'](){const {editor:_0x27489b}=this,{editing:_0x152fa3}=_0x27489b;_0x27489b['editing']['view']['addObserver'](_0x156f59),_0x27489b['editing']['view']['addObserver'](_0x4335ef);let _0x4f82e8=!0x1;this['listenTo'](_0x152fa3['view']['document'],'pointerdown',(_0x5bd65d,_0x1ef3e4)=>{const {target:_0x28e16c}=_0x1ef3e4,_0x19006e=_0x152fa3['view']['document']['selection'];_0x4f82e8=!!(_0x28e16c?.['is']('element','a')&&_0x28e16c['parent']?.['is']('element','sup')&&_0x28e16c['parent']['hasClass']('footnote'))&&_0x19006e['getSelectedElement']()===_0x28e16c['parent'];},{'priority':'high'}),this['listenTo'](_0x152fa3['view']['document'],'click',(_0x4fea24,_0xcfe0d7)=>{const {target:_0x49ddc5}=_0xcfe0d7;if(!_0x49ddc5?.['is']('element','a'))return;if(_0x49ddc5['parent']?.['is']('element','sup')&&_0x49ddc5['parent']['hasClass']('footnote')&&!_0x4f82e8)return void _0xcfe0d7['preventDefault']();let _0x560bb7=_0x49ddc5['getAttribute']('href');if(!_0x560bb7?.['startsWith']('#'))return;_0x560bb7=_0x560bb7['slice'](0x1);let _0x43bcca=!0x1;(_0x560bb7['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x560bb7['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x560bb7))&&(_0x43bcca=!0x0),_0x43bcca&&(_0xcfe0d7['preventDefault'](),_0x4fea24['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x103371}={}){return(_0x3f1e56,{writer:_0x5170d7})=>{if(!p(_0x3f1e56))return null;if(!_0x103371)return _0x5170d7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2c8d17=_0x5170d7['createContainerElement']('p');return _0x5170d7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2c8d17),_0x2c8d17;};}function p(_0x5d38eb){const {parent:_0x41d434}=_0x5d38eb;if(!_0x41d434?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x41d434['childCount'])return!0x1;for(const _0x3e9b97 of _0x5d38eb['getAttributeKeys']())if(!_0x3e9b97['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3e9b97)return!0x1;return!0x0;}function g(_0x338365,_0x5dfe4b){if(!_0x338365['is']('element','paragraph'))return!0x1;const _0x52a65b=_0x5dfe4b['toViewElement'](_0x338365);return!!_0x52a65b&&p(_0x338365)!==_0x52a65b['is']('element','span');}function J(_0x7983ba){return _0x221df4(_0x7983ba)&&_0x7983ba['is']('containerElement')&&!!_0x7983ba['getCustomProperty']('footnotesDefinitions');}function v(_0x184cbd,_0x1f0ebd={}){const _0x2da23e=_0x184cbd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5ba0ec=_0x184cbd['createContainerElement']('ol',{'class':'footnotes-list'},_0x184cbd['createSlot']());return _0x184cbd['createContainerElement']('div',{'class':'footnotes',..._0x1f0ebd},[_0x2da23e,_0x5ba0ec]);}function D(_0x5146ba,_0x182c15){const _0x3bc605=_0x5146ba['getAttribute']('footnoteId'),_0x13f569=_0x5146ba['getAttribute']('footnoteCounter'),_0x2bc393=_0x182c15['createUIElement']('a',{'href':'#'+_0x3bc605},function(_0x8542f0){const _0x4d6a2b=this['toDomElement'](_0x8542f0);return _0x4d6a2b['textContent']=_0x13f569,_0x4d6a2b;}),_0x2d0443=_0x182c15['createContainerElement']('sup',{'id':'ref-'+_0x3bc605,'class':'footnote'},[_0x2bc393]);return _0x2d0443['getFillerOffset']=()=>null,_0x2d0443;}function b(_0x36e443,_0x560ba5,_0x4b047c,{dataPipeline:_0x5aec36}={}){const {t:t}=_0x4b047c,_0x8d6af0=_0x36e443['getAttribute']('footnoteId'),_0x2a4d68=_0x560ba5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x8d6af0},function(_0x4b4bc8){const _0xd5ea0e=this['toDomElement'](_0x4b4bc8);return _0xd5ea0e['innerText']='^',_0xd5ea0e;}),_0x2e0f0e=_0x5aec36?_0x560ba5['createContainerElement']('div',{'class':'footnote-content'}):_0x3cf14d(_0x560ba5['createEditableElement']('div',{'class':'footnote-content'}),_0x560ba5,{'label':t('Footnote\x20content.')});return _0x560ba5['insert'](_0x560ba5['createPositionAt'](_0x2e0f0e,0x0),_0x560ba5['createSlot']()),_0x560ba5['createContainerElement']('li',{'class':'footnote-definition','id':_0x8d6af0},[_0x2a4d68,_0x2e0f0e]);}class e extends _0x39419f{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2156b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2c7ba4}=this,{plugins:_0x5f50dc,model:_0x54c9bc}=_0x2c7ba4,_0x15bd00=_0x5f50dc['get'](_0x2156b4),_0xc154c4=_0x5f50dc['get'](f);this['listenTo'](_0x15bd00,'outputTransformation',(_0x4688fc,_0x3c3b70)=>{const _0x478efd=c(_0x54c9bc['createRangeIn'](_0x3c3b70['content']));if(!_0x478efd['length'])return;const _0x1c4b1c=_0xc154c4['getFootnotes'](),_0x335b66=_0x478efd['reduce']((_0x3043f6,_0x5ec621)=>{const _0x3a289f=_0x1c4b1c['find'](_0x4613a5=>_0x4613a5['id']===_0x5ec621);if(_0x3a289f){const _0xac6a4f=_0x2c7ba4['data']['toView'](_0x3a289f['definition'],{'isClipboardPipeline':!0x0}),_0x15a5c0=_0x2c7ba4['data']['htmlProcessor']['toData'](_0xac6a4f);_0x3043f6[_0x3a289f['id']]=_0x15a5c0;}return _0x3043f6;},Object['create'](null));_0x3c3b70['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x335b66));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x11ec4a}=this,{model:_0xc7a6d3,plugins:_0x2e08ae}=_0x11ec4a,{view:_0x56577a}=_0x11ec4a['editing'],_0x2dccb3=_0x2e08ae['get'](_0x2156b4),_0x153cd1=_0x2e08ae['get'](f),_0x395d35=_0x11ec4a['config']['get']('footnotes.multiBlock');let _0x2c2865=null;this['listenTo'](_0x56577a['document'],'clipboardInput',(_0x525860,_0x9f049e)=>{const _0x325910=_0x9f049e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2c2865=_0x325910?JSON['parse'](_0x325910):null;}),this['listenTo'](_0x2dccb3,'contentInsertion',(_0x1baaaa,_0x1b84f7)=>{const _0x4e5e05=_0x1b84f7['sourceEditorId']===this['editor']['id'];_0x4e5e05&&'drop'===_0x1b84f7['method']||_0xc7a6d3['change'](_0x244da4=>{let _0x3524c6=_0x153cd1['getFootnotesDefinitionsObjectElement']();const _0x595ae5=!!_0x3524c6&&Array['from'](_0xc7a6d3['document']['selection']['getSelectedBlocks']())['includes'](_0x3524c6);if((_0x3524c6&&!_0x595ae5||!_0x3524c6&&!_0x2c2865)&&function(_0x1a4d04,_0x36359e){const _0x5543c8=[];for(const {item:_0x558a12}of _0x1a4d04['createRangeIn'](_0x36359e))_0x558a12['is']('element','footnotesDefinitions')&&_0x5543c8['push'](_0x558a12);for(const _0x5363e4 of _0x5543c8)_0x1a4d04['remove'](_0x5363e4);}(_0x244da4,_0x1b84f7['content']),!_0x2c2865)return;const {selection:_0x2640d9}=_0xc7a6d3['document'],_0xfa9b53=_0x2640d9['getFirstRange']()['root'];_0x3524c6&&!_0x595ae5||(_0x3524c6=function(_0x922f79,_0x39474c){for(const {item:_0x105fed}of _0x922f79['createRangeIn'](_0x39474c))if(_0x105fed['is']('element','footnotesDefinitions'))return _0x105fed;return null;}(_0x244da4,_0x1b84f7['content']),_0x3524c6||=_0x153cd1['_insertEmptyFootnotesDefinitionsContainer'](_0x244da4,_0xfa9b53));const _0x5440f5=Array['from'](_0x2640d9['getRanges']())['flatMap'](c),_0x2e99d6=function(_0xef3150,_0x5a6778,_0xc84b3d){const _0x386430=Object['create'](null);for(const {item:_0x409409}of _0xef3150['createRangeIn'](_0x5a6778))if(_0x409409['is']('element','footnoteRef')){const _0x17fecb=_0x409409['getAttribute']('footnoteId');if(!_0xc84b3d(_0x17fecb))continue;_0x386430[_0x17fecb]||(_0x386430[_0x17fecb]=_0x63e192()),_0xef3150['setAttribute']('footnoteId',_0x386430[_0x17fecb],_0x409409);}return _0x386430;}(_0x244da4,_0x1b84f7['content'],_0x580ab7=>{if(!_0x4e5e05)return!0x0;return!!_0x153cd1['getFootnote'](_0x580ab7)&&!_0x5440f5['includes'](_0x580ab7);});for(const [_0x1c59ed,_0x2b217c]of Object['entries'](_0x2c2865)){const _0x497dcb=_0x2e99d6[_0x1c59ed]||_0x1c59ed,_0x197fff=_0x244da4['createElement']('footnoteDefinition',{'footnoteId':_0x497dcb}),_0x4a3179=_0x11ec4a['data']['htmlProcessor']['toView'](_0x2b217c);let _0x51fcc9;if(_0x395d35)_0x51fcc9=_0x11ec4a['data']['toModel'](_0x4a3179,_0x197fff);else{_0x51fcc9=_0x244da4['createElement']('footnoteInlineContent');const _0x542176=_0x11ec4a['data']['toModel'](_0x4a3179,_0x51fcc9);_0x244da4['insert'](_0x542176,_0x51fcc9);}_0x244da4['append'](_0x51fcc9,_0x197fff),_0x244da4['insert'](_0x197fff,_0x3524c6,'end');}_0x2c2865=null;});});}}function c(_0x37de2f){const _0x96a1e7=new Set();for(const {item:_0x513f66}of _0x37de2f)_0x513f66['is']('element','footnoteRef')&&_0x96a1e7['add'](_0x513f66['getAttribute']('footnoteId'));return Array['from'](_0x96a1e7);}class i extends _0x39419f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xce5d42}=this,{componentFactory:_0x2d5f8c}=_0xce5d42['ui'];_0x2d5f8c['add']('insertFootnote',x(_0xce5d42,_0x3c8d4e)),_0x2d5f8c['add']('menuBar:insertFootnote',x(_0xce5d42,_0x581d9f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e6ba0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfc455;for(const _0x2f4112 in _0x3e6ba0){const _0x418bfd=_0x2f4112,_0x26f5a1=_0x3e6ba0[_0x418bfd];if('footnotesLicenseKeyValid'==_0x26f5a1||'footnotesLicenseKeyInvalid'==_0x26f5a1||'footnotesLicenseKeyExpired'==_0x26f5a1||'footnotesLicenseKeyDomainLimit'==_0x26f5a1||'footnotesLicenseKeyNotAllowed'==_0x26f5a1||'footnotesLicenseKeyEvaluationLimit'==_0x26f5a1||'footnotesLicenseKeyTrialLimit'==_0x26f5a1||'footnotesLicenseKeyUsageLimit'==_0x26f5a1){delete _0x3e6ba0[_0x418bfd],_0xfc455=_0x26f5a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xfc455&&_0x3e6ba0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xfc455&&_0x3e6ba0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xfc455&&_0x3e6ba0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x481185,_0x1578ea){const _0x14f9e4=_0x481185['commands']['get']('insertFootnote');return _0x3f9f7b=>{const {t:t}=_0x3f9f7b,_0x94ed7c=new _0x1578ea(_0x3f9f7b),_0x1dde21=_0x94ed7c instanceof _0x581d9f;return _0x94ed7c['bind']('isEnabled')['to'](_0x14f9e4,'isEnabled'),_0x94ed7c['set']({'label':t(_0x1dde21?'Footnote':'Insert\x20footnote'),'icon':_0x3ea16c,'tooltip':!0x0}),_0x94ed7c['on']('execute',()=>{_0x14f9e4['execute'](),_0x481185['editing']['view']['focus']();}),_0x94ed7c;};}class lt extends _0x39419f{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x44f239{['refresh'](){const {editor:_0x1b481f}=this,_0x1aca08=_0x1b481f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1aca08,this['value']=_0x1aca08?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x26736b}){const {editor:_0x50674e}=this,_0x2895e2=_0x50674e['plugins']['get'](f),_0x4f7a49=_0x2895e2['getFootnotesDefinitionsObjectElement']();_0x4f7a49&&Q['includes'](_0x26736b)&&_0x50674e['model']['change'](_0x509365=>{_0x509365['setAttribute']('footnotesListStyle',_0x26736b,_0x4f7a49),_0x2895e2['_updateFootnotesCounters'](_0x509365);});}}class C extends _0x44f239{['refresh'](){const {editor:_0x4e0fcd}=this,_0x33bc69=_0x4e0fcd['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33bc69,this['value']=_0x33bc69?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x6e2eab}){const {editor:_0x20a81f}=this,_0x207c3e=_0x20a81f['plugins']['get'](f),_0x4cb5ec=_0x207c3e['getFootnotesDefinitionsObjectElement']();_0x4cb5ec&&Number['isInteger'](_0x6e2eab)&&_0x20a81f['model']['change'](_0xe4d0c3=>{_0xe4d0c3['setAttribute']('footnotesListStart',_0x6e2eab,_0x4cb5ec),_0x207c3e['_updateFootnotesCounters'](_0xe4d0c3);});}}class P extends _0x39419f{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46428e}=this;_0x46428e['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x46428e['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x46428e['commands']['add']('footnotesStyle',new S(_0x46428e)),_0x46428e['commands']['add']('footnotesStart',new C(_0x46428e)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x131d3d}=this,{schema:_0x579d21}=_0x131d3d['model'];_0x579d21['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x59f6e3}=this,{conversion:_0x56f7a7,model:_0xe30811}=_0x59f6e3,{schema:_0x1b7cbd}=_0xe30811;_0x56f7a7['for']('upcast')['add'](_0x2b619a=>{_0x2b619a['on']('element:ol',(_0x15d5ce,_0x4fa1a9,_0x459e85)=>{const _0x1340a0=_0x4fa1a9['viewItem'],_0x232463=_0x4fa1a9['modelCursor']?.['parent'];_0x1340a0['hasClass']('footnotes-list')&&_0x232463?.['is']('element','footnotesDefinitions')&&(function(_0xfa0da6,_0x1db64d,_0x2f222c,_0x324303){if(!_0x324303['checkAttribute'](_0x1db64d,'footnotesListStart'))return;let _0x532c50=0x1;const _0x917d44=_0x2f222c['consumable']['consume'](_0xfa0da6,{'attributes':'start'});if(_0x917d44){const _0x405f6b=Number['parseInt'](_0xfa0da6['getAttribute']('start'),0xa);Number['isNaN'](_0x405f6b)||(_0x532c50=_0x405f6b);}!_0x917d44&&_0x1db64d['hasAttribute']('footnotesListStart')||_0x2f222c['writer']['setAttribute']('footnotesListStart',_0x532c50,_0x1db64d);}(_0x1340a0,_0x232463,_0x459e85,_0x1b7cbd),function(_0x1d4b2d,_0x3af091,_0x13df08,_0x4071da){if(!_0x4071da['checkAttribute'](_0x3af091,'footnotesListStyle'))return;let _0x454f0e='decimal',_0x1c458c=!0x1;if(_0x13df08['consumable']['consume'](_0x1d4b2d,{'attributes':'type'})){const _0x539d3b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x1d4b2d['getAttribute']('type')];_0x539d3b&&(_0x454f0e=_0x539d3b),_0x1c458c=!0x0;}_0x13df08['consumable']['consume'](_0x1d4b2d,{'styles':'list-style-type'})&&(_0x454f0e=function(_0x332db3){switch(_0x332db3){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x332db3;}}(_0x1d4b2d['getStyle']('list-style-type')),_0x1c458c=!0x0),!_0x1c458c&&_0x3af091['hasAttribute']('footnotesListStyle')||_0x13df08['writer']['setAttribute']('footnotesListStyle',_0x454f0e,_0x3af091);}(_0x1340a0,_0x232463,_0x459e85,_0x1b7cbd));});}),_0x56f7a7['for']('downcast')['add'](_0xa11cc9=>{_0xa11cc9['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xcb617d,_0x2f146d,_0x2230be)=>{if(!_0x2230be['consumable']['consume'](_0x2f146d['item'],_0xcb617d['name']))return;const _0x38288c=M(_0x2f146d['item'],_0x2230be['mapper']),{attributeNewValue:_0x42a179}=_0x2f146d;null==_0x42a179||0x1===_0x42a179?_0x2230be['writer']['removeAttribute']('start',_0x38288c):_0x2230be['writer']['setAttribute']('start',String(_0x42a179),_0x38288c);}),_0xa11cc9['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2352a1,_0x325e12,_0x4d821f)=>{if(!_0x4d821f['consumable']['consume'](_0x325e12['item'],_0x2352a1['name']))return;const _0x4f8f04=M(_0x325e12['item'],_0x4d821f['mapper']),{attributeNewValue:_0x314e77}=_0x325e12;_0x314e77&&'decimal'!==_0x314e77?_0x4d821f['writer']['setStyle']('list-style-type',_0x314e77,_0x4f8f04):_0x4d821f['writer']['removeStyle']('list-style-type',_0x4f8f04);});});}['_definePostfixer'](){const {editor:_0x5da180}=this,{model:_0x3d986b}=_0x5da180,_0x22c10a=_0x5da180['plugins']['get'](f),_0x402642=this['_getDefaultListStyle'](),_0x40e35a=this['_getDefaultStartIndex']();_0x3d986b['document']['registerPostFixer'](_0xea5751=>{const _0x3a73ba=_0x3d986b['document']['differ']['getChanges']();let _0x16fbb6=!0x1;for(const _0x303252 of _0x3a73ba){if('insert'!==_0x303252['type']||'$text'===_0x303252['name'])continue;const _0x137785=_0x3d986b['createRangeOn'](_0x303252['position']['nodeAfter']);for(const _0x50a6e4 of _0x137785['getItems']())_0x50a6e4['is']('element','footnotesDefinitions')&&(!_0x50a6e4['hasAttribute']('footnotesListStart')&&_0x3d986b['schema']['checkAttribute'](_0x50a6e4,'footnotesListStart')&&(_0xea5751['setAttribute']('footnotesListStart',_0x40e35a,_0x50a6e4),_0x16fbb6=!0x0),!_0x50a6e4['hasAttribute']('footnotesListStyle')&&_0x3d986b['schema']['checkAttribute'](_0x50a6e4,'footnotesListStyle')&&(_0xea5751['setAttribute']('footnotesListStyle',_0x402642,_0x50a6e4),_0x16fbb6=!0x0));}return _0x16fbb6&&_0x22c10a['_updateFootnotesCounters'](_0xea5751),_0x16fbb6;});}['_defineFormatter'](){const {editor:_0x32a162}=this;_0x32a162['plugins']['get'](f)['setFootnoteFormatter'](_0x3317ab=>this['_formatFootnoteListValue'](_0x3317ab));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2ea635,value:_0xc84e33,digits:_0x3696fa}){const _0x3c01fc=_0x2ea635['getAttribute']('footnotesListStyle'),_0x49b1e1=_0x2ea635['getAttribute']('footnotesListStart'),_0x8d806a=Math['floor'](_0xc84e33)+(_0x49b1e1??0x1)-0x1;switch(_0x3c01fc){case'decimal-leading-zero':return function(_0x321a65,_0x3e1d0c){return String(_0x321a65)['padStart'](_0x3e1d0c,'0');}(_0x8d806a,Math['max'](0x2,_0x3696fa));case'lower-alpha':case'lower-latin':return N(_0x8d806a,!0x1);case'upper-alpha':case'upper-latin':return N(_0x8d806a,!0x0);case'lower-roman':return X(_0x8d806a,!0x1);case'upper-roman':return X(_0x8d806a,!0x0);default:return String(_0x8d806a);}}}function M(_0x5aa3ea,_0x4252b1){const _0x4e5e54=_0x4252b1['toViewElement'](_0x5aa3ea);return Array['from'](_0x4e5e54['getChildren']())['find'](_0x75b105=>_0x75b105['is']('element','ol')&&_0x75b105['hasClass']('footnotes-list'));}function N(_0x21222c,_0x329f59){let _0x1af978='',_0x2761e1=_0x21222c;for(;_0x2761e1>0x0;){const _0x57dbd9=(_0x2761e1-0x1)%0x1a;_0x1af978=String['fromCharCode'](0x61+_0x57dbd9)+_0x1af978,_0x2761e1=Math['floor']((_0x2761e1-0x1)/0x1a);}return _0x329f59?_0x1af978['toUpperCase']():_0x1af978;}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(_0x4ccf81,_0x44aefa){let _0x280262='',_0x405d1a=_0x4ccf81;for(const {value:_0x41c8ae,numeral:_0x364f38}of V)for(;_0x405d1a>=_0x41c8ae;)_0x280262+=_0x364f38,_0x405d1a-=_0x41c8ae;return _0x44aefa?_0x280262:_0x280262['toLowerCase']();}class H extends _0x142d8f{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x14a301();['focusCycler'];constructor(_0x4c034b,{styleButtonViews:_0x1a4848,styleGridAriaLabel:_0x4a0100}){super(_0x4c034b),(this['focusCycler']=new _0x1ef80b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1a4848,_0x4a0100),[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 _0x4f1c45 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4f1c45['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x1f2208=_0x4c63d3=>_0x4c63d3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1f2208),this['keystrokes']['set']('arrowleft',_0x1f2208),this['keystrokes']['set']('arrowup',_0x1f2208),this['keystrokes']['set']('arrowdown',_0x1f2208);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3190b6,_0x41123c){const _0x40d667=new _0x142d8f(this['locale']);return _0x40d667['children']=_0x40d667['createCollection'](),_0x40d667['children']['addMany'](_0x3190b6),_0x40d667['setTemplate']({'tag':'div','attributes':{'aria-label':_0x41123c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x40d667['children']}),_0x40d667['children']['delegate']('execute')['to'](this),_0x40d667['focus']=function(){for(const _0x554256 of this['children'])if(_0x554256 instanceof _0x3c8d4e&&_0x554256['isOn'])return void _0x554256['focus']();this['children']['first']['focus']();},_0x40d667['focusTracker']=new ot(),_0x40d667['keystrokes']=new rt(),_0x40d667['render'](),_0x40d667['keystrokes']['listenTo'](_0x40d667['element']),this['children']['add'](_0x40d667),_0x40d667;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x495a5c=this['_createStartIndexPropertyView'](),_0x1b4784=[_0x495a5c],_0x5c8f17=new st(this['locale'],_0x1b4784);return _0x5c8f17['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5c8f17['buttonView']['bind']('isEnabled')['toMany'](_0x1b4784,'isEnabled',(..._0x24216e)=>_0x24216e['some'](_0x555cd9=>_0x555cd9)),_0x5c8f17['buttonView']['on']('change:isEnabled',(_0x26c22,_0x31ebb5,_0x1fc721)=>{_0x1fc721||(_0x5c8f17['isCollapsed']=!0x0);}),this['children']['add'](_0x5c8f17),[_0x495a5c,_0x5c8f17];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e406c=new it(this['locale'],et);return _0x2e406c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e406c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e406c['fieldView']['on']('input',()=>{const _0x1b2b82=_0x2e406c['fieldView']['element'],_0x2c7827=_0x1b2b82['valueAsNumber'];Number['isNaN'](_0x2c7827)?_0x2e406c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1b2b82['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2c7827}):_0x2e406c['errorText']=t(_0x2c7827<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2e406c;}}class j extends _0x39419f{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xdf35ea,_0x3db4cc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x313376}=this,{componentFactory:_0x4f6ca2}=_0x313376['ui'];_0x313376['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4f6ca2['add']('footnotesStyle',function(_0x213faa){return _0x33b1d9=>{const {t:t}=_0x33b1d9,_0x2208f9=_0x213faa['commands']['get']('footnotesStyle'),_0x347894=_0x51b52e(_0x33b1d9),{buttonView:_0x49e61e}=_0x347894;return _0x347894['class']='ck-footnotes-styles-dropdown',_0x347894['bind']('isEnabled')['to'](_0x2208f9,'isEnabled'),_0x49e61e['set']({'label':t('Footnotes\x20style'),'icon':_0x3ea16c,'tooltip':!0x0}),_0x347894['once']('change:isOpen',()=>{const _0x2469fa=function({editor:_0x5cf544,dropdownView:_0x2b98d8}){const {t:t}=_0x5cf544['locale'],_0x29d4ab=t('Footnotes\x20definitions\x20styles'),_0x366f6c=function(_0x26a9d0){const t=_0x26a9d0['locale']['t'],_0x44ab57=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4d6b30},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4b5cee},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38ffb6},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1fc4a5},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x34d13d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x24e982}];return _0x44ab57['map'](function(_0x3c7f54){const _0x58d488=_0x3c7f54['locale'];return({label:_0x30da40,icon:_0x4099ce,tooltip:_0x5ec6e0,style:_0x47f3a4})=>{const _0xa12047=_0x3c7f54['commands']['get']('footnotesStyle'),_0x6cc904=new _0x3c8d4e(_0x58d488);return _0x6cc904['set']({'label':_0x30da40,'icon':_0x4099ce,'tooltip':_0x5ec6e0}),_0x6cc904['bind']('isOn')['to'](_0xa12047,'value',_0x26ba33=>_0x26ba33===_0x47f3a4),_0x6cc904['bind']('isEnabled')['to'](_0xa12047,'isEnabled'),_0x6cc904['on']('execute',()=>{_0x3c7f54['execute']('footnotesStyle',{'value':_0x47f3a4}),_0x3c7f54['editing']['view']['focus']();}),_0x6cc904;};}(_0x26a9d0));}(_0x5cf544),_0x4d33f1=new H(_0x5cf544['locale'],{'styleGridAriaLabel':_0x29d4ab,'styleButtonViews':_0x366f6c}),_0xabb155=_0x5cf544['commands']['get']('footnotesStart');return _0x4d33f1['startIndexFieldView']['bind']('isEnabled')['to'](_0xabb155),_0x4d33f1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xabb155),_0x4d33f1['on']('footnotesListStart',(_0x70c8c7,_0xc7a64f)=>{_0x5cf544['execute']('footnotesStart',{'value':_0xc7a64f['startIndex']});}),_0x4d33f1['delegate']('execute')['to'](_0x2b98d8),_0x4d33f1;}({'editor':_0x213faa,'dropdownView':_0x347894});_0x347894['panelView']['children']['add'](_0x2469fa);}),_0x347894;};}(_0x313376));}['afterInit'](){const {editor:_0x328258}=this,{t:t}=_0x328258['locale'],_0x21c80f=_0x328258['plugins']['get'](_0x3db4cc),{defaultPositions:_0x378fda}=_0x15e81d;_0x21c80f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x328258['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2d2cde=>{let _0x318c8d=_0x2d2cde['getFirstPosition']()?.['parent'];return _0x318c8d?.['is']('$text')&&(_0x318c8d=_0x318c8d['parent']),_0x318c8d?.['is']('element')?_0x318c8d['findAncestor'](J):null;},'positions':[_0x378fda['southArrowNorth'],_0x378fda['southArrowNorthMiddleWest'],_0x378fda['southArrowNorthMiddleEast'],_0x378fda['southArrowNorthWest'],_0x378fda['southArrowNorthEast'],_0x378fda['northArrowSouth'],_0x378fda['northArrowSouthMiddleWest'],_0x378fda['northArrowSouthMiddleEast'],_0x378fda['northArrowSouthWest'],_0x378fda['northArrowSouthEast'],_0x378fda['viewportStickyNorth']]});}}class ft extends _0x39419f{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251206.0",
3
+ "version": "0.0.0-nightly-20251208.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251206.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251206.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251206.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251206.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251206.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251206.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251206.0",
33
- "ckeditor5": "0.0.0-nightly-20251206.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251208.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251208.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251208.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251208.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251208.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251208.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251208.0",
33
+ "ckeditor5": "0.0.0-nightly-20251208.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5f4ffa}from'ckeditor5/src/core.js';import{isWidget as _0x542dc1,toWidget as _0x3e57ef,toWidgetEditable as _0x11fb0a}from'ckeditor5/src/widget.js';import{uid as _0x5dfe62}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3fc106,ClickObserver as _0x246b52}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2bbfff}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2953d1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5f4ffa{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2bbfff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x152772}=this;_0x152772['config']['define']('footnotes.multiBlock',!0x0),_0x152772['commands']['add']('insertFootnote',new _0x2953d1(_0x152772)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1273ca){const _0x58718f=_0x430f9a([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]),_0x3e7213=0x47a28506,_0xfd3b41=0x47a5fe26^_0x3e7213,_0x5fbfaa=window[_0x430f9a([0x44,0x61,0x74,0x65])][_0x430f9a([0x6e,0x6f,0x77])](),_0x7a48dd=_0x1273ca[_0x430f9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21a00f=new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e34a0=>{_0x7a48dd[_0x430f9a([0x6f,0x6e,0x63,0x65])](_0x430f9a([0x72,0x65,0x61,0x64,0x79]),_0x2e34a0);}),_0x3166a5={[_0x430f9a([0x6b,0x74,0x79])]:_0x430f9a([0x45,0x43]),[_0x430f9a([0x75,0x73,0x65])]:_0x430f9a([0x73,0x69,0x67]),[_0x430f9a([0x63,0x72,0x76])]:_0x430f9a([0x50,0x2d,0x32,0x35,0x36]),[_0x430f9a([0x78])]:_0x430f9a([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]),[_0x430f9a([0x79])]:_0x430f9a([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]),[_0x430f9a([0x61,0x6c,0x67])]:_0x430f9a([0x45,0x53,0x32,0x35,0x36])},_0x2feea3=_0x7a48dd[_0x430f9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x430f9a([0x67,0x65,0x74])](_0x430f9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17c235(){let _0x10d95c,_0x24e69a=null,_0x1bd38a=null;try{if(_0x2feea3==_0x430f9a([0x47,0x50,0x4c]))return _0x430f9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10d95c=_0x2d05bc(),!_0x10d95c)return _0x430f9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10d95c[_0x430f9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bd38a=_0x2e068a(_0x10d95c[_0x430f9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10d95c[_0x430f9a([0x6a,0x74,0x69])])),await _0x5bcb24()?_0x8292c()?_0x3f588e()?_0x430f9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b1d83()?(_0x10d95c[_0x430f9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x430f9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24e69a=_0x19f38d(_0x430f9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10d95c[_0x430f9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x430f9a([0x74,0x72,0x69,0x61,0x6c])&&(_0x24e69a=_0x19f38d(_0x430f9a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26c2b9()):_0x430f9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x430f9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x430f9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x430f9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f588e(){const _0x4547d7=[_0x430f9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x430f9a([0x74,0x72,0x69,0x61,0x6c])][_0x430f9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10d95c[_0x430f9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5fbfaa/0x3e8:0xe10*_0xfd3b41;return _0x10d95c[_0x430f9a([0x65,0x78,0x70])]<_0x4547d7;}function _0x8292c(){const _0x1ebf0a=_0x10d95c[_0x430f9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ebf0a&&(!!_0x1ebf0a[_0x430f9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430f9a([0x2a]))||!!_0x1ebf0a[_0x430f9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430f9a([0x46,0x4f,0x4f])));}function _0x4b1d83(){const _0x220a58=_0x10d95c[_0x430f9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x220a58||0x0==_0x220a58[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e7221}=new URL(window[_0x430f9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x220a58[_0x430f9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7221))return!0x0;const _0xcbe5fc=_0x1e7221[_0x430f9a([0x73,0x70,0x6c,0x69,0x74])](_0x430f9a([0x2e]));return _0x220a58[_0x430f9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c8012=>_0x3c8012[_0x430f9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430f9a([0x2a])))[_0x430f9a([0x6d,0x61,0x70])](_0xe6f054=>_0xe6f054[_0x430f9a([0x73,0x70,0x6c,0x69,0x74])](_0x430f9a([0x2e])))[_0x430f9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x333bb4=>_0x333bb4[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xcbe5fc[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430f9a([0x6d,0x61,0x70])](_0x1eaeef=>Array(_0xcbe5fc[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1eaeef[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x430f9a([0x66,0x69,0x6c,0x6c])](_0x1eaeef[0x0]===_0x430f9a([0x2a])?_0x430f9a([0x2a]):'')[_0x430f9a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1eaeef))[_0x430f9a([0x73,0x6f,0x6d,0x65])](_0xf65a6a=>_0xcbe5fc[_0x430f9a([0x65,0x76,0x65,0x72,0x79])]((_0x327b76,_0x48fe27)=>_0xf65a6a[_0x48fe27]===_0x327b76||_0xf65a6a[_0x48fe27]===_0x430f9a([0x2a])));}function _0x26c2b9(){return _0x24e69a&&_0x1bd38a?new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3aa2f6,_0x294ac6)=>{_0x24e69a[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x3aa2f6,_0x294ac6),_0x1bd38a[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x4962f1=>{_0x4962f1!=_0x430f9a([0x56,0x61,0x6c,0x69,0x64])&&_0x3aa2f6(_0x4962f1);},_0x294ac6);}):_0x24e69a||_0x1bd38a||_0x430f9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e068a(_0x5ad51c,_0x3db5bb){return new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13553f=>{if(_0x4ea92f())return _0x13553f(_0x430f9a([0x56,0x61,0x6c,0x69,0x64]));_0x515e89(),_0x7a48dd[_0x430f9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x430f9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54e9a7=!0x1;const _0x3f8195=_0x5dfe62();function _0x4d4799(_0x39f041){return!!_0x39f041&&(typeof _0x39f041===_0x430f9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39f041===_0x430f9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39f041[_0x430f9a([0x74,0x68,0x65,0x6e])]===_0x430f9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39f041[_0x430f9a([0x63,0x61,0x74,0x63,0x68])]===_0x430f9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x404642(_0x98b745){_0xed0e4f(_0x98b745)[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x4a75c8=>{if(!_0x4a75c8||_0x4a75c8[_0x430f9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x430f9a([0x6f,0x6b]))return _0x430f9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32c363(_0x56d082(_0x3f8195+_0x3db5bb))!=_0x4a75c8[_0x430f9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x430f9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x430f9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x2108b1=>(_0x4c8e69(),_0x2108b1),()=>{const _0x219a4a=_0x44c566();return null==_0x219a4a?(_0x4c8e69(),_0x430f9a([0x56,0x61,0x6c,0x69,0x64])):_0x430f9a(_0x5fbfaa-_0x219a4a>(0x63ae0106^_0x3e7213)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x13553f)[_0x430f9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13553f(_0x430f9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bb231=0x47946b86^_0x3e7213;function _0x4c8e69(){const _0x55b97a=_0x430f9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x32c363(_0x56d082(_0x5ad51c)),_0x392e98=_0x273f77(_0x32c363(window[_0x430f9a([0x4d,0x61,0x74,0x68])][_0x430f9a([0x63,0x65,0x69,0x6c])](_0x5fbfaa/_0x5bb231)));window[_0x430f9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430f9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55b97a,_0x392e98);}function _0x44c566(){const _0x3667d6=_0x430f9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x32c363(_0x56d082(_0x5ad51c)),_0x33f387=window[_0x430f9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x430f9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3667d6);return _0x33f387?window[_0x430f9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x273f77(_0x33f387),0x10)*_0x5bb231:null;}function _0xed0e4f(_0x2773cd){return new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11b530,_0x24f2e7)=>{_0x2773cd[_0x430f9a([0x74,0x68,0x65,0x6e])](_0x11b530,_0x24f2e7),window[_0x430f9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24f2e7,0x47a351c6^_0x3e7213);});}}_0x7a48dd[_0x430f9a([0x6f,0x6e])](_0x430f9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4097c1,_0x3aa368)=>{if(_0x3aa368[0x0]!=_0x5ad51c)return _0x13553f(_0x430f9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3aa368[0x1]={..._0x3aa368[0x1],[_0x430f9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f8195};},{[_0x430f9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430f9a([0x68,0x69,0x67,0x68])}),_0x7a48dd[_0x430f9a([0x6f,0x6e])](_0x430f9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c264d=>{_0x4d4799(_0x3c264d[_0x430f9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54e9a7=!0x0,_0x404642(_0x3c264d[_0x430f9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x430f9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x430f9a([0x6c,0x6f,0x77])}),_0x21a00f[_0x430f9a([0x74,0x68,0x65,0x6e])](()=>{_0x54e9a7||_0x13553f(_0x430f9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ea92f(){return _0x7a48dd[_0x430f9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430f9a([0x76,0x69,0x65,0x77])][_0x430f9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x430f9a([0x61,0x75,0x74,0x6f]);}function _0x515e89(){_0x7a48dd[_0x430f9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x430f9a([0x76,0x69,0x65,0x77])][_0x430f9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x430f9a([0x61,0x75,0x74,0x6f]);}}function _0x19f38d(_0x54b17c){const _0x246e9b=[new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3948aa=>setTimeout(_0x3948aa,0x47abbbca^_0x3e7213)),_0x21a00f[_0x430f9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae3c8=>{let _0x482d3c=0x0;_0x7a48dd[_0x430f9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x430f9a([0x6f,0x6e])](_0x430f9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f89e2,_0x2d486a)=>{_0x2d486a[0x0][_0x430f9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x482d3c++,_0x482d3c==(0x47a284fe^_0x3e7213)&&(_0x3ae3c8(),_0x4f89e2[_0x430f9a([0x6f,0x66,0x66])]());});}))];return window[_0x430f9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x430f9a([0x72,0x61,0x63,0x65])](_0x246e9b)[_0x430f9a([0x74,0x68,0x65,0x6e])](()=>_0x54b17c);}async function _0x48ef69(){await _0x21a00f,_0x7a48dd[_0x430f9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x430f9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfaa56d,_0x7a48dd[_0x430f9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x430f9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfaa56d,_0x7a48dd[_0x430f9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x430f9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27d337(_0x4e1f2d){const _0x1a88e5=_0x560174();_0x7a48dd[_0x1a88e5]=_0x430f9a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e1f2d,_0x4e1f2d!=_0x430f9a([0x56,0x61,0x6c,0x69,0x64])&&_0x48ef69();}function _0x560174(){const _0x468d40=window[_0x430f9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x430f9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x430f9a([0x6e,0x6f,0x77])]())[_0x430f9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x430f9a([0x2e]),'');let _0x17dd76=_0x430f9a([0x75]);for(let _0x1d4f3e=0x0;_0x1d4f3e<_0x468d40[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d4f3e+=0x2){let _0x1a0da6=window[_0x430f9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468d40[_0x430f9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d4f3e,_0x1d4f3e+0x2));_0x1a0da6>=_0x58718f[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a0da6-=_0x58718f[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17dd76+=_0x58718f[_0x1a0da6];}return _0x17dd76;}function _0x2d05bc(){const _0x36044a=_0x2feea3[_0x430f9a([0x73,0x70,0x6c,0x69,0x74])](_0x430f9a([0x2e]));if(0x3!=_0x36044a[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f05f2(_0x36044a[0x1]);function _0x3f05f2(_0x16dcae){const _0x53e8d7=_0x537683(_0x16dcae);return _0x53e8d7&&_0x3d8697()?_0x53e8d7:null;function _0x3d8697(){const _0x530fae=_0x53e8d7[_0x430f9a([0x6a,0x74,0x69])],_0x553965=window[_0x430f9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x530fae[_0x430f9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x530fae[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bcdcb={..._0x53e8d7,[_0x430f9a([0x6a,0x74,0x69])]:_0x530fae[_0x430f9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x530fae[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bcdcb[_0x430f9a([0x76,0x63])],_0x56d082(_0x1bcdcb)==_0x553965;}}}async function _0x5bcb24(){let _0x1a0309=!0x0;try{const _0x53f52b=_0x2feea3[_0x430f9a([0x73,0x70,0x6c,0x69,0x74])](_0x430f9a([0x2e])),[_0x4a04ae,_0x5e5fc6,_0xf787ff]=_0x53f52b;return _0x3b6718(_0x4a04ae),await _0x242edd(_0x4a04ae,_0x5e5fc6,_0xf787ff),_0x1a0309;}catch{return!0x1;}function _0x3b6718(_0x34a104){const _0x510a62=_0x537683(_0x34a104);_0x510a62&&_0x510a62[_0x430f9a([0x61,0x6c,0x67])]==_0x430f9a([0x45,0x53,0x32,0x35,0x36])||(_0x1a0309=!0x1);}async function _0x242edd(_0x169e6b,_0xf284f4,_0xf81cf6){const _0x580e7e=window[_0x430f9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x430f9a([0x66,0x72,0x6f,0x6d])](_0x453fb1(_0xf81cf6),_0x235014=>_0x235014[_0x430f9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x362e6d=new window[(_0x430f9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x430f9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x169e6b+_0x430f9a([0x2e])+_0xf284f4),_0x29c05a=window[_0x430f9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x430f9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29c05a)return;const _0x110e76=await _0x29c05a[_0x430f9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x430f9a([0x6a,0x77,0x6b]),_0x3166a5,{[_0x430f9a([0x6e,0x61,0x6d,0x65])]:_0x430f9a([0x45,0x43,0x44,0x53,0x41]),[_0x430f9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x430f9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x430f9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29c05a[_0x430f9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x430f9a([0x6e,0x61,0x6d,0x65])]:_0x430f9a([0x45,0x43,0x44,0x53,0x41]),[_0x430f9a([0x68,0x61,0x73,0x68])]:{[_0x430f9a([0x6e,0x61,0x6d,0x65])]:_0x430f9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x110e76,_0x580e7e,_0x362e6d)||(_0x1a0309=!0x1);}}function _0x537683(_0x3dfe1f){return _0x3dfe1f[_0x430f9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x430f9a([0x65,0x79]))?JSON[_0x430f9a([0x70,0x61,0x72,0x73,0x65])](_0x453fb1(_0x3dfe1f)):null;}function _0x453fb1(_0x4a3a13){return window[_0x430f9a([0x61,0x74,0x6f,0x62])](_0x4a3a13[_0x430f9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x430f9a([0x2b]))[_0x430f9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x430f9a([0x2f])));}function _0x56d082(_0x53947e){let _0x9c2b=0x1505;function _0x3570fd(_0x1b5fea){for(let _0x2b6435=0x0;_0x2b6435<_0x1b5fea[_0x430f9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b6435++){const _0x154e5e=_0x1b5fea[_0x430f9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b6435);_0x9c2b=(_0x9c2b<<0x5)+_0x9c2b+_0x154e5e,_0x9c2b&=_0x9c2b;}}function _0xd5e43f(_0x5871a7){Array[_0x430f9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5871a7)?_0x5871a7[_0x430f9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd5e43f):_0x5871a7&&typeof _0x5871a7==_0x430f9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x430f9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5871a7)[_0x430f9a([0x73,0x6f,0x72,0x74])]()[_0x430f9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x75dccb,_0x5b4951])=>{_0x3570fd(_0x75dccb),_0xd5e43f(_0x5b4951);}):_0x3570fd(window[_0x430f9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5871a7));}return _0xd5e43f(_0x53947e),_0x9c2b>>>0x0;}function _0x32c363(_0x368dc5){return _0x368dc5[_0x430f9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x430f9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x430f9a([0x30]));}function _0x273f77(_0xa4a120){return _0xa4a120[_0x430f9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x430f9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x430f9a([0x6a,0x6f,0x69,0x6e])]('');}function _0xfaa56d(){}function _0x430f9a(_0x67f87b){return _0x67f87b['map'](_0x5b14f7=>String['fromCharCode'](_0x5b14f7))['join']('');}_0x27d337(await _0x17c235());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5f4036){const {plugins:_0x3edb04,editing:_0x29a639,model:_0x15c917}=this['editor'],_0x48dea4=_0x3edb04['get'](_0x2bbfff)['getFootnote'](_0x5f4036);return!!_0x48dea4&&(_0x15c917['change'](_0x35c114=>{_0x35c114['setSelection'](_0x35c114['createPositionAt'](_0x48dea4['definition'],'end'));}),_0x29a639['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4e7bcb){const {plugins:_0x531862,editing:_0x421fc6,model:_0x35d8d6}=this['editor'],_0x37d80c=_0x531862['get'](_0x2bbfff)['getFootnote'](_0x4e7bcb);return!!_0x37d80c&&(_0x35d8d6['change'](_0xef5f6e=>{_0xef5f6e['setSelection'](_0x37d80c['reference'],'on');}),_0x421fc6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x384fb1}=this['editor']['model'],_0x1d3f49=this['editor']['config']['get']('footnotes.multiBlock');_0x384fb1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x384fb1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x384fb1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1d3f49?_0x384fb1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x384fb1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x384fb1['addChildCheck'](_0x57693c=>{for(const _0x40745c of _0x57693c)if('footnoteDefinition'===_0x40745c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x212d9d}=this,{conversion:_0x53ece3,editing:_0x2c6b44}=_0x212d9d,{t:t}=_0x212d9d['locale'];_0x53ece3['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2cf11d,{writer:_0x41d590,consumable:_0x278695})=>{const _0x3b65ff=_0x2cf11d['getChild'](0x0);if(!_0x3b65ff||!_0x3b65ff['is']('element','a'))return null;const _0x4f83fd=_0x3b65ff['getAttribute']('href')||'';if(!_0x4f83fd['startsWith']('#'))return null;const _0x2f7780=_0x4f83fd['replace'](/^#/,'');if(!_0x2f7780)return null;_0x278695['consume'](_0x3b65ff,{'name':!0x0,'attributes':['href']});for(const {item:_0x4af9e9}of _0x2c6b44['view']['createRangeIn'](_0x3b65ff))_0x4af9e9['is']('$textProxy')?_0x278695['consume'](_0x4af9e9['textNode'],{'name':!0x0}):_0x4af9e9['is']('element')&&_0x278695['consume'](_0x4af9e9,{'name':!0x0});return _0x41d590['createElement']('footnoteRef',{'footnoteId':_0x2f7780});}}),_0x53ece3['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2d261a,{writer:_0x42582e})=>D(_0x2d261a,_0x42582e)}),_0x53ece3['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x269588,{writer:_0x29ee08})=>{const _0x7e4e38=_0x269588['getAttribute']('footnoteCounter');return _0x3e57ef(D(_0x269588,_0x29ee08),_0x29ee08,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7e4e38)});}});}['_defineDefinitionsConverters'](){const {editor:_0x27de69}=this,{t:t}=_0x27de69['locale'],{conversion:_0x400944}=_0x27de69;_0x400944['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x400944['for']('upcast')['add'](_0x12a125=>{_0x12a125['on']('element:ol',(_0x17a247,_0x4a107d,_0x4ad6c7)=>{const _0x3004ce=_0x4a107d['viewItem'];if(!_0x3004ce['hasClass']('footnotes-list')||!_0x4a107d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4ad6c7['consumable']['consume'](_0x3004ce,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x19cbf9,modelCursor:_0x21b2da}=_0x4ad6c7['convertChildren'](_0x4a107d['viewItem'],_0x4a107d['modelCursor']);_0x4a107d['modelRange']=_0x19cbf9,_0x4a107d['modelCursor']=_0x21b2da;}),_0x12a125['on']('element:hr',(_0x4f04d5,_0x51454c,_0x11a43a)=>{const _0x3d5408=_0x51454c['viewItem'];_0x3d5408['hasClass']('footnotes-divider')&&_0x51454c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x11a43a['consumable']['consume'](_0x3d5408,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x400944['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xdd1103,{writer:_0x39f204})=>v(_0x39f204)}),_0x400944['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5988ae,{writer:_0x1d7f2d})=>{const _0xf5abba=v(_0x1d7f2d,{'data-footnotes-list-label':t('Footnotes')}),_0x1171fe=_0x3e57ef(_0xf5abba,_0x1d7f2d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1d7f2d['setCustomProperty']('footnotesDefinitions',!0x0,_0x1171fe),_0x1171fe;}});}['_defineDefinitionConverters'](){const {editor:_0x5e67d0}=this,{conversion:_0x5ddc03,locale:_0x10367d}=_0x5e67d0,_0x275eac=_0x5e67d0['config']['get']('footnotes.multiBlock');_0x5ddc03['for']('upcast')['add'](_0x542bd9=>{_0x542bd9['on']('element:li',(_0x1fcce4,_0x5e380,_0x43de48)=>{const _0x4e7a1=_0x5e380['viewItem'];if(!_0x4e7a1['hasClass']('footnote-definition')||!_0x4e7a1['getAttribute']('id'))return;const _0x799358=_0x4e7a1['parent'];if(!_0x799358['is']('element','ol')||!_0x799358['hasClass']('footnotes-list'))return;if(!_0x43de48['consumable']['test'](_0x4e7a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x30f583=_0x43de48['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4e7a1['getAttribute']('id')});if(!_0x43de48['safeInsert'](_0x30f583,_0x5e380['modelCursor']))return;_0x43de48['consumable']['consume'](_0x4e7a1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x445584=Array['from'](_0x4e7a1['getChildren']())['find'](_0x5502a7=>_0x5502a7['is']('element')&&_0x5502a7['hasClass']('footnote-content'));for(const _0x6c736f of _0x4e7a1['getChildren']())_0x6c736f['is']('element')&&(_0x43de48['consumable']['consume'](_0x6c736f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x43de48['consumable']['consume'](_0x6c736f,{'name':!0x0,'classes':'footnote-content'}));if(_0x445584){if(_0x275eac)_0x43de48['convertChildren'](_0x445584,_0x30f583);else{const _0x2df2dd=_0x43de48['writer']['createElement']('footnoteInlineContent');_0x43de48['writer']['insert'](_0x2df2dd,_0x30f583),_0x43de48['convertChildren'](_0x445584,_0x2df2dd);}}_0x43de48['updateConversionResult'](_0x30f583,_0x5e380);});}),_0x5ddc03['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5e4a93,{writer:_0x221503})=>b(_0x5e4a93,_0x221503,_0x10367d,{'dataPipeline':!0x0})}),_0x5ddc03['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2ad6e8,{writer:_0x23013a})=>b(_0x2ad6e8,_0x23013a,_0x10367d)});}['_defineBogusParagraphConverters'](){const {editor:_0x32e3ed}=this,{conversion:_0xbb436d}=_0x32e3ed;_0x32e3ed['config']['get']('footnotes.multiBlock')?(_0xbb436d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xbb436d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x32e3ed['model']['document'],'change:data',()=>{!function(_0x28d209,_0x52f090){const _0x29d43c=_0x28d209['document']['differ'],_0x333d81=new Set();for(const _0x25bea6 of _0x29d43c['getChanges']()){const _0x2b3993='attribute'==_0x25bea6['type']?_0x25bea6['range']['start']['parent']:_0x25bea6['position']['parent'];_0x2b3993['is']('element','footnoteDefinition')&&_0x333d81['add'](_0x2b3993);}for(const _0x4d84ee of _0x333d81['values']()){const _0x53969d=Array['from'](_0x4d84ee['getChildren']())['filter'](_0x2ca237=>g(_0x2ca237,_0x52f090['mapper']));for(const _0x9401ea of _0x53969d)_0x52f090['reconvertItem'](_0x9401ea);}}(_0x32e3ed['model'],_0x32e3ed['editing']);})):(_0xbb436d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xbb436d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4fd32b,{writer:_0x40eabf})=>{const _0x5af9da=_0x40eabf['createContainerElement']('span');return _0x40eabf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5af9da),_0x5af9da;}}));}['_defineKeyboardHandlers'](){const {editor:_0x275c96}=this,{editing:_0x56de87,t:t}=_0x275c96,_0x48d6dd=_0x275c96['model']['document']['selection'];_0x275c96['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x275c96['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x56de87['view']['document'],'enter',(_0x510661,_0x491767)=>{const _0x14853d=function(_0xe43808){const _0x4fc020=_0xe43808['getSelectedElement']();if(_0x4fc020?.['is']('element','footnoteRef'))return _0x4fc020;return null;}(_0x48d6dd);if(_0x14853d){const _0x46f1d4=_0x14853d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x46f1d4),_0x491767['preventDefault'](),_0x510661['stop']();}},{'context':_0x542dc1});}['_defineClickHandlers'](){const {editor:_0x50125d}=this,{editing:_0x5910bd}=_0x50125d;_0x50125d['editing']['view']['addObserver'](_0x3fc106),_0x50125d['editing']['view']['addObserver'](_0x246b52);let _0x52644=!0x1;this['listenTo'](_0x5910bd['view']['document'],'pointerdown',(_0x39a022,_0x2b6f77)=>{const {target:_0x5c4d05}=_0x2b6f77,_0x4b429b=_0x5910bd['view']['document']['selection'];_0x52644=!!(_0x5c4d05?.['is']('element','a')&&_0x5c4d05['parent']?.['is']('element','sup')&&_0x5c4d05['parent']['hasClass']('footnote'))&&_0x4b429b['getSelectedElement']()===_0x5c4d05['parent'];},{'priority':'high'}),this['listenTo'](_0x5910bd['view']['document'],'click',(_0x8a5155,_0x47b104)=>{const {target:_0x72ccac}=_0x47b104;if(!_0x72ccac?.['is']('element','a'))return;if(_0x72ccac['parent']?.['is']('element','sup')&&_0x72ccac['parent']['hasClass']('footnote')&&!_0x52644)return void _0x47b104['preventDefault']();let _0xcc228a=_0x72ccac['getAttribute']('href');if(!_0xcc228a?.['startsWith']('#'))return;_0xcc228a=_0xcc228a['slice'](0x1);let _0x92d42c=!0x1;(_0xcc228a['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xcc228a['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xcc228a))&&(_0x92d42c=!0x0),_0x92d42c&&(_0x47b104['preventDefault'](),_0x8a5155['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x59665c}={}){return(_0x4564e0,{writer:_0xc58783})=>{if(!p(_0x4564e0))return null;if(!_0x59665c)return _0xc58783['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2ee899=_0xc58783['createContainerElement']('p');return _0xc58783['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2ee899),_0x2ee899;};}function p(_0x2f5e66){const {parent:_0x46f96d}=_0x2f5e66;if(!_0x46f96d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x46f96d['childCount'])return!0x1;for(const _0x1f4e35 of _0x2f5e66['getAttributeKeys']())if(!_0x1f4e35['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1f4e35)return!0x1;return!0x0;}function g(_0x353816,_0x3b9c61){if(!_0x353816['is']('element','paragraph'))return!0x1;const _0x42177e=_0x3b9c61['toViewElement'](_0x353816);return!!_0x42177e&&p(_0x353816)!==_0x42177e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1bee5a){return _0x542dc1(_0x1bee5a)&&_0x1bee5a['is']('containerElement')&&!!_0x1bee5a['getCustomProperty']('footnotesDefinitions');}function v(_0x6dd6df,_0x2d2737={}){const _0x4fcd35=_0x6dd6df['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x380c6b=_0x6dd6df['createContainerElement']('ol',{'class':'footnotes-list'},_0x6dd6df['createSlot']());return _0x6dd6df['createContainerElement']('div',{'class':'footnotes',..._0x2d2737},[_0x4fcd35,_0x380c6b]);}function D(_0x41d372,_0x2df545){const _0x43ea69=_0x41d372['getAttribute']('footnoteId'),_0x5c13cd=_0x41d372['getAttribute']('footnoteCounter'),_0x38f312=_0x2df545['createUIElement']('a',{'href':'#'+_0x43ea69},function(_0x61c5fe){const _0x3dc3df=this['toDomElement'](_0x61c5fe);return _0x3dc3df['textContent']=_0x5c13cd,_0x3dc3df;}),_0x4dfd44=_0x2df545['createContainerElement']('sup',{'id':'ref-'+_0x43ea69,'class':'footnote'},[_0x38f312]);return _0x4dfd44['getFillerOffset']=()=>null,_0x4dfd44;}function b(_0x6a1599,_0x7093f3,_0x22bb12,{dataPipeline:_0x4c29e8}={}){const {t:t}=_0x22bb12,_0x4718a5=_0x6a1599['getAttribute']('footnoteId'),_0x331b73=_0x7093f3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4718a5},function(_0x4b2e3c){const _0xbf26d8=this['toDomElement'](_0x4b2e3c);return _0xbf26d8['innerText']='^',_0xbf26d8;}),_0x5c20a4=_0x4c29e8?_0x7093f3['createContainerElement']('div',{'class':'footnote-content'}):_0x11fb0a(_0x7093f3['createEditableElement']('div',{'class':'footnote-content'}),_0x7093f3,{'label':t('Footnote\x20content.')});return _0x7093f3['insert'](_0x7093f3['createPositionAt'](_0x5c20a4,0x0),_0x7093f3['createSlot']()),_0x7093f3['createContainerElement']('li',{'class':'footnote-definition','id':_0x4718a5},[_0x331b73,_0x5c20a4]);}
23
+ import{Plugin as _0x19c94d}from'ckeditor5/src/core.js';import{isWidget as _0x440873,toWidget as _0x1eec9a,toWidgetEditable as _0x4ae050}from'ckeditor5/src/widget.js';import{uid as _0x3b6196}from'ckeditor5/src/utils.js';import{PointerObserver as _0x39b1dd,ClickObserver as _0x500485}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x21b88c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x46ceb0}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x19c94d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x21b88c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a5a23}=this;_0x4a5a23['config']['define']('footnotes.multiBlock',!0x0),_0x4a5a23['commands']['add']('insertFootnote',new _0x46ceb0(_0x4a5a23)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4ffbfe){const _0xe87955=_0x48fa24([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]),_0x1d52f3=0x47a28506,_0x3b5ff1=0x47a5fe56^_0x1d52f3,_0x5eed83=window[_0x48fa24([0x44,0x61,0x74,0x65])][_0x48fa24([0x6e,0x6f,0x77])](),_0x119f5b=_0x4ffbfe[_0x48fa24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c1a12=new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57a1bc=>{_0x119f5b[_0x48fa24([0x6f,0x6e,0x63,0x65])](_0x48fa24([0x72,0x65,0x61,0x64,0x79]),_0x57a1bc);}),_0x210406={[_0x48fa24([0x6b,0x74,0x79])]:_0x48fa24([0x45,0x43]),[_0x48fa24([0x75,0x73,0x65])]:_0x48fa24([0x73,0x69,0x67]),[_0x48fa24([0x63,0x72,0x76])]:_0x48fa24([0x50,0x2d,0x32,0x35,0x36]),[_0x48fa24([0x78])]:_0x48fa24([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]),[_0x48fa24([0x79])]:_0x48fa24([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]),[_0x48fa24([0x61,0x6c,0x67])]:_0x48fa24([0x45,0x53,0x32,0x35,0x36])},_0x18e6fd=_0x119f5b[_0x48fa24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48fa24([0x67,0x65,0x74])](_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e3f3c(){let _0x440848,_0x3185bb=null,_0x5b6571=null;try{if(_0x18e6fd==_0x48fa24([0x47,0x50,0x4c]))return _0x48fa24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x440848=_0x5a9e77(),!_0x440848)return _0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x440848[_0x48fa24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b6571=_0x11e6c9(_0x440848[_0x48fa24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x440848[_0x48fa24([0x6a,0x74,0x69])])),await _0x41c758()?_0x937538()?_0x96cab3()?_0x48fa24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15e98b()?(_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48fa24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3185bb=_0x458aba(_0x48fa24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48fa24([0x74,0x72,0x69,0x61,0x6c])&&(_0x3185bb=_0x458aba(_0x48fa24([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16b046()):_0x48fa24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48fa24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96cab3(){const _0x432742=[_0x48fa24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48fa24([0x74,0x72,0x69,0x61,0x6c])][_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5eed83/0x3e8:0xe10*_0x3b5ff1;return _0x440848[_0x48fa24([0x65,0x78,0x70])]<_0x432742;}function _0x937538(){const _0x2ede06=_0x440848[_0x48fa24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ede06&&(!!_0x2ede06[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x2a]))||!!_0x2ede06[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x46,0x4f,0x4f])));}function _0x15e98b(){const _0x4afb42=_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4afb42||0x0==_0x4afb42[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32fa39}=new URL(window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4afb42[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32fa39))return!0x0;const _0x2ca393=_0x32fa39[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e]));return _0x4afb42[_0x48fa24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d881b=>_0x2d881b[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x2a])))[_0x48fa24([0x6d,0x61,0x70])](_0x4016ef=>_0x4016ef[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e])))[_0x48fa24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32e821=>_0x32e821[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ca393[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48fa24([0x6d,0x61,0x70])](_0x1ee396=>Array(_0x2ca393[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ee396[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48fa24([0x66,0x69,0x6c,0x6c])](_0x1ee396[0x0]===_0x48fa24([0x2a])?_0x48fa24([0x2a]):'')[_0x48fa24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ee396))[_0x48fa24([0x73,0x6f,0x6d,0x65])](_0x221c80=>_0x2ca393[_0x48fa24([0x65,0x76,0x65,0x72,0x79])]((_0x604e4,_0x59221f)=>_0x221c80[_0x59221f]===_0x604e4||_0x221c80[_0x59221f]===_0x48fa24([0x2a])));}function _0x16b046(){return _0x3185bb&&_0x5b6571?new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x475bf5,_0x29e397)=>{_0x3185bb[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x475bf5,_0x29e397),_0x5b6571[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x4e66b4=>{_0x4e66b4!=_0x48fa24([0x56,0x61,0x6c,0x69,0x64])&&_0x475bf5(_0x4e66b4);},_0x29e397);}):_0x3185bb||_0x5b6571||_0x48fa24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11e6c9(_0xa3a66c,_0x258e66){return new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a868d=>{if(_0x3f0525())return _0x3a868d(_0x48fa24([0x56,0x61,0x6c,0x69,0x64]));_0x2aaef0(),_0x119f5b[_0x48fa24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcf55b0=!0x1;const _0x4d6c40=_0x3b6196();function _0x7bd49f(_0x3564ba){return!!_0x3564ba&&(typeof _0x3564ba===_0x48fa24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3564ba===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3564ba[_0x48fa24([0x74,0x68,0x65,0x6e])]===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3564ba[_0x48fa24([0x63,0x61,0x74,0x63,0x68])]===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x373210(_0x315f51){_0x79e46b(_0x315f51)[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x58fc43=>{if(!_0x58fc43||_0x58fc43[_0x48fa24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48fa24([0x6f,0x6b]))return _0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xce3c13(_0x75102f(_0x4d6c40+_0x258e66))!=_0x58fc43[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48fa24([0x56,0x61,0x6c,0x69,0x64]);})[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x164881=>(_0x3bb9a0(),_0x164881),()=>{const _0x53ee0a=_0x5d6d75();return null==_0x53ee0a?(_0x3bb9a0(),_0x48fa24([0x56,0x61,0x6c,0x69,0x64])):_0x48fa24(_0x5eed83-_0x53ee0a>(0x63ae0106^_0x1d52f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x3a868d)[_0x48fa24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5eea31=0x47946b86^_0x1d52f3;function _0x3bb9a0(){const _0x2ae0fb=_0x48fa24([0x6c,0x6c,0x63,0x74,0x2d])+_0xce3c13(_0x75102f(_0xa3a66c)),_0xd29584=_0x10594f(_0xce3c13(window[_0x48fa24([0x4d,0x61,0x74,0x68])][_0x48fa24([0x63,0x65,0x69,0x6c])](_0x5eed83/_0x5eea31)));window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48fa24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae0fb,_0xd29584);}function _0x5d6d75(){const _0x181bc7=_0x48fa24([0x6c,0x6c,0x63,0x74,0x2d])+_0xce3c13(_0x75102f(_0xa3a66c)),_0x286436=window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48fa24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x181bc7);return _0x286436?window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10594f(_0x286436),0x10)*_0x5eea31:null;}function _0x79e46b(_0x2e2e01){return new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d82ee,_0x7d8ffd)=>{_0x2e2e01[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x3d82ee,_0x7d8ffd),window[_0x48fa24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7d8ffd,0x47a351c6^_0x1d52f3);});}}_0x119f5b[_0x48fa24([0x6f,0x6e])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x386441,_0x2e7eb6)=>{if(_0x2e7eb6[0x0]!=_0xa3a66c)return _0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e7eb6[0x1]={..._0x2e7eb6[0x1],[_0x48fa24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d6c40};},{[_0x48fa24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48fa24([0x68,0x69,0x67,0x68])}),_0x119f5b[_0x48fa24([0x6f,0x6e])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b7552=>{_0x7bd49f(_0x1b7552[_0x48fa24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcf55b0=!0x0,_0x373210(_0x1b7552[_0x48fa24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48fa24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48fa24([0x6c,0x6f,0x77])}),_0x4c1a12[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>{_0xcf55b0||_0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f0525(){return _0x119f5b[_0x48fa24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48fa24([0x76,0x69,0x65,0x77])][_0x48fa24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48fa24([0x61,0x75,0x74,0x6f]);}function _0x2aaef0(){_0x119f5b[_0x48fa24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48fa24([0x76,0x69,0x65,0x77])][_0x48fa24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48fa24([0x61,0x75,0x74,0x6f]);}}function _0x458aba(_0xa1d124){const _0x16793c=[new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f8737=>setTimeout(_0x2f8737,0x47abbbca^_0x1d52f3)),_0x4c1a12[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe7f22=>{let _0x4a7e34=0x0;_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x6f,0x6e])](_0x48fa24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x222f93,_0x55a131)=>{_0x55a131[0x0][_0x48fa24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a7e34++,_0x4a7e34==(0x47a284fe^_0x1d52f3)&&(_0xe7f22(),_0x222f93[_0x48fa24([0x6f,0x66,0x66])]());});}))];return window[_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48fa24([0x72,0x61,0x63,0x65])](_0x16793c)[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>_0xa1d124);}async function _0x43c215(){await _0x4c1a12,_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55937a,_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55937a,_0x119f5b[_0x48fa24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45eec6(_0x1db49b){const _0x59bc77=_0x5783f9();_0x119f5b[_0x59bc77]=_0x48fa24([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1db49b,_0x1db49b!=_0x48fa24([0x56,0x61,0x6c,0x69,0x64])&&_0x43c215();}function _0x5783f9(){const _0x69f3e3=window[_0x48fa24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48fa24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48fa24([0x6e,0x6f,0x77])]())[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48fa24([0x2e]),'');let _0x5965e5=_0x48fa24([0x75]);for(let _0x294976=0x0;_0x294976<_0x69f3e3[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294976+=0x2){let _0x2f910e=window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69f3e3[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x294976,_0x294976+0x2));_0x2f910e>=_0xe87955[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f910e-=_0xe87955[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5965e5+=_0xe87955[_0x2f910e];}return _0x5965e5;}function _0x5a9e77(){const _0x2eff3b=_0x18e6fd[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e]));if(0x3!=_0x2eff3b[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe85d35(_0x2eff3b[0x1]);function _0xe85d35(_0x46c2e9){const _0x431c6a=_0x1b29ba(_0x46c2e9);return _0x431c6a&&_0x26e0ff()?_0x431c6a:null;function _0x26e0ff(){const _0x2e8634=_0x431c6a[_0x48fa24([0x6a,0x74,0x69])],_0x5ad70d=window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e8634[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e8634[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xeec78d={..._0x431c6a,[_0x48fa24([0x6a,0x74,0x69])]:_0x2e8634[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e8634[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xeec78d[_0x48fa24([0x76,0x63])],_0x75102f(_0xeec78d)==_0x5ad70d;}}}async function _0x41c758(){let _0x14113b=!0x0;try{const _0x1e968c=_0x18e6fd[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e])),[_0x45d04e,_0x55aa85,_0x1954d6]=_0x1e968c;return _0x4809ee(_0x45d04e),await _0xb10fe3(_0x45d04e,_0x55aa85,_0x1954d6),_0x14113b;}catch{return!0x1;}function _0x4809ee(_0x603a45){const _0x567960=_0x1b29ba(_0x603a45);_0x567960&&_0x567960[_0x48fa24([0x61,0x6c,0x67])]==_0x48fa24([0x45,0x53,0x32,0x35,0x36])||(_0x14113b=!0x1);}async function _0xb10fe3(_0x399b19,_0x5175f2,_0x30e1b3){const _0x367c42=window[_0x48fa24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48fa24([0x66,0x72,0x6f,0x6d])](_0x33ae65(_0x30e1b3),_0x5d8bcd=>_0x5d8bcd[_0x48fa24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d569e=new window[(_0x48fa24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48fa24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x399b19+_0x48fa24([0x2e])+_0x5175f2),_0x288b7a=window[_0x48fa24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48fa24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x288b7a)return;const _0x3f2b9b=await _0x288b7a[_0x48fa24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48fa24([0x6a,0x77,0x6b]),_0x210406,{[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x45,0x43,0x44,0x53,0x41]),[_0x48fa24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48fa24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x288b7a[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x45,0x43,0x44,0x53,0x41]),[_0x48fa24([0x68,0x61,0x73,0x68])]:{[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f2b9b,_0x367c42,_0x1d569e)||(_0x14113b=!0x1);}}function _0x1b29ba(_0x2f7594){return _0x2f7594[_0x48fa24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48fa24([0x65,0x79]))?JSON[_0x48fa24([0x70,0x61,0x72,0x73,0x65])](_0x33ae65(_0x2f7594)):null;}function _0x33ae65(_0x4d5aa1){return window[_0x48fa24([0x61,0x74,0x6f,0x62])](_0x4d5aa1[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48fa24([0x2b]))[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48fa24([0x2f])));}function _0x75102f(_0x25cce0){let _0x4f64b6=0x1505;function _0x28c5d7(_0x503b01){for(let _0x303277=0x0;_0x303277<_0x503b01[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x303277++){const _0x39e9f0=_0x503b01[_0x48fa24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x303277);_0x4f64b6=(_0x4f64b6<<0x5)+_0x4f64b6+_0x39e9f0,_0x4f64b6&=_0x4f64b6;}}function _0x4c53ae(_0x19c70f){Array[_0x48fa24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19c70f)?_0x19c70f[_0x48fa24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c53ae):_0x19c70f&&typeof _0x19c70f==_0x48fa24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48fa24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19c70f)[_0x48fa24([0x73,0x6f,0x72,0x74])]()[_0x48fa24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbcddad,_0xb202dd])=>{_0x28c5d7(_0xbcddad),_0x4c53ae(_0xb202dd);}):_0x28c5d7(window[_0x48fa24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19c70f));}return _0x4c53ae(_0x25cce0),_0x4f64b6>>>0x0;}function _0xce3c13(_0x1d917f){return _0x1d917f[_0x48fa24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48fa24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48fa24([0x30]));}function _0x10594f(_0x3e148c){return _0x3e148c[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48fa24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48fa24([0x6a,0x6f,0x69,0x6e])]('');}function _0x55937a(){}function _0x48fa24(_0x26d75c){return _0x26d75c['map'](_0xe8639d=>String['fromCharCode'](_0xe8639d))['join']('');}_0x45eec6(await _0x1e3f3c());}(this);}['_moveSelectionToFootnoteDefinition'](_0xe8d4ad){const {plugins:_0x54005a,editing:_0x258a18,model:_0x5909c4}=this['editor'],_0x4476f6=_0x54005a['get'](_0x21b88c)['getFootnote'](_0xe8d4ad);return!!_0x4476f6&&(_0x5909c4['change'](_0x392523=>{_0x392523['setSelection'](_0x392523['createPositionAt'](_0x4476f6['definition'],'end'));}),_0x258a18['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x15301c){const {plugins:_0x31676f,editing:_0x295f7e,model:_0x341741}=this['editor'],_0x410f17=_0x31676f['get'](_0x21b88c)['getFootnote'](_0x15301c);return!!_0x410f17&&(_0x341741['change'](_0x237df4=>{_0x237df4['setSelection'](_0x410f17['reference'],'on');}),_0x295f7e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x55fb26}=this['editor']['model'],_0x5e15f5=this['editor']['config']['get']('footnotes.multiBlock');_0x55fb26['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x55fb26['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x55fb26['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5e15f5?_0x55fb26['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x55fb26['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x55fb26['addChildCheck'](_0x526590=>{for(const _0x413ffb of _0x526590)if('footnoteDefinition'===_0x413ffb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2ca4d8}=this,{conversion:_0x7e8fc5,editing:_0x2c0491}=_0x2ca4d8,{t:t}=_0x2ca4d8['locale'];_0x7e8fc5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x750eb7,{writer:_0x2d6d3a,consumable:_0x1e18fc})=>{const _0x551062=_0x750eb7['getChild'](0x0);if(!_0x551062||!_0x551062['is']('element','a'))return null;const _0x24cac0=_0x551062['getAttribute']('href')||'';if(!_0x24cac0['startsWith']('#'))return null;const _0x2cf128=_0x24cac0['replace'](/^#/,'');if(!_0x2cf128)return null;_0x1e18fc['consume'](_0x551062,{'name':!0x0,'attributes':['href']});for(const {item:_0x2324ed}of _0x2c0491['view']['createRangeIn'](_0x551062))_0x2324ed['is']('$textProxy')?_0x1e18fc['consume'](_0x2324ed['textNode'],{'name':!0x0}):_0x2324ed['is']('element')&&_0x1e18fc['consume'](_0x2324ed,{'name':!0x0});return _0x2d6d3a['createElement']('footnoteRef',{'footnoteId':_0x2cf128});}}),_0x7e8fc5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31da1f,{writer:_0x58002b})=>D(_0x31da1f,_0x58002b)}),_0x7e8fc5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e172e,{writer:_0x311762})=>{const _0x32a556=_0x4e172e['getAttribute']('footnoteCounter');return _0x1eec9a(D(_0x4e172e,_0x311762),_0x311762,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32a556)});}});}['_defineDefinitionsConverters'](){const {editor:_0x457ffa}=this,{t:t}=_0x457ffa['locale'],{conversion:_0x4ed8a6}=_0x457ffa;_0x4ed8a6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4ed8a6['for']('upcast')['add'](_0x1ecd26=>{_0x1ecd26['on']('element:ol',(_0x5b9a32,_0x1f1afa,_0xc5970f)=>{const _0x2297b8=_0x1f1afa['viewItem'];if(!_0x2297b8['hasClass']('footnotes-list')||!_0x1f1afa['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xc5970f['consumable']['consume'](_0x2297b8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x7bd732,modelCursor:_0x5b8034}=_0xc5970f['convertChildren'](_0x1f1afa['viewItem'],_0x1f1afa['modelCursor']);_0x1f1afa['modelRange']=_0x7bd732,_0x1f1afa['modelCursor']=_0x5b8034;}),_0x1ecd26['on']('element:hr',(_0xe0c5a6,_0x2ab6e0,_0x1d4a25)=>{const _0x28d515=_0x2ab6e0['viewItem'];_0x28d515['hasClass']('footnotes-divider')&&_0x2ab6e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d4a25['consumable']['consume'](_0x28d515,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4ed8a6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4cd299,{writer:_0x20afb5})=>v(_0x20afb5)}),_0x4ed8a6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x46a400,{writer:_0xbcd767})=>{const _0x1ba3c5=v(_0xbcd767,{'data-footnotes-list-label':t('Footnotes')}),_0x116358=_0x1eec9a(_0x1ba3c5,_0xbcd767,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xbcd767['setCustomProperty']('footnotesDefinitions',!0x0,_0x116358),_0x116358;}});}['_defineDefinitionConverters'](){const {editor:_0x233cb2}=this,{conversion:_0xa8d6de,locale:_0x49548f}=_0x233cb2,_0x2e4ad9=_0x233cb2['config']['get']('footnotes.multiBlock');_0xa8d6de['for']('upcast')['add'](_0x1c11a3=>{_0x1c11a3['on']('element:li',(_0x989bd3,_0x3ada7a,_0x1706e9)=>{const _0x6f5ee0=_0x3ada7a['viewItem'];if(!_0x6f5ee0['hasClass']('footnote-definition')||!_0x6f5ee0['getAttribute']('id'))return;const _0x1d06e6=_0x6f5ee0['parent'];if(!_0x1d06e6['is']('element','ol')||!_0x1d06e6['hasClass']('footnotes-list'))return;if(!_0x1706e9['consumable']['test'](_0x6f5ee0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1883c6=_0x1706e9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x6f5ee0['getAttribute']('id')});if(!_0x1706e9['safeInsert'](_0x1883c6,_0x3ada7a['modelCursor']))return;_0x1706e9['consumable']['consume'](_0x6f5ee0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x516187=Array['from'](_0x6f5ee0['getChildren']())['find'](_0x2c135c=>_0x2c135c['is']('element')&&_0x2c135c['hasClass']('footnote-content'));for(const _0x413aee of _0x6f5ee0['getChildren']())_0x413aee['is']('element')&&(_0x1706e9['consumable']['consume'](_0x413aee,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1706e9['consumable']['consume'](_0x413aee,{'name':!0x0,'classes':'footnote-content'}));if(_0x516187){if(_0x2e4ad9)_0x1706e9['convertChildren'](_0x516187,_0x1883c6);else{const _0x3dc233=_0x1706e9['writer']['createElement']('footnoteInlineContent');_0x1706e9['writer']['insert'](_0x3dc233,_0x1883c6),_0x1706e9['convertChildren'](_0x516187,_0x3dc233);}}_0x1706e9['updateConversionResult'](_0x1883c6,_0x3ada7a);});}),_0xa8d6de['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x10ae71,{writer:_0x25148f})=>b(_0x10ae71,_0x25148f,_0x49548f,{'dataPipeline':!0x0})}),_0xa8d6de['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43ce9a,{writer:_0x3372d8})=>b(_0x43ce9a,_0x3372d8,_0x49548f)});}['_defineBogusParagraphConverters'](){const {editor:_0x3c7637}=this,{conversion:_0x2dcda8}=_0x3c7637;_0x3c7637['config']['get']('footnotes.multiBlock')?(_0x2dcda8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2dcda8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3c7637['model']['document'],'change:data',()=>{!function(_0x3140b3,_0x137f83){const _0xdc20e0=_0x3140b3['document']['differ'],_0x1c0766=new Set();for(const _0x5bc8c5 of _0xdc20e0['getChanges']()){const _0x387788='attribute'==_0x5bc8c5['type']?_0x5bc8c5['range']['start']['parent']:_0x5bc8c5['position']['parent'];_0x387788['is']('element','footnoteDefinition')&&_0x1c0766['add'](_0x387788);}for(const _0x1b5bec of _0x1c0766['values']()){const _0x5b3b10=Array['from'](_0x1b5bec['getChildren']())['filter'](_0x3fcc27=>g(_0x3fcc27,_0x137f83['mapper']));for(const _0x246f30 of _0x5b3b10)_0x137f83['reconvertItem'](_0x246f30);}}(_0x3c7637['model'],_0x3c7637['editing']);})):(_0x2dcda8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2dcda8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x38f03a,{writer:_0x3e9bbd})=>{const _0x2b7508=_0x3e9bbd['createContainerElement']('span');return _0x3e9bbd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b7508),_0x2b7508;}}));}['_defineKeyboardHandlers'](){const {editor:_0x215b49}=this,{editing:_0x478409,t:t}=_0x215b49,_0x5ec6c1=_0x215b49['model']['document']['selection'];_0x215b49['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x215b49['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x478409['view']['document'],'enter',(_0x4fa0f5,_0x4387cd)=>{const _0x424f7c=function(_0x1d8761){const _0x307137=_0x1d8761['getSelectedElement']();if(_0x307137?.['is']('element','footnoteRef'))return _0x307137;return null;}(_0x5ec6c1);if(_0x424f7c){const _0x19831a=_0x424f7c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x19831a),_0x4387cd['preventDefault'](),_0x4fa0f5['stop']();}},{'context':_0x440873});}['_defineClickHandlers'](){const {editor:_0x2ac682}=this,{editing:_0x247398}=_0x2ac682;_0x2ac682['editing']['view']['addObserver'](_0x39b1dd),_0x2ac682['editing']['view']['addObserver'](_0x500485);let _0x46a110=!0x1;this['listenTo'](_0x247398['view']['document'],'pointerdown',(_0x3af1bc,_0x3d8bbe)=>{const {target:_0x145dbc}=_0x3d8bbe,_0x12309c=_0x247398['view']['document']['selection'];_0x46a110=!!(_0x145dbc?.['is']('element','a')&&_0x145dbc['parent']?.['is']('element','sup')&&_0x145dbc['parent']['hasClass']('footnote'))&&_0x12309c['getSelectedElement']()===_0x145dbc['parent'];},{'priority':'high'}),this['listenTo'](_0x247398['view']['document'],'click',(_0xf29a54,_0x1812ce)=>{const {target:_0x9d2235}=_0x1812ce;if(!_0x9d2235?.['is']('element','a'))return;if(_0x9d2235['parent']?.['is']('element','sup')&&_0x9d2235['parent']['hasClass']('footnote')&&!_0x46a110)return void _0x1812ce['preventDefault']();let _0x2e7a75=_0x9d2235['getAttribute']('href');if(!_0x2e7a75?.['startsWith']('#'))return;_0x2e7a75=_0x2e7a75['slice'](0x1);let _0x48fca7=!0x1;(_0x2e7a75['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2e7a75['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2e7a75))&&(_0x48fca7=!0x0),_0x48fca7&&(_0x1812ce['preventDefault'](),_0xf29a54['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3e04d0}={}){return(_0x5a1c09,{writer:_0xeed1e7})=>{if(!p(_0x5a1c09))return null;if(!_0x3e04d0)return _0xeed1e7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2e5537=_0xeed1e7['createContainerElement']('p');return _0xeed1e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e5537),_0x2e5537;};}function p(_0x1448f9){const {parent:_0x19c870}=_0x1448f9;if(!_0x19c870?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x19c870['childCount'])return!0x1;for(const _0xaee112 of _0x1448f9['getAttributeKeys']())if(!_0xaee112['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xaee112)return!0x1;return!0x0;}function g(_0x557b0f,_0x15b25e){if(!_0x557b0f['is']('element','paragraph'))return!0x1;const _0x20005d=_0x15b25e['toViewElement'](_0x557b0f);return!!_0x20005d&&p(_0x557b0f)!==_0x20005d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4904ca){return _0x440873(_0x4904ca)&&_0x4904ca['is']('containerElement')&&!!_0x4904ca['getCustomProperty']('footnotesDefinitions');}function v(_0x47ab69,_0xae70fd={}){const _0x1ec236=_0x47ab69['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x542edf=_0x47ab69['createContainerElement']('ol',{'class':'footnotes-list'},_0x47ab69['createSlot']());return _0x47ab69['createContainerElement']('div',{'class':'footnotes',..._0xae70fd},[_0x1ec236,_0x542edf]);}function D(_0x12e197,_0x455238){const _0x7dab3e=_0x12e197['getAttribute']('footnoteId'),_0x576ec1=_0x12e197['getAttribute']('footnoteCounter'),_0x32f60b=_0x455238['createUIElement']('a',{'href':'#'+_0x7dab3e},function(_0x49e4ab){const _0x29b87c=this['toDomElement'](_0x49e4ab);return _0x29b87c['textContent']=_0x576ec1,_0x29b87c;}),_0x9578ee=_0x455238['createContainerElement']('sup',{'id':'ref-'+_0x7dab3e,'class':'footnote'},[_0x32f60b]);return _0x9578ee['getFillerOffset']=()=>null,_0x9578ee;}function b(_0x2ec4dc,_0x98e781,_0x1bc904,{dataPipeline:_0xaf1085}={}){const {t:t}=_0x1bc904,_0x2603a9=_0x2ec4dc['getAttribute']('footnoteId'),_0x2eb832=_0x98e781['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2603a9},function(_0x2db5fb){const _0x398106=this['toDomElement'](_0x2db5fb);return _0x398106['innerText']='^',_0x398106;}),_0x7dfbf=_0xaf1085?_0x98e781['createContainerElement']('div',{'class':'footnote-content'}):_0x4ae050(_0x98e781['createEditableElement']('div',{'class':'footnote-content'}),_0x98e781,{'label':t('Footnote\x20content.')});return _0x98e781['insert'](_0x98e781['createPositionAt'](_0x7dfbf,0x0),_0x98e781['createSlot']()),_0x98e781['createContainerElement']('li',{'class':'footnote-definition','id':_0x2603a9},[_0x2eb832,_0x7dfbf]);}