@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251206.0 → 0.0.0-nightly-20251207.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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:()=>Dt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,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=["6470evoyOh","length","187ohXzIY","plugins","selection","checkChild","change","document","isEnabled","8jclMkm","isBlock","end","insert-footnote-command-executed-with-invalid-id","editor","getFirstRange","FootnotesEditing","createElement","_getPositionToInsertFootnote","execute","35564484uljELk","getItems","refresh","string","7kNXULA","_moveSelectionToFootnoteDefinition","get","isObject","136936nwDbiP","262394OkeVjH","insertObject","1815057OVWOCu","model","footnoteRef","51010nyYkgB","1584813WpKxkM","footnoteId","77xUmkgm","test","1662QhCovm"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(530245===-parseInt(e(358))/1*(parseInt(e(363))/2)+parseInt(e(369))/3*(-parseInt(e(383))/4)+parseInt(e(374))/5*(-parseInt(e(373))/6)+parseInt(e(371))/7*(parseInt(e(362))/8)+-parseInt(e(365))/9+parseInt(e(368))/10*(-parseInt(e(376))/11)+parseInt(e(354))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(356)](){const t=g,e=this[t(348)][t(366)][t(381)][t(378)],o=this[t(352)](e);this[t(382)]=!!o}[g(353)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(381)],r=this[e(352)](s);if(!r)return;const a=o[e(377)][e(360)](e(350)),c=t?.[e(370)]??(0,i.uid)();!function(t){const o=e;return o(357)==typeof t&&t[o(375)]>0&&!/\s/[o(372)](t)&&!/^\d/[o(372)](t)}(c)?(0,i.logWarning)(e(347)):(n[e(380)](t=>{const o=e,i=t[o(351)](o(367),{footnoteId:c});n[o(364)](i,r,null)}),a[e(359)](c))}[g(352)](t){const e=g,{model:o}=this[e(348)],{schema:n}=o,i=t[e(349)]();for(const t of i[e(355)]())if(n[e(345)](t)||n[e(361)](t))return null;const s=i[e(346)];return n[e(379)](s,e(367))?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:1765065600;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})=>D(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>D(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 D(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 P=o(331);const T=S;function S(t,e){const o=A();return(S=function(t,e){return o[t-=111]})(t,e)}function A(){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(A=function(){return t})()}!function(t){const e=S,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())}}(A);class L extends t.Plugin{static get[T(151)](){return T(142)}static get[T(112)](){return[v,P.ClipboardPipeline]}static get[T(165)](){return!0}static get[T(185)](){return!0}[T(184)](){this[T(155)]()}[T(155)](){const t=T;this[t(115)](),this[t(158)]()}[T(115)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](P.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))})}[T(158)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](P.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=T,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 O=o(311),V=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),U=o.n(W),z=o(741),H=o.n(z),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=U(),X.insert=B().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=H();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,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.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=at();return(st=function(t,e){return o[t-=376]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(976552===-parseInt(e(378))/1+-parseInt(e(394))/2+-parseInt(e(398))/3+parseInt(e(390))/4*(parseInt(e(383))/5)+parseInt(e(388))/6+parseInt(e(382))/7*(parseInt(e(380))/8)+parseInt(e(384))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(393)](){const t=it,{editor:e}=this,o=e[t(386)][t(387)](d)[t(377)]();this[t(396)]=!!o,this[t(379)]=o?.[t(389)](t(376))??null}[it(395)]({value:t}){const e=it,{editor:o}=this,n=o[e(386)][e(387)](d),i=n[e(377)]();i&&nt[e(397)](t)&&o[e(391)][e(385)](o=>{const s=e;o[s(381)](s(376),t,i),n[s(392)](o)})}}function at(){const t=["isEnabled","includes","3955893vermvR","footnotesListStyle","getFootnotesDefinitionsObjectElement","1696864IiMVlJ","value","648gvXnCH","setAttribute","30597JIzGCq","2750285PvhHjj","25984386CvaEyA","change","plugins","get","7938552BcKlZD","getAttribute","4YFXKZD","model","_updateFootnotesCounters","refresh","2244614DUuLEV","execute"];return(at=function(){return t})()}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=457]})(t,e)}function ut(){const t=["469023lzJPJE","setAttribute","execute","plugins","2611RKNriY","value","5730417pBzluO","isInteger","30TIQrro","2782714ZwPbQe","6jOMbgN","change","footnotesListStart","getAttribute","_updateFootnotesCounters","1456pbjKPz","isEnabled","get","getFootnotesDefinitionsObjectElement","1042035IzJMei","2509960WWiEXX","refresh","model","12fFqcWY","286599drZiIj"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(490623===parseInt(e(461))/1+-parseInt(e(471))/2*(-parseInt(e(460))/3)+-parseInt(e(481))/4+-parseInt(e(480))/5*(-parseInt(e(459))/6)+parseInt(e(465))/7*(parseInt(e(476))/8)+parseInt(e(467))/9+-parseInt(e(469))/10*(parseInt(e(470))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(457)](){const t=ct,{editor:e}=this,o=e[t(464)][t(478)](d)[t(479)]();this[t(477)]=!!o,this[t(466)]=o?.[t(474)](t(473))??null}[ct(463)]({value:t}){const e=ct,{editor:o}=this,n=o[e(464)][e(478)](d),i=n[e(479)]();i&&Number[e(468)](t)&&o[e(458)][e(472)](o=>{const s=e;o[s(462)](s(473),t,i),n[s(475)](o)})}}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 rt(e)),e[t(192)][t(230)](t(164),new ft(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 O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function 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 Dt 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 Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=364]})(t,e)}function Tt(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,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())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _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 _0xeb7666,Command as _0x27ce1c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5b4e1d,isWidget as _0x9e120c,toWidgetEditable as _0x5ab702,WidgetToolbarRepository as _0x6c66e1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x32a995,logWarning as _0x4e63a5,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xf6f06a,ClickObserver as _0x3d3d3e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4bcc1e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1e6c82,ButtonView as _0x2c7d7a,View as _0x5f3e58,ViewCollection as _0x367b77,FocusCycler as _0x2faa84,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x59ce17,BalloonPanelView as _0x2fd527,createDropdown as _0x38dfa3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3b34e6,IconListStyleDecimal as _0x383181,IconListStyleDecimalLeadingZero as _0x383ca1,IconListStyleLowerRoman as _0x157553,IconListStyleUpperRoman as _0x5b268f,IconListStyleLowerLatin as _0x1af5e5,IconListStyleUpperLatin as _0x22b71f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x161278,_0x1248fc){this['_model']=_0x161278,this['_elementName']=_0x1248fc['elementName'],this['_getElementKey']=_0x1248fc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x4aa7d0){const _0x5c75b7=new Set(),_0x20cd7a=new Map();for(const _0x13adc6 of _0x4aa7d0){if('insert'===_0x13adc6['type']&&'$text'!==_0x13adc6['name']&&_0x13adc6['position']['nodeAfter']){const _0xd15ae7=this['_model']['createRangeOn'](_0x13adc6['position']['nodeAfter']);for(const _0x3c6fa9 of _0xd15ae7['getItems']()){if(!_0x3c6fa9['is']('element',this['_elementName']))continue;const _0x48102f=this['_getElementKey'](_0x3c6fa9);_0x20cd7a['has'](_0x48102f)||_0x20cd7a['set'](_0x48102f,[]),_0x20cd7a['get'](_0x48102f)['push'](_0x3c6fa9);}}if('remove'===_0x13adc6['type']&&_0x13adc6['name']===this['_elementName']){const _0x7aa5cc=this['_getElementKey']({'getAttribute':_0x41a63e=>_0x13adc6['attributes']['get'](_0x41a63e)});_0x5c75b7['add'](_0x7aa5cc);}}for(const [_0x5574dd,_0x57c04f]of this['_trackedElements'])'$graveyard'===_0x57c04f['root']['rootName']&&_0x5c75b7['add'](_0x5574dd);for(const _0x5b80de of _0x5c75b7)this['_trackedElements']['delete'](_0x5b80de);for(const [_0x57afa5,_0xa147ca]of _0x20cd7a)this['_trackedElements']['set'](_0x57afa5,_0xa147ca[_0xa147ca['length']-0x1]);const _0x13db7d=new Set();for(const [_0x139b91,_0x570d71]of _0x20cd7a)_0x5c75b7['has'](_0x139b91)&&(_0x13db7d['add'](_0x570d71[0x0]),_0x570d71['length']>0x1?_0x20cd7a['set'](_0x139b91,_0x570d71['slice'](0x1)):_0x20cd7a['delete'](_0x139b91),_0x5c75b7['delete'](_0x139b91));return{'removed':Array['from'](_0x5c75b7),'inserted':Array['from'](_0x20cd7a['values']())['flat'](),'moved':Array['from'](_0x13db7d)};}}class f extends _0xeb7666{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1b2a4){super(_0xd1b2a4),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4fadbe=>_0x4fadbe['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0xbaaba9=>_0xbaaba9['getAttribute']('footnoteId')});}['init'](){const {editor:_0x56b088}=this,{model:_0x41119c,data:_0x25b635}=_0x56b088;_0x41119c['document']['registerPostFixer'](_0x3304c7=>{const _0x3ac473=_0x41119c['document']['differ']['getChanges']();let _0x48fe76=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_handleFootnoteReferencesChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3304c7)&&(_0x48fe76=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3304c7)&&(_0x48fe76=!0x0),this['_sortFootnoteDefinitions'](_0x3304c7)&&(_0x48fe76=!0x0),_0x48fe76;}),this['listenTo'](_0x41119c['document'],'change:data',()=>{_0x41119c['enqueueChange']({'isUndoable':!0x1},_0x37eddc=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x37eddc);});},{'priority':'low'}),this['listenTo'](_0x25b635,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3bd987){return this['_footnotes']['find'](_0x346e04=>_0x346e04['id']===_0x3bd987)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4a7c3b){this['_footnoteFormatter']=_0x4a7c3b;}['_updateFootnotesCounters'](_0x5e19ae,_0x4d2ad2=0x0){let _0x1e6370=!0x1;for(let _0x30ae6c=_0x4d2ad2;_0x30ae6c<this['_footnotes']['length'];_0x30ae6c++)this['_updateFootnoteRefCounter'](_0x5e19ae,_0x30ae6c)&&(_0x1e6370=!0x0);return _0x1e6370;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3a09af,_0x183a1d){const _0x3303bb=_0x3a09af['createElement']('footnotesDefinitions',{});return _0x3a09af['append'](_0x3303bb,_0x183a1d),this['_footnotesDefinitions']=_0x3303bb,_0x3303bb;}['_ensureFootnotesDefinitionsContainerExists'](_0x5dd7e3){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5c922b=this['_footnotes'][0x0]['reference']['root'],_0x291b17=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5dd7e3,_0x5c922b);for(const _0x2cd683 of this['_footnotes'])_0x2cd683['definition']['parent']||_0x5dd7e3['insert'](_0x2cd683['definition'],_0x291b17,'end');this['_updateFootnotesCounters'](_0x5dd7e3);}['_handleFootnotesDefinitionsObjectChanges'](_0x4c6513,_0x1ae4a1){let _0x5694e9=!0x1;const {inserted:_0x3ce33d,removed:_0xf4cd49,moved:_0x45d180}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1ae4a1);if(_0x45d180['length']&&(this['_footnotesDefinitions']=_0x45d180[0x0]),_0x3ce33d['length']){if(_0x3ce33d['length']>0x1||this['_footnotesDefinitions']&&_0x3ce33d['some'](_0x31aebe=>_0x31aebe!==this['_footnotesDefinitions'])){const _0x5a8750=_0x4c6513['createElement']('footnotesDefinitions',{}),_0x4664a0=[];this['_footnotesDefinitions']&&_0x4664a0['push'](this['_footnotesDefinitions']),_0x4664a0['push'](..._0x3ce33d),_0x4c6513['insert'](_0x5a8750,_0x4664a0[0x0],'before');for(const _0x2634b1 of _0x4664a0)_0x4c6513['move'](_0x4c6513['createRangeIn'](_0x2634b1),_0x4c6513['createPositionAt'](_0x5a8750,'end')),_0x4c6513['remove'](_0x2634b1);this['_footnotesDefinitions']=_0x5a8750,this['_updateFootnotesCounters'](_0x4c6513),_0x5694e9=!0x0;}else this['_footnotesDefinitions']=_0x3ce33d[0x0];}if(_0xf4cd49['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x49511f of this['_footnotes'])_0x4c6513['remove'](_0x49511f['reference']),_0x5694e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5694e9;}['_handleFootnoteDefinitionsChanges'](_0x30e198,_0x3d145a){let _0x482651=!0x1;const _0x2762df=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x339f69,moved:_0x42fa9d}=this['_footnoteDefsTracker']['getChanges'](_0x3d145a);for(const _0x38889c of[..._0x42fa9d,..._0x339f69]){const _0x58e9a4=_0x38889c['getAttribute']('footnoteId'),_0xbc9e1f=this['getFootnote'](_0x58e9a4);_0xbc9e1f&&(_0xbc9e1f['definition']=_0x38889c),_(_0x30e198,_0x2762df,_0x38889c)&&(_0x482651=!0x0);}return _0x482651;}['_handleFootnoteReferencesChanges'](_0x164f77,_0x1ccfe5){let _0x13291a=!0x1;const {removed:_0x4c5a66,inserted:_0x2d9c19,moved:_0x9f2e63}=this['_footnoteRefsTracker']['getChanges'](_0x1ccfe5);for(const _0x1a0b5b of _0x4c5a66)this['_handleRemoveFootnoteReferenceById'](_0x164f77,_0x1a0b5b)&&(_0x13291a=!0x0);for(const _0x3caa6d of _0x2d9c19)this['_handleInsertedFootnoteReference'](_0x164f77,_0x3caa6d)&&(_0x13291a=!0x0);for(const _0x2bf791 of _0x9f2e63)this['_handleMovedFootnoteReference'](_0x164f77,_0x2bf791)&&(_0x13291a=!0x0);return _0x13291a;}['_handleFootnotesDefinitionsObjectSync'](_0x3c0870){if(!this['_footnotesDefinitions'])return!0x1;let _0x55f301=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x262fad=[];for(const _0x2a75b7 of this['_footnotesDefinitions']['getChildren']()){const _0x5b79bb=_0x2a75b7['getAttribute']('footnoteId');this['getFootnote'](_0x5b79bb)||(_0x262fad['unshift'](_0x2a75b7),_0x55f301=!0x0);}for(const _0x34002b of _0x262fad)_0x3c0870['remove'](_0x34002b);}const _0x4429e7=new Set(),_0x4f7b49=[];for(const _0x5c4261 of this['_footnotesDefinitions']['getChildren']()){const _0x439a76=_0x5c4261['getAttribute']('footnoteId');_0x4429e7['has'](_0x439a76)?(_0x4f7b49['unshift'](_0x5c4261),_0x55f301=!0x0):_0x4429e7['add'](_0x439a76);}for(const _0x2eace6 of _0x4f7b49)_0x3c0870['remove'](_0x2eace6);return this['_footnotesDefinitions']['childCount']||(_0x3c0870['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x55f301=!0x0),_0x55f301;}['_handleInsertedFootnoteReference'](_0x4d1a06,_0x5a73eb){if(this['_footnotes']['find'](_0x9a40b6=>_0x9a40b6['reference']===_0x5a73eb))return!0x1;let _0x32cff9=!0x1;const _0xe60057=_0x5a73eb['getAttribute']('footnoteId'),_0x4f0006=this['_footnotes']['findIndex'](_0x4627fd=>_0x4627fd['id']===_0xe60057);-0x1!==_0x4f0006&&(_0x4d1a06['remove'](this['_footnotes'][_0x4f0006]['reference']),this['_footnotes']['splice'](_0x4f0006,0x1),_0x32cff9=!0x0);let _0x3d6eb6=this['_footnotesDefinitions']?function(_0x301858,_0x3af151){for(const _0x1b8eaf of _0x301858['getChildren']())if(_0x1b8eaf['getAttribute']('footnoteId')===_0x3af151)return _0x1b8eaf;return null;}(this['_footnotesDefinitions'],_0xe60057):null;_0x3d6eb6||(_0x3d6eb6=_0x4d1a06['createElement']('footnoteDefinition',{'footnoteId':_0xe60057}),this['_footnotesDefinitions']&&(_0x4d1a06['insert'](_0x3d6eb6,this['_footnotesDefinitions'],'end'),_0x32cff9=!0x0));const _0x274881={'id':_0xe60057,'reference':_0x5a73eb,'definition':_0x3d6eb6},_0x5cf2ab=I(this['editor']['model'],this['_footnotes'],_0x5a73eb);this['_footnotes']['splice'](_0x5cf2ab,0x0,_0x274881);let _0xf14360=_0x5cf2ab;return-0x1!==_0x4f0006&&(_0xf14360=Math['min'](_0x5cf2ab,_0x4f0006)),this['_updateFootnotesCounters'](_0x4d1a06,_0xf14360)&&(_0x32cff9=!0x0),_0x32cff9;}['_handleRemoveFootnoteReferenceById'](_0x3e8a37,_0x7d17f9){const _0x4c7cd5=this['_footnotes']['findIndex'](_0xd1c2c7=>_0xd1c2c7['id']===_0x7d17f9);if(-0x1===_0x4c7cd5)return!0x1;let _0xb05c56=!0x1;const _0x5eba95=this['_footnotes'][_0x4c7cd5];return'$graveyard'!==_0x5eba95['definition']['root']['rootName']&&(_0x3e8a37['remove'](_0x5eba95['definition']),_0xb05c56=!0x0),this['_footnotes']['splice'](_0x4c7cd5,0x1),this['_updateFootnotesCounters'](_0x3e8a37,_0x4c7cd5)&&(_0xb05c56=!0x0),_0xb05c56;}['_handleMovedFootnoteReference'](_0x16fbac,_0x21d064){const _0xedcd66=_0x21d064['getAttribute']('footnoteId'),_0x10f2f6=this['_footnotes']['findIndex'](_0x22b0d5=>_0x22b0d5['id']===_0xedcd66),_0x5061a7=this['_footnotes'][_0x10f2f6];let _0x15a733=!0x1;_0x5061a7['reference']=_0x21d064,this['_footnotes']['splice'](_0x10f2f6,0x1);const _0xd95303=I(this['editor']['model'],this['_footnotes'],_0x21d064);return this['_footnotes']['splice'](_0xd95303,0x0,_0x5061a7),this['_updateFootnotesCounters'](_0x16fbac,Math['min'](_0x10f2f6,_0xd95303))&&(_0x15a733=!0x0),_0x15a733;}['_updateFootnoteRefCounter'](_0x5e795d,_0x3b709e){if(!this['_footnotesDefinitions'])return!0x1;const _0x3dfdda=this['_footnotes'][_0x3b709e];let _0x4ab1bc;return _0x4ab1bc=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3dfdda,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3b709e+0x1}):String(_0x3b709e+0x1),_0x3dfdda['reference']['getAttribute']('footnoteCounter')!=_0x4ab1bc&&(_0x5e795d['setAttribute']('footnoteCounter',_0x4ab1bc,_0x3dfdda['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5ee665){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1bbdf4,_0x12eb92){if(_0x1bbdf4['length']!==_0x12eb92['length'])return!0x1;for(let _0x57015c=0x0;_0x57015c<_0x1bbdf4['length'];_0x57015c++)if(_0x1bbdf4[_0x57015c]!==_0x12eb92[_0x57015c])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5f1251=>_0x5f1251['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x25234d=>_0x25234d['getAttribute']('footnoteId'))))return!0x1;let _0x108753=!0x1;for(let _0x4702ed=0x0;_0x4702ed<this['_footnotes']['length'];_0x4702ed++){const _0x316939=this['_footnotes'][_0x4702ed],_0x354d11=_0x5ee665['createPositionBefore'](_0x316939['definition']),_0x1236db=_0x5ee665['createPositionAt'](this['_footnotesDefinitions'],_0x4702ed);_0x354d11['isEqual'](_0x1236db)||(_0x5ee665['move'](_0x5ee665['createRangeOn'](_0x316939['definition']),_0x1236db),_0x108753=!0x0);}return _0x108753;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2db1a4){if(!this['_footnotes']['length'])return!0x1;const {model:_0x279403}=this['editor'];let _0x454e49=!0x1;for(let _0x334f3e=0x0;_0x334f3e<this['_footnotes']['length']-0x1;_0x334f3e++){const _0x54f390=this['_footnotes'][_0x334f3e],_0x4b71eb=this['_footnotes'][_0x334f3e+0x1],_0x344164=_0x279403['createPositionBefore'](_0x54f390['reference']),_0x23567e=_0x279403['createPositionBefore'](_0x4b71eb['reference']);'after'===_0x344164['compareWith'](_0x23567e)&&(this['_handleMovedFootnoteReference'](_0x2db1a4,_0x54f390['reference']),_0x334f3e=-0x1,_0x454e49=!0x0);}return _0x454e49;}}function _(_0x322269,_0x456b13,_0xe27319){if(_0xe27319['childCount'])return!0x1;const _0x25ebe2=_0x456b13?'paragraph':'footnoteInlineContent';return _0x322269['insert'](_0x322269['createElement'](_0x25ebe2),_0xe27319),!0x0;}function I(_0x28a5e1,_0x1535f0,_0x25003b){if(0x0===_0x1535f0['length'])return 0x0;const _0x3ea404=_0x28a5e1['createPositionBefore'](_0x25003b);for(let _0x278514=0x0;_0x278514<_0x1535f0['length'];_0x278514++){const _0x872ba0=_0x1535f0[_0x278514],_0xec75c6=_0x28a5e1['createPositionBefore'](_0x872ba0['reference']);if('before'===_0x3ea404['compareWith'](_0xec75c6))return _0x278514;}const _0x1f988f=_0x25003b['root'];let _0x4a777e=-0x1;for(let _0x5c7e96=_0x1535f0['length']-0x1;_0x5c7e96>=0x0;_0x5c7e96--)if(_0x1535f0[_0x5c7e96]['reference']['root']===_0x1f988f){_0x4a777e=_0x5c7e96;break;}if(-0x1!==_0x4a777e)return _0x4a777e+0x1;const _0x1d7d19=_0x28a5e1['document']['getRootNames'](),_0x1f84e7=_0x1d7d19['indexOf'](_0x1f988f['rootName']),_0x44ca8b=_0x1d7d19[_0x1f84e7+0x1];if(_0x44ca8b){for(let _0x3e9e45=0x0;_0x3e9e45<_0x1535f0['length'];_0x3e9e45++)if(_0x1535f0[_0x3e9e45]['reference']['root']['rootName']===_0x44ca8b)return _0x3e9e45;}return _0x1535f0['length'];}class m extends _0x27ce1c{['refresh'](){const _0x4ca039=this['editor']['model']['document']['selection'],_0x23999f=this['_getPositionToInsertFootnote'](_0x4ca039);this['isEnabled']=!!_0x23999f;}['execute'](_0x48b2e0){const {editor:_0x4d3efd}=this,{model:_0x4463ea}=_0x4d3efd,{selection:_0x386d40}=_0x4463ea['document'],_0x50077c=this['_getPositionToInsertFootnote'](_0x386d40);if(!_0x50077c)return;const _0x3e9984=_0x4d3efd['plugins']['get']('FootnotesEditing'),_0x4c87c3=_0x48b2e0?.['footnoteId']??_0x32a995();!function(_0x2332ca){return'string'==typeof _0x2332ca&&_0x2332ca['length']>0x0&&!/\s/['test'](_0x2332ca)&&!/^\d/['test'](_0x2332ca);}(_0x4c87c3)?_0x4e63a5('insert-footnote-command-executed-with-invalid-id'):(_0x4463ea['change'](_0x5190f7=>{const _0x22ef28=_0x5190f7['createElement']('footnoteRef',{'footnoteId':_0x4c87c3});_0x4463ea['insertObject'](_0x22ef28,_0x50077c,null);}),_0x3e9984['_moveSelectionToFootnoteDefinition'](_0x4c87c3));}['_getPositionToInsertFootnote'](_0x572a6c){const {model:_0x5784dd}=this['editor'],{schema:_0x5a773d}=_0x5784dd,_0x3da15c=_0x572a6c['getFirstRange']();for(const _0x192b6d of _0x3da15c['getItems']())if(_0x5a773d['isBlock'](_0x192b6d)||_0x5a773d['isObject'](_0x192b6d))return null;const _0x2bdf30=_0x3da15c['end'];return _0x5a773d['checkChild'](_0x2bdf30,'footnoteRef')?_0x2bdf30:null;}}class r extends _0xeb7666{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ade3}=this;_0x24ade3['config']['define']('footnotes.multiBlock',!0x0),_0x24ade3['commands']['add']('insertFootnote',new m(_0x24ade3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5443c9){const _0x3ec974=_0x351f1c([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]),_0x12e50d=0x47a28506,_0x1f2f2a=0x47a5fe3e^_0x12e50d,_0x4ad894=window[_0x351f1c([0x44,0x61,0x74,0x65])][_0x351f1c([0x6e,0x6f,0x77])](),_0x12c78f=_0x5443c9[_0x351f1c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x545111=new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10050e=>{_0x12c78f[_0x351f1c([0x6f,0x6e,0x63,0x65])](_0x351f1c([0x72,0x65,0x61,0x64,0x79]),_0x10050e);}),_0x31f51d={[_0x351f1c([0x6b,0x74,0x79])]:_0x351f1c([0x45,0x43]),[_0x351f1c([0x75,0x73,0x65])]:_0x351f1c([0x73,0x69,0x67]),[_0x351f1c([0x63,0x72,0x76])]:_0x351f1c([0x50,0x2d,0x32,0x35,0x36]),[_0x351f1c([0x78])]:_0x351f1c([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]),[_0x351f1c([0x79])]:_0x351f1c([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]),[_0x351f1c([0x61,0x6c,0x67])]:_0x351f1c([0x45,0x53,0x32,0x35,0x36])},_0x4d3787=_0x12c78f[_0x351f1c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x351f1c([0x67,0x65,0x74])](_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a6913(){let _0x3b9ac5,_0x1cedb1=null,_0x4d93a1=null;try{if(_0x4d3787==_0x351f1c([0x47,0x50,0x4c]))return _0x351f1c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b9ac5=_0x4545b4(),!_0x3b9ac5)return _0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b9ac5[_0x351f1c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d93a1=_0x28bf9d(_0x3b9ac5[_0x351f1c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b9ac5[_0x351f1c([0x6a,0x74,0x69])])),await _0x586a48()?_0x415009()?_0x509b45()?_0x351f1c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5588cb()?(_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x351f1c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cedb1=_0x5130ef(_0x351f1c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x351f1c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cedb1=_0x5130ef(_0x351f1c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bee1f()):_0x351f1c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x351f1c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x509b45(){const _0x143e0f=[_0x351f1c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x351f1c([0x74,0x72,0x69,0x61,0x6c])][_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ad894/0x3e8:0xe10*_0x1f2f2a;return _0x3b9ac5[_0x351f1c([0x65,0x78,0x70])]<_0x143e0f;}function _0x415009(){const _0x409a12=_0x3b9ac5[_0x351f1c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x409a12&&(!!_0x409a12[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x2a]))||!!_0x409a12[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x46,0x4f,0x4f])));}function _0x5588cb(){const _0x5562ee=_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5562ee||0x0==_0x5562ee[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35270a}=new URL(window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5562ee[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35270a))return!0x0;const _0x160dba=_0x35270a[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e]));return _0x5562ee[_0x351f1c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3927c1=>_0x3927c1[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x2a])))[_0x351f1c([0x6d,0x61,0x70])](_0xa9a782=>_0xa9a782[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e])))[_0x351f1c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39cc60=>_0x39cc60[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x160dba[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x351f1c([0x6d,0x61,0x70])](_0xa2823=>Array(_0x160dba[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa2823[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x351f1c([0x66,0x69,0x6c,0x6c])](_0xa2823[0x0]===_0x351f1c([0x2a])?_0x351f1c([0x2a]):'')[_0x351f1c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa2823))[_0x351f1c([0x73,0x6f,0x6d,0x65])](_0x13302c=>_0x160dba[_0x351f1c([0x65,0x76,0x65,0x72,0x79])]((_0x249c3e,_0x1d6905)=>_0x13302c[_0x1d6905]===_0x249c3e||_0x13302c[_0x1d6905]===_0x351f1c([0x2a])));}function _0x4bee1f(){return _0x1cedb1&&_0x4d93a1?new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x108eaf,_0x21c987)=>{_0x1cedb1[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x108eaf,_0x21c987),_0x4d93a1[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x297deb=>{_0x297deb!=_0x351f1c([0x56,0x61,0x6c,0x69,0x64])&&_0x108eaf(_0x297deb);},_0x21c987);}):_0x1cedb1||_0x4d93a1||_0x351f1c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28bf9d(_0x31c272,_0x548128){return new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x420b9c=>{if(_0x38815c())return _0x420b9c(_0x351f1c([0x56,0x61,0x6c,0x69,0x64]));_0x192a85(),_0x12c78f[_0x351f1c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19a49a=!0x1;const _0x384192=_0x32a995();function _0xdd3a8a(_0x2135c9){return!!_0x2135c9&&(typeof _0x2135c9===_0x351f1c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2135c9===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2135c9[_0x351f1c([0x74,0x68,0x65,0x6e])]===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2135c9[_0x351f1c([0x63,0x61,0x74,0x63,0x68])]===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f0f05(_0x41b522){_0x59a54d(_0x41b522)[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x45d79f=>{if(!_0x45d79f||_0x45d79f[_0x351f1c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x351f1c([0x6f,0x6b]))return _0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c3353(_0x2aacfb(_0x384192+_0x548128))!=_0x45d79f[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x351f1c([0x56,0x61,0x6c,0x69,0x64]);})[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x28a63a=>(_0x2baa43(),_0x28a63a),()=>{const _0x4a12d5=_0xd7b1a1();return null==_0x4a12d5?(_0x2baa43(),_0x351f1c([0x56,0x61,0x6c,0x69,0x64])):_0x351f1c(_0x4ad894-_0x4a12d5>(0x63ae0106^_0x12e50d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x420b9c)[_0x351f1c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e4a9d=0x47946b86^_0x12e50d;function _0x2baa43(){const _0x49b796=_0x351f1c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c3353(_0x2aacfb(_0x31c272)),_0x38225d=_0x5f0a1b(_0x5c3353(window[_0x351f1c([0x4d,0x61,0x74,0x68])][_0x351f1c([0x63,0x65,0x69,0x6c])](_0x4ad894/_0x3e4a9d)));window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x351f1c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49b796,_0x38225d);}function _0xd7b1a1(){const _0x32d1b3=_0x351f1c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c3353(_0x2aacfb(_0x31c272)),_0x3c76a3=window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x351f1c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32d1b3);return _0x3c76a3?window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0a1b(_0x3c76a3),0x10)*_0x3e4a9d:null;}function _0x59a54d(_0x1351a6){return new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b473d,_0x1e10e1)=>{_0x1351a6[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x3b473d,_0x1e10e1),window[_0x351f1c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e10e1,0x47a351c6^_0x12e50d);});}}_0x12c78f[_0x351f1c([0x6f,0x6e])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d3a5c,_0x1bce72)=>{if(_0x1bce72[0x0]!=_0x31c272)return _0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bce72[0x1]={..._0x1bce72[0x1],[_0x351f1c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x384192};},{[_0x351f1c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x351f1c([0x68,0x69,0x67,0x68])}),_0x12c78f[_0x351f1c([0x6f,0x6e])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5539ca=>{_0xdd3a8a(_0x5539ca[_0x351f1c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19a49a=!0x0,_0x1f0f05(_0x5539ca[_0x351f1c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x351f1c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x351f1c([0x6c,0x6f,0x77])}),_0x545111[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>{_0x19a49a||_0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38815c(){return _0x12c78f[_0x351f1c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x351f1c([0x76,0x69,0x65,0x77])][_0x351f1c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x351f1c([0x61,0x75,0x74,0x6f]);}function _0x192a85(){_0x12c78f[_0x351f1c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x351f1c([0x76,0x69,0x65,0x77])][_0x351f1c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x351f1c([0x61,0x75,0x74,0x6f]);}}function _0x5130ef(_0x58a57a){const _0x9a0e74=[new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be283=>setTimeout(_0x2be283,0x47abbbca^_0x12e50d)),_0x545111[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b5ae8=>{let _0x40a5e0=0x0;_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x6f,0x6e])](_0x351f1c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x151245,_0x14a024)=>{_0x14a024[0x0][_0x351f1c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40a5e0++,_0x40a5e0==(0x47a284fe^_0x12e50d)&&(_0x4b5ae8(),_0x151245[_0x351f1c([0x6f,0x66,0x66])]());});}))];return window[_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x351f1c([0x72,0x61,0x63,0x65])](_0x9a0e74)[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>_0x58a57a);}async function _0xe25ba6(){await _0x545111,_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19d1ea,_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19d1ea,_0x12c78f[_0x351f1c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8c28bc(_0xe91fec){const _0x13d909=_0x38d3a9();_0x12c78f[_0x13d909]=_0x351f1c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe91fec,_0xe91fec!=_0x351f1c([0x56,0x61,0x6c,0x69,0x64])&&_0xe25ba6();}function _0x38d3a9(){const _0x468ad6=window[_0x351f1c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x351f1c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x351f1c([0x6e,0x6f,0x77])]())[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x351f1c([0x2e]),'');let _0x3f4127=_0x351f1c([0x75]);for(let _0x36111a=0x0;_0x36111a<_0x468ad6[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36111a+=0x2){let _0x17ea58=window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468ad6[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36111a,_0x36111a+0x2));_0x17ea58>=_0x3ec974[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ea58-=_0x3ec974[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4127+=_0x3ec974[_0x17ea58];}return _0x3f4127;}function _0x4545b4(){const _0x3c177e=_0x4d3787[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e]));if(0x3!=_0x3c177e[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35743c(_0x3c177e[0x1]);function _0x35743c(_0x154cbb){const _0x20389c=_0x40e789(_0x154cbb);return _0x20389c&&_0x46466d()?_0x20389c:null;function _0x46466d(){const _0x34db1a=_0x20389c[_0x351f1c([0x6a,0x74,0x69])],_0xb4eaf2=window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34db1a[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34db1a[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50c22f={..._0x20389c,[_0x351f1c([0x6a,0x74,0x69])]:_0x34db1a[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34db1a[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50c22f[_0x351f1c([0x76,0x63])],_0x2aacfb(_0x50c22f)==_0xb4eaf2;}}}async function _0x586a48(){let _0x1c958a=!0x0;try{const _0x4e7e0b=_0x4d3787[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e])),[_0xab2114,_0x274195,_0x1cdd20]=_0x4e7e0b;return _0x396037(_0xab2114),await _0x5d7e9a(_0xab2114,_0x274195,_0x1cdd20),_0x1c958a;}catch{return!0x1;}function _0x396037(_0x3d329a){const _0x1111cf=_0x40e789(_0x3d329a);_0x1111cf&&_0x1111cf[_0x351f1c([0x61,0x6c,0x67])]==_0x351f1c([0x45,0x53,0x32,0x35,0x36])||(_0x1c958a=!0x1);}async function _0x5d7e9a(_0x4c9c58,_0x51e2e1,_0xfc201d){const _0x4b27e0=window[_0x351f1c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x351f1c([0x66,0x72,0x6f,0x6d])](_0x5a6736(_0xfc201d),_0x320206=>_0x320206[_0x351f1c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f0959=new window[(_0x351f1c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x351f1c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c9c58+_0x351f1c([0x2e])+_0x51e2e1),_0x244553=window[_0x351f1c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x351f1c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x244553)return;const _0x32915e=await _0x244553[_0x351f1c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x351f1c([0x6a,0x77,0x6b]),_0x31f51d,{[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x45,0x43,0x44,0x53,0x41]),[_0x351f1c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x351f1c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x244553[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x45,0x43,0x44,0x53,0x41]),[_0x351f1c([0x68,0x61,0x73,0x68])]:{[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32915e,_0x4b27e0,_0x5f0959)||(_0x1c958a=!0x1);}}function _0x40e789(_0x5c13db){return _0x5c13db[_0x351f1c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x351f1c([0x65,0x79]))?JSON[_0x351f1c([0x70,0x61,0x72,0x73,0x65])](_0x5a6736(_0x5c13db)):null;}function _0x5a6736(_0x4d7cc5){return window[_0x351f1c([0x61,0x74,0x6f,0x62])](_0x4d7cc5[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x351f1c([0x2b]))[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x351f1c([0x2f])));}function _0x2aacfb(_0x21db92){let _0x23a712=0x1505;function _0x210e28(_0x1ab51d){for(let _0x5320dd=0x0;_0x5320dd<_0x1ab51d[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5320dd++){const _0x442c33=_0x1ab51d[_0x351f1c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5320dd);_0x23a712=(_0x23a712<<0x5)+_0x23a712+_0x442c33,_0x23a712&=_0x23a712;}}function _0x561b56(_0x11cf7d){Array[_0x351f1c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11cf7d)?_0x11cf7d[_0x351f1c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x561b56):_0x11cf7d&&typeof _0x11cf7d==_0x351f1c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x351f1c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11cf7d)[_0x351f1c([0x73,0x6f,0x72,0x74])]()[_0x351f1c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfcacbc,_0xfd1ede])=>{_0x210e28(_0xfcacbc),_0x561b56(_0xfd1ede);}):_0x210e28(window[_0x351f1c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11cf7d));}return _0x561b56(_0x21db92),_0x23a712>>>0x0;}function _0x5c3353(_0x51e0dd){return _0x51e0dd[_0x351f1c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x351f1c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x351f1c([0x30]));}function _0x5f0a1b(_0xd33c9f){return _0xd33c9f[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x351f1c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x351f1c([0x6a,0x6f,0x69,0x6e])]('');}function _0x19d1ea(){}function _0x351f1c(_0x31b7c7){return _0x31b7c7['map'](_0x7e6ab0=>String['fromCharCode'](_0x7e6ab0))['join']('');}_0x8c28bc(await _0x4a6913());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1b7711){const {plugins:_0x260f6c,editing:_0x54fdb2,model:_0x191fbc}=this['editor'],_0x32a0d6=_0x260f6c['get'](f)['getFootnote'](_0x1b7711);return!!_0x32a0d6&&(_0x191fbc['change'](_0x52762=>{_0x52762['setSelection'](_0x52762['createPositionAt'](_0x32a0d6['definition'],'end'));}),_0x54fdb2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2ae788){const {plugins:_0x1ce3b9,editing:_0x271626,model:_0x2e7811}=this['editor'],_0x199763=_0x1ce3b9['get'](f)['getFootnote'](_0x2ae788);return!!_0x199763&&(_0x2e7811['change'](_0x5b9d01=>{_0x5b9d01['setSelection'](_0x199763['reference'],'on');}),_0x271626['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4ea99e}=this['editor']['model'],_0x53e4dd=this['editor']['config']['get']('footnotes.multiBlock');_0x4ea99e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4ea99e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4ea99e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x53e4dd?_0x4ea99e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4ea99e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4ea99e['addChildCheck'](_0x57a1fc=>{for(const _0x48df73 of _0x57a1fc)if('footnoteDefinition'===_0x48df73['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x565283}=this,{conversion:_0x64c9be,editing:_0xf054da}=_0x565283,{t:t}=_0x565283['locale'];_0x64c9be['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x35fd53,{writer:_0xb21d79,consumable:_0x1f0c49})=>{const _0x3c5f74=_0x35fd53['getChild'](0x0);if(!_0x3c5f74||!_0x3c5f74['is']('element','a'))return null;const _0x851817=_0x3c5f74['getAttribute']('href')||'';if(!_0x851817['startsWith']('#'))return null;const _0x3249a7=_0x851817['replace'](/^#/,'');if(!_0x3249a7)return null;_0x1f0c49['consume'](_0x3c5f74,{'name':!0x0,'attributes':['href']});for(const {item:_0x5e4d52}of _0xf054da['view']['createRangeIn'](_0x3c5f74))_0x5e4d52['is']('$textProxy')?_0x1f0c49['consume'](_0x5e4d52['textNode'],{'name':!0x0}):_0x5e4d52['is']('element')&&_0x1f0c49['consume'](_0x5e4d52,{'name':!0x0});return _0xb21d79['createElement']('footnoteRef',{'footnoteId':_0x3249a7});}}),_0x64c9be['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x493ee6,{writer:_0x5eaf29})=>D(_0x493ee6,_0x5eaf29)}),_0x64c9be['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x158908,{writer:_0x5aa52c})=>{const _0x355372=_0x158908['getAttribute']('footnoteCounter');return _0x5b4e1d(D(_0x158908,_0x5aa52c),_0x5aa52c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x355372)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5d05fc}=this,{t:t}=_0x5d05fc['locale'],{conversion:_0x4cb331}=_0x5d05fc;_0x4cb331['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4cb331['for']('upcast')['add'](_0x1b365b=>{_0x1b365b['on']('element:ol',(_0xdf133a,_0x141fd7,_0x1e43f3)=>{const _0x1328fd=_0x141fd7['viewItem'];if(!_0x1328fd['hasClass']('footnotes-list')||!_0x141fd7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1e43f3['consumable']['consume'](_0x1328fd,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5a41ad,modelCursor:_0x2a3ce9}=_0x1e43f3['convertChildren'](_0x141fd7['viewItem'],_0x141fd7['modelCursor']);_0x141fd7['modelRange']=_0x5a41ad,_0x141fd7['modelCursor']=_0x2a3ce9;}),_0x1b365b['on']('element:hr',(_0x12150b,_0xad606f,_0x39f4a9)=>{const _0x4946c4=_0xad606f['viewItem'];_0x4946c4['hasClass']('footnotes-divider')&&_0xad606f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x39f4a9['consumable']['consume'](_0x4946c4,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4cb331['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x217a44,{writer:_0x2d7ac1})=>v(_0x2d7ac1)}),_0x4cb331['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4df79a,{writer:_0x457f4a})=>{const _0xe8603a=v(_0x457f4a,{'data-footnotes-list-label':t('Footnotes')}),_0x1d7a18=_0x5b4e1d(_0xe8603a,_0x457f4a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x457f4a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1d7a18),_0x1d7a18;}});}['_defineDefinitionConverters'](){const {editor:_0x264aab}=this,{conversion:_0x2d4953,locale:_0x5be8d7}=_0x264aab,_0x3551cd=_0x264aab['config']['get']('footnotes.multiBlock');_0x2d4953['for']('upcast')['add'](_0x50e911=>{_0x50e911['on']('element:li',(_0x574172,_0x2f5c36,_0x550fe1)=>{const _0x2d4909=_0x2f5c36['viewItem'];if(!_0x2d4909['hasClass']('footnote-definition')||!_0x2d4909['getAttribute']('id'))return;const _0x36332b=_0x2d4909['parent'];if(!_0x36332b['is']('element','ol')||!_0x36332b['hasClass']('footnotes-list'))return;if(!_0x550fe1['consumable']['test'](_0x2d4909,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x312a42=_0x550fe1['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2d4909['getAttribute']('id')});if(!_0x550fe1['safeInsert'](_0x312a42,_0x2f5c36['modelCursor']))return;_0x550fe1['consumable']['consume'](_0x2d4909,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4c0262=Array['from'](_0x2d4909['getChildren']())['find'](_0x5485ff=>_0x5485ff['is']('element')&&_0x5485ff['hasClass']('footnote-content'));for(const _0x203c39 of _0x2d4909['getChildren']())_0x203c39['is']('element')&&(_0x550fe1['consumable']['consume'](_0x203c39,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x550fe1['consumable']['consume'](_0x203c39,{'name':!0x0,'classes':'footnote-content'}));if(_0x4c0262){if(_0x3551cd)_0x550fe1['convertChildren'](_0x4c0262,_0x312a42);else{const _0xe07522=_0x550fe1['writer']['createElement']('footnoteInlineContent');_0x550fe1['writer']['insert'](_0xe07522,_0x312a42),_0x550fe1['convertChildren'](_0x4c0262,_0xe07522);}}_0x550fe1['updateConversionResult'](_0x312a42,_0x2f5c36);});}),_0x2d4953['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xbd6695,{writer:_0x337a0e})=>b(_0xbd6695,_0x337a0e,_0x5be8d7,{'dataPipeline':!0x0})}),_0x2d4953['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x392b3a,{writer:_0x224533})=>b(_0x392b3a,_0x224533,_0x5be8d7)});}['_defineBogusParagraphConverters'](){const {editor:_0x36ba36}=this,{conversion:_0x16ca54}=_0x36ba36;_0x36ba36['config']['get']('footnotes.multiBlock')?(_0x16ca54['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x16ca54['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x36ba36['model']['document'],'change:data',()=>{!function(_0x2110f6,_0x3b2266){const _0x4c8566=_0x2110f6['document']['differ'],_0x35790a=new Set();for(const _0x32e772 of _0x4c8566['getChanges']()){const _0x3fdba6='attribute'==_0x32e772['type']?_0x32e772['range']['start']['parent']:_0x32e772['position']['parent'];_0x3fdba6['is']('element','footnoteDefinition')&&_0x35790a['add'](_0x3fdba6);}for(const _0x165e3c of _0x35790a['values']()){const _0x683841=Array['from'](_0x165e3c['getChildren']())['filter'](_0x7dd436=>g(_0x7dd436,_0x3b2266['mapper']));for(const _0x5c6580 of _0x683841)_0x3b2266['reconvertItem'](_0x5c6580);}}(_0x36ba36['model'],_0x36ba36['editing']);})):(_0x16ca54['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x16ca54['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5bba15,{writer:_0xe728b9})=>{const _0xcee466=_0xe728b9['createContainerElement']('span');return _0xe728b9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcee466),_0xcee466;}}));}['_defineKeyboardHandlers'](){const {editor:_0x461c9b}=this,{editing:_0x24e1b8,t:t}=_0x461c9b,_0x1c1273=_0x461c9b['model']['document']['selection'];_0x461c9b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x461c9b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x24e1b8['view']['document'],'enter',(_0x2927ab,_0x244188)=>{const _0x13c642=function(_0x4ca97d){const _0x4211d3=_0x4ca97d['getSelectedElement']();if(_0x4211d3?.['is']('element','footnoteRef'))return _0x4211d3;return null;}(_0x1c1273);if(_0x13c642){const _0x549205=_0x13c642['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x549205),_0x244188['preventDefault'](),_0x2927ab['stop']();}},{'context':_0x9e120c});}['_defineClickHandlers'](){const {editor:_0x55f49b}=this,{editing:_0x2e33f2}=_0x55f49b;_0x55f49b['editing']['view']['addObserver'](_0xf6f06a),_0x55f49b['editing']['view']['addObserver'](_0x3d3d3e);let _0x442b2f=!0x1;this['listenTo'](_0x2e33f2['view']['document'],'pointerdown',(_0xfe9bf9,_0x47d5e5)=>{const {target:_0x8caf56}=_0x47d5e5,_0x13610e=_0x2e33f2['view']['document']['selection'];_0x442b2f=!!(_0x8caf56?.['is']('element','a')&&_0x8caf56['parent']?.['is']('element','sup')&&_0x8caf56['parent']['hasClass']('footnote'))&&_0x13610e['getSelectedElement']()===_0x8caf56['parent'];},{'priority':'high'}),this['listenTo'](_0x2e33f2['view']['document'],'click',(_0x38184b,_0x8f8d4f)=>{const {target:_0x34a407}=_0x8f8d4f;if(!_0x34a407?.['is']('element','a'))return;if(_0x34a407['parent']?.['is']('element','sup')&&_0x34a407['parent']['hasClass']('footnote')&&!_0x442b2f)return void _0x8f8d4f['preventDefault']();let _0x28f999=_0x34a407['getAttribute']('href');if(!_0x28f999?.['startsWith']('#'))return;_0x28f999=_0x28f999['slice'](0x1);let _0x47af33=!0x1;(_0x28f999['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x28f999['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x28f999))&&(_0x47af33=!0x0),_0x47af33&&(_0x8f8d4f['preventDefault'](),_0x38184b['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5c80be}={}){return(_0x40705c,{writer:_0x1c3dfb})=>{if(!p(_0x40705c))return null;if(!_0x5c80be)return _0x1c3dfb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x18394d=_0x1c3dfb['createContainerElement']('p');return _0x1c3dfb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x18394d),_0x18394d;};}function p(_0x4cbbdd){const {parent:_0x37d40d}=_0x4cbbdd;if(!_0x37d40d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x37d40d['childCount'])return!0x1;for(const _0x5da09b of _0x4cbbdd['getAttributeKeys']())if(!_0x5da09b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5da09b)return!0x1;return!0x0;}function g(_0x2752f5,_0x2dc840){if(!_0x2752f5['is']('element','paragraph'))return!0x1;const _0x476dbd=_0x2dc840['toViewElement'](_0x2752f5);return!!_0x476dbd&&p(_0x2752f5)!==_0x476dbd['is']('element','span');}function $(_0x5e28b4){return _0x9e120c(_0x5e28b4)&&_0x5e28b4['is']('containerElement')&&!!_0x5e28b4['getCustomProperty']('footnotesDefinitions');}function v(_0x1eb1a5,_0x4be59d={}){const _0xc7f74=_0x1eb1a5['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x42158c=_0x1eb1a5['createContainerElement']('ol',{'class':'footnotes-list'},_0x1eb1a5['createSlot']());return _0x1eb1a5['createContainerElement']('div',{'class':'footnotes',..._0x4be59d},[_0xc7f74,_0x42158c]);}function D(_0x584981,_0x147cd5){const _0x10b71c=_0x584981['getAttribute']('footnoteId'),_0x350bc0=_0x584981['getAttribute']('footnoteCounter'),_0x44899f=_0x147cd5['createUIElement']('a',{'href':'#'+_0x10b71c},function(_0x30132){const _0x1c5701=this['toDomElement'](_0x30132);return _0x1c5701['textContent']=_0x350bc0,_0x1c5701;}),_0x2ad048=_0x147cd5['createContainerElement']('sup',{'id':'ref-'+_0x10b71c,'class':'footnote'},[_0x44899f]);return _0x2ad048['getFillerOffset']=()=>null,_0x2ad048;}function b(_0x1a5d30,_0x42a150,_0x3b62a7,{dataPipeline:_0x3b2c44}={}){const {t:t}=_0x3b62a7,_0x2094ac=_0x1a5d30['getAttribute']('footnoteId'),_0xfa68ba=_0x42a150['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2094ac},function(_0xfeebdb){const _0x39b43d=this['toDomElement'](_0xfeebdb);return _0x39b43d['innerText']='^',_0x39b43d;}),_0x4f692f=_0x3b2c44?_0x42a150['createContainerElement']('div',{'class':'footnote-content'}):_0x5ab702(_0x42a150['createEditableElement']('div',{'class':'footnote-content'}),_0x42a150,{'label':t('Footnote\x20content.')});return _0x42a150['insert'](_0x42a150['createPositionAt'](_0x4f692f,0x0),_0x42a150['createSlot']()),_0x42a150['createContainerElement']('li',{'class':'footnote-definition','id':_0x2094ac},[_0xfa68ba,_0x4f692f]);}class e extends _0xeb7666{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4bcc1e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x39a0bc}=this,{plugins:_0x95b62d,model:_0xf4932a}=_0x39a0bc,_0x38b420=_0x95b62d['get'](_0x4bcc1e),_0x28ab66=_0x95b62d['get'](f);this['listenTo'](_0x38b420,'outputTransformation',(_0x173026,_0x3f93c1)=>{const _0x1fe9d6=c(_0xf4932a['createRangeIn'](_0x3f93c1['content']));if(!_0x1fe9d6['length'])return;const _0x344a6e=_0x28ab66['getFootnotes'](),_0x5d5364=_0x1fe9d6['reduce']((_0x392ac2,_0x58ed8e)=>{const _0x5448e4=_0x344a6e['find'](_0xf74a5c=>_0xf74a5c['id']===_0x58ed8e);if(_0x5448e4){const _0x34fda7=_0x39a0bc['data']['toView'](_0x5448e4['definition'],{'isClipboardPipeline':!0x0}),_0x3fa7e3=_0x39a0bc['data']['htmlProcessor']['toData'](_0x34fda7);_0x392ac2[_0x5448e4['id']]=_0x3fa7e3;}return _0x392ac2;},Object['create'](null));_0x3f93c1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5d5364));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x39f315}=this,{model:_0x3963bd,plugins:_0x758d0d}=_0x39f315,{view:_0xb05144}=_0x39f315['editing'],_0x4cf4e2=_0x758d0d['get'](_0x4bcc1e),_0x445ac5=_0x758d0d['get'](f),_0xf37576=_0x39f315['config']['get']('footnotes.multiBlock');let _0x4a62f6=null;this['listenTo'](_0xb05144['document'],'clipboardInput',(_0x2a0e67,_0x250c7f)=>{const _0x2be03e=_0x250c7f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4a62f6=_0x2be03e?JSON['parse'](_0x2be03e):null;}),this['listenTo'](_0x4cf4e2,'contentInsertion',(_0x51db7c,_0x3019d9)=>{const _0x78ebac=_0x3019d9['sourceEditorId']===this['editor']['id'];_0x78ebac&&'drop'===_0x3019d9['method']||_0x3963bd['change'](_0x3dd73c=>{let _0x24bf1f=_0x445ac5['getFootnotesDefinitionsObjectElement']();const _0x2096e2=!!_0x24bf1f&&Array['from'](_0x3963bd['document']['selection']['getSelectedBlocks']())['includes'](_0x24bf1f);if((_0x24bf1f&&!_0x2096e2||!_0x24bf1f&&!_0x4a62f6)&&function(_0x163b8f,_0x1c7a46){const _0x50b135=[];for(const {item:_0x467d5e}of _0x163b8f['createRangeIn'](_0x1c7a46))_0x467d5e['is']('element','footnotesDefinitions')&&_0x50b135['push'](_0x467d5e);for(const _0x216901 of _0x50b135)_0x163b8f['remove'](_0x216901);}(_0x3dd73c,_0x3019d9['content']),!_0x4a62f6)return;const {selection:_0x55fb3d}=_0x3963bd['document'],_0x45c2aa=_0x55fb3d['getFirstRange']()['root'];_0x24bf1f&&!_0x2096e2||(_0x24bf1f=function(_0xda813e,_0x7739db){for(const {item:_0x31bffc}of _0xda813e['createRangeIn'](_0x7739db))if(_0x31bffc['is']('element','footnotesDefinitions'))return _0x31bffc;return null;}(_0x3dd73c,_0x3019d9['content']),_0x24bf1f||=_0x445ac5['_insertEmptyFootnotesDefinitionsContainer'](_0x3dd73c,_0x45c2aa));const _0x222baa=Array['from'](_0x55fb3d['getRanges']())['flatMap'](c),_0x46f569=function(_0x147946,_0x5d4acf,_0x13d19e){const _0x26c421=Object['create'](null);for(const {item:_0x42c035}of _0x147946['createRangeIn'](_0x5d4acf))if(_0x42c035['is']('element','footnoteRef')){const _0x424d6d=_0x42c035['getAttribute']('footnoteId');if(!_0x13d19e(_0x424d6d))continue;_0x26c421[_0x424d6d]||(_0x26c421[_0x424d6d]=_0x32a995()),_0x147946['setAttribute']('footnoteId',_0x26c421[_0x424d6d],_0x42c035);}return _0x26c421;}(_0x3dd73c,_0x3019d9['content'],_0x24f905=>{if(!_0x78ebac)return!0x0;return!!_0x445ac5['getFootnote'](_0x24f905)&&!_0x222baa['includes'](_0x24f905);});for(const [_0x209be2,_0x403a8e]of Object['entries'](_0x4a62f6)){const _0x4fdeee=_0x46f569[_0x209be2]||_0x209be2,_0x2b6a3b=_0x3dd73c['createElement']('footnoteDefinition',{'footnoteId':_0x4fdeee}),_0x30c046=_0x39f315['data']['htmlProcessor']['toView'](_0x403a8e);let _0x43d6d5;if(_0xf37576)_0x43d6d5=_0x39f315['data']['toModel'](_0x30c046,_0x2b6a3b);else{_0x43d6d5=_0x3dd73c['createElement']('footnoteInlineContent');const _0xe33f5e=_0x39f315['data']['toModel'](_0x30c046,_0x43d6d5);_0x3dd73c['insert'](_0xe33f5e,_0x43d6d5);}_0x3dd73c['append'](_0x43d6d5,_0x2b6a3b),_0x3dd73c['insert'](_0x2b6a3b,_0x24bf1f,'end');}_0x4a62f6=null;});});}}function c(_0x39cac2){const _0x3a0595=new Set();for(const {item:_0x16acf3}of _0x39cac2)_0x16acf3['is']('element','footnoteRef')&&_0x3a0595['add'](_0x16acf3['getAttribute']('footnoteId'));return Array['from'](_0x3a0595);}class i extends _0xeb7666{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x29d81c}=this,{componentFactory:_0x45d14a}=_0x29d81c['ui'];_0x45d14a['add']('insertFootnote',x(_0x29d81c,_0x2c7d7a)),_0x45d14a['add']('menuBar:insertFootnote',x(_0x29d81c,_0x1e6c82)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1276a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215465;for(const _0x5b56b9 in _0x1276a3){const _0x26c982=_0x5b56b9,_0x2fa7e3=_0x1276a3[_0x26c982];if('footnotesLicenseKeyValid'==_0x2fa7e3||'footnotesLicenseKeyInvalid'==_0x2fa7e3||'footnotesLicenseKeyExpired'==_0x2fa7e3||'footnotesLicenseKeyDomainLimit'==_0x2fa7e3||'footnotesLicenseKeyNotAllowed'==_0x2fa7e3||'footnotesLicenseKeyEvaluationLimit'==_0x2fa7e3||'footnotesLicenseKeyTrialLimit'==_0x2fa7e3||'footnotesLicenseKeyUsageLimit'==_0x2fa7e3){delete _0x1276a3[_0x26c982],_0x215465=_0x2fa7e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x215465&&_0x1276a3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x215465&&_0x1276a3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x215465&&_0x1276a3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x215465&&_0x1276a3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x215465&&_0x1276a3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x215465&&_0x1276a3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x215465&&_0x1276a3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4c8756,_0x55ef82){const _0x41289d=_0x4c8756['commands']['get']('insertFootnote');return _0x50842b=>{const {t:t}=_0x50842b,_0x5ddc6c=new _0x55ef82(_0x50842b),_0x215b5f=_0x5ddc6c instanceof _0x1e6c82;return _0x5ddc6c['bind']('isEnabled')['to'](_0x41289d,'isEnabled'),_0x5ddc6c['set']({'label':t(_0x215b5f?'Footnote':'Insert\x20footnote'),'icon':_0x3b34e6,'tooltip':!0x0}),_0x5ddc6c['on']('execute',()=>{_0x41289d['execute'](),_0x4c8756['editing']['view']['focus']();}),_0x5ddc6c;};}class lt extends _0xeb7666{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 _0x27ce1c{['refresh'](){const {editor:_0x416333}=this,_0x3cca97=_0x416333['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3cca97,this['value']=_0x3cca97?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1907de}){const {editor:_0x4c0067}=this,_0x42375e=_0x4c0067['plugins']['get'](f),_0x126911=_0x42375e['getFootnotesDefinitionsObjectElement']();_0x126911&&Q['includes'](_0x1907de)&&_0x4c0067['model']['change'](_0x2d5798=>{_0x2d5798['setAttribute']('footnotesListStyle',_0x1907de,_0x126911),_0x42375e['_updateFootnotesCounters'](_0x2d5798);});}}class C extends _0x27ce1c{['refresh'](){const {editor:_0x575d55}=this,_0x3f0da7=_0x575d55['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f0da7,this['value']=_0x3f0da7?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x807f8f}){const {editor:_0xf00f34}=this,_0xd9db6c=_0xf00f34['plugins']['get'](f),_0x6edb42=_0xd9db6c['getFootnotesDefinitionsObjectElement']();_0x6edb42&&Number['isInteger'](_0x807f8f)&&_0xf00f34['model']['change'](_0x5ad6a8=>{_0x5ad6a8['setAttribute']('footnotesListStart',_0x807f8f,_0x6edb42),_0xd9db6c['_updateFootnotesCounters'](_0x5ad6a8);});}}class P extends _0xeb7666{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bc34c}=this;_0x2bc34c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2bc34c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2bc34c['commands']['add']('footnotesStyle',new S(_0x2bc34c)),_0x2bc34c['commands']['add']('footnotesStart',new C(_0x2bc34c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x517393}=this,{schema:_0x1aaa85}=_0x517393['model'];_0x1aaa85['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x382118}=this,{conversion:_0x1a5ceb,model:_0x27ab90}=_0x382118,{schema:_0x8ccdb}=_0x27ab90;_0x1a5ceb['for']('upcast')['add'](_0x5ef14a=>{_0x5ef14a['on']('element:ol',(_0x3e2508,_0x45648c,_0x116d53)=>{const _0x2531f5=_0x45648c['viewItem'],_0x5e270e=_0x45648c['modelCursor']?.['parent'];_0x2531f5['hasClass']('footnotes-list')&&_0x5e270e?.['is']('element','footnotesDefinitions')&&(function(_0x569b09,_0x4c0ced,_0x3eb9ed,_0x3ee902){if(!_0x3ee902['checkAttribute'](_0x4c0ced,'footnotesListStart'))return;let _0x3ff20d=0x1;const _0x2b1ec7=_0x3eb9ed['consumable']['consume'](_0x569b09,{'attributes':'start'});if(_0x2b1ec7){const _0x191e41=Number['parseInt'](_0x569b09['getAttribute']('start'),0xa);Number['isNaN'](_0x191e41)||(_0x3ff20d=_0x191e41);}!_0x2b1ec7&&_0x4c0ced['hasAttribute']('footnotesListStart')||_0x3eb9ed['writer']['setAttribute']('footnotesListStart',_0x3ff20d,_0x4c0ced);}(_0x2531f5,_0x5e270e,_0x116d53,_0x8ccdb),function(_0x4eaedb,_0x10ddc2,_0x2fa44a,_0x347c6c){if(!_0x347c6c['checkAttribute'](_0x10ddc2,'footnotesListStyle'))return;let _0x2dee03='decimal',_0x5465e8=!0x1;if(_0x2fa44a['consumable']['consume'](_0x4eaedb,{'attributes':'type'})){const _0x30f87b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4eaedb['getAttribute']('type')];_0x30f87b&&(_0x2dee03=_0x30f87b),_0x5465e8=!0x0;}_0x2fa44a['consumable']['consume'](_0x4eaedb,{'styles':'list-style-type'})&&(_0x2dee03=function(_0x54585a){switch(_0x54585a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x54585a;}}(_0x4eaedb['getStyle']('list-style-type')),_0x5465e8=!0x0),!_0x5465e8&&_0x10ddc2['hasAttribute']('footnotesListStyle')||_0x2fa44a['writer']['setAttribute']('footnotesListStyle',_0x2dee03,_0x10ddc2);}(_0x2531f5,_0x5e270e,_0x116d53,_0x8ccdb));});}),_0x1a5ceb['for']('downcast')['add'](_0x4a6bfb=>{_0x4a6bfb['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2046e7,_0x1de3bf,_0x1ff10f)=>{if(!_0x1ff10f['consumable']['consume'](_0x1de3bf['item'],_0x2046e7['name']))return;const _0x5a5171=M(_0x1de3bf['item'],_0x1ff10f['mapper']),{attributeNewValue:_0x4bc900}=_0x1de3bf;null==_0x4bc900||0x1===_0x4bc900?_0x1ff10f['writer']['removeAttribute']('start',_0x5a5171):_0x1ff10f['writer']['setAttribute']('start',String(_0x4bc900),_0x5a5171);}),_0x4a6bfb['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x888d54,_0x1a7bec,_0xb912a4)=>{if(!_0xb912a4['consumable']['consume'](_0x1a7bec['item'],_0x888d54['name']))return;const _0xaf0c28=M(_0x1a7bec['item'],_0xb912a4['mapper']),{attributeNewValue:_0x11a7d5}=_0x1a7bec;_0x11a7d5&&'decimal'!==_0x11a7d5?_0xb912a4['writer']['setStyle']('list-style-type',_0x11a7d5,_0xaf0c28):_0xb912a4['writer']['removeStyle']('list-style-type',_0xaf0c28);});});}['_definePostfixer'](){const {editor:_0x4c84d8}=this,{model:_0x1fe4b0}=_0x4c84d8,_0x49124a=_0x4c84d8['plugins']['get'](f),_0x4dd717=this['_getDefaultListStyle'](),_0x5ea245=this['_getDefaultStartIndex']();_0x1fe4b0['document']['registerPostFixer'](_0xb0cb8b=>{const _0x311d18=_0x1fe4b0['document']['differ']['getChanges']();let _0x3d8795=!0x1;for(const _0x5d62d9 of _0x311d18){if('insert'!==_0x5d62d9['type']||'$text'===_0x5d62d9['name'])continue;const _0x468bb4=_0x1fe4b0['createRangeOn'](_0x5d62d9['position']['nodeAfter']);for(const _0x30d51 of _0x468bb4['getItems']())_0x30d51['is']('element','footnotesDefinitions')&&(!_0x30d51['hasAttribute']('footnotesListStart')&&_0x1fe4b0['schema']['checkAttribute'](_0x30d51,'footnotesListStart')&&(_0xb0cb8b['setAttribute']('footnotesListStart',_0x5ea245,_0x30d51),_0x3d8795=!0x0),!_0x30d51['hasAttribute']('footnotesListStyle')&&_0x1fe4b0['schema']['checkAttribute'](_0x30d51,'footnotesListStyle')&&(_0xb0cb8b['setAttribute']('footnotesListStyle',_0x4dd717,_0x30d51),_0x3d8795=!0x0));}return _0x3d8795&&_0x49124a['_updateFootnotesCounters'](_0xb0cb8b),_0x3d8795;});}['_defineFormatter'](){const {editor:_0x587ca3}=this;_0x587ca3['plugins']['get'](f)['setFootnoteFormatter'](_0x2f66fe=>this['_formatFootnoteListValue'](_0x2f66fe));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4b89e9,value:_0x327e9d,digits:_0x2eb19f}){const _0x1750e5=_0x4b89e9['getAttribute']('footnotesListStyle'),_0xbaed35=_0x4b89e9['getAttribute']('footnotesListStart'),_0x3f0402=Math['floor'](_0x327e9d)+(_0xbaed35??0x1)-0x1;switch(_0x1750e5){case'decimal-leading-zero':return function(_0x2c8cce,_0x22cd54){return String(_0x2c8cce)['padStart'](_0x22cd54,'0');}(_0x3f0402,Math['max'](0x2,_0x2eb19f));case'lower-alpha':case'lower-latin':return N(_0x3f0402,!0x1);case'upper-alpha':case'upper-latin':return N(_0x3f0402,!0x0);case'lower-roman':return X(_0x3f0402,!0x1);case'upper-roman':return X(_0x3f0402,!0x0);default:return String(_0x3f0402);}}}function M(_0x5088aa,_0x5629c2){const _0x3ab539=_0x5629c2['toViewElement'](_0x5088aa);return Array['from'](_0x3ab539['getChildren']())['find'](_0x1b4ca4=>_0x1b4ca4['is']('element','ol')&&_0x1b4ca4['hasClass']('footnotes-list'));}function N(_0x2e7c85,_0x14ef20){let _0x3ade3d='',_0x587a5a=_0x2e7c85;for(;_0x587a5a>0x0;){const _0x122e9b=(_0x587a5a-0x1)%0x1a;_0x3ade3d=String['fromCharCode'](0x61+_0x122e9b)+_0x3ade3d,_0x587a5a=Math['floor']((_0x587a5a-0x1)/0x1a);}return _0x14ef20?_0x3ade3d['toUpperCase']():_0x3ade3d;}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(_0x371c52,_0x334e14){let _0x59a236='',_0x1fe9e1=_0x371c52;for(const {value:_0x54fdf8,numeral:_0x473df8}of V)for(;_0x1fe9e1>=_0x54fdf8;)_0x59a236+=_0x473df8,_0x1fe9e1-=_0x54fdf8;return _0x334e14?_0x59a236:_0x59a236['toLowerCase']();}class R extends _0x5f3e58{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x367b77();['focusCycler'];constructor(_0x236f0d,{styleButtonViews:_0x125e7b,styleGridAriaLabel:_0x43b0d1}){super(_0x236f0d),(this['focusCycler']=new _0x2faa84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x125e7b,_0x43b0d1),[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 _0x27c857 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x27c857['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 _0x180f68=_0x47df47=>_0x47df47['stopPropagation']();this['keystrokes']['set']('arrowright',_0x180f68),this['keystrokes']['set']('arrowleft',_0x180f68),this['keystrokes']['set']('arrowup',_0x180f68),this['keystrokes']['set']('arrowdown',_0x180f68);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3c2e56,_0x4a363b){const _0x32e04b=new _0x5f3e58(this['locale']);return _0x32e04b['children']=_0x32e04b['createCollection'](),_0x32e04b['children']['addMany'](_0x3c2e56),_0x32e04b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4a363b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x32e04b['children']}),_0x32e04b['children']['delegate']('execute')['to'](this),_0x32e04b['focus']=function(){for(const _0xf2301c of this['children'])if(_0xf2301c instanceof _0x2c7d7a&&_0xf2301c['isOn'])return void _0xf2301c['focus']();this['children']['first']['focus']();},_0x32e04b['focusTracker']=new ot(),_0x32e04b['keystrokes']=new rt(),_0x32e04b['render'](),_0x32e04b['keystrokes']['listenTo'](_0x32e04b['element']),this['children']['add'](_0x32e04b),_0x32e04b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4713e4=this['_createStartIndexPropertyView'](),_0x41d72f=[_0x4713e4],_0x1abc38=new st(this['locale'],_0x41d72f);return _0x1abc38['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1abc38['buttonView']['bind']('isEnabled')['toMany'](_0x41d72f,'isEnabled',(..._0x59049a)=>_0x59049a['some'](_0x42acef=>_0x42acef)),_0x1abc38['buttonView']['on']('change:isEnabled',(_0x22615b,_0x24ccc0,_0x1bfd17)=>{_0x1bfd17||(_0x1abc38['isCollapsed']=!0x0);}),this['children']['add'](_0x1abc38),[_0x4713e4,_0x1abc38];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x332ee5=new it(this['locale'],et);return _0x332ee5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x332ee5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x332ee5['fieldView']['on']('input',()=>{const _0x55600f=_0x332ee5['fieldView']['element'],_0x429083=_0x55600f['valueAsNumber'];Number['isNaN'](_0x429083)?_0x332ee5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x55600f['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x429083}):_0x332ee5['errorText']=t(_0x429083<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x332ee5;}}class j extends _0xeb7666{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x59ce17,_0x6c66e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x461783}=this,{componentFactory:_0x24c1b8}=_0x461783['ui'];_0x461783['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x24c1b8['add']('footnotesStyle',function(_0x501884){return _0x30dec7=>{const {t:t}=_0x30dec7,_0x270bb1=_0x501884['commands']['get']('footnotesStyle'),_0x18afac=_0x38dfa3(_0x30dec7),{buttonView:_0x358469}=_0x18afac;return _0x18afac['class']='ck-footnotes-styles-dropdown',_0x18afac['bind']('isEnabled')['to'](_0x270bb1,'isEnabled'),_0x358469['set']({'label':t('Footnotes\x20style'),'icon':_0x3b34e6,'tooltip':!0x0}),_0x18afac['once']('change:isOpen',()=>{const _0x33578e=function({editor:_0x3b1d2a,dropdownView:_0x5065ad}){const {t:t}=_0x3b1d2a['locale'],_0x5401c5=t('Footnotes\x20definitions\x20styles'),_0x4d582e=function(_0x1e6c9b){const t=_0x1e6c9b['locale']['t'],_0x285aa4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x383181},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x383ca1},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x157553},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5b268f},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1af5e5},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x22b71f}];return _0x285aa4['map'](function(_0x24d74c){const _0x1fdd10=_0x24d74c['locale'];return({label:_0x17a105,icon:_0x4cb29b,tooltip:_0x5af689,style:_0x28da27})=>{const _0xdf6e67=_0x24d74c['commands']['get']('footnotesStyle'),_0x267675=new _0x2c7d7a(_0x1fdd10);return _0x267675['set']({'label':_0x17a105,'icon':_0x4cb29b,'tooltip':_0x5af689}),_0x267675['bind']('isOn')['to'](_0xdf6e67,'value',_0x4a6c33=>_0x4a6c33===_0x28da27),_0x267675['bind']('isEnabled')['to'](_0xdf6e67,'isEnabled'),_0x267675['on']('execute',()=>{_0x24d74c['execute']('footnotesStyle',{'value':_0x28da27}),_0x24d74c['editing']['view']['focus']();}),_0x267675;};}(_0x1e6c9b));}(_0x3b1d2a),_0x119245=new R(_0x3b1d2a['locale'],{'styleGridAriaLabel':_0x5401c5,'styleButtonViews':_0x4d582e}),_0x4293e9=_0x3b1d2a['commands']['get']('footnotesStart');return _0x119245['startIndexFieldView']['bind']('isEnabled')['to'](_0x4293e9),_0x119245['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x4293e9),_0x119245['on']('footnotesListStart',(_0x271cdf,_0x125082)=>{_0x3b1d2a['execute']('footnotesStart',{'value':_0x125082['startIndex']});}),_0x119245['delegate']('execute')['to'](_0x5065ad),_0x119245;}({'editor':_0x501884,'dropdownView':_0x18afac});_0x18afac['panelView']['children']['add'](_0x33578e);}),_0x18afac;};}(_0x461783));}['afterInit'](){const {editor:_0x1ba79b}=this,{t:t}=_0x1ba79b['locale'],_0x4b3daa=_0x1ba79b['plugins']['get'](_0x6c66e1),{defaultPositions:_0x305ee8}=_0x2fd527;_0x4b3daa['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1ba79b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3208ee=>{let _0x1b7ea3=_0x3208ee['getFirstPosition']()?.['parent'];return _0x1b7ea3?.['is']('$text')&&(_0x1b7ea3=_0x1b7ea3['parent']),_0x1b7ea3?.['is']('element')?_0x1b7ea3['findAncestor']($):null;},'positions':[_0x305ee8['southArrowNorth'],_0x305ee8['southArrowNorthMiddleWest'],_0x305ee8['southArrowNorthMiddleEast'],_0x305ee8['southArrowNorthWest'],_0x305ee8['southArrowNorthEast'],_0x305ee8['northArrowSouth'],_0x305ee8['northArrowSouthMiddleWest'],_0x305ee8['northArrowSouthMiddleEast'],_0x305ee8['northArrowSouthWest'],_0x305ee8['northArrowSouthEast'],_0x305ee8['viewportStickyNorth']]});}}class ft extends _0xeb7666{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-
|
|
3
|
+
"version": "0.0.0-nightly-20251207.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251207.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251207.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251207.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251207.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251207.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251207.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251207.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251207.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d0142=_0x2534;(function(_0xbe9a90,_0x57504f){const _0x4ae135=_0x2534,_0x1691b3=_0xbe9a90();while(!![]){try{const _0x165f42=-parseInt(_0x4ae135(0x166))/0x1*(parseInt(_0x4ae135(0x16b))/0x2)+parseInt(_0x4ae135(0x171))/0x3*(-parseInt(_0x4ae135(0x17f))/0x4)+parseInt(_0x4ae135(0x176))/0x5*(-parseInt(_0x4ae135(0x175))/0x6)+parseInt(_0x4ae135(0x173))/0x7*(parseInt(_0x4ae135(0x16a))/0x8)+-parseInt(_0x4ae135(0x16d))/0x9+parseInt(_0x4ae135(0x170))/0xa*(-parseInt(_0x4ae135(0x178))/0xb)+parseInt(_0x4ae135(0x162))/0xc;if(_0x165f42===_0x57504f)break;else _0x1691b3['push'](_0x1691b3['shift']());}catch(_0x1e2f93){_0x1691b3['push'](_0x1691b3['shift']());}}}(_0x69d7,0x81745));function _0x69d7(){const _0x542275=['6470evoyOh','length','187ohXzIY','plugins','selection','checkChild','change','document','isEnabled','8jclMkm','isBlock','end','insert-footnote-command-executed-with-invalid-id','editor','getFirstRange','FootnotesEditing','createElement','_getPositionToInsertFootnote','execute','35564484uljELk','getItems','refresh','string','7kNXULA','_moveSelectionToFootnoteDefinition','get','isObject','136936nwDbiP','262394OkeVjH','insertObject','1815057OVWOCu','model','footnoteRef','51010nyYkgB','1584813WpKxkM','footnoteId','77xUmkgm','test','1662QhCovm'];_0x69d7=function(){return _0x542275;};return _0x69d7();}function _0x2534(_0x2bfecf,_0x2d898a){const _0x69d735=_0x69d7();return _0x2534=function(_0x253470,_0x512e8b){_0x253470=_0x253470-0x159;let _0xc30c61=_0x69d735[_0x253470];return _0xc30c61;},_0x2534(_0x2bfecf,_0x2d898a);}import{logWarning as _0x54b849,uid as _0x1acd80}from'ckeditor5/src/utils.js';import{Command as _0x46b0d3}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x46b0d3{[_0x3d0142(0x164)](){const _0x39b479=_0x3d0142,_0x3b1ffa=this[_0x39b479(0x15c)][_0x39b479(0x16e)][_0x39b479(0x17d)][_0x39b479(0x17a)],_0x2f0dad=this[_0x39b479(0x160)](_0x3b1ffa);this[_0x39b479(0x17e)]=!!_0x2f0dad;}[_0x3d0142(0x161)](_0x5b4e8e){const _0x1e6e67=_0x3d0142,{editor:_0x13c958}=this,{model:_0x4e83be}=_0x13c958,{selection:_0x279e45}=_0x4e83be[_0x1e6e67(0x17d)],_0x5db050=this[_0x1e6e67(0x160)](_0x279e45);if(!_0x5db050)return;const _0x2c95f4=_0x13c958[_0x1e6e67(0x179)][_0x1e6e67(0x168)](_0x1e6e67(0x15e)),_0x473e73=_0x5b4e8e?.[_0x1e6e67(0x172)]??_0x1acd80();!function(_0x58d091){const _0x33b6ed=_0x1e6e67;return _0x33b6ed(0x165)==typeof _0x58d091&&_0x58d091[_0x33b6ed(0x177)]>0x0&&!/\s/[_0x33b6ed(0x174)](_0x58d091)&&!/^\d/[_0x33b6ed(0x174)](_0x58d091);}(_0x473e73)?_0x54b849(_0x1e6e67(0x15b)):(_0x4e83be[_0x1e6e67(0x17c)](_0x341f69=>{const _0x9350dc=_0x1e6e67,_0x364cc=_0x341f69[_0x9350dc(0x15f)](_0x9350dc(0x16f),{'footnoteId':_0x473e73});_0x4e83be[_0x9350dc(0x16c)](_0x364cc,_0x5db050,null);}),_0x2c95f4[_0x1e6e67(0x167)](_0x473e73));}[_0x3d0142(0x160)](_0x1ed9d7){const _0xd884f6=_0x3d0142,{model:_0x355d73}=this[_0xd884f6(0x15c)],{schema:_0x3057c0}=_0x355d73,_0x518d52=_0x1ed9d7[_0xd884f6(0x15d)]();for(const _0xe7e289 of _0x518d52[_0xd884f6(0x163)]())if(_0x3057c0[_0xd884f6(0x159)](_0xe7e289)||_0x3057c0[_0xd884f6(0x169)](_0xe7e289))return null;const _0x499c60=_0x518d52[_0xd884f6(0x15a)];return _0x3057c0[_0xd884f6(0x17b)](_0x499c60,_0xd884f6(0x16f))?_0x499c60:null;}}
|
package/src/footnotesediting.js
CHANGED
|
@@ -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 _0x371732}from'ckeditor5/src/core.js';import{isWidget as _0x220f13,toWidget as _0x5d6684,toWidgetEditable as _0x26a5b4}from'ckeditor5/src/widget.js';import{uid as _0x17602e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3099e7,ClickObserver as _0x3e4685}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1503c2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x199eb4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x371732{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1503c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x478be4}=this;_0x478be4['config']['define']('footnotes.multiBlock',!0x0),_0x478be4['commands']['add']('insertFootnote',new _0x199eb4(_0x478be4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3f2a0){const _0x4a9e9f=_0xdeb77d([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]),_0x59e799=0x47a28506,_0x5d49ab=0x47a5fe3e^_0x59e799,_0x453303=window[_0xdeb77d([0x44,0x61,0x74,0x65])][_0xdeb77d([0x6e,0x6f,0x77])](),_0x2a9f11=_0x3f2a0[_0xdeb77d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5673a2=new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50fdb2=>{_0x2a9f11[_0xdeb77d([0x6f,0x6e,0x63,0x65])](_0xdeb77d([0x72,0x65,0x61,0x64,0x79]),_0x50fdb2);}),_0x36d94e={[_0xdeb77d([0x6b,0x74,0x79])]:_0xdeb77d([0x45,0x43]),[_0xdeb77d([0x75,0x73,0x65])]:_0xdeb77d([0x73,0x69,0x67]),[_0xdeb77d([0x63,0x72,0x76])]:_0xdeb77d([0x50,0x2d,0x32,0x35,0x36]),[_0xdeb77d([0x78])]:_0xdeb77d([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]),[_0xdeb77d([0x79])]:_0xdeb77d([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]),[_0xdeb77d([0x61,0x6c,0x67])]:_0xdeb77d([0x45,0x53,0x32,0x35,0x36])},_0x2bb0c3=_0x2a9f11[_0xdeb77d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdeb77d([0x67,0x65,0x74])](_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e27dc(){let _0x4e5fa4,_0x1a38ba=null,_0x5ebd18=null;try{if(_0x2bb0c3==_0xdeb77d([0x47,0x50,0x4c]))return _0xdeb77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e5fa4=_0x53ae47(),!_0x4e5fa4)return _0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e5fa4[_0xdeb77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ebd18=_0x30bfd8(_0x4e5fa4[_0xdeb77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e5fa4[_0xdeb77d([0x6a,0x74,0x69])])),await _0x52faac()?_0x43b231()?_0x55020e()?_0xdeb77d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ab054()?(_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdeb77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a38ba=_0x357cba(_0xdeb77d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdeb77d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a38ba=_0x357cba(_0xdeb77d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x227f9b()):_0xdeb77d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdeb77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55020e(){const _0x12fa99=[_0xdeb77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdeb77d([0x74,0x72,0x69,0x61,0x6c])][_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x453303/0x3e8:0xe10*_0x5d49ab;return _0x4e5fa4[_0xdeb77d([0x65,0x78,0x70])]<_0x12fa99;}function _0x43b231(){const _0x9ca2a=_0x4e5fa4[_0xdeb77d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9ca2a&&(!!_0x9ca2a[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x2a]))||!!_0x9ca2a[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x46,0x4f,0x4f])));}function _0x4ab054(){const _0x32b74e=_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32b74e||0x0==_0x32b74e[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ece97}=new URL(window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32b74e[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ece97))return!0x0;const _0xa665e7=_0x1ece97[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e]));return _0x32b74e[_0xdeb77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116ad1=>_0x116ad1[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x2a])))[_0xdeb77d([0x6d,0x61,0x70])](_0x2ffd4a=>_0x2ffd4a[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e])))[_0xdeb77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x350eba=>_0x350eba[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa665e7[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdeb77d([0x6d,0x61,0x70])](_0x13c7ea=>Array(_0xa665e7[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13c7ea[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdeb77d([0x66,0x69,0x6c,0x6c])](_0x13c7ea[0x0]===_0xdeb77d([0x2a])?_0xdeb77d([0x2a]):'')[_0xdeb77d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13c7ea))[_0xdeb77d([0x73,0x6f,0x6d,0x65])](_0x2f7a74=>_0xa665e7[_0xdeb77d([0x65,0x76,0x65,0x72,0x79])]((_0x399a9b,_0x19e47a)=>_0x2f7a74[_0x19e47a]===_0x399a9b||_0x2f7a74[_0x19e47a]===_0xdeb77d([0x2a])));}function _0x227f9b(){return _0x1a38ba&&_0x5ebd18?new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50dda1,_0xd70c39)=>{_0x1a38ba[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x50dda1,_0xd70c39),_0x5ebd18[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x1e579e=>{_0x1e579e!=_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])&&_0x50dda1(_0x1e579e);},_0xd70c39);}):_0x1a38ba||_0x5ebd18||_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30bfd8(_0x3beea5,_0x3efeac){return new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27b581=>{if(_0x1dc39f())return _0x27b581(_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]));_0x33c9f0(),_0x2a9f11[_0xdeb77d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5db929=!0x1;const _0x146633=_0x17602e();function _0x177d4a(_0x4b6f55){return!!_0x4b6f55&&(typeof _0x4b6f55===_0xdeb77d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b6f55===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b6f55[_0xdeb77d([0x74,0x68,0x65,0x6e])]===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b6f55[_0xdeb77d([0x63,0x61,0x74,0x63,0x68])]===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3de440(_0x13831a){_0x37a49f(_0x13831a)[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x5b8c0e=>{if(!_0x5b8c0e||_0x5b8c0e[_0xdeb77d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdeb77d([0x6f,0x6b]))return _0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23a70a(_0x15a0e5(_0x146633+_0x3efeac))!=_0x5b8c0e[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]);})[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x267cc9=>(_0x61fde8(),_0x267cc9),()=>{const _0x4bfd47=_0x46b11a();return null==_0x4bfd47?(_0x61fde8(),_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])):_0xdeb77d(_0x453303-_0x4bfd47>(0x63ae0106^_0x59e799)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x27b581)[_0xdeb77d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x202762=0x47946b86^_0x59e799;function _0x61fde8(){const _0xa8809d=_0xdeb77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x23a70a(_0x15a0e5(_0x3beea5)),_0x286181=_0xd82399(_0x23a70a(window[_0xdeb77d([0x4d,0x61,0x74,0x68])][_0xdeb77d([0x63,0x65,0x69,0x6c])](_0x453303/_0x202762)));window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdeb77d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa8809d,_0x286181);}function _0x46b11a(){const _0x4a29e6=_0xdeb77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x23a70a(_0x15a0e5(_0x3beea5)),_0x22ab3c=window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdeb77d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a29e6);return _0x22ab3c?window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd82399(_0x22ab3c),0x10)*_0x202762:null;}function _0x37a49f(_0x313c0e){return new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2841f5,_0x158e5a)=>{_0x313c0e[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x2841f5,_0x158e5a),window[_0xdeb77d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x158e5a,0x47a351c6^_0x59e799);});}}_0x2a9f11[_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21437b,_0x1a6650)=>{if(_0x1a6650[0x0]!=_0x3beea5)return _0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a6650[0x1]={..._0x1a6650[0x1],[_0xdeb77d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x146633};},{[_0xdeb77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdeb77d([0x68,0x69,0x67,0x68])}),_0x2a9f11[_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac48c=>{_0x177d4a(_0x5ac48c[_0xdeb77d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5db929=!0x0,_0x3de440(_0x5ac48c[_0xdeb77d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdeb77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdeb77d([0x6c,0x6f,0x77])}),_0x5673a2[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>{_0x5db929||_0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dc39f(){return _0x2a9f11[_0xdeb77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdeb77d([0x76,0x69,0x65,0x77])][_0xdeb77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdeb77d([0x61,0x75,0x74,0x6f]);}function _0x33c9f0(){_0x2a9f11[_0xdeb77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdeb77d([0x76,0x69,0x65,0x77])][_0xdeb77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdeb77d([0x61,0x75,0x74,0x6f]);}}function _0x357cba(_0x263092){const _0x4eb6ba=[new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x150c2b=>setTimeout(_0x150c2b,0x47abbbca^_0x59e799)),_0x5673a2[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd506=>{let _0x1a829d=0x0;_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c9d4a,_0x101a30)=>{_0x101a30[0x0][_0xdeb77d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a829d++,_0x1a829d==(0x47a284fe^_0x59e799)&&(_0x1cd506(),_0x3c9d4a[_0xdeb77d([0x6f,0x66,0x66])]());});}))];return window[_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdeb77d([0x72,0x61,0x63,0x65])](_0x4eb6ba)[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>_0x263092);}async function _0x575eff(){await _0x5673a2,_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23bd30,_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23bd30,_0x2a9f11[_0xdeb77d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe2b225(_0x427471){const _0xf1b225=_0x3a42fb();_0x2a9f11[_0xf1b225]=_0xdeb77d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x427471,_0x427471!=_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])&&_0x575eff();}function _0x3a42fb(){const _0x115392=window[_0xdeb77d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdeb77d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdeb77d([0x6e,0x6f,0x77])]())[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdeb77d([0x2e]),'');let _0xf46e78=_0xdeb77d([0x75]);for(let _0x3235b4=0x0;_0x3235b4<_0x115392[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3235b4+=0x2){let _0x574d0b=window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x115392[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3235b4,_0x3235b4+0x2));_0x574d0b>=_0x4a9e9f[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x574d0b-=_0x4a9e9f[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf46e78+=_0x4a9e9f[_0x574d0b];}return _0xf46e78;}function _0x53ae47(){const _0x3147dd=_0x2bb0c3[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e]));if(0x3!=_0x3147dd[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x439442(_0x3147dd[0x1]);function _0x439442(_0xde3524){const _0x311186=_0x160148(_0xde3524);return _0x311186&&_0x401da4()?_0x311186:null;function _0x401da4(){const _0x164b44=_0x311186[_0xdeb77d([0x6a,0x74,0x69])],_0xe56424=window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x164b44[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164b44[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcd0052={..._0x311186,[_0xdeb77d([0x6a,0x74,0x69])]:_0x164b44[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x164b44[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcd0052[_0xdeb77d([0x76,0x63])],_0x15a0e5(_0xcd0052)==_0xe56424;}}}async function _0x52faac(){let _0x4d63c1=!0x0;try{const _0xea6b02=_0x2bb0c3[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e])),[_0x52ab6d,_0xce3270,_0x2a80a1]=_0xea6b02;return _0x3fa85b(_0x52ab6d),await _0x2f103b(_0x52ab6d,_0xce3270,_0x2a80a1),_0x4d63c1;}catch{return!0x1;}function _0x3fa85b(_0x19f473){const _0x4bf838=_0x160148(_0x19f473);_0x4bf838&&_0x4bf838[_0xdeb77d([0x61,0x6c,0x67])]==_0xdeb77d([0x45,0x53,0x32,0x35,0x36])||(_0x4d63c1=!0x1);}async function _0x2f103b(_0x276b57,_0x32b496,_0x489c74){const _0x3bf606=window[_0xdeb77d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdeb77d([0x66,0x72,0x6f,0x6d])](_0x5a7f50(_0x489c74),_0x1027d6=>_0x1027d6[_0xdeb77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57942a=new window[(_0xdeb77d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdeb77d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x276b57+_0xdeb77d([0x2e])+_0x32b496),_0x223770=window[_0xdeb77d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdeb77d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x223770)return;const _0x186101=await _0x223770[_0xdeb77d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdeb77d([0x6a,0x77,0x6b]),_0x36d94e,{[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x45,0x43,0x44,0x53,0x41]),[_0xdeb77d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdeb77d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x223770[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x45,0x43,0x44,0x53,0x41]),[_0xdeb77d([0x68,0x61,0x73,0x68])]:{[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x186101,_0x3bf606,_0x57942a)||(_0x4d63c1=!0x1);}}function _0x160148(_0xa94542){return _0xa94542[_0xdeb77d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdeb77d([0x65,0x79]))?JSON[_0xdeb77d([0x70,0x61,0x72,0x73,0x65])](_0x5a7f50(_0xa94542)):null;}function _0x5a7f50(_0x364f65){return window[_0xdeb77d([0x61,0x74,0x6f,0x62])](_0x364f65[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdeb77d([0x2b]))[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdeb77d([0x2f])));}function _0x15a0e5(_0x4f616c){let _0x5a0708=0x1505;function _0xb30c70(_0x444a48){for(let _0x54f07f=0x0;_0x54f07f<_0x444a48[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54f07f++){const _0x1bbc8c=_0x444a48[_0xdeb77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54f07f);_0x5a0708=(_0x5a0708<<0x5)+_0x5a0708+_0x1bbc8c,_0x5a0708&=_0x5a0708;}}function _0x1a0868(_0x5039da){Array[_0xdeb77d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5039da)?_0x5039da[_0xdeb77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a0868):_0x5039da&&typeof _0x5039da==_0xdeb77d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdeb77d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5039da)[_0xdeb77d([0x73,0x6f,0x72,0x74])]()[_0xdeb77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36eb62,_0x1d68ca])=>{_0xb30c70(_0x36eb62),_0x1a0868(_0x1d68ca);}):_0xb30c70(window[_0xdeb77d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5039da));}return _0x1a0868(_0x4f616c),_0x5a0708>>>0x0;}function _0x23a70a(_0x15bb96){return _0x15bb96[_0xdeb77d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdeb77d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdeb77d([0x30]));}function _0xd82399(_0x3e5bb2){return _0x3e5bb2[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdeb77d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdeb77d([0x6a,0x6f,0x69,0x6e])]('');}function _0x23bd30(){}function _0xdeb77d(_0x8ee6b7){return _0x8ee6b7['map'](_0x3ccdab=>String['fromCharCode'](_0x3ccdab))['join']('');}_0xe2b225(await _0x4e27dc());}(this);}['_moveSelectionToFootnoteDefinition'](_0xd167dc){const {plugins:_0x5b65ea,editing:_0x1448fa,model:_0x11e364}=this['editor'],_0x2433e3=_0x5b65ea['get'](_0x1503c2)['getFootnote'](_0xd167dc);return!!_0x2433e3&&(_0x11e364['change'](_0x3007b5=>{_0x3007b5['setSelection'](_0x3007b5['createPositionAt'](_0x2433e3['definition'],'end'));}),_0x1448fa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5a44d6){const {plugins:_0x4d9f41,editing:_0x5a07e1,model:_0x30c114}=this['editor'],_0x30fa7e=_0x4d9f41['get'](_0x1503c2)['getFootnote'](_0x5a44d6);return!!_0x30fa7e&&(_0x30c114['change'](_0x10c7ec=>{_0x10c7ec['setSelection'](_0x30fa7e['reference'],'on');}),_0x5a07e1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x261194}=this['editor']['model'],_0x337a27=this['editor']['config']['get']('footnotes.multiBlock');_0x261194['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x261194['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x261194['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x337a27?_0x261194['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x261194['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x261194['addChildCheck'](_0x2f7e7c=>{for(const _0x3eccf5 of _0x2f7e7c)if('footnoteDefinition'===_0x3eccf5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x54571a}=this,{conversion:_0x1f76e8,editing:_0x2e6ad2}=_0x54571a,{t:t}=_0x54571a['locale'];_0x1f76e8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb4ae27,{writer:_0x1556b5,consumable:_0x46b14f})=>{const _0xb61351=_0xb4ae27['getChild'](0x0);if(!_0xb61351||!_0xb61351['is']('element','a'))return null;const _0x3b2f68=_0xb61351['getAttribute']('href')||'';if(!_0x3b2f68['startsWith']('#'))return null;const _0x10280a=_0x3b2f68['replace'](/^#/,'');if(!_0x10280a)return null;_0x46b14f['consume'](_0xb61351,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b7ef9}of _0x2e6ad2['view']['createRangeIn'](_0xb61351))_0x5b7ef9['is']('$textProxy')?_0x46b14f['consume'](_0x5b7ef9['textNode'],{'name':!0x0}):_0x5b7ef9['is']('element')&&_0x46b14f['consume'](_0x5b7ef9,{'name':!0x0});return _0x1556b5['createElement']('footnoteRef',{'footnoteId':_0x10280a});}}),_0x1f76e8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19bfd5,{writer:_0x2edf10})=>D(_0x19bfd5,_0x2edf10)}),_0x1f76e8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x110828,{writer:_0xfb4f06})=>{const _0x1accfc=_0x110828['getAttribute']('footnoteCounter');return _0x5d6684(D(_0x110828,_0xfb4f06),_0xfb4f06,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1accfc)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5615c8}=this,{t:t}=_0x5615c8['locale'],{conversion:_0x280239}=_0x5615c8;_0x280239['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x280239['for']('upcast')['add'](_0x5d6b04=>{_0x5d6b04['on']('element:ol',(_0x365ebc,_0x68ceb9,_0x34cb85)=>{const _0x3308ab=_0x68ceb9['viewItem'];if(!_0x3308ab['hasClass']('footnotes-list')||!_0x68ceb9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x34cb85['consumable']['consume'](_0x3308ab,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x19c106,modelCursor:_0x20fc97}=_0x34cb85['convertChildren'](_0x68ceb9['viewItem'],_0x68ceb9['modelCursor']);_0x68ceb9['modelRange']=_0x19c106,_0x68ceb9['modelCursor']=_0x20fc97;}),_0x5d6b04['on']('element:hr',(_0x1c3651,_0x1980ae,_0x538fd9)=>{const _0x5df800=_0x1980ae['viewItem'];_0x5df800['hasClass']('footnotes-divider')&&_0x1980ae['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x538fd9['consumable']['consume'](_0x5df800,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x280239['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x49640b,{writer:_0x18444a})=>v(_0x18444a)}),_0x280239['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5dfab4,{writer:_0x2ef375})=>{const _0x52186d=v(_0x2ef375,{'data-footnotes-list-label':t('Footnotes')}),_0x342057=_0x5d6684(_0x52186d,_0x2ef375,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2ef375['setCustomProperty']('footnotesDefinitions',!0x0,_0x342057),_0x342057;}});}['_defineDefinitionConverters'](){const {editor:_0x5f08b5}=this,{conversion:_0x4b75fb,locale:_0xee52eb}=_0x5f08b5,_0x393610=_0x5f08b5['config']['get']('footnotes.multiBlock');_0x4b75fb['for']('upcast')['add'](_0x518185=>{_0x518185['on']('element:li',(_0x305869,_0x3bdebe,_0x495895)=>{const _0x566bbc=_0x3bdebe['viewItem'];if(!_0x566bbc['hasClass']('footnote-definition')||!_0x566bbc['getAttribute']('id'))return;const _0x243bb6=_0x566bbc['parent'];if(!_0x243bb6['is']('element','ol')||!_0x243bb6['hasClass']('footnotes-list'))return;if(!_0x495895['consumable']['test'](_0x566bbc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x56fbe1=_0x495895['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x566bbc['getAttribute']('id')});if(!_0x495895['safeInsert'](_0x56fbe1,_0x3bdebe['modelCursor']))return;_0x495895['consumable']['consume'](_0x566bbc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x12bf30=Array['from'](_0x566bbc['getChildren']())['find'](_0x401a70=>_0x401a70['is']('element')&&_0x401a70['hasClass']('footnote-content'));for(const _0xfa1f6e of _0x566bbc['getChildren']())_0xfa1f6e['is']('element')&&(_0x495895['consumable']['consume'](_0xfa1f6e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x495895['consumable']['consume'](_0xfa1f6e,{'name':!0x0,'classes':'footnote-content'}));if(_0x12bf30){if(_0x393610)_0x495895['convertChildren'](_0x12bf30,_0x56fbe1);else{const _0x5096b9=_0x495895['writer']['createElement']('footnoteInlineContent');_0x495895['writer']['insert'](_0x5096b9,_0x56fbe1),_0x495895['convertChildren'](_0x12bf30,_0x5096b9);}}_0x495895['updateConversionResult'](_0x56fbe1,_0x3bdebe);});}),_0x4b75fb['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x45f6b8,{writer:_0xc49277})=>b(_0x45f6b8,_0xc49277,_0xee52eb,{'dataPipeline':!0x0})}),_0x4b75fb['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2c7c25,{writer:_0x10fb48})=>b(_0x2c7c25,_0x10fb48,_0xee52eb)});}['_defineBogusParagraphConverters'](){const {editor:_0x58bab2}=this,{conversion:_0x58d3cd}=_0x58bab2;_0x58bab2['config']['get']('footnotes.multiBlock')?(_0x58d3cd['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x58d3cd['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58bab2['model']['document'],'change:data',()=>{!function(_0x57a339,_0x3d8b64){const _0x4594f2=_0x57a339['document']['differ'],_0x57a4c8=new Set();for(const _0x4846cf of _0x4594f2['getChanges']()){const _0xa002a2='attribute'==_0x4846cf['type']?_0x4846cf['range']['start']['parent']:_0x4846cf['position']['parent'];_0xa002a2['is']('element','footnoteDefinition')&&_0x57a4c8['add'](_0xa002a2);}for(const _0x1317f8 of _0x57a4c8['values']()){const _0x3c46ae=Array['from'](_0x1317f8['getChildren']())['filter'](_0x391888=>g(_0x391888,_0x3d8b64['mapper']));for(const _0x50ebcd of _0x3c46ae)_0x3d8b64['reconvertItem'](_0x50ebcd);}}(_0x58bab2['model'],_0x58bab2['editing']);})):(_0x58d3cd['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x58d3cd['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3f170a,{writer:_0x56de50})=>{const _0x17df10=_0x56de50['createContainerElement']('span');return _0x56de50['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x17df10),_0x17df10;}}));}['_defineKeyboardHandlers'](){const {editor:_0x492c50}=this,{editing:_0x5c84ab,t:t}=_0x492c50,_0x2c8027=_0x492c50['model']['document']['selection'];_0x492c50['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x492c50['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5c84ab['view']['document'],'enter',(_0x4d5f39,_0x188bfe)=>{const _0x1f7274=function(_0x1ad5c7){const _0x5e8c5f=_0x1ad5c7['getSelectedElement']();if(_0x5e8c5f?.['is']('element','footnoteRef'))return _0x5e8c5f;return null;}(_0x2c8027);if(_0x1f7274){const _0x1366ad=_0x1f7274['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1366ad),_0x188bfe['preventDefault'](),_0x4d5f39['stop']();}},{'context':_0x220f13});}['_defineClickHandlers'](){const {editor:_0x55df09}=this,{editing:_0x5bdf11}=_0x55df09;_0x55df09['editing']['view']['addObserver'](_0x3099e7),_0x55df09['editing']['view']['addObserver'](_0x3e4685);let _0x1e02f2=!0x1;this['listenTo'](_0x5bdf11['view']['document'],'pointerdown',(_0x3fca65,_0x33f44d)=>{const {target:_0x3d8168}=_0x33f44d,_0x4fafc5=_0x5bdf11['view']['document']['selection'];_0x1e02f2=!!(_0x3d8168?.['is']('element','a')&&_0x3d8168['parent']?.['is']('element','sup')&&_0x3d8168['parent']['hasClass']('footnote'))&&_0x4fafc5['getSelectedElement']()===_0x3d8168['parent'];},{'priority':'high'}),this['listenTo'](_0x5bdf11['view']['document'],'click',(_0x249404,_0x1d074f)=>{const {target:_0x5aca61}=_0x1d074f;if(!_0x5aca61?.['is']('element','a'))return;if(_0x5aca61['parent']?.['is']('element','sup')&&_0x5aca61['parent']['hasClass']('footnote')&&!_0x1e02f2)return void _0x1d074f['preventDefault']();let _0x1ba274=_0x5aca61['getAttribute']('href');if(!_0x1ba274?.['startsWith']('#'))return;_0x1ba274=_0x1ba274['slice'](0x1);let _0xb2aff3=!0x1;(_0x1ba274['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1ba274['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1ba274))&&(_0xb2aff3=!0x0),_0xb2aff3&&(_0x1d074f['preventDefault'](),_0x249404['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x830192}={}){return(_0x1a385e,{writer:_0x457719})=>{if(!p(_0x1a385e))return null;if(!_0x830192)return _0x457719['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2fbe3a=_0x457719['createContainerElement']('p');return _0x457719['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2fbe3a),_0x2fbe3a;};}function p(_0x27884f){const {parent:_0x10d4c5}=_0x27884f;if(!_0x10d4c5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x10d4c5['childCount'])return!0x1;for(const _0x160d0c of _0x27884f['getAttributeKeys']())if(!_0x160d0c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x160d0c)return!0x1;return!0x0;}function g(_0x4babad,_0x2dd10e){if(!_0x4babad['is']('element','paragraph'))return!0x1;const _0x4c859f=_0x2dd10e['toViewElement'](_0x4babad);return!!_0x4c859f&&p(_0x4babad)!==_0x4c859f['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x44fcb2){return _0x220f13(_0x44fcb2)&&_0x44fcb2['is']('containerElement')&&!!_0x44fcb2['getCustomProperty']('footnotesDefinitions');}function v(_0x1d97e2,_0x4fa824={}){const _0x1fb986=_0x1d97e2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4e01dd=_0x1d97e2['createContainerElement']('ol',{'class':'footnotes-list'},_0x1d97e2['createSlot']());return _0x1d97e2['createContainerElement']('div',{'class':'footnotes',..._0x4fa824},[_0x1fb986,_0x4e01dd]);}function D(_0x3c9397,_0x16c703){const _0x4f7ee2=_0x3c9397['getAttribute']('footnoteId'),_0x13a32=_0x3c9397['getAttribute']('footnoteCounter'),_0x34ff9f=_0x16c703['createUIElement']('a',{'href':'#'+_0x4f7ee2},function(_0x241e8f){const _0x1da8a7=this['toDomElement'](_0x241e8f);return _0x1da8a7['textContent']=_0x13a32,_0x1da8a7;}),_0x35f5bc=_0x16c703['createContainerElement']('sup',{'id':'ref-'+_0x4f7ee2,'class':'footnote'},[_0x34ff9f]);return _0x35f5bc['getFillerOffset']=()=>null,_0x35f5bc;}function b(_0x5f46b0,_0x32fb6e,_0x5c7198,{dataPipeline:_0x9cd08e}={}){const {t:t}=_0x5c7198,_0xeb1f6c=_0x5f46b0['getAttribute']('footnoteId'),_0x56f788=_0x32fb6e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeb1f6c},function(_0x5514d4){const _0x158e6a=this['toDomElement'](_0x5514d4);return _0x158e6a['innerText']='^',_0x158e6a;}),_0x1733e9=_0x9cd08e?_0x32fb6e['createContainerElement']('div',{'class':'footnote-content'}):_0x26a5b4(_0x32fb6e['createEditableElement']('div',{'class':'footnote-content'}),_0x32fb6e,{'label':t('Footnote\x20content.')});return _0x32fb6e['insert'](_0x32fb6e['createPositionAt'](_0x1733e9,0x0),_0x32fb6e['createSlot']()),_0x32fb6e['createContainerElement']('li',{'class':'footnote-definition','id':_0xeb1f6c},[_0x56f788,_0x1733e9]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x459917=_0x129a;(function(_0x2950c9,_0x3fcfe1){const _0x28657c=_0x129a,_0x424083=_0x2950c9();while(!![]){try{const _0x3e51ff=parseInt(_0x28657c(0x1cd))/0x1+-parseInt(_0x28657c(0x1d7))/0x2*(-parseInt(_0x28657c(0x1cc))/0x3)+-parseInt(_0x28657c(0x1e1))/0x4+-parseInt(_0x28657c(0x1e0))/0x5*(-parseInt(_0x28657c(0x1cb))/0x6)+parseInt(_0x28657c(0x1d1))/0x7*(parseInt(_0x28657c(0x1dc))/0x8)+parseInt(_0x28657c(0x1d3))/0x9+-parseInt(_0x28657c(0x1d5))/0xa*(parseInt(_0x28657c(0x1d6))/0xb);if(_0x3e51ff===_0x3fcfe1)break;else _0x424083['push'](_0x424083['shift']());}catch(_0x5964b7){_0x424083['push'](_0x424083['shift']());}}}(_0x2e3e,0x77c7f));import{Command as _0x45f2fa}from'ckeditor5/src/core.js';function _0x129a(_0x997b99,_0x583a96){const _0x2e3ea2=_0x2e3e();return _0x129a=function(_0x129a32,_0x1e0e5b){_0x129a32=_0x129a32-0x1c9;let _0x3d587a=_0x2e3ea2[_0x129a32];return _0x3d587a;},_0x129a(_0x997b99,_0x583a96);}import{FootnotesTracker as _0xdf67a1}from'../../footnotestracker.js';function _0x2e3e(){const _0x10cca4=['469023lzJPJE','setAttribute','execute','plugins','2611RKNriY','value','5730417pBzluO','isInteger','30TIQrro','2782714ZwPbQe','6jOMbgN','change','footnotesListStart','getAttribute','_updateFootnotesCounters','1456pbjKPz','isEnabled','get','getFootnotesDefinitionsObjectElement','1042035IzJMei','2509960WWiEXX','refresh','model','12fFqcWY','286599drZiIj'];_0x2e3e=function(){return _0x10cca4;};return _0x2e3e();}export class FootnotesStartCommand extends _0x45f2fa{[_0x459917(0x1c9)](){const _0x2ccb9d=_0x459917,{editor:_0xc1fd0e}=this,_0xc11ff=_0xc1fd0e[_0x2ccb9d(0x1d0)][_0x2ccb9d(0x1de)](_0xdf67a1)[_0x2ccb9d(0x1df)]();this[_0x2ccb9d(0x1dd)]=!!_0xc11ff,this[_0x2ccb9d(0x1d2)]=_0xc11ff?.[_0x2ccb9d(0x1da)](_0x2ccb9d(0x1d9))??null;}[_0x459917(0x1cf)]({value:_0x378b0e}){const _0x4091aa=_0x459917,{editor:_0x39f350}=this,_0x1b67fe=_0x39f350[_0x4091aa(0x1d0)][_0x4091aa(0x1de)](_0xdf67a1),_0x55db77=_0x1b67fe[_0x4091aa(0x1df)]();_0x55db77&&Number[_0x4091aa(0x1d4)](_0x378b0e)&&_0x39f350[_0x4091aa(0x1ca)][_0x4091aa(0x1d8)](_0x590bee=>{const _0x28396c=_0x4091aa;_0x590bee[_0x28396c(0x1ce)](_0x28396c(0x1d9),_0x378b0e,_0x55db77),_0x1b67fe[_0x28396c(0x1db)](_0x590bee);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f12ec=_0x19cf;(function(_0x324935,_0x4ee79f){const _0xb9904a=_0x19cf,_0x18b8d9=_0x324935();while(!![]){try{const _0x313374=-parseInt(_0xb9904a(0x17a))/0x1+-parseInt(_0xb9904a(0x18a))/0x2+-parseInt(_0xb9904a(0x18e))/0x3+parseInt(_0xb9904a(0x186))/0x4*(parseInt(_0xb9904a(0x17f))/0x5)+parseInt(_0xb9904a(0x184))/0x6+parseInt(_0xb9904a(0x17e))/0x7*(parseInt(_0xb9904a(0x17c))/0x8)+parseInt(_0xb9904a(0x180))/0x9;if(_0x313374===_0x4ee79f)break;else _0x18b8d9['push'](_0x18b8d9['shift']());}catch(_0x5f4228){_0x18b8d9['push'](_0x18b8d9['shift']());}}}(_0x3597,0xee6a8));import{Command as _0x134728}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x580881}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1d9151}from'../../footnotestracker.js';function _0x19cf(_0x1000ae,_0x2f9218){const _0x359794=_0x3597();return _0x19cf=function(_0x19cf43,_0x4fd1c1){_0x19cf43=_0x19cf43-0x178;let _0x55bb9b=_0x359794[_0x19cf43];return _0x55bb9b;},_0x19cf(_0x1000ae,_0x2f9218);}export class FootnotesStyleCommand extends _0x134728{[_0x1f12ec(0x189)](){const _0x204124=_0x1f12ec,{editor:_0x1e35bc}=this,_0x5d5173=_0x1e35bc[_0x204124(0x182)][_0x204124(0x183)](_0x1d9151)[_0x204124(0x179)]();this[_0x204124(0x18c)]=!!_0x5d5173,this[_0x204124(0x17b)]=_0x5d5173?.[_0x204124(0x185)](_0x204124(0x178))??null;}[_0x1f12ec(0x18b)]({value:_0x372667}){const _0x403e31=_0x1f12ec,{editor:_0x8d7a8d}=this,_0x45b78e=_0x8d7a8d[_0x403e31(0x182)][_0x403e31(0x183)](_0x1d9151),_0x1732aa=_0x45b78e[_0x403e31(0x179)]();_0x1732aa&&_0x580881[_0x403e31(0x18d)](_0x372667)&&_0x8d7a8d[_0x403e31(0x187)][_0x403e31(0x181)](_0x9a4a0=>{const _0x2146c7=_0x403e31;_0x9a4a0[_0x2146c7(0x17d)](_0x2146c7(0x178),_0x372667,_0x1732aa),_0x45b78e[_0x2146c7(0x188)](_0x9a4a0);});}}function _0x3597(){const _0x4a99cc=['isEnabled','includes','3955893vermvR','footnotesListStyle','getFootnotesDefinitionsObjectElement','1696864IiMVlJ','value','648gvXnCH','setAttribute','30597JIzGCq','2750285PvhHjj','25984386CvaEyA','change','plugins','get','7938552BcKlZD','getAttribute','4YFXKZD','model','_updateFootnotesCounters','refresh','2244614DUuLEV','execute'];_0x3597=function(){return _0x4a99cc;};return _0x3597();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x3bc883,ButtonView as _0x4573f1,ContextualBalloon as _0x51bfb0,createDropdown as _0x138f3d}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x581d35}from'ckeditor5/src/widget.js';import{Plugin as _0x551ce3}from'ckeditor5/src/core.js';import{IconFootnote as _0x295bdc,IconListStyleDecimal as _0x5dbe11,IconListStyleDecimalLeadingZero as _0x5deb6a,IconListStyleLowerLatin as _0x4d1b4d,IconListStyleLowerRoman as _0x56c8f1,IconListStyleUpperLatin as _0x5a953a,IconListStyleUpperRoman as _0x535c93}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x9dde76}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x11e20d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x551ce3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x51bfb0,_0x581d35];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe3f6c7}=this,{componentFactory:_0x382012}=_0xe3f6c7['ui'];_0xe3f6c7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x382012['add']('footnotesStyle',function(_0x1a3b91){return _0x13b3b0=>{const {t:t}=_0x13b3b0,_0x3a7153=_0x1a3b91['commands']['get']('footnotesStyle'),_0x2e7995=_0x138f3d(_0x13b3b0),{buttonView:_0x33d5c5}=_0x2e7995;return _0x2e7995['class']='ck-footnotes-styles-dropdown',_0x2e7995['bind']('isEnabled')['to'](_0x3a7153,'isEnabled'),_0x33d5c5['set']({'label':t('Footnotes\x20style'),'icon':_0x295bdc,'tooltip':!0x0}),_0x2e7995['once']('change:isOpen',()=>{const _0x4d6d8a=function({editor:_0x3450a1,dropdownView:_0x199ec9}){const {t:t}=_0x3450a1['locale'],_0x4fed4f=t('Footnotes\x20definitions\x20styles'),_0x278a4a=function(_0x3ba4ee){const t=_0x3ba4ee['locale']['t'],_0x8487d2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5dbe11},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5deb6a},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x56c8f1},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x535c93},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4d1b4d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5a953a}];return _0x8487d2['map'](function(_0x126078){const _0x2e7b39=_0x126078['locale'];return({label:_0x411e9d,icon:_0x4e7106,tooltip:_0x2de3ce,style:_0x2f84e8})=>{const _0x14c3ba=_0x126078['commands']['get']('footnotesStyle'),_0x446ba8=new _0x4573f1(_0x2e7b39);return _0x446ba8['set']({'label':_0x411e9d,'icon':_0x4e7106,'tooltip':_0x2de3ce}),_0x446ba8['bind']('isOn')['to'](_0x14c3ba,'value',_0x145d48=>_0x145d48===_0x2f84e8),_0x446ba8['bind']('isEnabled')['to'](_0x14c3ba,'isEnabled'),_0x446ba8['on']('execute',()=>{_0x126078['execute']('footnotesStyle',{'value':_0x2f84e8}),_0x126078['editing']['view']['focus']();}),_0x446ba8;};}(_0x3ba4ee));}(_0x3450a1),_0x2606f7=new _0x9dde76(_0x3450a1['locale'],{'styleGridAriaLabel':_0x4fed4f,'styleButtonViews':_0x278a4a}),_0x48e215=_0x3450a1['commands']['get']('footnotesStart');return _0x2606f7['startIndexFieldView']['bind']('isEnabled')['to'](_0x48e215),_0x2606f7['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x48e215),_0x2606f7['on']('footnotesListStart',(_0x339055,_0x9f0303)=>{_0x3450a1['execute']('footnotesStart',{'value':_0x9f0303['startIndex']});}),_0x2606f7['delegate']('execute')['to'](_0x199ec9),_0x2606f7;}({'editor':_0x1a3b91,'dropdownView':_0x2e7995});_0x2e7995['panelView']['children']['add'](_0x4d6d8a);}),_0x2e7995;};}(_0xe3f6c7));}['afterInit'](){const {editor:_0x34efd0}=this,{t:t}=_0x34efd0['locale'],_0x57d029=_0x34efd0['plugins']['get'](_0x581d35),{defaultPositions:_0x53a67a}=_0x3bc883;_0x57d029['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34efd0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x22018c=>{let _0xbdb254=_0x22018c['getFirstPosition']()?.['parent'];return _0xbdb254?.['is']('$text')&&(_0xbdb254=_0xbdb254['parent']),_0xbdb254?.['is']('element')?_0xbdb254['findAncestor'](_0x11e20d):null;},'positions':[_0x53a67a['southArrowNorth'],_0x53a67a['southArrowNorthMiddleWest'],_0x53a67a['southArrowNorthMiddleEast'],_0x53a67a['southArrowNorthWest'],_0x53a67a['southArrowNorthEast'],_0x53a67a['northArrowSouth'],_0x53a67a['northArrowSouthMiddleWest'],_0x53a67a['northArrowSouthMiddleEast'],_0x53a67a['northArrowSouthWest'],_0x53a67a['northArrowSouthEast'],_0x53a67a['viewportStickyNorth']]});}}
|