@ckeditor/ckeditor5-footnotes 47.4.0-alpha.5 → 47.4.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-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=y;function w(){const t=["end","isEnabled","getItems","checkChild","length","insertObject","plugins","278433uhTkWV","footnoteRef","execute","insert-footnote-command-executed-with-invalid-id","_getPositionToInsertFootnote","document","isObject","3298743IxQCYa","341220reQbIv","949764TGlKrV","refresh","2kIxAza","change","get","222430WuXWIi","FootnotesEditing","616563stmOVs","editor","string","getFirstRange","isBlock","createElement","5517750WiTYSq","model","selection","footnoteId","_moveSelectionToFootnoteDefinition","test","56GyxJMp"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=304]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(462695===-parseInt(e(327))/1*(parseInt(e(338))/2)+-parseInt(e(336))/3+parseInt(e(335))/4+parseInt(e(305))/5+parseInt(e(313))/6+-parseInt(e(334))/7+-parseInt(e(319))/8*(-parseInt(e(307))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(337)](){const t=g,e=this[t(308)][t(314)][t(332)][t(315)],o=this[t(331)](e);this[t(321)]=!!o}[g(329)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(332)],r=this[e(331)](s);if(!r)return;const a=o[e(326)][e(304)](e(306)),c=t?.[e(316)]??(0,i.uid)();!function(t){const o=e;return o(309)==typeof t&&t[o(324)]>0&&!/\s/[o(318)](t)&&!/^\d/[o(318)](t)}(c)?(0,i.logWarning)(e(330)):(n[e(339)](t=>{const o=e,i=t[o(312)](o(328),{footnoteId:c});n[o(325)](i,r,null)}),a[e(317)](c))}[g(331)](t){const e=g,{model:o}=this[e(308)],{schema:n}=o,i=t[e(310)]();for(const t of i[e(322)]())if(n[e(311)](t)||n[e(333)](t))return null;const s=i[e(320)];return n[e(323)](s,e(328))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768262400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,P.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](P.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](P.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),z=o(102),W=o.n(z),U=o(123),B=o.n(U),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=B(),X.insert=W().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.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",Y(t,R.ButtonView)),e.add("menuBar:insertFootnote",Y(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Z;function Z(t,e){var o=tt();return(Z=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[G(146)](){return G(141)}static get[G(150)](){return[v,D,Q]}static get[G(142)](){return!0}static get[G(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["plugins","_updateFootnotesCounters","getAttribute","341444FTVKdg","30XvisGp","execute","change","2wStUqm","includes","setAttribute","isEnabled","footnotesListStyle","1285624EcJWJu","getFootnotesDefinitionsObjectElement","6079700mRljTs","value","9OIGfVN","9535559MbWPCz","model","16204sTvZID","refresh","116578JoSWVH","2494887eZswOM","1135yPeEaD","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=272]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(765724===parseInt(e(289))/1+-parseInt(e(293))/2*(parseInt(e(283))/3)+parseInt(e(280))/4*(parseInt(e(284))/5)+parseInt(e(290))/6*(-parseInt(e(282))/7)+parseInt(e(273))/8*(parseInt(e(277))/9)+-parseInt(e(275))/10+parseInt(e(278))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(281)](){const t=st,{editor:e}=this,o=e[t(286)][t(285)](d)[t(274)]();this[t(296)]=!!o,this[t(276)]=o?.[t(288)](t(272))??null}[st(291)]({value:t}){const e=st,{editor:o}=this,n=o[e(286)][e(285)](d),i=n[e(274)]();i&&it[e(294)](t)&&o[e(279)][e(292)](o=>{const s=e;o[s(295)](s(272),t,i),n[s(287)](o)})}}const lt=ft;function ut(){const t=["change","refresh","isInteger","get","getFootnotesDefinitionsObjectElement","getAttribute","24VXJzls","2749572oVuVeo","2146916tzTIHX","1085611HEeDSM","setAttribute","2589534lIBzgD","9104056Jrxefo","value","1114795Yzqvcb","plugins","3LJbpoM","isEnabled","execute","_updateFootnotesCounters","2506284JeFZKV","footnotesListStart","model"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=364]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(965659===-parseInt(e(386))/1+parseInt(e(385))/2+-parseInt(e(370))/3*(-parseInt(e(374))/4)+-parseInt(e(368))/5*(parseInt(e(383))/6)+parseInt(e(384))/7+parseInt(e(366))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(378)](){const t=lt,{editor:e}=this,o=e[t(369)][t(380)](d)[t(381)]();this[t(371)]=!!o,this[t(367)]=o?.[t(382)](t(375))??null}[lt(372)]({value:t}){const e=lt,{editor:o}=this,n=o[e(369)][e(380)](d),i=n[e(381)]();i&&Number[e(379)](t)&&o[e(376)][e(377)](o=>{const s=e;o[s(364)](s(375),t,i),n[s(373)](o)})}}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new dt(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():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(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=B(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.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,R.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:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.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 R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=307]})(t,e)}function y(){const t=["5PbPYgt","document","createElement","footnoteRef","refresh","179484rbjGrP","get","editor","72wzdTwg","10vkExOa","400TcDrmf","48201zfACfh","isObject","checkChild","test","5616128WoaYcv","3412926eIJPvr","35KfToMC","insert-footnote-command-executed-with-invalid-id","end","isEnabled","change","selection","17883JEFvVu","2879252QcdWpR","plugins","getItems","_getPositionToInsertFootnote","execute","isBlock","FootnotesEditing","1656498aqwSlk","insertObject","length","model","getFirstRange","string","footnoteId","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(762019===-parseInt(e(321))/1+-parseInt(e(325))/2*(-parseInt(e(327))/3)+-parseInt(e(340))/4*(-parseInt(e(316))/5)+parseInt(e(308))/6*(parseInt(e(333))/7)+parseInt(e(331))/8+-parseInt(e(339))/9*(parseInt(e(326))/10)+-parseInt(e(332))/11*(parseInt(e(324))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(320)](){const t=g,e=this[t(323)][t(311)][t(317)][t(338)],o=this[t(343)](e);this[t(336)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(317)],r=this[e(343)](s);if(!r)return;const a=o[e(341)][e(322)](e(307)),c=t?.[e(314)]??(0,i.uid)();!function(t){const o=e;return o(313)==typeof t&&t[o(310)]>0&&!/\s/[o(330)](t)&&!/^\d/[o(330)](t)}(c)?(0,i.logWarning)(e(334)):(n[e(337)](t=>{const o=e,i=t[o(318)](o(319),{footnoteId:c});n[o(309)](i,r,null)}),a[e(315)](c))}[g(343)](t){const e=g,{model:o}=this[e(323)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(342)]())if(n[e(345)](t)||n[e(328)](t))return null;const s=i[e(335)];return n[e(329)](s,e(319))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768348800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(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 P(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 S=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,S.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](S.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](S.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),N=o(355),O=o(929),K=o.n(O),j=o(297),M=o.n(j),z=o(102),U=o.n(z),B=o(123),W=o.n(B),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,R.ButtonView)),e.add("menuBar:insertFootnote",Q(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.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 Z=G;function G(t,e){var o=tt();return(G=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=G,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[Z(146)](){return Z(141)}static get[Z(150)](){return[v,D,Y]}static get[Z(142)](){return!0}static get[Z(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["2624844aFkJkn","_updateFootnotesCounters","getAttribute","8xttDyN","isEnabled","get","execute","6871802ezIKOa","516DxnbKr","getFootnotesDefinitionsObjectElement","plugins","44440hUYZvy","789921qVybSG","refresh","62280iLXjKg","value","setAttribute","2439IkjaBz","model","1073544ocvKCS","includes","1196276ywZxJd","footnotesListStyle","change"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=118]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(549602===parseInt(e(138))/1+-parseInt(e(121))/2+-parseInt(e(126))/3+-parseInt(e(123))/4+parseInt(e(137))/5*(parseInt(e(134))/6)+parseInt(e(133))/7*(-parseInt(e(129))/8)+parseInt(e(119))/9*(parseInt(e(140))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(139)](){const t=st,{editor:e}=this,o=e[t(136)][t(131)](d)[t(135)]();this[t(130)]=!!o,this[t(141)]=o?.[t(128)](t(124))??null}[st(132)]({value:t}){const e=st,{editor:o}=this,n=o[e(136)][e(131)](d),i=n[e(135)]();i&&it[e(122)](t)&&o[e(120)][e(125)](o=>{const s=e;o[s(118)](s(124),t,i),n[s(127)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=381]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(444012===-parseInt(e(381))/1*(-parseInt(e(394))/2)+parseInt(e(385))/3*(parseInt(e(391))/4)+parseInt(e(403))/5+-parseInt(e(397))/6+-parseInt(e(404))/7*(-parseInt(e(388))/8)+parseInt(e(398))/9+parseInt(e(402))/10*(-parseInt(e(383))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(384)](){const t=lt,{editor:e}=this,o=e[t(382)][t(401)](d)[t(396)]();this[t(390)]=!!o,this[t(386)]=o?.[t(400)](t(399))??null}[lt(405)]({value:t}){const e=lt,{editor:o}=this,n=o[e(382)][e(401)](d),i=n[e(396)]();i&&Number[e(393)](t)&&o[e(387)][e(392)](o=>{const s=e;o[s(389)](s(399),t,i),n[s(395)](o)})}}function dt(){const t=["28yhNsTc","change","isInteger","276344ZMtIxI","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","2005182TScfuD","5744142xCMYxv","footnotesListStart","getAttribute","get","283980IZaIHE","1570985GlmNje","3252081KKPqfw","execute","4JHkPoG","plugins","627IXsDYv","refresh","183081BvWCrZ","value","model","8UsLuwX","setAttribute","isEnabled"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new ft(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():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(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.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,R.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 R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Pt;function Et(){var t=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 _0x349802,Command as _0x2110dd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x537c3e,isWidget as _0x351b54,toWidgetEditable as _0xe0b609,WidgetToolbarRepository as _0x4455ce}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2e5f04,logWarning as _0x5d3530,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x38980f,ClickObserver as _0x4d05aa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1a0391}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x51fb0a,ButtonView as _0xa42a82,View as _0x3a8c93,ViewCollection as _0x2aec16,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x1571f7,BalloonPanelView as _0x6ed29,createDropdown as _0x2b7949}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x253764,IconListStyleDecimal as _0x1cc222,IconListStyleDecimalLeadingZero as _0x37a66c,IconListStyleLowerRoman as _0x38bc6f,IconListStyleUpperRoman as _0x5b8e00,IconListStyleLowerLatin as _0x300a50,IconListStyleUpperLatin as _0x5f0855}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4e609e,_0x51728c){this['_model']=_0x4e609e,this['_elementName']=_0x51728c['elementName'],this['_getElementKey']=_0x51728c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3edbc1){const _0x50a85e=new Set(),_0x102bf2=new Map();for(const _0x41dc2c of _0x3edbc1){if('insert'===_0x41dc2c['type']&&'$text'!==_0x41dc2c['name']&&_0x41dc2c['position']['nodeAfter']){const _0x496786=this['_model']['createRangeOn'](_0x41dc2c['position']['nodeAfter']);for(const _0x53445c of _0x496786['getItems']()){if(!_0x53445c['is']('element',this['_elementName']))continue;const _0x43761e=this['_getElementKey'](_0x53445c);_0x102bf2['has'](_0x43761e)||_0x102bf2['set'](_0x43761e,[]),_0x102bf2['get'](_0x43761e)['push'](_0x53445c);}}if('remove'===_0x41dc2c['type']&&_0x41dc2c['name']===this['_elementName']){const _0x59f139=this['_getElementKey']({'getAttribute':_0x40f72b=>_0x41dc2c['attributes']['get'](_0x40f72b)});_0x50a85e['add'](_0x59f139);}}for(const [_0x5add2a,_0x3a578d]of this['_trackedElements'])'$graveyard'===_0x3a578d['root']['rootName']&&_0x50a85e['add'](_0x5add2a);for(const _0x1b6354 of _0x50a85e)this['_trackedElements']['delete'](_0x1b6354);for(const [_0x46a68f,_0x260dec]of _0x102bf2)this['_trackedElements']['set'](_0x46a68f,_0x260dec[_0x260dec['length']-0x1]);const _0x5cb0f0=new Set();for(const [_0xc06666,_0x957b01]of _0x102bf2)_0x50a85e['has'](_0xc06666)&&(_0x5cb0f0['add'](_0x957b01[0x0]),_0x957b01['length']>0x1?_0x102bf2['set'](_0xc06666,_0x957b01['slice'](0x1)):_0x102bf2['delete'](_0xc06666),_0x50a85e['delete'](_0xc06666));return{'removed':Array['from'](_0x50a85e),'inserted':Array['from'](_0x102bf2['values']())['flat'](),'moved':Array['from'](_0x5cb0f0)};}}class f extends _0x349802{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x436050){super(_0x436050),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x397247=>_0x397247['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2f1926=>_0x2f1926['getAttribute']('footnoteId')});}['init'](){const {editor:_0x16c689}=this,{model:_0x11c71a,data:_0x1abafe}=_0x16c689;_0x11c71a['document']['registerPostFixer'](_0x458605=>{const _0x287a69=_0x11c71a['document']['differ']['getChanges']();let _0x4b6ec5=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_handleFootnoteReferencesChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x458605)&&(_0x4b6ec5=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x458605)&&(_0x4b6ec5=!0x0),this['_sortFootnoteDefinitions'](_0x458605)&&(_0x4b6ec5=!0x0),_0x4b6ec5;}),this['listenTo'](_0x11c71a['document'],'change:data',()=>{_0x11c71a['enqueueChange']({'isUndoable':!0x1},_0x47caad=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x47caad);});},{'priority':'low'}),this['listenTo'](_0x1abafe,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x11c540){return this['_footnotes']['find'](_0x532f62=>_0x532f62['id']===_0x11c540)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x405dc0){this['_footnoteFormatter']=_0x405dc0;}['_updateFootnotesCounters'](_0x33587b,_0x161ba7=0x0){let _0x63d21f=!0x1;for(let _0x4386bd=_0x161ba7;_0x4386bd<this['_footnotes']['length'];_0x4386bd++)this['_updateFootnoteRefCounter'](_0x33587b,_0x4386bd)&&(_0x63d21f=!0x0);return _0x63d21f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1e275e,_0x4796b3){const _0x5439d3=_0x1e275e['createElement']('footnotesDefinitions',{});return _0x1e275e['append'](_0x5439d3,_0x4796b3),this['_footnotesDefinitions']=_0x5439d3,_0x5439d3;}['_ensureFootnotesDefinitionsContainerExists'](_0x189aac){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x1d8deb=this['_footnotes'][0x0]['reference']['root'],_0x54818e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x189aac,_0x1d8deb);for(const _0x4f99d5 of this['_footnotes'])_0x4f99d5['definition']['parent']||_0x189aac['insert'](_0x4f99d5['definition'],_0x54818e,'end');this['_updateFootnotesCounters'](_0x189aac);}['_handleFootnotesDefinitionsObjectChanges'](_0x10cd84,_0x3f32f1){let _0xb815af=!0x1;const {inserted:_0xf5d363,removed:_0xd764bb,moved:_0x576392}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3f32f1);if(_0x576392['length']&&(this['_footnotesDefinitions']=_0x576392[0x0]),_0xf5d363['length']){if(_0xf5d363['length']>0x1||this['_footnotesDefinitions']&&_0xf5d363['some'](_0x421a70=>_0x421a70!==this['_footnotesDefinitions'])){const _0x5d53c2=_0x10cd84['createElement']('footnotesDefinitions',{}),_0xb60f9a=[];this['_footnotesDefinitions']&&_0xb60f9a['push'](this['_footnotesDefinitions']),_0xb60f9a['push'](..._0xf5d363),_0x10cd84['insert'](_0x5d53c2,_0xb60f9a[0x0],'before');for(const _0x5efddb of _0xb60f9a)_0x10cd84['move'](_0x10cd84['createRangeIn'](_0x5efddb),_0x10cd84['createPositionAt'](_0x5d53c2,'end')),_0x10cd84['remove'](_0x5efddb);this['_footnotesDefinitions']=_0x5d53c2,this['_updateFootnotesCounters'](_0x10cd84),_0xb815af=!0x0;}else this['_footnotesDefinitions']=_0xf5d363[0x0];}if(_0xd764bb['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4cf45b of this['_footnotes'])_0x10cd84['remove'](_0x4cf45b['reference']),_0xb815af=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xb815af;}['_handleFootnoteDefinitionsChanges'](_0x281073,_0x8218ac){let _0x137041=!0x1;const _0x10a829=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1dd81c,moved:_0xc80d0e}=this['_footnoteDefsTracker']['getChanges'](_0x8218ac);for(const _0x5e20c4 of[..._0xc80d0e,..._0x1dd81c]){const _0x2cc3b8=_0x5e20c4['getAttribute']('footnoteId'),_0x554029=this['getFootnote'](_0x2cc3b8);_0x554029&&(_0x554029['definition']=_0x5e20c4),_(_0x281073,_0x10a829,_0x5e20c4)&&(_0x137041=!0x0);}return _0x137041;}['_handleFootnoteReferencesChanges'](_0x5ea670,_0x595f08){let _0xfa698e=!0x1;const {removed:_0x4e097d,inserted:_0x5e8257,moved:_0x21a71f}=this['_footnoteRefsTracker']['getChanges'](_0x595f08);for(const _0x2ec338 of _0x4e097d)this['_handleRemoveFootnoteReferenceById'](_0x5ea670,_0x2ec338)&&(_0xfa698e=!0x0);for(const _0xc04bbf of _0x5e8257)this['_handleInsertedFootnoteReference'](_0x5ea670,_0xc04bbf)&&(_0xfa698e=!0x0);for(const _0x3c7c69 of _0x21a71f)this['_handleMovedFootnoteReference'](_0x5ea670,_0x3c7c69)&&(_0xfa698e=!0x0);return _0xfa698e;}['_handleFootnotesDefinitionsObjectSync'](_0x4e317b){if(!this['_footnotesDefinitions'])return!0x1;let _0x2ddc85=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xdfe1f9=[];for(const _0x23d6f3 of this['_footnotesDefinitions']['getChildren']()){const _0xd6d672=_0x23d6f3['getAttribute']('footnoteId');this['getFootnote'](_0xd6d672)||(_0xdfe1f9['unshift'](_0x23d6f3),_0x2ddc85=!0x0);}for(const _0xc364c3 of _0xdfe1f9)_0x4e317b['remove'](_0xc364c3);}const _0x494aab=new Set(),_0x19a431=[];for(const _0x5bd009 of this['_footnotesDefinitions']['getChildren']()){const _0x3a0130=_0x5bd009['getAttribute']('footnoteId');_0x494aab['has'](_0x3a0130)?(_0x19a431['unshift'](_0x5bd009),_0x2ddc85=!0x0):_0x494aab['add'](_0x3a0130);}for(const _0x2abc84 of _0x19a431)_0x4e317b['remove'](_0x2abc84);return this['_footnotesDefinitions']['childCount']||(_0x4e317b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2ddc85=!0x0),_0x2ddc85;}['_handleInsertedFootnoteReference'](_0x3c0009,_0x2dcb15){if(this['_footnotes']['find'](_0x5ee2ac=>_0x5ee2ac['reference']===_0x2dcb15))return!0x1;let _0x2cb5fe=!0x1;const _0x20b31d=_0x2dcb15['getAttribute']('footnoteId'),_0x1d1c05=this['_footnotes']['findIndex'](_0x45b598=>_0x45b598['id']===_0x20b31d);-0x1!==_0x1d1c05&&(_0x3c0009['remove'](this['_footnotes'][_0x1d1c05]['reference']),this['_footnotes']['splice'](_0x1d1c05,0x1),_0x2cb5fe=!0x0);let _0xbc9290=this['_footnotesDefinitions']?function(_0x5c45b9,_0x87f569){for(const _0x227fc9 of _0x5c45b9['getChildren']())if(_0x227fc9['getAttribute']('footnoteId')===_0x87f569)return _0x227fc9;return null;}(this['_footnotesDefinitions'],_0x20b31d):null;_0xbc9290||(_0xbc9290=_0x3c0009['createElement']('footnoteDefinition',{'footnoteId':_0x20b31d}),this['_footnotesDefinitions']&&(_0x3c0009['insert'](_0xbc9290,this['_footnotesDefinitions'],'end'),_0x2cb5fe=!0x0));const _0x44fa3d={'id':_0x20b31d,'reference':_0x2dcb15,'definition':_0xbc9290},_0x21a467=I(this['editor']['model'],this['_footnotes'],_0x2dcb15);this['_footnotes']['splice'](_0x21a467,0x0,_0x44fa3d);let _0x7c78b5=_0x21a467;return-0x1!==_0x1d1c05&&(_0x7c78b5=Math['min'](_0x21a467,_0x1d1c05)),this['_updateFootnotesCounters'](_0x3c0009,_0x7c78b5)&&(_0x2cb5fe=!0x0),_0x2cb5fe;}['_handleRemoveFootnoteReferenceById'](_0x1aa0d4,_0x10c90f){const _0x33c4b9=this['_footnotes']['findIndex'](_0x40677b=>_0x40677b['id']===_0x10c90f);if(-0x1===_0x33c4b9)return!0x1;let _0x5c091d=!0x1;const _0x5ef4c2=this['_footnotes'][_0x33c4b9];return'$graveyard'!==_0x5ef4c2['definition']['root']['rootName']&&(_0x1aa0d4['remove'](_0x5ef4c2['definition']),_0x5c091d=!0x0),this['_footnotes']['splice'](_0x33c4b9,0x1),this['_updateFootnotesCounters'](_0x1aa0d4,_0x33c4b9)&&(_0x5c091d=!0x0),_0x5c091d;}['_handleMovedFootnoteReference'](_0x338014,_0x126ee5){const _0x4265a5=_0x126ee5['getAttribute']('footnoteId'),_0x50600c=this['_footnotes']['findIndex'](_0x458d83=>_0x458d83['id']===_0x4265a5),_0x25cb00=this['_footnotes'][_0x50600c];let _0x219cbb=!0x1;_0x25cb00['reference']=_0x126ee5,this['_footnotes']['splice'](_0x50600c,0x1);const _0x33db5f=I(this['editor']['model'],this['_footnotes'],_0x126ee5);return this['_footnotes']['splice'](_0x33db5f,0x0,_0x25cb00),this['_updateFootnotesCounters'](_0x338014,Math['min'](_0x50600c,_0x33db5f))&&(_0x219cbb=!0x0),_0x219cbb;}['_updateFootnoteRefCounter'](_0x77e17b,_0x3c5414){if(!this['_footnotesDefinitions'])return!0x1;const _0xe59f45=this['_footnotes'][_0x3c5414];let _0x1c8167;return _0x1c8167=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xe59f45,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3c5414+0x1}):String(_0x3c5414+0x1),_0xe59f45['reference']['getAttribute']('footnoteCounter')!=_0x1c8167&&(_0x77e17b['setAttribute']('footnoteCounter',_0x1c8167,_0xe59f45['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5600d0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3504db,_0x269f07){if(_0x3504db['length']!==_0x269f07['length'])return!0x1;for(let _0x190273=0x0;_0x190273<_0x3504db['length'];_0x190273++)if(_0x3504db[_0x190273]!==_0x269f07[_0x190273])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3233f4=>_0x3233f4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x479ec0=>_0x479ec0['getAttribute']('footnoteId'))))return!0x1;let _0x52111e=!0x1;for(let _0x4a542e=0x0;_0x4a542e<this['_footnotes']['length'];_0x4a542e++){const _0x5608b3=this['_footnotes'][_0x4a542e],_0x38b492=_0x5600d0['createPositionBefore'](_0x5608b3['definition']),_0x5015c3=_0x5600d0['createPositionAt'](this['_footnotesDefinitions'],_0x4a542e);_0x38b492['isEqual'](_0x5015c3)||(_0x5600d0['move'](_0x5600d0['createRangeOn'](_0x5608b3['definition']),_0x5015c3),_0x52111e=!0x0);}return _0x52111e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x506867){if(!this['_footnotes']['length'])return!0x1;const {model:_0x25abed}=this['editor'];let _0x4141a7=!0x1;for(let _0x41b700=0x0;_0x41b700<this['_footnotes']['length']-0x1;_0x41b700++){const _0x290695=this['_footnotes'][_0x41b700],_0x5d9594=this['_footnotes'][_0x41b700+0x1],_0x14e02b=_0x25abed['createPositionBefore'](_0x290695['reference']),_0x2ac0b8=_0x25abed['createPositionBefore'](_0x5d9594['reference']);'after'===_0x14e02b['compareWith'](_0x2ac0b8)&&(this['_handleMovedFootnoteReference'](_0x506867,_0x290695['reference']),_0x41b700=-0x1,_0x4141a7=!0x0);}return _0x4141a7;}}function _(_0x484349,_0x369b80,_0xa4a5f1){if(_0xa4a5f1['childCount'])return!0x1;const _0x4e9fdd=_0x369b80?'paragraph':'footnoteInlineContent';return _0x484349['insert'](_0x484349['createElement'](_0x4e9fdd),_0xa4a5f1),!0x0;}function I(_0x1f93eb,_0x23f7da,_0x2aba67){if(0x0===_0x23f7da['length'])return 0x0;const _0x27953e=_0x1f93eb['createPositionBefore'](_0x2aba67);for(let _0x53bd1e=0x0;_0x53bd1e<_0x23f7da['length'];_0x53bd1e++){const _0x215171=_0x23f7da[_0x53bd1e],_0x339768=_0x1f93eb['createPositionBefore'](_0x215171['reference']);if('before'===_0x27953e['compareWith'](_0x339768))return _0x53bd1e;}const _0x2dd74f=_0x2aba67['root'];let _0x178ed5=-0x1;for(let _0x70ff0c=_0x23f7da['length']-0x1;_0x70ff0c>=0x0;_0x70ff0c--)if(_0x23f7da[_0x70ff0c]['reference']['root']===_0x2dd74f){_0x178ed5=_0x70ff0c;break;}if(-0x1!==_0x178ed5)return _0x178ed5+0x1;const _0x2d0102=_0x1f93eb['document']['getRootNames'](),_0x18a175=_0x2d0102['indexOf'](_0x2dd74f['rootName']),_0x29308c=_0x2d0102[_0x18a175+0x1];if(_0x29308c){for(let _0x4e3e55=0x0;_0x4e3e55<_0x23f7da['length'];_0x4e3e55++)if(_0x23f7da[_0x4e3e55]['reference']['root']['rootName']===_0x29308c)return _0x4e3e55;}return _0x23f7da['length'];}class h extends _0x2110dd{['refresh'](){const _0x853ad2=this['editor']['model']['document']['selection'],_0x2e51f8=this['_getPositionToInsertFootnote'](_0x853ad2);this['isEnabled']=!!_0x2e51f8;}['execute'](_0x2b558f){const {editor:_0x30c270}=this,{model:_0x58a924}=_0x30c270,{selection:_0x4fd5d7}=_0x58a924['document'],_0x2d294d=this['_getPositionToInsertFootnote'](_0x4fd5d7);if(!_0x2d294d)return;const _0x397276=_0x30c270['plugins']['get']('FootnotesEditing'),_0x4dbfa6=_0x2b558f?.['footnoteId']??_0x2e5f04();!function(_0x28975a){return'string'==typeof _0x28975a&&_0x28975a['length']>0x0&&!/\s/['test'](_0x28975a)&&!/^\d/['test'](_0x28975a);}(_0x4dbfa6)?_0x5d3530('insert-footnote-command-executed-with-invalid-id'):(_0x58a924['change'](_0x44b452=>{const _0x53504b=_0x44b452['createElement']('footnoteRef',{'footnoteId':_0x4dbfa6});_0x58a924['insertObject'](_0x53504b,_0x2d294d,null);}),_0x397276['_moveSelectionToFootnoteDefinition'](_0x4dbfa6));}['_getPositionToInsertFootnote'](_0x5f0255){const {model:_0x2dd246}=this['editor'],{schema:_0x192e8f}=_0x2dd246,_0x25a751=_0x5f0255['getFirstRange']();for(const _0x772943 of _0x25a751['getItems']())if(_0x192e8f['isBlock'](_0x772943)||_0x192e8f['isObject'](_0x772943))return null;const _0x57ce7c=_0x25a751['end'];return _0x192e8f['checkChild'](_0x57ce7c,'footnoteRef')?_0x57ce7c:null;}}class r extends _0x349802{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x592f48}=this;_0x592f48['config']['define']('footnotes.multiBlock',!0x0),_0x592f48['commands']['add']('insertFootnote',new h(_0x592f48)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x386c38){const _0x15be92=_0x36cd4c([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]),_0xad2382=0x47a28506,_0x1ebc2d=0x47a5fbb6^_0xad2382,_0x323463=window[_0x36cd4c([0x44,0x61,0x74,0x65])][_0x36cd4c([0x6e,0x6f,0x77])](),_0x400a98=_0x386c38[_0x36cd4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4bea52=new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10277c=>{_0x400a98[_0x36cd4c([0x6f,0x6e,0x63,0x65])](_0x36cd4c([0x72,0x65,0x61,0x64,0x79]),_0x10277c);}),_0x582a5a={[_0x36cd4c([0x6b,0x74,0x79])]:_0x36cd4c([0x45,0x43]),[_0x36cd4c([0x75,0x73,0x65])]:_0x36cd4c([0x73,0x69,0x67]),[_0x36cd4c([0x63,0x72,0x76])]:_0x36cd4c([0x50,0x2d,0x32,0x35,0x36]),[_0x36cd4c([0x78])]:_0x36cd4c([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]),[_0x36cd4c([0x79])]:_0x36cd4c([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]),[_0x36cd4c([0x61,0x6c,0x67])]:_0x36cd4c([0x45,0x53,0x32,0x35,0x36])},_0x3c836d=_0x400a98[_0x36cd4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36cd4c([0x67,0x65,0x74])](_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46c5eb(){let _0xdf8ca2,_0x5e4317=null,_0x55cc52=null;try{if(_0x3c836d==_0x36cd4c([0x47,0x50,0x4c]))return _0x36cd4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdf8ca2=_0x5a48d6(),!_0xdf8ca2)return _0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdf8ca2[_0x36cd4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55cc52=_0x15ac9c(_0xdf8ca2[_0x36cd4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdf8ca2[_0x36cd4c([0x6a,0x74,0x69])])),await _0x208f47()?_0x70e92f()?_0x35e79d()?_0x36cd4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xddf19f()?(_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36cd4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e4317=_0x1505c4(_0x36cd4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4adffe()):_0x36cd4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36cd4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35e79d(){const _0x411799=[_0x36cd4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36cd4c([0x74,0x72,0x69,0x61,0x6c])][_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x323463/0x3e8:0xe10*_0x1ebc2d;return _0xdf8ca2[_0x36cd4c([0x65,0x78,0x70])]<_0x411799;}function _0x70e92f(){const _0x38044c=_0xdf8ca2[_0x36cd4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38044c&&(!!_0x38044c[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x2a]))||!!_0x38044c[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x46,0x4f,0x4f])));}function _0xddf19f(){const _0x5b2031=_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b2031||0x0==_0x5b2031[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4635d0}=new URL(window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b2031[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4635d0))return!0x0;const _0x28d6c9=_0x4635d0[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e]));return _0x5b2031[_0x36cd4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49ce53=>_0x49ce53[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x2a])))[_0x36cd4c([0x6d,0x61,0x70])](_0x2b2469=>_0x2b2469[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e])))[_0x36cd4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5319b8=>_0x5319b8[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28d6c9[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36cd4c([0x6d,0x61,0x70])](_0xaca9b=>Array(_0x28d6c9[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xaca9b[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36cd4c([0x66,0x69,0x6c,0x6c])](_0xaca9b[0x0]===_0x36cd4c([0x2a])?_0x36cd4c([0x2a]):'')[_0x36cd4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xaca9b))[_0x36cd4c([0x73,0x6f,0x6d,0x65])](_0x2df5be=>_0x28d6c9[_0x36cd4c([0x65,0x76,0x65,0x72,0x79])]((_0x2071c8,_0x49aebf)=>_0x2df5be[_0x49aebf]===_0x2071c8||_0x2df5be[_0x49aebf]===_0x36cd4c([0x2a])));}function _0x4adffe(){return _0x5e4317&&_0x55cc52?new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbb89f3,_0x3fff1a)=>{_0x5e4317[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0xbb89f3,_0x3fff1a),_0x55cc52[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x49d2f0=>{_0x49d2f0!=_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])&&_0xbb89f3(_0x49d2f0);},_0x3fff1a);}):_0x5e4317||_0x55cc52||_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac9c(_0x4b5481,_0x438a1d){return new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30aefb=>{if(_0x3775e0())return _0x30aefb(_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]));_0x215951(),_0x400a98[_0x36cd4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15589e=!0x1;const _0xdf7194=_0x2e5f04();function _0x3edc4b(_0x318371){return!!_0x318371&&(typeof _0x318371===_0x36cd4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x318371===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x318371[_0x36cd4c([0x74,0x68,0x65,0x6e])]===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x318371[_0x36cd4c([0x63,0x61,0x74,0x63,0x68])]===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8f94b2(_0x570384){_0xc27a98(_0x570384)[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x3e7a1e=>{if(!_0x3e7a1e||_0x3e7a1e[_0x36cd4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36cd4c([0x6f,0x6b]))return _0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c2a7c(_0x5ac460(_0xdf7194+_0x438a1d))!=_0x3e7a1e[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x55198d=>(_0x3b0861(),_0x55198d),()=>{const _0xf53e7b=_0x34c941();return null==_0xf53e7b?(_0x3b0861(),_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])):_0x36cd4c(_0x323463-_0xf53e7b>(0x63ae0106^_0xad2382)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x30aefb)[_0x36cd4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ef3b9=0x47946b86^_0xad2382;function _0x3b0861(){const _0x5bc285=_0x36cd4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c2a7c(_0x5ac460(_0x4b5481)),_0x465dcc=_0x3bd7b7(_0x2c2a7c(window[_0x36cd4c([0x4d,0x61,0x74,0x68])][_0x36cd4c([0x63,0x65,0x69,0x6c])](_0x323463/_0x3ef3b9)));window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36cd4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bc285,_0x465dcc);}function _0x34c941(){const _0x3ca214=_0x36cd4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c2a7c(_0x5ac460(_0x4b5481)),_0x3abb40=window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36cd4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ca214);return _0x3abb40?window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd7b7(_0x3abb40),0x10)*_0x3ef3b9:null;}function _0xc27a98(_0x568b44){return new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x230962,_0x18f5a7)=>{_0x568b44[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x230962,_0x18f5a7),window[_0x36cd4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18f5a7,0x47a351c6^_0xad2382);});}}_0x400a98[_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2237eb,_0x3123d1)=>{if(_0x3123d1[0x0]!=_0x4b5481)return _0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3123d1[0x1]={..._0x3123d1[0x1],[_0x36cd4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdf7194};},{[_0x36cd4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36cd4c([0x68,0x69,0x67,0x68])}),_0x400a98[_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14c304=>{_0x3edc4b(_0x14c304[_0x36cd4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15589e=!0x0,_0x8f94b2(_0x14c304[_0x36cd4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36cd4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36cd4c([0x6c,0x6f,0x77])}),_0x4bea52[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>{_0x15589e||_0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3775e0(){return _0x400a98[_0x36cd4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36cd4c([0x76,0x69,0x65,0x77])][_0x36cd4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36cd4c([0x61,0x75,0x74,0x6f]);}function _0x215951(){_0x400a98[_0x36cd4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36cd4c([0x76,0x69,0x65,0x77])][_0x36cd4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36cd4c([0x61,0x75,0x74,0x6f]);}}function _0x1505c4(_0x5f34e2){const _0x1c7e94=[new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c73d3=>setTimeout(_0x1c73d3,0x47abbbca^_0xad2382)),_0x4bea52[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40082d=>{let _0x2bd92c=0x0;_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3dd6c8,_0x262f25)=>{_0x262f25[0x0][_0x36cd4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bd92c++,_0x2bd92c==(0x47a280ee^_0xad2382)&&(_0x40082d(),_0x3dd6c8[_0x36cd4c([0x6f,0x66,0x66])]());});}))];return window[_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36cd4c([0x72,0x61,0x63,0x65])](_0x1c7e94)[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>_0x5f34e2);}async function _0x25a3eb(){await _0x4bea52,_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5da3b4,_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5da3b4,_0x400a98[_0x36cd4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfcc99e(_0x42caa1){const _0x2767eb=_0x3c1c86();_0x400a98[_0x2767eb]=_0x36cd4c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42caa1,_0x42caa1!=_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])&&_0x25a3eb();}function _0x3c1c86(){const _0x26bf66=window[_0x36cd4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36cd4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36cd4c([0x6e,0x6f,0x77])]())[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36cd4c([0x2e]),'');let _0x2d824c=_0x36cd4c([0x75]);for(let _0x1e8000=0x0;_0x1e8000<_0x26bf66[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e8000+=0x2){let _0x24ffc4=window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26bf66[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e8000,_0x1e8000+0x2));_0x24ffc4>=_0x15be92[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24ffc4-=_0x15be92[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d824c+=_0x15be92[_0x24ffc4];}return _0x2d824c;}function _0x5a48d6(){const _0x4560ab=_0x3c836d[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e]));if(0x3!=_0x4560ab[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45fffe(_0x4560ab[0x1]);function _0x45fffe(_0x3f9dc3){const _0xb1df3=_0xd4fe82(_0x3f9dc3);return _0xb1df3&&_0x2950c2()?_0xb1df3:null;function _0x2950c2(){const _0x22e63e=_0xb1df3[_0x36cd4c([0x6a,0x74,0x69])],_0x2cc96c=window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e63e[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22e63e[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x348e72={..._0xb1df3,[_0x36cd4c([0x6a,0x74,0x69])]:_0x22e63e[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22e63e[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x348e72[_0x36cd4c([0x76,0x63])],_0x5ac460(_0x348e72)==_0x2cc96c;}}}async function _0x208f47(){let _0x21f74e=!0x0;try{const _0x4b7ca1=_0x3c836d[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e])),[_0x49e943,_0x45966d,_0x8ba7a2]=_0x4b7ca1;return _0x4530db(_0x49e943),await _0x27f756(_0x49e943,_0x45966d,_0x8ba7a2),_0x21f74e;}catch{return!0x1;}function _0x4530db(_0x36ce18){const _0x2be415=_0xd4fe82(_0x36ce18);_0x2be415&&_0x2be415[_0x36cd4c([0x61,0x6c,0x67])]==_0x36cd4c([0x45,0x53,0x32,0x35,0x36])||(_0x21f74e=!0x1);}async function _0x27f756(_0x12e69c,_0x3d4202,_0xd0d468){const _0x15c712=window[_0x36cd4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36cd4c([0x66,0x72,0x6f,0x6d])](_0x5c2df4(_0xd0d468),_0x51ccd5=>_0x51ccd5[_0x36cd4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b7419=new window[(_0x36cd4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36cd4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12e69c+_0x36cd4c([0x2e])+_0x3d4202),_0x1d08b8=window[_0x36cd4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36cd4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d08b8)return;const _0x3b750d=await _0x1d08b8[_0x36cd4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36cd4c([0x6a,0x77,0x6b]),_0x582a5a,{[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x45,0x43,0x44,0x53,0x41]),[_0x36cd4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36cd4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d08b8[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x45,0x43,0x44,0x53,0x41]),[_0x36cd4c([0x68,0x61,0x73,0x68])]:{[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b750d,_0x15c712,_0x3b7419)||(_0x21f74e=!0x1);}}function _0xd4fe82(_0x53d4c8){return _0x53d4c8[_0x36cd4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36cd4c([0x65,0x79]))?JSON[_0x36cd4c([0x70,0x61,0x72,0x73,0x65])](_0x5c2df4(_0x53d4c8)):null;}function _0x5c2df4(_0x413cc6){return window[_0x36cd4c([0x61,0x74,0x6f,0x62])](_0x413cc6[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36cd4c([0x2b]))[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36cd4c([0x2f])));}function _0x5ac460(_0x3a66be){let _0x426e2f=0x1505;function _0x49d1a6(_0x1b4fb8){for(let _0x5b6d47=0x0;_0x5b6d47<_0x1b4fb8[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6d47++){const _0xb7e449=_0x1b4fb8[_0x36cd4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b6d47);_0x426e2f=(_0x426e2f<<0x5)+_0x426e2f+_0xb7e449,_0x426e2f&=_0x426e2f;}}function _0x2657a9(_0x4eea98){Array[_0x36cd4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eea98)?_0x4eea98[_0x36cd4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2657a9):_0x4eea98&&typeof _0x4eea98==_0x36cd4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36cd4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eea98)[_0x36cd4c([0x73,0x6f,0x72,0x74])]()[_0x36cd4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x62a1bd,_0x3087b6])=>{_0x49d1a6(_0x62a1bd),_0x2657a9(_0x3087b6);}):_0x49d1a6(window[_0x36cd4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eea98));}return _0x2657a9(_0x3a66be),_0x426e2f>>>0x0;}function _0x2c2a7c(_0x3ab6cd){return _0x3ab6cd[_0x36cd4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36cd4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36cd4c([0x30]));}function _0x3bd7b7(_0x8a7210){return _0x8a7210[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36cd4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36cd4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x5da3b4(){}function _0x36cd4c(_0x497494){return _0x497494['map'](_0x3ffd67=>String['fromCharCode'](_0x3ffd67))['join']('');}_0xfcc99e(await _0x46c5eb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x13ae1e){const {plugins:_0x2ba878,editing:_0xa0cb76,model:_0x5322b2}=this['editor'],_0x5eb5a5=_0x2ba878['get'](f)['getFootnote'](_0x13ae1e);return!!_0x5eb5a5&&(_0x5322b2['change'](_0x551fb2=>{_0x551fb2['setSelection'](_0x551fb2['createPositionAt'](_0x5eb5a5['definition'],'end'));}),_0xa0cb76['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x547ad9){const {plugins:_0x5d378c,editing:_0x1cdc7a,model:_0x55a956}=this['editor'],_0x3adcdf=_0x5d378c['get'](f)['getFootnote'](_0x547ad9);return!!_0x3adcdf&&(_0x55a956['change'](_0x50c25a=>{_0x50c25a['setSelection'](_0x3adcdf['reference'],'on');}),_0x1cdc7a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x54798e}=this['editor']['model'],_0x5a39f5=this['editor']['config']['get']('footnotes.multiBlock');_0x54798e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x54798e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x54798e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5a39f5?_0x54798e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x54798e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x54798e['addChildCheck'](_0x29f6f3=>{for(const _0x854bab of _0x29f6f3)if('footnoteDefinition'===_0x854bab['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x14ff02}=this,{conversion:_0x462209,editing:_0x40520c}=_0x14ff02,{t:t}=_0x14ff02['locale'];_0x462209['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3ec2f8,{writer:_0x299023,consumable:_0x574dc5})=>{const _0x2572f9=_0x3ec2f8['getChild'](0x0);if(!_0x2572f9||!_0x2572f9['is']('element','a'))return null;const _0x17d054=_0x2572f9['getAttribute']('href')||'';if(!_0x17d054['startsWith']('#'))return null;const _0x437b2f=_0x17d054['replace'](/^#/,'');if(!_0x437b2f)return null;_0x574dc5['consume'](_0x2572f9,{'name':!0x0,'attributes':['href']});for(const {item:_0x1cb7d0}of _0x40520c['view']['createRangeIn'](_0x2572f9))_0x1cb7d0['is']('$textProxy')?_0x574dc5['consume'](_0x1cb7d0['textNode'],{'name':!0x0}):_0x1cb7d0['is']('element')&&_0x574dc5['consume'](_0x1cb7d0,{'name':!0x0});return _0x299023['createElement']('footnoteRef',{'footnoteId':_0x437b2f});}}),_0x462209['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15e3ba,{writer:_0x2a5b03})=>b(_0x15e3ba,_0x2a5b03)}),_0x462209['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x320f9a,{writer:_0x55f819})=>{const _0x194863=_0x320f9a['getAttribute']('footnoteCounter');return _0x537c3e(b(_0x320f9a,_0x55f819),_0x55f819,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x194863)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5a2a8c}=this,{t:t}=_0x5a2a8c['locale'],{conversion:_0x440cac}=_0x5a2a8c;_0x440cac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x440cac['for']('upcast')['add'](_0x5bf6d6=>{_0x5bf6d6['on']('element:ol',(_0x340c1c,_0x4686dd,_0x20b355)=>{const _0x1dbab2=_0x4686dd['viewItem'];if(!_0x1dbab2['hasClass']('footnotes-list')||!_0x4686dd['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x20b355['consumable']['consume'](_0x1dbab2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x10c6df,modelCursor:_0x4e3ec7}=_0x20b355['convertChildren'](_0x4686dd['viewItem'],_0x4686dd['modelCursor']);_0x4686dd['modelRange']=_0x10c6df,_0x4686dd['modelCursor']=_0x4e3ec7;}),_0x5bf6d6['on']('element:hr',(_0x247c90,_0x386682,_0x4102e9)=>{const _0xe5ecef=_0x386682['viewItem'];_0xe5ecef['hasClass']('footnotes-divider')&&_0x386682['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4102e9['consumable']['consume'](_0xe5ecef,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x440cac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14a0f1,{writer:_0x37e6db})=>D(_0x37e6db)}),_0x440cac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4d96c5,{writer:_0x4cdf1b})=>{const _0x1f575f=D(_0x4cdf1b,{'data-footnotes-list-label':t('Footnotes')}),_0x492371=_0x537c3e(_0x1f575f,_0x4cdf1b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4cdf1b['setCustomProperty']('footnotesDefinitions',!0x0,_0x492371),_0x492371;}});}['_defineDefinitionConverters'](){const {editor:_0xec8816}=this,{conversion:_0x18f089,locale:_0x2a23c4}=_0xec8816,_0x55ceae=_0xec8816['config']['get']('footnotes.multiBlock');_0x18f089['for']('upcast')['add'](_0x5c0cfe=>{_0x5c0cfe['on']('element:li',(_0x2af8ab,_0x2effae,_0x20d2a5)=>{const _0x2ff659=_0x2effae['viewItem'];if(!_0x2ff659['hasClass']('footnote-definition')||!_0x2ff659['getAttribute']('id'))return;const _0x35cba6=_0x2ff659['parent'];if(!_0x35cba6['is']('element','ol')||!_0x35cba6['hasClass']('footnotes-list'))return;if(!_0x20d2a5['consumable']['test'](_0x2ff659,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3af6cd=_0x20d2a5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2ff659['getAttribute']('id')});if(!_0x20d2a5['safeInsert'](_0x3af6cd,_0x2effae['modelCursor']))return;_0x20d2a5['consumable']['consume'](_0x2ff659,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2f8471=Array['from'](_0x2ff659['getChildren']())['find'](_0x17226c=>_0x17226c['is']('element')&&_0x17226c['hasClass']('footnote-content'));for(const _0x2d0360 of _0x2ff659['getChildren']())_0x2d0360['is']('element')&&(_0x20d2a5['consumable']['consume'](_0x2d0360,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20d2a5['consumable']['consume'](_0x2d0360,{'name':!0x0,'classes':'footnote-content'}));if(_0x2f8471){if(_0x55ceae)_0x20d2a5['convertChildren'](_0x2f8471,_0x3af6cd);else{const _0x5cf787=_0x20d2a5['writer']['createElement']('footnoteInlineContent');_0x20d2a5['writer']['insert'](_0x5cf787,_0x3af6cd),_0x20d2a5['convertChildren'](_0x2f8471,_0x5cf787);}}_0x20d2a5['updateConversionResult'](_0x3af6cd,_0x2effae);});}),_0x18f089['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4218fe,{writer:_0x71c200})=>y(_0x4218fe,_0x71c200,_0x2a23c4,{'dataPipeline':!0x0})}),_0x18f089['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xc9977a,{writer:_0x19a487})=>y(_0xc9977a,_0x19a487,_0x2a23c4)});}['_defineBogusParagraphConverters'](){const {editor:_0x4a1004}=this,{conversion:_0x1a7967}=_0x4a1004;_0x4a1004['config']['get']('footnotes.multiBlock')?(_0x1a7967['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1a7967['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4a1004['model']['document'],'change:data',()=>{!function(_0x5cbf3c,_0x44272f){const _0x20e06c=_0x5cbf3c['document']['differ'],_0x52a916=new Set();for(const _0xa9b3b7 of _0x20e06c['getChanges']()){const _0x2fe818='attribute'==_0xa9b3b7['type']?_0xa9b3b7['range']['start']['parent']:_0xa9b3b7['position']['parent'];_0x2fe818['is']('element','footnoteDefinition')&&_0x52a916['add'](_0x2fe818);}for(const _0x3f045c of _0x52a916['values']()){const _0x2b2fb9=Array['from'](_0x3f045c['getChildren']())['filter'](_0x3dcc8e=>v(_0x3dcc8e,_0x44272f['mapper']));for(const _0x2a2117 of _0x2b2fb9)_0x44272f['reconvertItem'](_0x2a2117);}}(_0x4a1004['model'],_0x4a1004['editing']);})):(_0x1a7967['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1a7967['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4f6c3d,{writer:_0x343e9e})=>{const _0x2539e0=_0x343e9e['createContainerElement']('span');return _0x343e9e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2539e0),_0x2539e0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5c8dcb}=this,{editing:_0x47a17d,t:t}=_0x5c8dcb,_0x3d7069=_0x5c8dcb['model']['document']['selection'];_0x5c8dcb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5c8dcb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x47a17d['view']['document'],'enter',(_0x3b69d7,_0x2d458b)=>{const _0x4e3374=function(_0x492bdb){const _0x3bb3f3=_0x492bdb['getSelectedElement']();if(_0x3bb3f3?.['is']('element','footnoteRef'))return _0x3bb3f3;return null;}(_0x3d7069);if(_0x4e3374){const _0x46c56e=_0x4e3374['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x46c56e),_0x2d458b['preventDefault'](),_0x3b69d7['stop']();}},{'context':_0x351b54});}['_defineClickHandlers'](){const {editor:_0x3c3edf}=this,{editing:_0x23b95c}=_0x3c3edf;_0x3c3edf['editing']['view']['addObserver'](_0x38980f),_0x3c3edf['editing']['view']['addObserver'](_0x4d05aa);let _0x4e9eed=!0x1;this['listenTo'](_0x23b95c['view']['document'],'pointerdown',(_0x25e170,_0x456c15)=>{const {target:_0x3f27e0}=_0x456c15,_0x209da7=_0x23b95c['view']['document']['selection'];_0x4e9eed=!!(_0x3f27e0?.['is']('element','a')&&_0x3f27e0['parent']?.['is']('element','sup')&&_0x3f27e0['parent']['hasClass']('footnote'))&&_0x209da7['getSelectedElement']()===_0x3f27e0['parent'];},{'priority':'high'}),this['listenTo'](_0x23b95c['view']['document'],'click',(_0x4c252d,_0x317eae)=>{const {target:_0x5e5344}=_0x317eae;if(!_0x5e5344?.['is']('element','a'))return;if(_0x5e5344['parent']?.['is']('element','sup')&&_0x5e5344['parent']['hasClass']('footnote')&&!_0x4e9eed)return void _0x317eae['preventDefault']();let _0x2c5393=_0x5e5344['getAttribute']('href');if(!_0x2c5393?.['startsWith']('#'))return;_0x2c5393=_0x2c5393['slice'](0x1);let _0xf64182=!0x1;(_0x2c5393['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2c5393['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2c5393))&&(_0xf64182=!0x0),_0xf64182&&(_0x317eae['preventDefault'](),_0x4c252d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2e4cf8}={}){return(_0x59e27c,{writer:_0x61b49a})=>{if(!g(_0x59e27c))return null;if(!_0x2e4cf8)return _0x61b49a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x427ad5=_0x61b49a['createContainerElement']('p');return _0x61b49a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x427ad5),_0x427ad5;};}function g(_0x2fb53a){const {parent:_0x381e3a}=_0x2fb53a;if(!_0x381e3a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x381e3a['childCount'])return!0x1;for(const _0x3f9c8b of _0x2fb53a['getAttributeKeys']())if(!_0x3f9c8b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f9c8b)return!0x1;return!0x0;}function v(_0x22b6ef,_0x4eba3c){if(!_0x22b6ef['is']('element','paragraph'))return!0x1;const _0x47e535=_0x4eba3c['toViewElement'](_0x22b6ef);return!!_0x47e535&&g(_0x22b6ef)!==_0x47e535['is']('element','span');}function Q(_0xed5131){return _0x351b54(_0xed5131)&&_0xed5131['is']('containerElement')&&!!_0xed5131['getCustomProperty']('footnotesDefinitions');}function D(_0x1fff82,_0x394885={}){const _0x33bd1a=_0x1fff82['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1208bf=_0x1fff82['createContainerElement']('ol',{'class':'footnotes-list'},_0x1fff82['createSlot']());return _0x1fff82['createContainerElement']('div',{'class':'footnotes',..._0x394885},[_0x33bd1a,_0x1208bf]);}function b(_0x3de80e,_0x3512b4){const _0x695c97=_0x3de80e['getAttribute']('footnoteId'),_0x351207=_0x3de80e['getAttribute']('footnoteCounter'),_0x41d78a=_0x3512b4['createUIElement']('a',{'href':'#'+_0x695c97},function(_0x59b34b){const _0x11d2ae=this['toDomElement'](_0x59b34b);return _0x11d2ae['textContent']=_0x351207,_0x11d2ae;}),_0x18afa2=_0x3512b4['createContainerElement']('sup',{'id':'ref-'+_0x695c97,'class':'footnote'},[_0x41d78a]);return _0x18afa2['getFillerOffset']=()=>null,_0x18afa2;}function y(_0x25dcbb,_0x4d68e5,_0x347466,{dataPipeline:_0x5cd81e}={}){const {t:t}=_0x347466,_0x576ce0=_0x25dcbb['getAttribute']('footnoteId'),_0x1fcdd9=_0x4d68e5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x576ce0},function(_0x218e8f){const _0x537202=this['toDomElement'](_0x218e8f);return _0x537202['innerText']='^',_0x537202;}),_0x1f368f=_0x5cd81e?_0x4d68e5['createContainerElement']('div',{'class':'footnote-content'}):_0xe0b609(_0x4d68e5['createEditableElement']('div',{'class':'footnote-content'}),_0x4d68e5,{'label':t('Footnote\x20content.')});return _0x4d68e5['insert'](_0x4d68e5['createPositionAt'](_0x1f368f,0x0),_0x4d68e5['createSlot']()),_0x4d68e5['createContainerElement']('li',{'class':'footnote-definition','id':_0x576ce0},[_0x1fcdd9,_0x1f368f]);}class e extends _0x349802{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1a0391];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2a22f8}=this,{plugins:_0x1ac0e5,model:_0x46331c}=_0x2a22f8,_0xa05b50=_0x1ac0e5['get'](_0x1a0391),_0x1bb297=_0x1ac0e5['get'](f);this['listenTo'](_0xa05b50,'outputTransformation',(_0x5f8e71,_0x9a658)=>{const _0x51a591=l(_0x46331c['createRangeIn'](_0x9a658['content']));if(!_0x51a591['length'])return;const _0xd37e24=_0x1bb297['getFootnotes'](),_0x4cadb9=_0x51a591['reduce']((_0x54f37a,_0x4e4386)=>{const _0x9f7204=_0xd37e24['find'](_0x59490a=>_0x59490a['id']===_0x4e4386);if(_0x9f7204){const _0x59c337=_0x2a22f8['data']['toView'](_0x9f7204['definition'],{'isClipboardPipeline':!0x0}),_0x490ce2=_0x2a22f8['data']['htmlProcessor']['toData'](_0x59c337);_0x54f37a[_0x9f7204['id']]=_0x490ce2;}return _0x54f37a;},Object['create'](null));_0x9a658['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4cadb9));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x6080a4}=this,{model:_0xee134,plugins:_0x1fbd96}=_0x6080a4,{view:_0x4a0b37}=_0x6080a4['editing'],_0x2132a6=_0x1fbd96['get'](_0x1a0391),_0x5953c9=_0x1fbd96['get'](f),_0x1fba76=_0x6080a4['config']['get']('footnotes.multiBlock');let _0x23ea3c=null;this['listenTo'](_0x4a0b37['document'],'clipboardInput',(_0x26c2e6,_0x12200a)=>{const _0x9c46d0=_0x12200a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x23ea3c=_0x9c46d0?JSON['parse'](_0x9c46d0):null;}),this['listenTo'](_0x2132a6,'contentInsertion',(_0x5b0e35,_0x223b11)=>{const _0x36abc8=_0x223b11['sourceEditorId']===this['editor']['id'];_0x36abc8&&'drop'===_0x223b11['method']||_0xee134['change'](_0x2297e2=>{let _0x477b48=_0x5953c9['getFootnotesDefinitionsObjectElement']();const _0x451d75=!!_0x477b48&&Array['from'](_0xee134['document']['selection']['getSelectedBlocks']())['includes'](_0x477b48);if(!_0x23ea3c&&function(_0x47ffe5){for(const {item:_0x416f4f}of _0x47ffe5)if(_0x416f4f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0xee134['createRangeIn'](_0x223b11['content']))&&(_0x23ea3c=function(_0x5aa51e,_0x111b42){const _0x54fd84=c(_0x5aa51e,_0x111b42);if(!_0x54fd84)return null;const _0x20c32a=Object['create'](null);for(const _0x175576 of _0x54fd84['getChildren']())_0x175576['is']('element','footnoteDefinition')&&_0x175576['hasAttribute']('footnoteId')&&(_0x20c32a[_0x175576['getAttribute']('footnoteId')]=_0x5aa51e['cloneElement'](_0x175576,!0x0));return Object['keys'](_0x20c32a)['length']?_0x20c32a:null;}(_0x2297e2,_0x223b11['content'])),(_0x477b48&&!_0x451d75||!_0x477b48&&!_0x23ea3c)&&function(_0x54a676,_0xe81aef){const _0x3d3f6e=[];for(const {item:_0x1231d5}of _0x54a676['createRangeIn'](_0xe81aef))_0x1231d5['is']('element','footnotesDefinitions')&&_0x3d3f6e['push'](_0x1231d5);for(const _0x419e10 of _0x3d3f6e)_0x54a676['remove'](_0x419e10);}(_0x2297e2,_0x223b11['content']),!_0x23ea3c)return;const {selection:_0x5279d5}=_0xee134['document'],_0x7066e4=_0x5279d5['getFirstRange']()['root'];_0x477b48&&!_0x451d75||(_0x477b48=c(_0x2297e2,_0x223b11['content']),_0x477b48||=_0x5953c9['_insertEmptyFootnotesDefinitionsContainer'](_0x2297e2,_0x7066e4));const _0x19ee7a=Array['from'](_0x5279d5['getRanges']())['flatMap'](l),_0x3a829e=function(_0x596d4e,_0x11d7a0,_0x2ff816){const _0x2369ef=Object['create'](null);for(const {item:_0x1f2818}of _0x596d4e['createRangeIn'](_0x11d7a0))if(_0x1f2818['is']('element','footnoteRef')){const _0x2f743b=_0x1f2818['getAttribute']('footnoteId');if(!_0x2ff816(_0x2f743b))continue;_0x2369ef[_0x2f743b]||(_0x2369ef[_0x2f743b]=_0x2e5f04()),_0x596d4e['setAttribute']('footnoteId',_0x2369ef[_0x2f743b],_0x1f2818);}return _0x2369ef;}(_0x2297e2,_0x223b11['content'],_0x2a7532=>{if(!_0x36abc8)return!0x0;return!!_0x5953c9['getFootnote'](_0x2a7532)&&!_0x19ee7a['includes'](_0x2a7532);});for(const [_0x3d24eb,_0x16c50f]of Object['entries'](_0x23ea3c)){const _0x32fada=_0x3a829e[_0x3d24eb]||_0x3d24eb;let _0x4b1fc3;if('string'!=typeof _0x16c50f)_0x4b1fc3=_0x16c50f,_0x32fada!==_0x3d24eb&&_0x2297e2['setAttribute']('footnoteId',_0x32fada,_0x4b1fc3);else{_0x4b1fc3=_0x2297e2['createElement']('footnoteDefinition',{'footnoteId':_0x32fada});const _0x5d7084=_0x6080a4['data']['htmlProcessor']['toView'](_0x16c50f);let _0x3725d8;if(_0x1fba76)_0x3725d8=_0x6080a4['data']['toModel'](_0x5d7084,_0x4b1fc3);else{_0x3725d8=_0x2297e2['createElement']('footnoteInlineContent');const _0x2b2731=_0x6080a4['data']['toModel'](_0x5d7084,_0x3725d8);_0x2297e2['insert'](_0x2b2731,_0x3725d8);}_0x2297e2['append'](_0x3725d8,_0x4b1fc3);}_0x2297e2['insert'](_0x4b1fc3,_0x477b48,'end');}_0x23ea3c=null;});});}}function c(_0x52ae7b,_0x4e2a4e){for(const {item:_0x4c6355}of _0x52ae7b['createRangeIn'](_0x4e2a4e))if(_0x4c6355['is']('element','footnotesDefinitions'))return _0x4c6355;return null;}function l(_0x41d7a1){const _0x428c17=new Set();for(const {item:_0x2dc76e}of _0x41d7a1)_0x2dc76e['is']('element','footnoteRef')&&_0x428c17['add'](_0x2dc76e['getAttribute']('footnoteId'));return Array['from'](_0x428c17);}class i extends _0x349802{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x351223}=this,{componentFactory:_0x32d235}=_0x351223['ui'];_0x32d235['add']('insertFootnote',E(_0x351223,_0xa42a82)),_0x32d235['add']('menuBar:insertFootnote',E(_0x351223,_0x51fb0a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5be7e3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b2b50;for(const _0x1e849a in _0x5be7e3){const _0x531296=_0x1e849a,_0x293e62=_0x5be7e3[_0x531296];if('footnotesLicenseKeyValid'==_0x293e62||'footnotesLicenseKeyInvalid'==_0x293e62||'footnotesLicenseKeyExpired'==_0x293e62||'footnotesLicenseKeyDomainLimit'==_0x293e62||'footnotesLicenseKeyNotAllowed'==_0x293e62||'footnotesLicenseKeyEvaluationLimit'==_0x293e62||'footnotesLicenseKeyUsageLimit'==_0x293e62){delete _0x5be7e3[_0x531296],_0x2b2b50=_0x293e62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x21fc20,_0x6867f3){const _0x1299e4=_0x21fc20['commands']['get']('insertFootnote');return _0x2bba28=>{const {t:t}=_0x2bba28,_0x54ed5e=new _0x6867f3(_0x2bba28),_0x4fd2cd=_0x54ed5e instanceof _0x51fb0a;return _0x54ed5e['bind']('isEnabled')['to'](_0x1299e4,'isEnabled'),_0x54ed5e['set']({'label':t(_0x4fd2cd?'Footnote':'Insert\x20footnote'),'icon':_0x253764,'tooltip':!0x0}),_0x54ed5e['on']('execute',()=>{_0x1299e4['execute'](),_0x21fc20['editing']['view']['focus']();}),_0x54ed5e;};}class lt extends _0x349802{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x2110dd{['refresh'](){const {editor:_0x1c3157}=this,_0xc78bbe=_0x1c3157['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xc78bbe,this['value']=_0xc78bbe?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x78103d}){const {editor:_0x4d780a}=this,_0xa72ed9=_0x4d780a['plugins']['get'](f),_0x512ff6=_0xa72ed9['getFootnotesDefinitionsObjectElement']();_0x512ff6&&W['includes'](_0x78103d)&&_0x4d780a['model']['change'](_0x35296=>{_0x35296['setAttribute']('footnotesListStyle',_0x78103d,_0x512ff6),_0xa72ed9['_updateFootnotesCounters'](_0x35296);});}}class C extends _0x2110dd{['refresh'](){const {editor:_0x3fc41a}=this,_0x143610=_0x3fc41a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x143610,this['value']=_0x143610?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x74a147}){const {editor:_0x3e8a06}=this,_0x418b5d=_0x3e8a06['plugins']['get'](f),_0xcef2a2=_0x418b5d['getFootnotesDefinitionsObjectElement']();_0xcef2a2&&Number['isInteger'](_0x74a147)&&_0x3e8a06['model']['change'](_0x2f7ccd=>{_0x2f7ccd['setAttribute']('footnotesListStart',_0x74a147,_0xcef2a2),_0x418b5d['_updateFootnotesCounters'](_0x2f7ccd);});}}class P extends _0x349802{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ef417}=this;_0x5ef417['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5ef417['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5ef417['commands']['add']('footnotesStyle',new S(_0x5ef417)),_0x5ef417['commands']['add']('footnotesStart',new C(_0x5ef417)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2ed74a}=this,{schema:_0x4325de}=_0x2ed74a['model'];_0x4325de['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x227aa3}=this,{conversion:_0x82a6a7,model:_0x22d953}=_0x227aa3,{schema:_0x5dab00}=_0x22d953;_0x82a6a7['for']('upcast')['add'](_0x172085=>{_0x172085['on']('element:ol',(_0x3ab197,_0x5346d3,_0x49cc5f)=>{const _0x906082=_0x5346d3['viewItem'],_0x9e5bad=_0x5346d3['modelCursor']?.['parent'];_0x906082['hasClass']('footnotes-list')&&_0x9e5bad?.['is']('element','footnotesDefinitions')&&(function(_0x27ad72,_0x56edef,_0xffb906,_0x2e4b9f){if(!_0x2e4b9f['checkAttribute'](_0x56edef,'footnotesListStart'))return;let _0x4f67f3=0x1;const _0x39a801=_0xffb906['consumable']['consume'](_0x27ad72,{'attributes':'start'});if(_0x39a801){const _0x523aee=Number['parseInt'](_0x27ad72['getAttribute']('start'),0xa);Number['isNaN'](_0x523aee)||(_0x4f67f3=_0x523aee);}!_0x39a801&&_0x56edef['hasAttribute']('footnotesListStart')||_0xffb906['writer']['setAttribute']('footnotesListStart',_0x4f67f3,_0x56edef);}(_0x906082,_0x9e5bad,_0x49cc5f,_0x5dab00),function(_0x63e647,_0x494cd1,_0xc1ea9e,_0xce5749){if(!_0xce5749['checkAttribute'](_0x494cd1,'footnotesListStyle'))return;let _0x54ccdf='decimal',_0x318d3d=!0x1;if(_0xc1ea9e['consumable']['consume'](_0x63e647,{'attributes':'type'})){const _0x5e071b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x63e647['getAttribute']('type')];_0x5e071b&&(_0x54ccdf=_0x5e071b),_0x318d3d=!0x0;}_0xc1ea9e['consumable']['consume'](_0x63e647,{'styles':'list-style-type'})&&(_0x54ccdf=function(_0x516979){switch(_0x516979){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x516979;}}(_0x63e647['getStyle']('list-style-type')),_0x318d3d=!0x0),!_0x318d3d&&_0x494cd1['hasAttribute']('footnotesListStyle')||_0xc1ea9e['writer']['setAttribute']('footnotesListStyle',_0x54ccdf,_0x494cd1);}(_0x906082,_0x9e5bad,_0x49cc5f,_0x5dab00));});}),_0x82a6a7['for']('downcast')['add'](_0x7d00ae=>{_0x7d00ae['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1e2024,_0x5065c0,_0x4b8619)=>{if(!_0x4b8619['consumable']['consume'](_0x5065c0['item'],_0x1e2024['name']))return;const _0x10afbf=M(_0x5065c0['item'],_0x4b8619['mapper']),{attributeNewValue:_0x18dc0c}=_0x5065c0;null==_0x18dc0c||0x1===_0x18dc0c?_0x4b8619['writer']['removeAttribute']('start',_0x10afbf):_0x4b8619['writer']['setAttribute']('start',String(_0x18dc0c),_0x10afbf);}),_0x7d00ae['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x30cecc,_0xaa65a4,_0x37564c)=>{if(!_0x37564c['consumable']['consume'](_0xaa65a4['item'],_0x30cecc['name']))return;const _0x1ab74b=M(_0xaa65a4['item'],_0x37564c['mapper']),{attributeNewValue:_0x2056c3}=_0xaa65a4;_0x2056c3&&'decimal'!==_0x2056c3?_0x37564c['writer']['setStyle']('list-style-type',_0x2056c3,_0x1ab74b):_0x37564c['writer']['removeStyle']('list-style-type',_0x1ab74b);});});}['_definePostfixer'](){const {editor:_0x56a90b}=this,{model:_0x358e8e}=_0x56a90b,_0x4de18d=_0x56a90b['plugins']['get'](f),_0x58af9e=this['_getDefaultListStyle'](),_0x749cf8=this['_getDefaultStartIndex']();_0x358e8e['document']['registerPostFixer'](_0x886d7e=>{const _0x3b234e=_0x358e8e['document']['differ']['getChanges']();let _0x578328=!0x1;for(const _0x7e70f8 of _0x3b234e){if('insert'!==_0x7e70f8['type']||'$text'===_0x7e70f8['name'])continue;const _0x11117f=_0x358e8e['createRangeOn'](_0x7e70f8['position']['nodeAfter']);for(const _0x55a0ee of _0x11117f['getItems']())_0x55a0ee['is']('element','footnotesDefinitions')&&(!_0x55a0ee['hasAttribute']('footnotesListStart')&&_0x358e8e['schema']['checkAttribute'](_0x55a0ee,'footnotesListStart')&&(_0x886d7e['setAttribute']('footnotesListStart',_0x749cf8,_0x55a0ee),_0x578328=!0x0),!_0x55a0ee['hasAttribute']('footnotesListStyle')&&_0x358e8e['schema']['checkAttribute'](_0x55a0ee,'footnotesListStyle')&&(_0x886d7e['setAttribute']('footnotesListStyle',_0x58af9e,_0x55a0ee),_0x578328=!0x0));}return _0x578328&&_0x4de18d['_updateFootnotesCounters'](_0x886d7e),_0x578328;});}['_defineFormatter'](){const {editor:_0x42404e}=this;_0x42404e['plugins']['get'](f)['setFootnoteFormatter'](_0x47896e=>this['_formatFootnoteListValue'](_0x47896e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x399233,value:_0x252357,digits:_0x21d061}){const _0x34fafe=_0x399233['getAttribute']('footnotesListStyle'),_0x5e28b8=_0x399233['getAttribute']('footnotesListStart'),_0x1b946e=Math['floor'](_0x252357)+(_0x5e28b8??0x1)-0x1;switch(_0x34fafe){case'decimal-leading-zero':return function(_0x55280e,_0x1961a2){return String(_0x55280e)['padStart'](_0x1961a2,'0');}(_0x1b946e,Math['max'](0x2,_0x21d061));case'lower-alpha':case'lower-latin':return N(_0x1b946e,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1b946e,!0x0);case'lower-roman':return X(_0x1b946e,!0x1);case'upper-roman':return X(_0x1b946e,!0x0);default:return String(_0x1b946e);}}}function M(_0x201841,_0x4aba73){const _0x488b96=_0x4aba73['toViewElement'](_0x201841);return Array['from'](_0x488b96['getChildren']())['find'](_0x54c606=>_0x54c606['is']('element','ol')&&_0x54c606['hasClass']('footnotes-list'));}function N(_0x10dceb,_0x5a6a58){let _0x5e5b7e='',_0x397aac=_0x10dceb;for(;_0x397aac>0x0;){const _0x39ec60=(_0x397aac-0x1)%0x1a;_0x5e5b7e=String['fromCharCode'](0x61+_0x39ec60)+_0x5e5b7e,_0x397aac=Math['floor']((_0x397aac-0x1)/0x1a);}return _0x5a6a58?_0x5e5b7e['toUpperCase']():_0x5e5b7e;}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(_0x217e98,_0x18b1ee){let _0x418c88='',_0x4bff51=_0x217e98;for(const {value:_0x1d8d81,numeral:_0x574e3c}of V)for(;_0x4bff51>=_0x1d8d81;)_0x418c88+=_0x574e3c,_0x4bff51-=_0x1d8d81;return _0x18b1ee?_0x418c88:_0x418c88['toLowerCase']();}class J extends _0x3a8c93{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2aec16();['focusCycler'];constructor(_0x401594,{styleButtonViews:_0x5edc50,styleGridAriaLabel:_0x3ca581}){super(_0x401594),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5edc50,_0x3ca581),[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 _0x4664cb of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4664cb['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4146f3=_0x33d95d=>_0x33d95d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4146f3),this['keystrokes']['set']('arrowleft',_0x4146f3),this['keystrokes']['set']('arrowup',_0x4146f3),this['keystrokes']['set']('arrowdown',_0x4146f3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x44c705,_0x2f6124){const _0x136fe2=new _0x3a8c93(this['locale']);return _0x136fe2['children']=_0x136fe2['createCollection'](),_0x136fe2['children']['addMany'](_0x44c705),_0x136fe2['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2f6124,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x136fe2['children']}),_0x136fe2['children']['delegate']('execute')['to'](this),_0x136fe2['focus']=function(){for(const _0x3d0013 of this['children'])if(_0x3d0013 instanceof _0xa42a82&&_0x3d0013['isOn'])return void _0x3d0013['focus']();this['children']['first']['focus']();},_0x136fe2['focusTracker']=new rt(),_0x136fe2['keystrokes']=new nt(),_0x136fe2['render'](),_0x136fe2['keystrokes']['listenTo'](_0x136fe2['element']),this['children']['add'](_0x136fe2),_0x136fe2;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x29312d=this['_createStartIndexPropertyView'](),_0x17c204=[_0x29312d],_0x45be8a=new it(this['locale'],_0x17c204);return _0x45be8a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x45be8a['buttonView']['bind']('isEnabled')['toMany'](_0x17c204,'isEnabled',(..._0x3ed166)=>_0x3ed166['some'](_0x3ec221=>_0x3ec221)),_0x45be8a['buttonView']['on']('change:isEnabled',(_0x35091b,_0x22730c,_0x136b97)=>{_0x136b97||(_0x45be8a['isCollapsed']=!0x0);}),this['children']['add'](_0x45be8a),[_0x29312d,_0x45be8a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xf2c16b=new et(this['locale'],ot);return _0xf2c16b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xf2c16b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xf2c16b['fieldView']['on']('input',()=>{const _0x1f2f1a=_0xf2c16b['fieldView']['element'],_0x136c17=_0x1f2f1a['valueAsNumber'];Number['isNaN'](_0x136c17)?_0xf2c16b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1f2f1a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x136c17}):_0xf2c16b['errorText']=t(_0x136c17<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xf2c16b;}}class j extends _0x349802{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1571f7,_0x4455ce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2da154}=this,{componentFactory:_0x42ac84}=_0x2da154['ui'];_0x2da154['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x42ac84['add']('footnotesStyle',function(_0x48af93){return _0x10321d=>{const {t:t}=_0x10321d,_0x403e29=_0x48af93['commands']['get']('footnotesStyle'),_0x1e9da7=_0x2b7949(_0x10321d),{buttonView:_0x188da0}=_0x1e9da7;return _0x1e9da7['class']='ck-footnotes-styles-dropdown',_0x1e9da7['bind']('isEnabled')['to'](_0x403e29,'isEnabled'),_0x188da0['set']({'label':t('Footnotes\x20style'),'icon':_0x253764,'tooltip':!0x0}),_0x1e9da7['once']('change:isOpen',()=>{const _0x233e04=function({editor:_0x4ffb8f,dropdownView:_0x40ef55}){const {t:t}=_0x4ffb8f['locale'],_0xfc98e4=t('Footnotes\x20definitions\x20styles'),_0x2a7a6a=function(_0x7eeeed){const t=_0x7eeeed['locale']['t'],_0x503b96=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1cc222},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x37a66c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38bc6f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5b8e00},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x300a50},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5f0855}];return _0x503b96['map'](function(_0x2b6704){const _0x393752=_0x2b6704['locale'];return({label:_0x59143f,icon:_0x3984d3,tooltip:_0x26d296,style:_0x4abb8b})=>{const _0x22747c=_0x2b6704['commands']['get']('footnotesStyle'),_0xaedc4c=new _0xa42a82(_0x393752);return _0xaedc4c['set']({'label':_0x59143f,'icon':_0x3984d3,'tooltip':_0x26d296}),_0xaedc4c['bind']('isOn')['to'](_0x22747c,'value',_0x431725=>_0x431725===_0x4abb8b),_0xaedc4c['bind']('isEnabled')['to'](_0x22747c,'isEnabled'),_0xaedc4c['on']('execute',()=>{_0x2b6704['execute']('footnotesStyle',{'value':_0x4abb8b}),_0x2b6704['editing']['view']['focus']();}),_0xaedc4c;};}(_0x7eeeed));}(_0x4ffb8f),_0x43b627=new J(_0x4ffb8f['locale'],{'styleGridAriaLabel':_0xfc98e4,'styleButtonViews':_0x2a7a6a}),_0x549bfb=_0x4ffb8f['commands']['get']('footnotesStart');return _0x43b627['startIndexFieldView']['bind']('isEnabled')['to'](_0x549bfb),_0x43b627['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x549bfb),_0x43b627['on']('footnotesListStart',(_0x1f5381,_0x4562f2)=>{_0x4ffb8f['execute']('footnotesStart',{'value':_0x4562f2['startIndex']});}),_0x43b627['delegate']('execute')['to'](_0x40ef55),_0x43b627;}({'editor':_0x48af93,'dropdownView':_0x1e9da7});_0x1e9da7['panelView']['children']['add'](_0x233e04);}),_0x1e9da7;};}(_0x2da154));}['afterInit'](){const {editor:_0x508fbc}=this,{t:t}=_0x508fbc['locale'],_0x3fee8a=_0x508fbc['plugins']['get'](_0x4455ce),{defaultPositions:_0x362c6f}=_0x6ed29;_0x3fee8a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x508fbc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x532914=>{let _0x427d30=_0x532914['getFirstPosition']()?.['parent'];return _0x427d30?.['is']('$text')&&(_0x427d30=_0x427d30['parent']),_0x427d30?.['is']('element')?_0x427d30['findAncestor'](Q):null;},'positions':[_0x362c6f['southArrowNorth'],_0x362c6f['southArrowNorthMiddleWest'],_0x362c6f['southArrowNorthMiddleEast'],_0x362c6f['southArrowNorthWest'],_0x362c6f['southArrowNorthEast'],_0x362c6f['northArrowSouth'],_0x362c6f['northArrowSouthMiddleWest'],_0x362c6f['northArrowSouthMiddleEast'],_0x362c6f['northArrowSouthWest'],_0x362c6f['northArrowSouthEast'],_0x362c6f['viewportStickyNorth']]});}}class ft extends _0x349802{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x28ad1a,Command as _0x5958dd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x405142,isWidget as _0xf54cfb,toWidgetEditable as _0x26e123,WidgetToolbarRepository as _0x46b3ea}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1ab937,logWarning as _0x45e170,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x43b852,ClickObserver as _0xef81ac}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x9bd623}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4770d4,ButtonView as _0x386d83,View as _0x36d4e0,ViewCollection as _0x121f84,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0xdfabb8,BalloonPanelView as _0x3b35f0,createDropdown as _0x297dae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3c632d,IconListStyleDecimal as _0x45c6ef,IconListStyleDecimalLeadingZero as _0x2fdb02,IconListStyleLowerRoman as _0x2fd9e2,IconListStyleUpperRoman as _0x511099,IconListStyleLowerLatin as _0x45b2e7,IconListStyleUpperLatin as _0x12d59a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3cde04,_0x170f5e){this['_model']=_0x3cde04,this['_elementName']=_0x170f5e['elementName'],this['_getElementKey']=_0x170f5e['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x15b2e0){const _0x3dc075=new Set(),_0x539e02=new Map();for(const _0x3daa50 of _0x15b2e0){if('insert'===_0x3daa50['type']&&'$text'!==_0x3daa50['name']&&_0x3daa50['position']['nodeAfter']){const _0x427016=this['_model']['createRangeOn'](_0x3daa50['position']['nodeAfter']);for(const _0x2d55ac of _0x427016['getItems']()){if(!_0x2d55ac['is']('element',this['_elementName']))continue;const _0x34312a=this['_getElementKey'](_0x2d55ac);_0x539e02['has'](_0x34312a)||_0x539e02['set'](_0x34312a,[]),_0x539e02['get'](_0x34312a)['push'](_0x2d55ac);}}if('remove'===_0x3daa50['type']&&_0x3daa50['name']===this['_elementName']){const _0x34633a=this['_getElementKey']({'getAttribute':_0x318347=>_0x3daa50['attributes']['get'](_0x318347)});_0x3dc075['add'](_0x34633a);}}for(const [_0x2ff0d8,_0x30bf89]of this['_trackedElements'])'$graveyard'===_0x30bf89['root']['rootName']&&_0x3dc075['add'](_0x2ff0d8);for(const _0x5babe5 of _0x3dc075)this['_trackedElements']['delete'](_0x5babe5);for(const [_0x22d388,_0x23822e]of _0x539e02)this['_trackedElements']['set'](_0x22d388,_0x23822e[_0x23822e['length']-0x1]);const _0x1124d9=new Set();for(const [_0x32851d,_0x47b793]of _0x539e02)_0x3dc075['has'](_0x32851d)&&(_0x1124d9['add'](_0x47b793[0x0]),_0x47b793['length']>0x1?_0x539e02['set'](_0x32851d,_0x47b793['slice'](0x1)):_0x539e02['delete'](_0x32851d),_0x3dc075['delete'](_0x32851d));return{'removed':Array['from'](_0x3dc075),'inserted':Array['from'](_0x539e02['values']())['flat'](),'moved':Array['from'](_0x1124d9)};}}class f extends _0x28ad1a{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ed50f){super(_0x2ed50f),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x20bb66=>_0x20bb66['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2c2b9f=>_0x2c2b9f['getAttribute']('footnoteId')});}['init'](){const {editor:_0x22a848}=this,{model:_0x44f8cc,data:_0x2f17f9}=_0x22a848;_0x44f8cc['document']['registerPostFixer'](_0x63cfa8=>{const _0x3f2021=_0x44f8cc['document']['differ']['getChanges']();let _0x1b01d3=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x63cfa8,_0x3f2021)&&(_0x1b01d3=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x63cfa8,_0x3f2021)&&(_0x1b01d3=!0x0),this['_handleFootnoteReferencesChanges'](_0x63cfa8,_0x3f2021)&&(_0x1b01d3=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x63cfa8)&&(_0x1b01d3=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x63cfa8)&&(_0x1b01d3=!0x0),this['_sortFootnoteDefinitions'](_0x63cfa8)&&(_0x1b01d3=!0x0),_0x1b01d3;}),this['listenTo'](_0x44f8cc['document'],'change:data',()=>{_0x44f8cc['enqueueChange']({'isUndoable':!0x1},_0x12a011=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x12a011);});},{'priority':'low'}),this['listenTo'](_0x2f17f9,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4057ac){return this['_footnotes']['find'](_0x234fbf=>_0x234fbf['id']===_0x4057ac)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5e4a8e){this['_footnoteFormatter']=_0x5e4a8e;}['_updateFootnotesCounters'](_0x1a5d73,_0x46e7ac=0x0){let _0x396d67=!0x1;for(let _0x4cfefa=_0x46e7ac;_0x4cfefa<this['_footnotes']['length'];_0x4cfefa++)this['_updateFootnoteRefCounter'](_0x1a5d73,_0x4cfefa)&&(_0x396d67=!0x0);return _0x396d67;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1351a4,_0x10c5d4){const _0x493107=_0x1351a4['createElement']('footnotesDefinitions',{});return _0x1351a4['append'](_0x493107,_0x10c5d4),this['_footnotesDefinitions']=_0x493107,_0x493107;}['_ensureFootnotesDefinitionsContainerExists'](_0x1bc8da){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x9f1838=this['_footnotes'][0x0]['reference']['root'],_0x102e6d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1bc8da,_0x9f1838);for(const _0x1a16fa of this['_footnotes'])_0x1a16fa['definition']['parent']||_0x1bc8da['insert'](_0x1a16fa['definition'],_0x102e6d,'end');this['_updateFootnotesCounters'](_0x1bc8da);}['_handleFootnotesDefinitionsObjectChanges'](_0x67c91,_0x1a1ea5){let _0x4d29b1=!0x1;const {inserted:_0x3c3570,removed:_0x311f15,moved:_0xbdc6cc}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1a1ea5);if(_0xbdc6cc['length']&&(this['_footnotesDefinitions']=_0xbdc6cc[0x0]),_0x3c3570['length']){if(_0x3c3570['length']>0x1||this['_footnotesDefinitions']&&_0x3c3570['some'](_0x36b037=>_0x36b037!==this['_footnotesDefinitions'])){const _0x445564=_0x67c91['createElement']('footnotesDefinitions',{}),_0x35cf51=[];this['_footnotesDefinitions']&&_0x35cf51['push'](this['_footnotesDefinitions']),_0x35cf51['push'](..._0x3c3570),_0x67c91['insert'](_0x445564,_0x35cf51[0x0],'before');for(const _0x3d8e85 of _0x35cf51)_0x67c91['move'](_0x67c91['createRangeIn'](_0x3d8e85),_0x67c91['createPositionAt'](_0x445564,'end')),_0x67c91['remove'](_0x3d8e85);this['_footnotesDefinitions']=_0x445564,this['_updateFootnotesCounters'](_0x67c91),_0x4d29b1=!0x0;}else this['_footnotesDefinitions']=_0x3c3570[0x0];}if(_0x311f15['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2e0d65 of this['_footnotes'])_0x67c91['remove'](_0x2e0d65['reference']),_0x4d29b1=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4d29b1;}['_handleFootnoteDefinitionsChanges'](_0x17d400,_0x4a76ed){let _0xd752e2=!0x1;const _0x4436d5=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4b9c22,moved:_0x172850}=this['_footnoteDefsTracker']['getChanges'](_0x4a76ed);for(const _0x102a11 of[..._0x172850,..._0x4b9c22]){const _0x3655c9=_0x102a11['getAttribute']('footnoteId'),_0x449bd0=this['getFootnote'](_0x3655c9);_0x449bd0&&(_0x449bd0['definition']=_0x102a11),_(_0x17d400,_0x4436d5,_0x102a11)&&(_0xd752e2=!0x0);}return _0xd752e2;}['_handleFootnoteReferencesChanges'](_0x26b595,_0x2bdda2){let _0xbe4610=!0x1;const {removed:_0x562551,inserted:_0x25940a,moved:_0x36942c}=this['_footnoteRefsTracker']['getChanges'](_0x2bdda2);for(const _0x177dd3 of _0x562551)this['_handleRemoveFootnoteReferenceById'](_0x26b595,_0x177dd3)&&(_0xbe4610=!0x0);for(const _0x299229 of _0x25940a)this['_handleInsertedFootnoteReference'](_0x26b595,_0x299229)&&(_0xbe4610=!0x0);for(const _0x5b2944 of _0x36942c)this['_handleMovedFootnoteReference'](_0x26b595,_0x5b2944)&&(_0xbe4610=!0x0);return _0xbe4610;}['_handleFootnotesDefinitionsObjectSync'](_0x33394c){if(!this['_footnotesDefinitions'])return!0x1;let _0x4a30c6=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5bc239=[];for(const _0x4b5408 of this['_footnotesDefinitions']['getChildren']()){const _0x4fb00f=_0x4b5408['getAttribute']('footnoteId');this['getFootnote'](_0x4fb00f)||(_0x5bc239['unshift'](_0x4b5408),_0x4a30c6=!0x0);}for(const _0xe8a7da of _0x5bc239)_0x33394c['remove'](_0xe8a7da);}const _0x1d1f4f=new Set(),_0x400659=[];for(const _0x201690 of this['_footnotesDefinitions']['getChildren']()){const _0x14984b=_0x201690['getAttribute']('footnoteId');_0x1d1f4f['has'](_0x14984b)?(_0x400659['unshift'](_0x201690),_0x4a30c6=!0x0):_0x1d1f4f['add'](_0x14984b);}for(const _0x585d90 of _0x400659)_0x33394c['remove'](_0x585d90);return this['_footnotesDefinitions']['childCount']||(_0x33394c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4a30c6=!0x0),_0x4a30c6;}['_handleInsertedFootnoteReference'](_0x5b220b,_0x5198d2){if(this['_footnotes']['find'](_0x8a70ac=>_0x8a70ac['reference']===_0x5198d2))return!0x1;let _0x4f1a43=!0x1;const _0x20bb7f=_0x5198d2['getAttribute']('footnoteId'),_0x465914=this['_footnotes']['findIndex'](_0x55a912=>_0x55a912['id']===_0x20bb7f);-0x1!==_0x465914&&(_0x5b220b['remove'](this['_footnotes'][_0x465914]['reference']),this['_footnotes']['splice'](_0x465914,0x1),_0x4f1a43=!0x0);let _0x38163c=this['_footnotesDefinitions']?function(_0x57a29d,_0x5674cb){for(const _0x464196 of _0x57a29d['getChildren']())if(_0x464196['getAttribute']('footnoteId')===_0x5674cb)return _0x464196;return null;}(this['_footnotesDefinitions'],_0x20bb7f):null;_0x38163c||(_0x38163c=_0x5b220b['createElement']('footnoteDefinition',{'footnoteId':_0x20bb7f}),this['_footnotesDefinitions']&&(_0x5b220b['insert'](_0x38163c,this['_footnotesDefinitions'],'end'),_0x4f1a43=!0x0));const _0x54aa43={'id':_0x20bb7f,'reference':_0x5198d2,'definition':_0x38163c},_0x361401=I(this['editor']['model'],this['_footnotes'],_0x5198d2);this['_footnotes']['splice'](_0x361401,0x0,_0x54aa43);let _0x3790bf=_0x361401;return-0x1!==_0x465914&&(_0x3790bf=Math['min'](_0x361401,_0x465914)),this['_updateFootnotesCounters'](_0x5b220b,_0x3790bf)&&(_0x4f1a43=!0x0),_0x4f1a43;}['_handleRemoveFootnoteReferenceById'](_0x342df9,_0x51383a){const _0x35f414=this['_footnotes']['findIndex'](_0x4318a5=>_0x4318a5['id']===_0x51383a);if(-0x1===_0x35f414)return!0x1;let _0x31fc3c=!0x1;const _0x172ab3=this['_footnotes'][_0x35f414];return'$graveyard'!==_0x172ab3['definition']['root']['rootName']&&(_0x342df9['remove'](_0x172ab3['definition']),_0x31fc3c=!0x0),this['_footnotes']['splice'](_0x35f414,0x1),this['_updateFootnotesCounters'](_0x342df9,_0x35f414)&&(_0x31fc3c=!0x0),_0x31fc3c;}['_handleMovedFootnoteReference'](_0x5717de,_0x4743ce){const _0x46a6f5=_0x4743ce['getAttribute']('footnoteId'),_0x1f7db6=this['_footnotes']['findIndex'](_0x400675=>_0x400675['id']===_0x46a6f5),_0x1153fe=this['_footnotes'][_0x1f7db6];let _0x378773=!0x1;_0x1153fe['reference']=_0x4743ce,this['_footnotes']['splice'](_0x1f7db6,0x1);const _0x1cf82a=I(this['editor']['model'],this['_footnotes'],_0x4743ce);return this['_footnotes']['splice'](_0x1cf82a,0x0,_0x1153fe),this['_updateFootnotesCounters'](_0x5717de,Math['min'](_0x1f7db6,_0x1cf82a))&&(_0x378773=!0x0),_0x378773;}['_updateFootnoteRefCounter'](_0x6d68e0,_0x4eeec5){if(!this['_footnotesDefinitions'])return!0x1;const _0x4807ec=this['_footnotes'][_0x4eeec5];let _0x301068;return _0x301068=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x4807ec,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4eeec5+0x1}):String(_0x4eeec5+0x1),_0x4807ec['reference']['getAttribute']('footnoteCounter')!=_0x301068&&(_0x6d68e0['setAttribute']('footnoteCounter',_0x301068,_0x4807ec['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4aa10d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x297bb4,_0x4cc2e5){if(_0x297bb4['length']!==_0x4cc2e5['length'])return!0x1;for(let _0x2b60dd=0x0;_0x2b60dd<_0x297bb4['length'];_0x2b60dd++)if(_0x297bb4[_0x2b60dd]!==_0x4cc2e5[_0x2b60dd])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x384b6b=>_0x384b6b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2c5107=>_0x2c5107['getAttribute']('footnoteId'))))return!0x1;let _0x5b55f6=!0x1;for(let _0x15ac8c=0x0;_0x15ac8c<this['_footnotes']['length'];_0x15ac8c++){const _0x3d95a6=this['_footnotes'][_0x15ac8c],_0x2f74f2=_0x4aa10d['createPositionBefore'](_0x3d95a6['definition']),_0x217691=_0x4aa10d['createPositionAt'](this['_footnotesDefinitions'],_0x15ac8c);_0x2f74f2['isEqual'](_0x217691)||(_0x4aa10d['move'](_0x4aa10d['createRangeOn'](_0x3d95a6['definition']),_0x217691),_0x5b55f6=!0x0);}return _0x5b55f6;}['_ensureFootnotesReferencesHaveProperOrder'](_0x189a37){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2d6f6e}=this['editor'];let _0x244115=!0x1;for(let _0x214924=0x0;_0x214924<this['_footnotes']['length']-0x1;_0x214924++){const _0x208879=this['_footnotes'][_0x214924],_0x561c7c=this['_footnotes'][_0x214924+0x1],_0x4bf9f9=_0x2d6f6e['createPositionBefore'](_0x208879['reference']),_0x4235f8=_0x2d6f6e['createPositionBefore'](_0x561c7c['reference']);'after'===_0x4bf9f9['compareWith'](_0x4235f8)&&(this['_handleMovedFootnoteReference'](_0x189a37,_0x208879['reference']),_0x214924=-0x1,_0x244115=!0x0);}return _0x244115;}}function _(_0x26f5fb,_0x547ded,_0x50c12e){if(_0x50c12e['childCount'])return!0x1;const _0x5e40ee=_0x547ded?'paragraph':'footnoteInlineContent';return _0x26f5fb['insert'](_0x26f5fb['createElement'](_0x5e40ee),_0x50c12e),!0x0;}function I(_0x32e346,_0xfa9e21,_0x5b7419){if(0x0===_0xfa9e21['length'])return 0x0;const _0x8ffc9f=_0x32e346['createPositionBefore'](_0x5b7419);for(let _0xaf7995=0x0;_0xaf7995<_0xfa9e21['length'];_0xaf7995++){const _0x516855=_0xfa9e21[_0xaf7995],_0x177fe4=_0x32e346['createPositionBefore'](_0x516855['reference']);if('before'===_0x8ffc9f['compareWith'](_0x177fe4))return _0xaf7995;}const _0x11376a=_0x5b7419['root'];let _0xc055a7=-0x1;for(let _0x573549=_0xfa9e21['length']-0x1;_0x573549>=0x0;_0x573549--)if(_0xfa9e21[_0x573549]['reference']['root']===_0x11376a){_0xc055a7=_0x573549;break;}if(-0x1!==_0xc055a7)return _0xc055a7+0x1;const _0x42681c=_0x32e346['document']['getRootNames'](),_0xa19060=_0x42681c['indexOf'](_0x11376a['rootName']),_0x235691=_0x42681c[_0xa19060+0x1];if(_0x235691){for(let _0x300093=0x0;_0x300093<_0xfa9e21['length'];_0x300093++)if(_0xfa9e21[_0x300093]['reference']['root']['rootName']===_0x235691)return _0x300093;}return _0xfa9e21['length'];}class h extends _0x5958dd{['refresh'](){const _0xa2f7e2=this['editor']['model']['document']['selection'],_0x57873b=this['_getPositionToInsertFootnote'](_0xa2f7e2);this['isEnabled']=!!_0x57873b;}['execute'](_0x33b9ef){const {editor:_0x4a71cd}=this,{model:_0x1a51c7}=_0x4a71cd,{selection:_0x40e9d9}=_0x1a51c7['document'],_0x5dcb94=this['_getPositionToInsertFootnote'](_0x40e9d9);if(!_0x5dcb94)return;const _0x1d9d08=_0x4a71cd['plugins']['get']('FootnotesEditing'),_0x415aad=_0x33b9ef?.['footnoteId']??_0x1ab937();!function(_0x3aebc9){return'string'==typeof _0x3aebc9&&_0x3aebc9['length']>0x0&&!/\s/['test'](_0x3aebc9)&&!/^\d/['test'](_0x3aebc9);}(_0x415aad)?_0x45e170('insert-footnote-command-executed-with-invalid-id'):(_0x1a51c7['change'](_0x3f35fd=>{const _0x4ef75e=_0x3f35fd['createElement']('footnoteRef',{'footnoteId':_0x415aad});_0x1a51c7['insertObject'](_0x4ef75e,_0x5dcb94,null);}),_0x1d9d08['_moveSelectionToFootnoteDefinition'](_0x415aad));}['_getPositionToInsertFootnote'](_0x5e6835){const {model:_0x443f2a}=this['editor'],{schema:_0x1a4252}=_0x443f2a,_0x5aa1b0=_0x5e6835['getFirstRange']();for(const _0x4fcd53 of _0x5aa1b0['getItems']())if(_0x1a4252['isBlock'](_0x4fcd53)||_0x1a4252['isObject'](_0x4fcd53))return null;const _0x45004f=_0x5aa1b0['end'];return _0x1a4252['checkChild'](_0x45004f,'footnoteRef')?_0x45004f:null;}}class r extends _0x28ad1a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31f1af}=this;_0x31f1af['config']['define']('footnotes.multiBlock',!0x0),_0x31f1af['commands']['add']('insertFootnote',new h(_0x31f1af)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3720ec){const _0x219d10=_0xe0ebb6([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]),_0x46dd1f=0x47a28506,_0x1b7a6d=0x47a5fbce^_0x46dd1f,_0x14330c=window[_0xe0ebb6([0x44,0x61,0x74,0x65])][_0xe0ebb6([0x6e,0x6f,0x77])](),_0x2f1fa7=_0x3720ec[_0xe0ebb6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x347f70=new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe6f244=>{_0x2f1fa7[_0xe0ebb6([0x6f,0x6e,0x63,0x65])](_0xe0ebb6([0x72,0x65,0x61,0x64,0x79]),_0xe6f244);}),_0x2bc2a2={[_0xe0ebb6([0x6b,0x74,0x79])]:_0xe0ebb6([0x45,0x43]),[_0xe0ebb6([0x75,0x73,0x65])]:_0xe0ebb6([0x73,0x69,0x67]),[_0xe0ebb6([0x63,0x72,0x76])]:_0xe0ebb6([0x50,0x2d,0x32,0x35,0x36]),[_0xe0ebb6([0x78])]:_0xe0ebb6([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]),[_0xe0ebb6([0x79])]:_0xe0ebb6([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]),[_0xe0ebb6([0x61,0x6c,0x67])]:_0xe0ebb6([0x45,0x53,0x32,0x35,0x36])},_0x553e95=_0x2f1fa7[_0xe0ebb6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe0ebb6([0x67,0x65,0x74])](_0xe0ebb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe20372(){let _0x161bdf,_0x497b83=null,_0x43a7f4=null;try{if(_0x553e95==_0xe0ebb6([0x47,0x50,0x4c]))return _0xe0ebb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x161bdf=_0x49c3d9(),!_0x161bdf)return _0xe0ebb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x161bdf[_0xe0ebb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43a7f4=_0x4f299f(_0x161bdf[_0xe0ebb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x161bdf[_0xe0ebb6([0x6a,0x74,0x69])])),await _0x5aa891()?_0x2361cd()?_0x5593f7()?_0xe0ebb6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x710867()?(_0x161bdf[_0xe0ebb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0ebb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x497b83=_0x12bf4b(_0xe0ebb6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31af84()):_0xe0ebb6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe0ebb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe0ebb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe0ebb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5593f7(){const _0x1b1267=[_0xe0ebb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe0ebb6([0x74,0x72,0x69,0x61,0x6c])][_0xe0ebb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161bdf[_0xe0ebb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14330c/0x3e8:0xe10*_0x1b7a6d;return _0x161bdf[_0xe0ebb6([0x65,0x78,0x70])]<_0x1b1267;}function _0x2361cd(){const _0x274213=_0x161bdf[_0xe0ebb6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x274213&&(!!_0x274213[_0xe0ebb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0ebb6([0x2a]))||!!_0x274213[_0xe0ebb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0ebb6([0x46,0x4f,0x4f])));}function _0x710867(){const _0x2898c8=_0x161bdf[_0xe0ebb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2898c8||0x0==_0x2898c8[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15fb2d}=new URL(window[_0xe0ebb6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2898c8[_0xe0ebb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fb2d))return!0x0;const _0x574fc6=_0x15fb2d[_0xe0ebb6([0x73,0x70,0x6c,0x69,0x74])](_0xe0ebb6([0x2e]));return _0x2898c8[_0xe0ebb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb39dbf=>_0xb39dbf[_0xe0ebb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0ebb6([0x2a])))[_0xe0ebb6([0x6d,0x61,0x70])](_0x4d7bd2=>_0x4d7bd2[_0xe0ebb6([0x73,0x70,0x6c,0x69,0x74])](_0xe0ebb6([0x2e])))[_0xe0ebb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fabc2=>_0x4fabc2[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x574fc6[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe0ebb6([0x6d,0x61,0x70])](_0x4f8a88=>Array(_0x574fc6[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f8a88[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe0ebb6([0x66,0x69,0x6c,0x6c])](_0x4f8a88[0x0]===_0xe0ebb6([0x2a])?_0xe0ebb6([0x2a]):'')[_0xe0ebb6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f8a88))[_0xe0ebb6([0x73,0x6f,0x6d,0x65])](_0x1270ff=>_0x574fc6[_0xe0ebb6([0x65,0x76,0x65,0x72,0x79])]((_0x60ad94,_0xa02373)=>_0x1270ff[_0xa02373]===_0x60ad94||_0x1270ff[_0xa02373]===_0xe0ebb6([0x2a])));}function _0x31af84(){return _0x497b83&&_0x43a7f4?new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15694c,_0x170103)=>{_0x497b83[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x15694c,_0x170103),_0x43a7f4[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x295b1b=>{_0x295b1b!=_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64])&&_0x15694c(_0x295b1b);},_0x170103);}):_0x497b83||_0x43a7f4||_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f299f(_0x480db7,_0x1a7f98){return new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c693=>{if(_0x206b35())return _0x36c693(_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64]));_0xc2747c(),_0x2f1fa7[_0xe0ebb6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe0ebb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x356087=!0x1;const _0x45820a=_0x1ab937();function _0x232ae8(_0x34ce34){return!!_0x34ce34&&(typeof _0x34ce34===_0xe0ebb6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34ce34===_0xe0ebb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34ce34[_0xe0ebb6([0x74,0x68,0x65,0x6e])]===_0xe0ebb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34ce34[_0xe0ebb6([0x63,0x61,0x74,0x63,0x68])]===_0xe0ebb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xab29a2(_0x4dd6ad){_0x568743(_0x4dd6ad)[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x41b75f=>{if(!_0x41b75f||_0x41b75f[_0xe0ebb6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe0ebb6([0x6f,0x6b]))return _0xe0ebb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5730ce(_0x2b6c5b(_0x45820a+_0x1a7f98))!=_0x41b75f[_0xe0ebb6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe0ebb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64]);})[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x4b5188=>(_0x5e70bd(),_0x4b5188),()=>{const _0x5bbdd1=_0x447db9();return null==_0x5bbdd1?(_0x5e70bd(),_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64])):_0xe0ebb6(_0x14330c-_0x5bbdd1>(0x63ae0106^_0x46dd1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x36c693)[_0xe0ebb6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36c693(_0xe0ebb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59840c=0x47946b86^_0x46dd1f;function _0x5e70bd(){const _0x4c01da=_0xe0ebb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5730ce(_0x2b6c5b(_0x480db7)),_0x5bba4d=_0x504ef9(_0x5730ce(window[_0xe0ebb6([0x4d,0x61,0x74,0x68])][_0xe0ebb6([0x63,0x65,0x69,0x6c])](_0x14330c/_0x59840c)));window[_0xe0ebb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0ebb6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c01da,_0x5bba4d);}function _0x447db9(){const _0x513973=_0xe0ebb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5730ce(_0x2b6c5b(_0x480db7)),_0x38fdf4=window[_0xe0ebb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0ebb6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x513973);return _0x38fdf4?window[_0xe0ebb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504ef9(_0x38fdf4),0x10)*_0x59840c:null;}function _0x568743(_0x24a68e){return new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15ad6c,_0x64a213)=>{_0x24a68e[_0xe0ebb6([0x74,0x68,0x65,0x6e])](_0x15ad6c,_0x64a213),window[_0xe0ebb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x64a213,0x47a351c6^_0x46dd1f);});}}_0x2f1fa7[_0xe0ebb6([0x6f,0x6e])](_0xe0ebb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xeaa13a,_0x579df4)=>{if(_0x579df4[0x0]!=_0x480db7)return _0x36c693(_0xe0ebb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x579df4[0x1]={..._0x579df4[0x1],[_0xe0ebb6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45820a};},{[_0xe0ebb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0ebb6([0x68,0x69,0x67,0x68])}),_0x2f1fa7[_0xe0ebb6([0x6f,0x6e])](_0xe0ebb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbbab21=>{_0x232ae8(_0xbbab21[_0xe0ebb6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x356087=!0x0,_0xab29a2(_0xbbab21[_0xe0ebb6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe0ebb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0ebb6([0x6c,0x6f,0x77])}),_0x347f70[_0xe0ebb6([0x74,0x68,0x65,0x6e])](()=>{_0x356087||_0x36c693(_0xe0ebb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x206b35(){return _0x2f1fa7[_0xe0ebb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0ebb6([0x76,0x69,0x65,0x77])][_0xe0ebb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe0ebb6([0x61,0x75,0x74,0x6f]);}function _0xc2747c(){_0x2f1fa7[_0xe0ebb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0ebb6([0x76,0x69,0x65,0x77])][_0xe0ebb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe0ebb6([0x61,0x75,0x74,0x6f]);}}function _0x12bf4b(_0x29c13e){const _0x5eddfb=[new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572de0=>setTimeout(_0x572de0,0x47abbbca^_0x46dd1f)),_0x347f70[_0xe0ebb6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e7324=>{let _0x343599=0x0;_0x2f1fa7[_0xe0ebb6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0ebb6([0x6f,0x6e])](_0xe0ebb6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49db1c,_0x15fc65)=>{_0x15fc65[0x0][_0xe0ebb6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x343599++,_0x343599==(0x47a280ee^_0x46dd1f)&&(_0x3e7324(),_0x49db1c[_0xe0ebb6([0x6f,0x66,0x66])]());});}))];return window[_0xe0ebb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe0ebb6([0x72,0x61,0x63,0x65])](_0x5eddfb)[_0xe0ebb6([0x74,0x68,0x65,0x6e])](()=>_0x29c13e);}async function _0x522eb7(){await _0x347f70,_0x2f1fa7[_0xe0ebb6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0ebb6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xda0562,_0x2f1fa7[_0xe0ebb6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0ebb6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xda0562,_0x2f1fa7[_0xe0ebb6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe0ebb6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1219c4(_0x20ca78){const _0x505fe6=_0x5bf642();_0x2f1fa7[_0x505fe6]=_0xe0ebb6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x20ca78,_0x20ca78!=_0xe0ebb6([0x56,0x61,0x6c,0x69,0x64])&&_0x522eb7();}function _0x5bf642(){const _0x5c9f32=window[_0xe0ebb6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe0ebb6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe0ebb6([0x6e,0x6f,0x77])]())[_0xe0ebb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe0ebb6([0x2e]),'');let _0x539193=_0xe0ebb6([0x75]);for(let _0x9803ec=0x0;_0x9803ec<_0x5c9f32[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9803ec+=0x2){let _0x2d3fea=window[_0xe0ebb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c9f32[_0xe0ebb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9803ec,_0x9803ec+0x2));_0x2d3fea>=_0x219d10[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d3fea-=_0x219d10[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x539193+=_0x219d10[_0x2d3fea];}return _0x539193;}function _0x49c3d9(){const _0x5b85b6=_0x553e95[_0xe0ebb6([0x73,0x70,0x6c,0x69,0x74])](_0xe0ebb6([0x2e]));if(0x3!=_0x5b85b6[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c5663(_0x5b85b6[0x1]);function _0x3c5663(_0x38371d){const _0x391958=_0xdcd297(_0x38371d);return _0x391958&&_0x6fa3a5()?_0x391958:null;function _0x6fa3a5(){const _0x1b6355=_0x391958[_0xe0ebb6([0x6a,0x74,0x69])],_0x416b0b=window[_0xe0ebb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b6355[_0xe0ebb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b6355[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d0c8d={..._0x391958,[_0xe0ebb6([0x6a,0x74,0x69])]:_0x1b6355[_0xe0ebb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b6355[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d0c8d[_0xe0ebb6([0x76,0x63])],_0x2b6c5b(_0x4d0c8d)==_0x416b0b;}}}async function _0x5aa891(){let _0x46e5d3=!0x0;try{const _0x3fae45=_0x553e95[_0xe0ebb6([0x73,0x70,0x6c,0x69,0x74])](_0xe0ebb6([0x2e])),[_0x160bb5,_0x1ab6b8,_0xcce21f]=_0x3fae45;return _0x20b851(_0x160bb5),await _0x4a70ae(_0x160bb5,_0x1ab6b8,_0xcce21f),_0x46e5d3;}catch{return!0x1;}function _0x20b851(_0x563aea){const _0x3a2a0d=_0xdcd297(_0x563aea);_0x3a2a0d&&_0x3a2a0d[_0xe0ebb6([0x61,0x6c,0x67])]==_0xe0ebb6([0x45,0x53,0x32,0x35,0x36])||(_0x46e5d3=!0x1);}async function _0x4a70ae(_0x1af075,_0x4ff14c,_0x4667e7){const _0x1c4135=window[_0xe0ebb6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe0ebb6([0x66,0x72,0x6f,0x6d])](_0x2364f4(_0x4667e7),_0xf53afe=>_0xf53afe[_0xe0ebb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d19da=new window[(_0xe0ebb6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe0ebb6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1af075+_0xe0ebb6([0x2e])+_0x4ff14c),_0x597d7f=window[_0xe0ebb6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe0ebb6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x597d7f)return;const _0x32b5fa=await _0x597d7f[_0xe0ebb6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe0ebb6([0x6a,0x77,0x6b]),_0x2bc2a2,{[_0xe0ebb6([0x6e,0x61,0x6d,0x65])]:_0xe0ebb6([0x45,0x43,0x44,0x53,0x41]),[_0xe0ebb6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe0ebb6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe0ebb6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x597d7f[_0xe0ebb6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe0ebb6([0x6e,0x61,0x6d,0x65])]:_0xe0ebb6([0x45,0x43,0x44,0x53,0x41]),[_0xe0ebb6([0x68,0x61,0x73,0x68])]:{[_0xe0ebb6([0x6e,0x61,0x6d,0x65])]:_0xe0ebb6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32b5fa,_0x1c4135,_0x2d19da)||(_0x46e5d3=!0x1);}}function _0xdcd297(_0x206a7f){return _0x206a7f[_0xe0ebb6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe0ebb6([0x65,0x79]))?JSON[_0xe0ebb6([0x70,0x61,0x72,0x73,0x65])](_0x2364f4(_0x206a7f)):null;}function _0x2364f4(_0x33fda0){return window[_0xe0ebb6([0x61,0x74,0x6f,0x62])](_0x33fda0[_0xe0ebb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe0ebb6([0x2b]))[_0xe0ebb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe0ebb6([0x2f])));}function _0x2b6c5b(_0x6c9649){let _0x3777dd=0x1505;function _0x38b12b(_0xa9a202){for(let _0x107593=0x0;_0x107593<_0xa9a202[_0xe0ebb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x107593++){const _0x4a1256=_0xa9a202[_0xe0ebb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x107593);_0x3777dd=(_0x3777dd<<0x5)+_0x3777dd+_0x4a1256,_0x3777dd&=_0x3777dd;}}function _0x5f0ff1(_0x10216e){Array[_0xe0ebb6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10216e)?_0x10216e[_0xe0ebb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f0ff1):_0x10216e&&typeof _0x10216e==_0xe0ebb6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe0ebb6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10216e)[_0xe0ebb6([0x73,0x6f,0x72,0x74])]()[_0xe0ebb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ef582,_0x8cd6c7])=>{_0x38b12b(_0x5ef582),_0x5f0ff1(_0x8cd6c7);}):_0x38b12b(window[_0xe0ebb6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10216e));}return _0x5f0ff1(_0x6c9649),_0x3777dd>>>0x0;}function _0x5730ce(_0x265a87){return _0x265a87[_0xe0ebb6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe0ebb6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe0ebb6([0x30]));}function _0x504ef9(_0x59062d){return _0x59062d[_0xe0ebb6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe0ebb6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe0ebb6([0x6a,0x6f,0x69,0x6e])]('');}function _0xda0562(){}function _0xe0ebb6(_0x1d58c8){return _0x1d58c8['map'](_0xad237e=>String['fromCharCode'](_0xad237e))['join']('');}_0x1219c4(await _0xe20372());}(this);}['_moveSelectionToFootnoteDefinition'](_0x53ed46){const {plugins:_0x963b9,editing:_0x15accf,model:_0x2fe0b4}=this['editor'],_0x3b6d70=_0x963b9['get'](f)['getFootnote'](_0x53ed46);return!!_0x3b6d70&&(_0x2fe0b4['change'](_0x4ae48a=>{_0x4ae48a['setSelection'](_0x4ae48a['createPositionAt'](_0x3b6d70['definition'],'end'));}),_0x15accf['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x276b77){const {plugins:_0x17db92,editing:_0x6b99c8,model:_0x835613}=this['editor'],_0x98290=_0x17db92['get'](f)['getFootnote'](_0x276b77);return!!_0x98290&&(_0x835613['change'](_0x5a845b=>{_0x5a845b['setSelection'](_0x98290['reference'],'on');}),_0x6b99c8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1fb0b8}=this['editor']['model'],_0x228f81=this['editor']['config']['get']('footnotes.multiBlock');_0x1fb0b8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1fb0b8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1fb0b8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x228f81?_0x1fb0b8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1fb0b8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1fb0b8['addChildCheck'](_0x3da2f0=>{for(const _0x4074c0 of _0x3da2f0)if('footnoteDefinition'===_0x4074c0['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2c2495}=this,{conversion:_0xca0be,editing:_0x3287c7}=_0x2c2495,{t:t}=_0x2c2495['locale'];_0xca0be['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcb1658,{writer:_0x2107fa,consumable:_0x24df64})=>{const _0x1efe2a=_0xcb1658['getChild'](0x0);if(!_0x1efe2a||!_0x1efe2a['is']('element','a'))return null;const _0x2a6519=_0x1efe2a['getAttribute']('href')||'';if(!_0x2a6519['startsWith']('#'))return null;const _0x2b20bd=_0x2a6519['replace'](/^#/,'');if(!_0x2b20bd)return null;_0x24df64['consume'](_0x1efe2a,{'name':!0x0,'attributes':['href']});for(const {item:_0x18f35d}of _0x3287c7['view']['createRangeIn'](_0x1efe2a))_0x18f35d['is']('$textProxy')?_0x24df64['consume'](_0x18f35d['textNode'],{'name':!0x0}):_0x18f35d['is']('element')&&_0x24df64['consume'](_0x18f35d,{'name':!0x0});return _0x2107fa['createElement']('footnoteRef',{'footnoteId':_0x2b20bd});}}),_0xca0be['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3c06cc,{writer:_0x2fe39e})=>b(_0x3c06cc,_0x2fe39e)}),_0xca0be['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x551a17,{writer:_0x1f5ada})=>{const _0x453a50=_0x551a17['getAttribute']('footnoteCounter');return _0x405142(b(_0x551a17,_0x1f5ada),_0x1f5ada,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x453a50)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5efc36}=this,{t:t}=_0x5efc36['locale'],{conversion:_0x8c10de}=_0x5efc36;_0x8c10de['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x8c10de['for']('upcast')['add'](_0x127ce8=>{_0x127ce8['on']('element:ol',(_0xdc4420,_0x334128,_0x1c4ef8)=>{const _0x5368ee=_0x334128['viewItem'];if(!_0x5368ee['hasClass']('footnotes-list')||!_0x334128['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1c4ef8['consumable']['consume'](_0x5368ee,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1bf772,modelCursor:_0x5a37cb}=_0x1c4ef8['convertChildren'](_0x334128['viewItem'],_0x334128['modelCursor']);_0x334128['modelRange']=_0x1bf772,_0x334128['modelCursor']=_0x5a37cb;}),_0x127ce8['on']('element:hr',(_0x185edf,_0x379e74,_0x56b97f)=>{const _0x54155d=_0x379e74['viewItem'];_0x54155d['hasClass']('footnotes-divider')&&_0x379e74['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x56b97f['consumable']['consume'](_0x54155d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x8c10de['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x144f4c,{writer:_0x5353bb})=>D(_0x5353bb)}),_0x8c10de['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1a6773,{writer:_0x5c9729})=>{const _0x28cb2f=D(_0x5c9729,{'data-footnotes-list-label':t('Footnotes')}),_0x23d529=_0x405142(_0x28cb2f,_0x5c9729,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5c9729['setCustomProperty']('footnotesDefinitions',!0x0,_0x23d529),_0x23d529;}});}['_defineDefinitionConverters'](){const {editor:_0xe95795}=this,{conversion:_0x2afb3d,locale:_0x446b9c}=_0xe95795,_0x1d06c0=_0xe95795['config']['get']('footnotes.multiBlock');_0x2afb3d['for']('upcast')['add'](_0x46beb1=>{_0x46beb1['on']('element:li',(_0x4f2b02,_0x24df7a,_0x1e9aa7)=>{const _0x20b854=_0x24df7a['viewItem'];if(!_0x20b854['hasClass']('footnote-definition')||!_0x20b854['getAttribute']('id'))return;const _0xbfe084=_0x20b854['parent'];if(!_0xbfe084['is']('element','ol')||!_0xbfe084['hasClass']('footnotes-list'))return;if(!_0x1e9aa7['consumable']['test'](_0x20b854,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x284e41=_0x1e9aa7['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x20b854['getAttribute']('id')});if(!_0x1e9aa7['safeInsert'](_0x284e41,_0x24df7a['modelCursor']))return;_0x1e9aa7['consumable']['consume'](_0x20b854,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x126177=Array['from'](_0x20b854['getChildren']())['find'](_0x10600b=>_0x10600b['is']('element')&&_0x10600b['hasClass']('footnote-content'));for(const _0x4a43f5 of _0x20b854['getChildren']())_0x4a43f5['is']('element')&&(_0x1e9aa7['consumable']['consume'](_0x4a43f5,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1e9aa7['consumable']['consume'](_0x4a43f5,{'name':!0x0,'classes':'footnote-content'}));if(_0x126177){if(_0x1d06c0)_0x1e9aa7['convertChildren'](_0x126177,_0x284e41);else{const _0x5762da=_0x1e9aa7['writer']['createElement']('footnoteInlineContent');_0x1e9aa7['writer']['insert'](_0x5762da,_0x284e41),_0x1e9aa7['convertChildren'](_0x126177,_0x5762da);}}_0x1e9aa7['updateConversionResult'](_0x284e41,_0x24df7a);});}),_0x2afb3d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ae993,{writer:_0x5cb251})=>y(_0x4ae993,_0x5cb251,_0x446b9c,{'dataPipeline':!0x0})}),_0x2afb3d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2f0090,{writer:_0x20eb0a})=>y(_0x2f0090,_0x20eb0a,_0x446b9c)});}['_defineBogusParagraphConverters'](){const {editor:_0x422130}=this,{conversion:_0x1f9d48}=_0x422130;_0x422130['config']['get']('footnotes.multiBlock')?(_0x1f9d48['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1f9d48['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x422130['model']['document'],'change:data',()=>{!function(_0x3c9bda,_0x15009c){const _0x13c71b=_0x3c9bda['document']['differ'],_0x46e813=new Set();for(const _0x1177a1 of _0x13c71b['getChanges']()){const _0x12a9fc='attribute'==_0x1177a1['type']?_0x1177a1['range']['start']['parent']:_0x1177a1['position']['parent'];_0x12a9fc['is']('element','footnoteDefinition')&&_0x46e813['add'](_0x12a9fc);}for(const _0x599ce8 of _0x46e813['values']()){const _0x4f1d5c=Array['from'](_0x599ce8['getChildren']())['filter'](_0x18123e=>v(_0x18123e,_0x15009c['mapper']));for(const _0x30b71c of _0x4f1d5c)_0x15009c['reconvertItem'](_0x30b71c);}}(_0x422130['model'],_0x422130['editing']);})):(_0x1f9d48['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1f9d48['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2d3388,{writer:_0x8de8e2})=>{const _0x5781da=_0x8de8e2['createContainerElement']('span');return _0x8de8e2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5781da),_0x5781da;}}));}['_defineKeyboardHandlers'](){const {editor:_0x50c849}=this,{editing:_0x3f8b2b,t:t}=_0x50c849,_0xfd7bd8=_0x50c849['model']['document']['selection'];_0x50c849['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x50c849['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3f8b2b['view']['document'],'enter',(_0x3f2d55,_0x36a018)=>{const _0x49f464=function(_0x1fb7c2){const _0x5f5488=_0x1fb7c2['getSelectedElement']();if(_0x5f5488?.['is']('element','footnoteRef'))return _0x5f5488;return null;}(_0xfd7bd8);if(_0x49f464){const _0x3ea80f=_0x49f464['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3ea80f),_0x36a018['preventDefault'](),_0x3f2d55['stop']();}},{'context':_0xf54cfb});}['_defineClickHandlers'](){const {editor:_0x47a930}=this,{editing:_0x17280b}=_0x47a930;_0x47a930['editing']['view']['addObserver'](_0x43b852),_0x47a930['editing']['view']['addObserver'](_0xef81ac);let _0x46996d=!0x1;this['listenTo'](_0x17280b['view']['document'],'pointerdown',(_0x2feb2f,_0xaa3967)=>{const {target:_0xd3495f}=_0xaa3967,_0x458a0d=_0x17280b['view']['document']['selection'];_0x46996d=!!(_0xd3495f?.['is']('element','a')&&_0xd3495f['parent']?.['is']('element','sup')&&_0xd3495f['parent']['hasClass']('footnote'))&&_0x458a0d['getSelectedElement']()===_0xd3495f['parent'];},{'priority':'high'}),this['listenTo'](_0x17280b['view']['document'],'click',(_0x339847,_0x5bb4c2)=>{const {target:_0x41ec74}=_0x5bb4c2;if(!_0x41ec74?.['is']('element','a'))return;if(_0x41ec74['parent']?.['is']('element','sup')&&_0x41ec74['parent']['hasClass']('footnote')&&!_0x46996d)return void _0x5bb4c2['preventDefault']();let _0x395181=_0x41ec74['getAttribute']('href');if(!_0x395181?.['startsWith']('#'))return;_0x395181=_0x395181['slice'](0x1);let _0x1b3180=!0x1;(_0x395181['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x395181['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x395181))&&(_0x1b3180=!0x0),_0x1b3180&&(_0x5bb4c2['preventDefault'](),_0x339847['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x126e80}={}){return(_0x4f6760,{writer:_0x269eb2})=>{if(!g(_0x4f6760))return null;if(!_0x126e80)return _0x269eb2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x58d1e0=_0x269eb2['createContainerElement']('p');return _0x269eb2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x58d1e0),_0x58d1e0;};}function g(_0x3ddb40){const {parent:_0x18c1e3}=_0x3ddb40;if(!_0x18c1e3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x18c1e3['childCount'])return!0x1;for(const _0x33206d of _0x3ddb40['getAttributeKeys']())if(!_0x33206d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x33206d)return!0x1;return!0x0;}function v(_0x1ba55d,_0x4b4ca4){if(!_0x1ba55d['is']('element','paragraph'))return!0x1;const _0x5cd640=_0x4b4ca4['toViewElement'](_0x1ba55d);return!!_0x5cd640&&g(_0x1ba55d)!==_0x5cd640['is']('element','span');}function H(_0x45ef1b){return _0xf54cfb(_0x45ef1b)&&_0x45ef1b['is']('containerElement')&&!!_0x45ef1b['getCustomProperty']('footnotesDefinitions');}function D(_0x222d53,_0x1e033b={}){const _0x34373c=_0x222d53['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f01ed=_0x222d53['createContainerElement']('ol',{'class':'footnotes-list'},_0x222d53['createSlot']());return _0x222d53['createContainerElement']('div',{'class':'footnotes',..._0x1e033b},[_0x34373c,_0x2f01ed]);}function b(_0x161398,_0x184110){const _0xca572a=_0x161398['getAttribute']('footnoteId'),_0x25c9ab=_0x161398['getAttribute']('footnoteCounter'),_0x50754a=_0x184110['createUIElement']('a',{'href':'#'+_0xca572a},function(_0x374f9f){const _0x2eca9c=this['toDomElement'](_0x374f9f);return _0x2eca9c['textContent']=_0x25c9ab,_0x2eca9c;}),_0x23c5e1=_0x184110['createContainerElement']('sup',{'id':'ref-'+_0xca572a,'class':'footnote'},[_0x50754a]);return _0x23c5e1['getFillerOffset']=()=>null,_0x23c5e1;}function y(_0x4ea9b7,_0xc70fbf,_0x14da9e,{dataPipeline:_0x156a66}={}){const {t:t}=_0x14da9e,_0x18e694=_0x4ea9b7['getAttribute']('footnoteId'),_0x21062b=_0xc70fbf['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x18e694},function(_0x1e80b4){const _0xd8753e=this['toDomElement'](_0x1e80b4);return _0xd8753e['innerText']='^',_0xd8753e;}),_0x231deb=_0x156a66?_0xc70fbf['createContainerElement']('div',{'class':'footnote-content'}):_0x26e123(_0xc70fbf['createEditableElement']('div',{'class':'footnote-content'}),_0xc70fbf,{'label':t('Footnote\x20content.')});return _0xc70fbf['insert'](_0xc70fbf['createPositionAt'](_0x231deb,0x0),_0xc70fbf['createSlot']()),_0xc70fbf['createContainerElement']('li',{'class':'footnote-definition','id':_0x18e694},[_0x21062b,_0x231deb]);}class e extends _0x28ad1a{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x9bd623];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x22dd89}=this,{plugins:_0x4e980a,model:_0x58ebea}=_0x22dd89,_0x5f3574=_0x4e980a['get'](_0x9bd623),_0x35b1fa=_0x4e980a['get'](f);this['listenTo'](_0x5f3574,'outputTransformation',(_0x43ab5c,_0x1277ec)=>{const _0x4f7e28=l(_0x58ebea['createRangeIn'](_0x1277ec['content']));if(!_0x4f7e28['length'])return;const _0xdb609a=_0x35b1fa['getFootnotes'](),_0xc3464b=_0x4f7e28['reduce']((_0x1dc44f,_0x23656c)=>{const _0x1c494b=_0xdb609a['find'](_0x21b99a=>_0x21b99a['id']===_0x23656c);if(_0x1c494b){const _0x560a7d=_0x22dd89['data']['toView'](_0x1c494b['definition'],{'isClipboardPipeline':!0x0}),_0x2e3b95=_0x22dd89['data']['htmlProcessor']['toData'](_0x560a7d);_0x1dc44f[_0x1c494b['id']]=_0x2e3b95;}return _0x1dc44f;},Object['create'](null));_0x1277ec['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xc3464b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x20d00c}=this,{model:_0x2bd059,plugins:_0x4b5bd8}=_0x20d00c,{view:_0x5deb28}=_0x20d00c['editing'],_0x1e553b=_0x4b5bd8['get'](_0x9bd623),_0x5bd2a8=_0x4b5bd8['get'](f),_0x1e8b9e=_0x20d00c['config']['get']('footnotes.multiBlock');let _0x535b47=null;this['listenTo'](_0x5deb28['document'],'clipboardInput',(_0x42453c,_0x274468)=>{const _0xc6a294=_0x274468['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x535b47=_0xc6a294?JSON['parse'](_0xc6a294):null;}),this['listenTo'](_0x1e553b,'contentInsertion',(_0xb0ac58,_0x551487)=>{const _0x3549dd=_0x551487['sourceEditorId']===this['editor']['id'];_0x3549dd&&'drop'===_0x551487['method']||_0x2bd059['change'](_0x4920bb=>{let _0x2399e1=_0x5bd2a8['getFootnotesDefinitionsObjectElement']();const _0x1e723f=!!_0x2399e1&&Array['from'](_0x2bd059['document']['selection']['getSelectedBlocks']())['includes'](_0x2399e1);if(!_0x535b47&&function(_0x1ec493){for(const {item:_0x5e09f4}of _0x1ec493)if(_0x5e09f4['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2bd059['createRangeIn'](_0x551487['content']))&&(_0x535b47=function(_0x2113e0,_0x15e62b){const _0x13dfd4=c(_0x2113e0,_0x15e62b);if(!_0x13dfd4)return null;const _0x3485ca=Object['create'](null);for(const _0x3d0d72 of _0x13dfd4['getChildren']())_0x3d0d72['is']('element','footnoteDefinition')&&_0x3d0d72['hasAttribute']('footnoteId')&&(_0x3485ca[_0x3d0d72['getAttribute']('footnoteId')]=_0x2113e0['cloneElement'](_0x3d0d72,!0x0));return Object['keys'](_0x3485ca)['length']?_0x3485ca:null;}(_0x4920bb,_0x551487['content'])),(_0x2399e1&&!_0x1e723f||!_0x2399e1&&!_0x535b47)&&function(_0xc42973,_0x4b10bf){const _0x2c0512=[];for(const {item:_0x24a632}of _0xc42973['createRangeIn'](_0x4b10bf))_0x24a632['is']('element','footnotesDefinitions')&&_0x2c0512['push'](_0x24a632);for(const _0x2a088b of _0x2c0512)_0xc42973['remove'](_0x2a088b);}(_0x4920bb,_0x551487['content']),!_0x535b47)return;const {selection:_0x41bc7f}=_0x2bd059['document'],_0x3c4f61=_0x41bc7f['getFirstRange']()['root'];_0x2399e1&&!_0x1e723f||(_0x2399e1=c(_0x4920bb,_0x551487['content']),_0x2399e1||=_0x5bd2a8['_insertEmptyFootnotesDefinitionsContainer'](_0x4920bb,_0x3c4f61));const _0x501848=Array['from'](_0x41bc7f['getRanges']())['flatMap'](l),_0x13c831=function(_0x1a062f,_0x30d644,_0x53d8ab){const _0x23cbc0=Object['create'](null);for(const {item:_0x4352b9}of _0x1a062f['createRangeIn'](_0x30d644))if(_0x4352b9['is']('element','footnoteRef')){const _0x5a6e61=_0x4352b9['getAttribute']('footnoteId');if(!_0x53d8ab(_0x5a6e61))continue;_0x23cbc0[_0x5a6e61]||(_0x23cbc0[_0x5a6e61]=_0x1ab937()),_0x1a062f['setAttribute']('footnoteId',_0x23cbc0[_0x5a6e61],_0x4352b9);}return _0x23cbc0;}(_0x4920bb,_0x551487['content'],_0x52e86e=>{if(!_0x3549dd)return!0x0;return!!_0x5bd2a8['getFootnote'](_0x52e86e)&&!_0x501848['includes'](_0x52e86e);});for(const [_0x1237a2,_0x1b6e7c]of Object['entries'](_0x535b47)){const _0x14b627=_0x13c831[_0x1237a2]||_0x1237a2;let _0x1f4a41;if('string'!=typeof _0x1b6e7c)_0x1f4a41=_0x1b6e7c,_0x14b627!==_0x1237a2&&_0x4920bb['setAttribute']('footnoteId',_0x14b627,_0x1f4a41);else{_0x1f4a41=_0x4920bb['createElement']('footnoteDefinition',{'footnoteId':_0x14b627});const _0x1527f1=_0x20d00c['data']['htmlProcessor']['toView'](_0x1b6e7c);let _0x441fa9;if(_0x1e8b9e)_0x441fa9=_0x20d00c['data']['toModel'](_0x1527f1,_0x1f4a41);else{_0x441fa9=_0x4920bb['createElement']('footnoteInlineContent');const _0x3c10a2=_0x20d00c['data']['toModel'](_0x1527f1,_0x441fa9);_0x4920bb['insert'](_0x3c10a2,_0x441fa9);}_0x4920bb['append'](_0x441fa9,_0x1f4a41);}_0x4920bb['insert'](_0x1f4a41,_0x2399e1,'end');}_0x535b47=null;});});}}function c(_0x21faca,_0xb4fcf1){for(const {item:_0x237d67}of _0x21faca['createRangeIn'](_0xb4fcf1))if(_0x237d67['is']('element','footnotesDefinitions'))return _0x237d67;return null;}function l(_0x872246){const _0x3cc338=new Set();for(const {item:_0x4b4816}of _0x872246)_0x4b4816['is']('element','footnoteRef')&&_0x3cc338['add'](_0x4b4816['getAttribute']('footnoteId'));return Array['from'](_0x3cc338);}class i extends _0x28ad1a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x33f9b5}=this,{componentFactory:_0x31cc45}=_0x33f9b5['ui'];_0x31cc45['add']('insertFootnote',E(_0x33f9b5,_0x386d83)),_0x31cc45['add']('menuBar:insertFootnote',E(_0x33f9b5,_0x4770d4)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x494f07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e601d;for(const _0x17c6d4 in _0x494f07){const _0x546782=_0x17c6d4,_0xca2642=_0x494f07[_0x546782];if('footnotesLicenseKeyValid'==_0xca2642||'footnotesLicenseKeyInvalid'==_0xca2642||'footnotesLicenseKeyExpired'==_0xca2642||'footnotesLicenseKeyDomainLimit'==_0xca2642||'footnotesLicenseKeyNotAllowed'==_0xca2642||'footnotesLicenseKeyEvaluationLimit'==_0xca2642||'footnotesLicenseKeyUsageLimit'==_0xca2642){delete _0x494f07[_0x546782],_0x2e601d=_0xca2642,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2e601d&&_0x494f07['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2e601d&&_0x494f07['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2e601d&&_0x494f07['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2e601d&&_0x494f07['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2e601d&&_0x494f07['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2e601d&&_0x494f07['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x10ae98,_0x39e71a){const _0x463c82=_0x10ae98['commands']['get']('insertFootnote');return _0x2801d4=>{const {t:t}=_0x2801d4,_0x530887=new _0x39e71a(_0x2801d4),_0x49fa65=_0x530887 instanceof _0x4770d4;return _0x530887['bind']('isEnabled')['to'](_0x463c82,'isEnabled'),_0x530887['set']({'label':t(_0x49fa65?'Footnote':'Insert\x20footnote'),'icon':_0x3c632d,'tooltip':!0x0}),_0x530887['on']('execute',()=>{_0x463c82['execute'](),_0x10ae98['editing']['view']['focus']();}),_0x530887;};}class lt extends _0x28ad1a{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5958dd{['refresh'](){const {editor:_0x5e6f98}=this,_0x3d24ee=_0x5e6f98['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d24ee,this['value']=_0x3d24ee?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4c0969}){const {editor:_0x333f2a}=this,_0x1ca573=_0x333f2a['plugins']['get'](f),_0x54af32=_0x1ca573['getFootnotesDefinitionsObjectElement']();_0x54af32&&W['includes'](_0x4c0969)&&_0x333f2a['model']['change'](_0x5ddc9a=>{_0x5ddc9a['setAttribute']('footnotesListStyle',_0x4c0969,_0x54af32),_0x1ca573['_updateFootnotesCounters'](_0x5ddc9a);});}}class C extends _0x5958dd{['refresh'](){const {editor:_0x56a12b}=this,_0x1d2d1c=_0x56a12b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1d2d1c,this['value']=_0x1d2d1c?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4982c2}){const {editor:_0x2d13aa}=this,_0x2a7f05=_0x2d13aa['plugins']['get'](f),_0x1daf9d=_0x2a7f05['getFootnotesDefinitionsObjectElement']();_0x1daf9d&&Number['isInteger'](_0x4982c2)&&_0x2d13aa['model']['change'](_0x152c9f=>{_0x152c9f['setAttribute']('footnotesListStart',_0x4982c2,_0x1daf9d),_0x2a7f05['_updateFootnotesCounters'](_0x152c9f);});}}class P extends _0x28ad1a{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x522ffb}=this;_0x522ffb['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x522ffb['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x522ffb['commands']['add']('footnotesStyle',new S(_0x522ffb)),_0x522ffb['commands']['add']('footnotesStart',new C(_0x522ffb)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x329680}=this,{schema:_0x49e315}=_0x329680['model'];_0x49e315['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4503b5}=this,{conversion:_0x37761f,model:_0x397af9}=_0x4503b5,{schema:_0x3f3fa2}=_0x397af9;_0x37761f['for']('upcast')['add'](_0x5de886=>{_0x5de886['on']('element:ol',(_0x534f6e,_0x4dd329,_0x32c052)=>{const _0x168564=_0x4dd329['viewItem'],_0x3f7245=_0x4dd329['modelCursor']?.['parent'];_0x168564['hasClass']('footnotes-list')&&_0x3f7245?.['is']('element','footnotesDefinitions')&&(function(_0x1e131f,_0x514041,_0xe6596b,_0x55fe18){if(!_0x55fe18['checkAttribute'](_0x514041,'footnotesListStart'))return;let _0x59bd7c=0x1;const _0x5b4eb7=_0xe6596b['consumable']['consume'](_0x1e131f,{'attributes':'start'});if(_0x5b4eb7){const _0x110525=Number['parseInt'](_0x1e131f['getAttribute']('start'),0xa);Number['isNaN'](_0x110525)||(_0x59bd7c=_0x110525);}!_0x5b4eb7&&_0x514041['hasAttribute']('footnotesListStart')||_0xe6596b['writer']['setAttribute']('footnotesListStart',_0x59bd7c,_0x514041);}(_0x168564,_0x3f7245,_0x32c052,_0x3f3fa2),function(_0xc93e6d,_0x293245,_0x4041b3,_0x5a99e7){if(!_0x5a99e7['checkAttribute'](_0x293245,'footnotesListStyle'))return;let _0x36cca7='decimal',_0x3b205a=!0x1;if(_0x4041b3['consumable']['consume'](_0xc93e6d,{'attributes':'type'})){const _0x1aafc2={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xc93e6d['getAttribute']('type')];_0x1aafc2&&(_0x36cca7=_0x1aafc2),_0x3b205a=!0x0;}_0x4041b3['consumable']['consume'](_0xc93e6d,{'styles':'list-style-type'})&&(_0x36cca7=function(_0x19b9d0){switch(_0x19b9d0){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x19b9d0;}}(_0xc93e6d['getStyle']('list-style-type')),_0x3b205a=!0x0),!_0x3b205a&&_0x293245['hasAttribute']('footnotesListStyle')||_0x4041b3['writer']['setAttribute']('footnotesListStyle',_0x36cca7,_0x293245);}(_0x168564,_0x3f7245,_0x32c052,_0x3f3fa2));});}),_0x37761f['for']('downcast')['add'](_0x2522c2=>{_0x2522c2['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x182f72,_0x550a94,_0x349ad3)=>{if(!_0x349ad3['consumable']['consume'](_0x550a94['item'],_0x182f72['name']))return;const _0x20a354=M(_0x550a94['item'],_0x349ad3['mapper']),{attributeNewValue:_0x9b6224}=_0x550a94;null==_0x9b6224||0x1===_0x9b6224?_0x349ad3['writer']['removeAttribute']('start',_0x20a354):_0x349ad3['writer']['setAttribute']('start',String(_0x9b6224),_0x20a354);}),_0x2522c2['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x322227,_0x409834,_0x4eb153)=>{if(!_0x4eb153['consumable']['consume'](_0x409834['item'],_0x322227['name']))return;const _0x515006=M(_0x409834['item'],_0x4eb153['mapper']),{attributeNewValue:_0x47a9bd}=_0x409834;_0x47a9bd&&'decimal'!==_0x47a9bd?_0x4eb153['writer']['setStyle']('list-style-type',_0x47a9bd,_0x515006):_0x4eb153['writer']['removeStyle']('list-style-type',_0x515006);});});}['_definePostfixer'](){const {editor:_0x101230}=this,{model:_0x42a4a3}=_0x101230,_0x165616=_0x101230['plugins']['get'](f),_0x551782=this['_getDefaultListStyle'](),_0x16f505=this['_getDefaultStartIndex']();_0x42a4a3['document']['registerPostFixer'](_0x38e152=>{const _0x47c43a=_0x42a4a3['document']['differ']['getChanges']();let _0x2c5629=!0x1;for(const _0x491833 of _0x47c43a){if('insert'!==_0x491833['type']||'$text'===_0x491833['name'])continue;const _0x24cb84=_0x42a4a3['createRangeOn'](_0x491833['position']['nodeAfter']);for(const _0x2e7b48 of _0x24cb84['getItems']())_0x2e7b48['is']('element','footnotesDefinitions')&&(!_0x2e7b48['hasAttribute']('footnotesListStart')&&_0x42a4a3['schema']['checkAttribute'](_0x2e7b48,'footnotesListStart')&&(_0x38e152['setAttribute']('footnotesListStart',_0x16f505,_0x2e7b48),_0x2c5629=!0x0),!_0x2e7b48['hasAttribute']('footnotesListStyle')&&_0x42a4a3['schema']['checkAttribute'](_0x2e7b48,'footnotesListStyle')&&(_0x38e152['setAttribute']('footnotesListStyle',_0x551782,_0x2e7b48),_0x2c5629=!0x0));}return _0x2c5629&&_0x165616['_updateFootnotesCounters'](_0x38e152),_0x2c5629;});}['_defineFormatter'](){const {editor:_0x5ce2e0}=this;_0x5ce2e0['plugins']['get'](f)['setFootnoteFormatter'](_0x520173=>this['_formatFootnoteListValue'](_0x520173));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3f61e3,value:_0x4086e6,digits:_0x663000}){const _0x27c502=_0x3f61e3['getAttribute']('footnotesListStyle'),_0x51955c=_0x3f61e3['getAttribute']('footnotesListStart'),_0x4d6d53=Math['floor'](_0x4086e6)+(_0x51955c??0x1)-0x1;switch(_0x27c502){case'decimal-leading-zero':return function(_0x266811,_0x1660fe){return String(_0x266811)['padStart'](_0x1660fe,'0');}(_0x4d6d53,Math['max'](0x2,_0x663000));case'lower-alpha':case'lower-latin':return N(_0x4d6d53,!0x1);case'upper-alpha':case'upper-latin':return N(_0x4d6d53,!0x0);case'lower-roman':return X(_0x4d6d53,!0x1);case'upper-roman':return X(_0x4d6d53,!0x0);default:return String(_0x4d6d53);}}}function M(_0x2c1c79,_0x458ddc){const _0x4541fd=_0x458ddc['toViewElement'](_0x2c1c79);return Array['from'](_0x4541fd['getChildren']())['find'](_0x37e8a1=>_0x37e8a1['is']('element','ol')&&_0x37e8a1['hasClass']('footnotes-list'));}function N(_0x1e2417,_0x38f76f){let _0x372756='',_0x4fb997=_0x1e2417;for(;_0x4fb997>0x0;){const _0x1dfcc1=(_0x4fb997-0x1)%0x1a;_0x372756=String['fromCharCode'](0x61+_0x1dfcc1)+_0x372756,_0x4fb997=Math['floor']((_0x4fb997-0x1)/0x1a);}return _0x38f76f?_0x372756['toUpperCase']():_0x372756;}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(_0x301727,_0x5ad1b9){let _0x4e7e9b='',_0x398cb6=_0x301727;for(const {value:_0x588a98,numeral:_0x6dad77}of V)for(;_0x398cb6>=_0x588a98;)_0x4e7e9b+=_0x6dad77,_0x398cb6-=_0x588a98;return _0x5ad1b9?_0x4e7e9b:_0x4e7e9b['toLowerCase']();}class $ extends _0x36d4e0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x121f84();['focusCycler'];constructor(_0x52e8f7,{styleButtonViews:_0x114033,styleGridAriaLabel:_0x520304}){super(_0x52e8f7),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x114033,_0x520304),[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 _0x1aa335 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1aa335['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2f4135=_0x171589=>_0x171589['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f4135),this['keystrokes']['set']('arrowleft',_0x2f4135),this['keystrokes']['set']('arrowup',_0x2f4135),this['keystrokes']['set']('arrowdown',_0x2f4135);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3df5f5,_0x2436cc){const _0x3de333=new _0x36d4e0(this['locale']);return _0x3de333['children']=_0x3de333['createCollection'](),_0x3de333['children']['addMany'](_0x3df5f5),_0x3de333['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2436cc,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3de333['children']}),_0x3de333['children']['delegate']('execute')['to'](this),_0x3de333['focus']=function(){for(const _0xb06d44 of this['children'])if(_0xb06d44 instanceof _0x386d83&&_0xb06d44['isOn'])return void _0xb06d44['focus']();this['children']['first']['focus']();},_0x3de333['focusTracker']=new rt(),_0x3de333['keystrokes']=new nt(),_0x3de333['render'](),_0x3de333['keystrokes']['listenTo'](_0x3de333['element']),this['children']['add'](_0x3de333),_0x3de333;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x203103=this['_createStartIndexPropertyView'](),_0x50512f=[_0x203103],_0x37443b=new it(this['locale'],_0x50512f);return _0x37443b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x37443b['buttonView']['bind']('isEnabled')['toMany'](_0x50512f,'isEnabled',(..._0x1a9019)=>_0x1a9019['some'](_0xd4fc67=>_0xd4fc67)),_0x37443b['buttonView']['on']('change:isEnabled',(_0x4f66f6,_0x4bad6c,_0x42467e)=>{_0x42467e||(_0x37443b['isCollapsed']=!0x0);}),this['children']['add'](_0x37443b),[_0x203103,_0x37443b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x35bf2a=new et(this['locale'],ot);return _0x35bf2a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x35bf2a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x35bf2a['fieldView']['on']('input',()=>{const _0x1f45df=_0x35bf2a['fieldView']['element'],_0x513646=_0x1f45df['valueAsNumber'];Number['isNaN'](_0x513646)?_0x35bf2a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1f45df['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x513646}):_0x35bf2a['errorText']=t(_0x513646<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x35bf2a;}}class j extends _0x28ad1a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xdfabb8,_0x46b3ea];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x34b664}=this,{componentFactory:_0xbbfeea}=_0x34b664['ui'];_0x34b664['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xbbfeea['add']('footnotesStyle',function(_0x3b756d){return _0x329e88=>{const {t:t}=_0x329e88,_0x4f612c=_0x3b756d['commands']['get']('footnotesStyle'),_0x189049=_0x297dae(_0x329e88),{buttonView:_0x44d72c}=_0x189049;return _0x189049['class']='ck-footnotes-styles-dropdown',_0x189049['bind']('isEnabled')['to'](_0x4f612c,'isEnabled'),_0x44d72c['set']({'label':t('Footnotes\x20style'),'icon':_0x3c632d,'tooltip':!0x0}),_0x189049['once']('change:isOpen',()=>{const _0x5ec140=function({editor:_0x3baf16,dropdownView:_0x34e06c}){const {t:t}=_0x3baf16['locale'],_0x4d7896=t('Footnotes\x20definitions\x20styles'),_0x55daff=function(_0x99f590){const t=_0x99f590['locale']['t'],_0x34cc0f=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x45c6ef},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2fdb02},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2fd9e2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x511099},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x45b2e7},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x12d59a}];return _0x34cc0f['map'](function(_0x5c4360){const _0x4af989=_0x5c4360['locale'];return({label:_0xe082ee,icon:_0x51954e,tooltip:_0x3bea38,style:_0x49da0d})=>{const _0x329409=_0x5c4360['commands']['get']('footnotesStyle'),_0x18f45e=new _0x386d83(_0x4af989);return _0x18f45e['set']({'label':_0xe082ee,'icon':_0x51954e,'tooltip':_0x3bea38}),_0x18f45e['bind']('isOn')['to'](_0x329409,'value',_0x1e6573=>_0x1e6573===_0x49da0d),_0x18f45e['bind']('isEnabled')['to'](_0x329409,'isEnabled'),_0x18f45e['on']('execute',()=>{_0x5c4360['execute']('footnotesStyle',{'value':_0x49da0d}),_0x5c4360['editing']['view']['focus']();}),_0x18f45e;};}(_0x99f590));}(_0x3baf16),_0x2899d2=new $(_0x3baf16['locale'],{'styleGridAriaLabel':_0x4d7896,'styleButtonViews':_0x55daff}),_0x18c1b6=_0x3baf16['commands']['get']('footnotesStart');return _0x2899d2['startIndexFieldView']['bind']('isEnabled')['to'](_0x18c1b6),_0x2899d2['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x18c1b6),_0x2899d2['on']('footnotesListStart',(_0x4208ef,_0x4cc022)=>{_0x3baf16['execute']('footnotesStart',{'value':_0x4cc022['startIndex']});}),_0x2899d2['delegate']('execute')['to'](_0x34e06c),_0x2899d2;}({'editor':_0x3b756d,'dropdownView':_0x189049});_0x189049['panelView']['children']['add'](_0x5ec140);}),_0x189049;};}(_0x34b664));}['afterInit'](){const {editor:_0x211a33}=this,{t:t}=_0x211a33['locale'],_0x6568f7=_0x211a33['plugins']['get'](_0x46b3ea),{defaultPositions:_0x3e13a5}=_0x3b35f0;_0x6568f7['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x211a33['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x594191=>{let _0x45fddd=_0x594191['getFirstPosition']()?.['parent'];return _0x45fddd?.['is']('$text')&&(_0x45fddd=_0x45fddd['parent']),_0x45fddd?.['is']('element')?_0x45fddd['findAncestor'](H):null;},'positions':[_0x3e13a5['southArrowNorth'],_0x3e13a5['southArrowNorthMiddleWest'],_0x3e13a5['southArrowNorthMiddleEast'],_0x3e13a5['southArrowNorthWest'],_0x3e13a5['southArrowNorthEast'],_0x3e13a5['northArrowSouth'],_0x3e13a5['northArrowSouthMiddleWest'],_0x3e13a5['northArrowSouthMiddleEast'],_0x3e13a5['northArrowSouthWest'],_0x3e13a5['northArrowSouthEast'],_0x3e13a5['viewportStickyNorth']]});}}class ft extends _0x28ad1a{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.4.0
|
|
3
|
+
"version": "47.4.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": "47.4.0
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.4.0
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.4.0
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.4.0
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.4.0
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.4.0
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.4.0
|
|
33
|
-
"ckeditor5": "47.4.0
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.4.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.4.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.4.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.4.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.4.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.4.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.4.0",
|
|
33
|
+
"ckeditor5": "47.4.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 _0x4c7ac2=_0x3382;function _0x3382(_0x39b281,_0x340fdc){const _0x1a62e1=_0x1a62();return _0x3382=function(_0x3382fb,_0x4fecdd){_0x3382fb=_0x3382fb-0x133;let _0xd04241=_0x1a62e1[_0x3382fb];return _0xd04241;},_0x3382(_0x39b281,_0x340fdc);}function _0x1a62(){const _0x393c47=['5PbPYgt','document','createElement','footnoteRef','refresh','179484rbjGrP','get','editor','72wzdTwg','10vkExOa','400TcDrmf','48201zfACfh','isObject','checkChild','test','5616128WoaYcv','3412926eIJPvr','35KfToMC','insert-footnote-command-executed-with-invalid-id','end','isEnabled','change','selection','17883JEFvVu','2879252QcdWpR','plugins','getItems','_getPositionToInsertFootnote','execute','isBlock','FootnotesEditing','1656498aqwSlk','insertObject','length','model','getFirstRange','string','footnoteId','_moveSelectionToFootnoteDefinition'];_0x1a62=function(){return _0x393c47;};return _0x1a62();}(function(_0x4f4d2e,_0x3b76d6){const _0x35c434=_0x3382,_0x6bb29c=_0x4f4d2e();while(!![]){try{const _0x2692fe=-parseInt(_0x35c434(0x141))/0x1+-parseInt(_0x35c434(0x145))/0x2*(-parseInt(_0x35c434(0x147))/0x3)+-parseInt(_0x35c434(0x154))/0x4*(-parseInt(_0x35c434(0x13c))/0x5)+parseInt(_0x35c434(0x134))/0x6*(parseInt(_0x35c434(0x14d))/0x7)+parseInt(_0x35c434(0x14b))/0x8+-parseInt(_0x35c434(0x153))/0x9*(parseInt(_0x35c434(0x146))/0xa)+-parseInt(_0x35c434(0x14c))/0xb*(parseInt(_0x35c434(0x144))/0xc);if(_0x2692fe===_0x3b76d6)break;else _0x6bb29c['push'](_0x6bb29c['shift']());}catch(_0x560467){_0x6bb29c['push'](_0x6bb29c['shift']());}}}(_0x1a62,0xba0a3));import{logWarning as _0x31682f,uid as _0x5f1e96}from'ckeditor5/src/utils.js';import{Command as _0xc6a871}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0xc6a871{[_0x4c7ac2(0x140)](){const _0x2488df=_0x4c7ac2,_0x28693d=this[_0x2488df(0x143)][_0x2488df(0x137)][_0x2488df(0x13d)][_0x2488df(0x152)],_0x4c2114=this[_0x2488df(0x157)](_0x28693d);this[_0x2488df(0x150)]=!!_0x4c2114;}[_0x4c7ac2(0x158)](_0x162ebe){const _0x5e6479=_0x4c7ac2,{editor:_0x2b8b41}=this,{model:_0x12501d}=_0x2b8b41,{selection:_0x5429c4}=_0x12501d[_0x5e6479(0x13d)],_0xe7c759=this[_0x5e6479(0x157)](_0x5429c4);if(!_0xe7c759)return;const _0x453d46=_0x2b8b41[_0x5e6479(0x155)][_0x5e6479(0x142)](_0x5e6479(0x133)),_0x316b9d=_0x162ebe?.[_0x5e6479(0x13a)]??_0x5f1e96();!function(_0x1b91c5){const _0x282fe1=_0x5e6479;return _0x282fe1(0x139)==typeof _0x1b91c5&&_0x1b91c5[_0x282fe1(0x136)]>0x0&&!/\s/[_0x282fe1(0x14a)](_0x1b91c5)&&!/^\d/[_0x282fe1(0x14a)](_0x1b91c5);}(_0x316b9d)?_0x31682f(_0x5e6479(0x14e)):(_0x12501d[_0x5e6479(0x151)](_0x42e75b=>{const _0x251bdf=_0x5e6479,_0x1a805c=_0x42e75b[_0x251bdf(0x13e)](_0x251bdf(0x13f),{'footnoteId':_0x316b9d});_0x12501d[_0x251bdf(0x135)](_0x1a805c,_0xe7c759,null);}),_0x453d46[_0x5e6479(0x13b)](_0x316b9d));}[_0x4c7ac2(0x157)](_0x274985){const _0x4e8a2c=_0x4c7ac2,{model:_0x42b4c3}=this[_0x4e8a2c(0x143)],{schema:_0x14b039}=_0x42b4c3,_0x50a3b6=_0x274985[_0x4e8a2c(0x138)]();for(const _0x1df68e of _0x50a3b6[_0x4e8a2c(0x156)]())if(_0x14b039[_0x4e8a2c(0x159)](_0x1df68e)||_0x14b039[_0x4e8a2c(0x148)](_0x1df68e))return null;const _0x1875d5=_0x50a3b6[_0x4e8a2c(0x14f)];return _0x14b039[_0x4e8a2c(0x149)](_0x1875d5,_0x4e8a2c(0x13f))?_0x1875d5:null;}}
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x15ca55}from'ckeditor5/src/core.js';import{isWidget as _0x573acd,toWidget as _0x189017,toWidgetEditable as _0x1339ce}from'ckeditor5/src/widget.js';import{uid as _0x5865a7}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1bd3fc,ClickObserver as _0x1f34e3}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5a8352}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xff4fc7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x15ca55{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5a8352];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d17d3}=this;_0x3d17d3['config']['define']('footnotes.multiBlock',!0x0),_0x3d17d3['commands']['add']('insertFootnote',new _0xff4fc7(_0x3d17d3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x18a8b7){const _0x15d9bf=_0x25f99b([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]),_0x11a0ad=0x47a28506,_0x43adb9=0x47a5fbb6^_0x11a0ad,_0x1e8e12=window[_0x25f99b([0x44,0x61,0x74,0x65])][_0x25f99b([0x6e,0x6f,0x77])](),_0x173ff0=_0x18a8b7[_0x25f99b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50bb2b=new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e09c=>{_0x173ff0[_0x25f99b([0x6f,0x6e,0x63,0x65])](_0x25f99b([0x72,0x65,0x61,0x64,0x79]),_0x24e09c);}),_0x23c790={[_0x25f99b([0x6b,0x74,0x79])]:_0x25f99b([0x45,0x43]),[_0x25f99b([0x75,0x73,0x65])]:_0x25f99b([0x73,0x69,0x67]),[_0x25f99b([0x63,0x72,0x76])]:_0x25f99b([0x50,0x2d,0x32,0x35,0x36]),[_0x25f99b([0x78])]:_0x25f99b([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]),[_0x25f99b([0x79])]:_0x25f99b([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]),[_0x25f99b([0x61,0x6c,0x67])]:_0x25f99b([0x45,0x53,0x32,0x35,0x36])},_0x513540=_0x173ff0[_0x25f99b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25f99b([0x67,0x65,0x74])](_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c042e(){let _0x45872e,_0x27a0f5=null,_0x254cf7=null;try{if(_0x513540==_0x25f99b([0x47,0x50,0x4c]))return _0x25f99b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45872e=_0x358ad0(),!_0x45872e)return _0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45872e[_0x25f99b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x254cf7=_0x78221(_0x45872e[_0x25f99b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45872e[_0x25f99b([0x6a,0x74,0x69])])),await _0x2d4e8c()?_0x2698dd()?_0xde3347()?_0x25f99b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29de7f()?(_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f99b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27a0f5=_0x3fe91d(_0x25f99b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38cb49()):_0x25f99b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25f99b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xde3347(){const _0x563088=[_0x25f99b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25f99b([0x74,0x72,0x69,0x61,0x6c])][_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e8e12/0x3e8:0xe10*_0x43adb9;return _0x45872e[_0x25f99b([0x65,0x78,0x70])]<_0x563088;}function _0x2698dd(){const _0x589334=_0x45872e[_0x25f99b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x589334&&(!!_0x589334[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x2a]))||!!_0x589334[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x46,0x4f,0x4f])));}function _0x29de7f(){const _0x3b0d22=_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b0d22||0x0==_0x3b0d22[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5417e}=new URL(window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b0d22[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5417e))return!0x0;const _0x2ce28e=_0x5417e[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e]));return _0x3b0d22[_0x25f99b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x466223=>_0x466223[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x2a])))[_0x25f99b([0x6d,0x61,0x70])](_0x132f5a=>_0x132f5a[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e])))[_0x25f99b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x488598=>_0x488598[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ce28e[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25f99b([0x6d,0x61,0x70])](_0xdcc6f5=>Array(_0x2ce28e[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xdcc6f5[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25f99b([0x66,0x69,0x6c,0x6c])](_0xdcc6f5[0x0]===_0x25f99b([0x2a])?_0x25f99b([0x2a]):'')[_0x25f99b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xdcc6f5))[_0x25f99b([0x73,0x6f,0x6d,0x65])](_0x194313=>_0x2ce28e[_0x25f99b([0x65,0x76,0x65,0x72,0x79])]((_0x2cf1,_0xadf990)=>_0x194313[_0xadf990]===_0x2cf1||_0x194313[_0xadf990]===_0x25f99b([0x2a])));}function _0x38cb49(){return _0x27a0f5&&_0x254cf7?new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347a15,_0x2dfba2)=>{_0x27a0f5[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x347a15,_0x2dfba2),_0x254cf7[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x3f8532=>{_0x3f8532!=_0x25f99b([0x56,0x61,0x6c,0x69,0x64])&&_0x347a15(_0x3f8532);},_0x2dfba2);}):_0x27a0f5||_0x254cf7||_0x25f99b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x78221(_0x235744,_0x5ce8e9){return new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46c203=>{if(_0x4661a1())return _0x46c203(_0x25f99b([0x56,0x61,0x6c,0x69,0x64]));_0x75c28e(),_0x173ff0[_0x25f99b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2355f1=!0x1;const _0x56a144=_0x5865a7();function _0x6d855a(_0x2ba107){return!!_0x2ba107&&(typeof _0x2ba107===_0x25f99b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ba107===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ba107[_0x25f99b([0x74,0x68,0x65,0x6e])]===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ba107[_0x25f99b([0x63,0x61,0x74,0x63,0x68])]===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1faa13(_0xabe4c4){_0x2326bf(_0xabe4c4)[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x2bc382=>{if(!_0x2bc382||_0x2bc382[_0x25f99b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25f99b([0x6f,0x6b]))return _0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40d7c3(_0x20439b(_0x56a144+_0x5ce8e9))!=_0x2bc382[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25f99b([0x56,0x61,0x6c,0x69,0x64]);})[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x1d024d=>(_0x215ee8(),_0x1d024d),()=>{const _0x1e9ee1=_0x3eea2a();return null==_0x1e9ee1?(_0x215ee8(),_0x25f99b([0x56,0x61,0x6c,0x69,0x64])):_0x25f99b(_0x1e8e12-_0x1e9ee1>(0x63ae0106^_0x11a0ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x46c203)[_0x25f99b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5551b5=0x47946b86^_0x11a0ad;function _0x215ee8(){const _0x108ca0=_0x25f99b([0x6c,0x6c,0x63,0x74,0x2d])+_0x40d7c3(_0x20439b(_0x235744)),_0x1e336e=_0x58b04e(_0x40d7c3(window[_0x25f99b([0x4d,0x61,0x74,0x68])][_0x25f99b([0x63,0x65,0x69,0x6c])](_0x1e8e12/_0x5551b5)));window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f99b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108ca0,_0x1e336e);}function _0x3eea2a(){const _0x3ba878=_0x25f99b([0x6c,0x6c,0x63,0x74,0x2d])+_0x40d7c3(_0x20439b(_0x235744)),_0x2925ed=window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f99b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ba878);return _0x2925ed?window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b04e(_0x2925ed),0x10)*_0x5551b5:null;}function _0x2326bf(_0x31036d){return new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43c0aa,_0x218ae0)=>{_0x31036d[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x43c0aa,_0x218ae0),window[_0x25f99b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x218ae0,0x47a351c6^_0x11a0ad);});}}_0x173ff0[_0x25f99b([0x6f,0x6e])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c2027,_0x4ef792)=>{if(_0x4ef792[0x0]!=_0x235744)return _0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ef792[0x1]={..._0x4ef792[0x1],[_0x25f99b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56a144};},{[_0x25f99b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f99b([0x68,0x69,0x67,0x68])}),_0x173ff0[_0x25f99b([0x6f,0x6e])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3221e3=>{_0x6d855a(_0x3221e3[_0x25f99b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2355f1=!0x0,_0x1faa13(_0x3221e3[_0x25f99b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25f99b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f99b([0x6c,0x6f,0x77])}),_0x50bb2b[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>{_0x2355f1||_0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4661a1(){return _0x173ff0[_0x25f99b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f99b([0x76,0x69,0x65,0x77])][_0x25f99b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25f99b([0x61,0x75,0x74,0x6f]);}function _0x75c28e(){_0x173ff0[_0x25f99b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f99b([0x76,0x69,0x65,0x77])][_0x25f99b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25f99b([0x61,0x75,0x74,0x6f]);}}function _0x3fe91d(_0x446370){const _0xf5b7d1=[new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35a778=>setTimeout(_0x35a778,0x47abbbca^_0x11a0ad)),_0x50bb2b[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c6a74=>{let _0x1a1348=0x0;_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x6f,0x6e])](_0x25f99b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x209d87,_0x24b828)=>{_0x24b828[0x0][_0x25f99b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a1348++,_0x1a1348==(0x47a280ee^_0x11a0ad)&&(_0x4c6a74(),_0x209d87[_0x25f99b([0x6f,0x66,0x66])]());});}))];return window[_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25f99b([0x72,0x61,0x63,0x65])](_0xf5b7d1)[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>_0x446370);}async function _0x45ee8b(){await _0x50bb2b,_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59c2ef,_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59c2ef,_0x173ff0[_0x25f99b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x138bdb(_0x5105cd){const _0x4d01ad=_0x36b942();_0x173ff0[_0x4d01ad]=_0x25f99b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5105cd,_0x5105cd!=_0x25f99b([0x56,0x61,0x6c,0x69,0x64])&&_0x45ee8b();}function _0x36b942(){const _0x39a3b0=window[_0x25f99b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25f99b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25f99b([0x6e,0x6f,0x77])]())[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25f99b([0x2e]),'');let _0x34295e=_0x25f99b([0x75]);for(let _0x1fab2b=0x0;_0x1fab2b<_0x39a3b0[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fab2b+=0x2){let _0x599044=window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a3b0[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fab2b,_0x1fab2b+0x2));_0x599044>=_0x15d9bf[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x599044-=_0x15d9bf[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34295e+=_0x15d9bf[_0x599044];}return _0x34295e;}function _0x358ad0(){const _0x48d044=_0x513540[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e]));if(0x3!=_0x48d044[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58c003(_0x48d044[0x1]);function _0x58c003(_0x2436c0){const _0x21502e=_0x3c6137(_0x2436c0);return _0x21502e&&_0xf4378a()?_0x21502e:null;function _0xf4378a(){const _0x1c2683=_0x21502e[_0x25f99b([0x6a,0x74,0x69])],_0x590130=window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2683[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c2683[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a1f44={..._0x21502e,[_0x25f99b([0x6a,0x74,0x69])]:_0x1c2683[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c2683[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a1f44[_0x25f99b([0x76,0x63])],_0x20439b(_0x2a1f44)==_0x590130;}}}async function _0x2d4e8c(){let _0x2bf442=!0x0;try{const _0x32d3cc=_0x513540[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e])),[_0x2bd094,_0x132ce6,_0x1efc3f]=_0x32d3cc;return _0x497617(_0x2bd094),await _0x3b491a(_0x2bd094,_0x132ce6,_0x1efc3f),_0x2bf442;}catch{return!0x1;}function _0x497617(_0x2403e2){const _0x2d3904=_0x3c6137(_0x2403e2);_0x2d3904&&_0x2d3904[_0x25f99b([0x61,0x6c,0x67])]==_0x25f99b([0x45,0x53,0x32,0x35,0x36])||(_0x2bf442=!0x1);}async function _0x3b491a(_0x15d11f,_0x2e02b5,_0x25043c){const _0x19ee79=window[_0x25f99b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25f99b([0x66,0x72,0x6f,0x6d])](_0x35e970(_0x25043c),_0x514da6=>_0x514da6[_0x25f99b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138124=new window[(_0x25f99b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25f99b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15d11f+_0x25f99b([0x2e])+_0x2e02b5),_0x15c13f=window[_0x25f99b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25f99b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15c13f)return;const _0x1efa3c=await _0x15c13f[_0x25f99b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25f99b([0x6a,0x77,0x6b]),_0x23c790,{[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x45,0x43,0x44,0x53,0x41]),[_0x25f99b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25f99b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15c13f[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x45,0x43,0x44,0x53,0x41]),[_0x25f99b([0x68,0x61,0x73,0x68])]:{[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1efa3c,_0x19ee79,_0x138124)||(_0x2bf442=!0x1);}}function _0x3c6137(_0x172d17){return _0x172d17[_0x25f99b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25f99b([0x65,0x79]))?JSON[_0x25f99b([0x70,0x61,0x72,0x73,0x65])](_0x35e970(_0x172d17)):null;}function _0x35e970(_0xb532a5){return window[_0x25f99b([0x61,0x74,0x6f,0x62])](_0xb532a5[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25f99b([0x2b]))[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25f99b([0x2f])));}function _0x20439b(_0x700b19){let _0x51c25a=0x1505;function _0x2b62b2(_0x28f38d){for(let _0x16f480=0x0;_0x16f480<_0x28f38d[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16f480++){const _0x45f342=_0x28f38d[_0x25f99b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16f480);_0x51c25a=(_0x51c25a<<0x5)+_0x51c25a+_0x45f342,_0x51c25a&=_0x51c25a;}}function _0x246bfb(_0x372db3){Array[_0x25f99b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x372db3)?_0x372db3[_0x25f99b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x246bfb):_0x372db3&&typeof _0x372db3==_0x25f99b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25f99b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x372db3)[_0x25f99b([0x73,0x6f,0x72,0x74])]()[_0x25f99b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22ee9e,_0x35759a])=>{_0x2b62b2(_0x22ee9e),_0x246bfb(_0x35759a);}):_0x2b62b2(window[_0x25f99b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x372db3));}return _0x246bfb(_0x700b19),_0x51c25a>>>0x0;}function _0x40d7c3(_0x1ce575){return _0x1ce575[_0x25f99b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25f99b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25f99b([0x30]));}function _0x58b04e(_0x18269d){return _0x18269d[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25f99b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25f99b([0x6a,0x6f,0x69,0x6e])]('');}function _0x59c2ef(){}function _0x25f99b(_0x4bb9dc){return _0x4bb9dc['map'](_0x4f19e1=>String['fromCharCode'](_0x4f19e1))['join']('');}_0x138bdb(await _0x2c042e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1f7ae3){const {plugins:_0x4d2e3f,editing:_0x498565,model:_0x153b53}=this['editor'],_0x4df628=_0x4d2e3f['get'](_0x5a8352)['getFootnote'](_0x1f7ae3);return!!_0x4df628&&(_0x153b53['change'](_0x18aae6=>{_0x18aae6['setSelection'](_0x18aae6['createPositionAt'](_0x4df628['definition'],'end'));}),_0x498565['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x339d58){const {plugins:_0x321cc1,editing:_0xcc4c1a,model:_0x131a39}=this['editor'],_0x43e976=_0x321cc1['get'](_0x5a8352)['getFootnote'](_0x339d58);return!!_0x43e976&&(_0x131a39['change'](_0x15347c=>{_0x15347c['setSelection'](_0x43e976['reference'],'on');}),_0xcc4c1a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x9edb9a}=this['editor']['model'],_0x4d9b57=this['editor']['config']['get']('footnotes.multiBlock');_0x9edb9a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x9edb9a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x9edb9a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d9b57?_0x9edb9a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x9edb9a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x9edb9a['addChildCheck'](_0x330b71=>{for(const _0x469298 of _0x330b71)if('footnoteDefinition'===_0x469298['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2c7823}=this,{conversion:_0x2cac80,editing:_0x1d6395}=_0x2c7823,{t:t}=_0x2c7823['locale'];_0x2cac80['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1e7e3d,{writer:_0x98ea1e,consumable:_0x17efc8})=>{const _0x302411=_0x1e7e3d['getChild'](0x0);if(!_0x302411||!_0x302411['is']('element','a'))return null;const _0x2d6771=_0x302411['getAttribute']('href')||'';if(!_0x2d6771['startsWith']('#'))return null;const _0x14a2dc=_0x2d6771['replace'](/^#/,'');if(!_0x14a2dc)return null;_0x17efc8['consume'](_0x302411,{'name':!0x0,'attributes':['href']});for(const {item:_0x7aed22}of _0x1d6395['view']['createRangeIn'](_0x302411))_0x7aed22['is']('$textProxy')?_0x17efc8['consume'](_0x7aed22['textNode'],{'name':!0x0}):_0x7aed22['is']('element')&&_0x17efc8['consume'](_0x7aed22,{'name':!0x0});return _0x98ea1e['createElement']('footnoteRef',{'footnoteId':_0x14a2dc});}}),_0x2cac80['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3c0c18,{writer:_0x28a737})=>b(_0x3c0c18,_0x28a737)}),_0x2cac80['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4604d0,{writer:_0x5be026})=>{const _0x16ed18=_0x4604d0['getAttribute']('footnoteCounter');return _0x189017(b(_0x4604d0,_0x5be026),_0x5be026,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x16ed18)});}});}['_defineDefinitionsConverters'](){const {editor:_0x583a32}=this,{t:t}=_0x583a32['locale'],{conversion:_0x5d374a}=_0x583a32;_0x5d374a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5d374a['for']('upcast')['add'](_0x37fdfb=>{_0x37fdfb['on']('element:ol',(_0x3faa09,_0x3603d3,_0x36bc22)=>{const _0x195ce8=_0x3603d3['viewItem'];if(!_0x195ce8['hasClass']('footnotes-list')||!_0x3603d3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x36bc22['consumable']['consume'](_0x195ce8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf36d94,modelCursor:_0x20c516}=_0x36bc22['convertChildren'](_0x3603d3['viewItem'],_0x3603d3['modelCursor']);_0x3603d3['modelRange']=_0xf36d94,_0x3603d3['modelCursor']=_0x20c516;}),_0x37fdfb['on']('element:hr',(_0x45b2a6,_0x308140,_0x5f0bde)=>{const _0x436cca=_0x308140['viewItem'];_0x436cca['hasClass']('footnotes-divider')&&_0x308140['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f0bde['consumable']['consume'](_0x436cca,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5d374a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x385fd9,{writer:_0x41db6c})=>D(_0x41db6c)}),_0x5d374a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x544e7f,{writer:_0x379541})=>{const _0x3801cb=D(_0x379541,{'data-footnotes-list-label':t('Footnotes')}),_0x279ad2=_0x189017(_0x3801cb,_0x379541,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x379541['setCustomProperty']('footnotesDefinitions',!0x0,_0x279ad2),_0x279ad2;}});}['_defineDefinitionConverters'](){const {editor:_0x2f7db4}=this,{conversion:_0x4d3636,locale:_0x429adc}=_0x2f7db4,_0x45fae2=_0x2f7db4['config']['get']('footnotes.multiBlock');_0x4d3636['for']('upcast')['add'](_0x51cb60=>{_0x51cb60['on']('element:li',(_0x58e7af,_0x604396,_0x3af96d)=>{const _0xc062b8=_0x604396['viewItem'];if(!_0xc062b8['hasClass']('footnote-definition')||!_0xc062b8['getAttribute']('id'))return;const _0x177919=_0xc062b8['parent'];if(!_0x177919['is']('element','ol')||!_0x177919['hasClass']('footnotes-list'))return;if(!_0x3af96d['consumable']['test'](_0xc062b8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x49b675=_0x3af96d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xc062b8['getAttribute']('id')});if(!_0x3af96d['safeInsert'](_0x49b675,_0x604396['modelCursor']))return;_0x3af96d['consumable']['consume'](_0xc062b8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3264d9=Array['from'](_0xc062b8['getChildren']())['find'](_0x51046e=>_0x51046e['is']('element')&&_0x51046e['hasClass']('footnote-content'));for(const _0x4f83f8 of _0xc062b8['getChildren']())_0x4f83f8['is']('element')&&(_0x3af96d['consumable']['consume'](_0x4f83f8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3af96d['consumable']['consume'](_0x4f83f8,{'name':!0x0,'classes':'footnote-content'}));if(_0x3264d9){if(_0x45fae2)_0x3af96d['convertChildren'](_0x3264d9,_0x49b675);else{const _0x337b8e=_0x3af96d['writer']['createElement']('footnoteInlineContent');_0x3af96d['writer']['insert'](_0x337b8e,_0x49b675),_0x3af96d['convertChildren'](_0x3264d9,_0x337b8e);}}_0x3af96d['updateConversionResult'](_0x49b675,_0x604396);});}),_0x4d3636['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x566773,{writer:_0x2b8412})=>y(_0x566773,_0x2b8412,_0x429adc,{'dataPipeline':!0x0})}),_0x4d3636['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43eeec,{writer:_0x19f0fa})=>y(_0x43eeec,_0x19f0fa,_0x429adc)});}['_defineBogusParagraphConverters'](){const {editor:_0x4188ac}=this,{conversion:_0x20becf}=_0x4188ac;_0x4188ac['config']['get']('footnotes.multiBlock')?(_0x20becf['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x20becf['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4188ac['model']['document'],'change:data',()=>{!function(_0x3596f9,_0x330797){const _0x5803b4=_0x3596f9['document']['differ'],_0x251295=new Set();for(const _0x93e4a4 of _0x5803b4['getChanges']()){const _0x1bb5d1='attribute'==_0x93e4a4['type']?_0x93e4a4['range']['start']['parent']:_0x93e4a4['position']['parent'];_0x1bb5d1['is']('element','footnoteDefinition')&&_0x251295['add'](_0x1bb5d1);}for(const _0x5f2324 of _0x251295['values']()){const _0x1e3e61=Array['from'](_0x5f2324['getChildren']())['filter'](_0xafc36a=>v(_0xafc36a,_0x330797['mapper']));for(const _0x1cffb1 of _0x1e3e61)_0x330797['reconvertItem'](_0x1cffb1);}}(_0x4188ac['model'],_0x4188ac['editing']);})):(_0x20becf['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x20becf['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6db163,{writer:_0x526289})=>{const _0x1ad22f=_0x526289['createContainerElement']('span');return _0x526289['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1ad22f),_0x1ad22f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4268a5}=this,{editing:_0x32bb2f,t:t}=_0x4268a5,_0x31cd82=_0x4268a5['model']['document']['selection'];_0x4268a5['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4268a5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x32bb2f['view']['document'],'enter',(_0x396d84,_0x1d2e5e)=>{const _0x566032=function(_0x599c88){const _0x4bb0d9=_0x599c88['getSelectedElement']();if(_0x4bb0d9?.['is']('element','footnoteRef'))return _0x4bb0d9;return null;}(_0x31cd82);if(_0x566032){const _0x5a4e15=_0x566032['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5a4e15),_0x1d2e5e['preventDefault'](),_0x396d84['stop']();}},{'context':_0x573acd});}['_defineClickHandlers'](){const {editor:_0x2e5cce}=this,{editing:_0x4c0a06}=_0x2e5cce;_0x2e5cce['editing']['view']['addObserver'](_0x1bd3fc),_0x2e5cce['editing']['view']['addObserver'](_0x1f34e3);let _0x107b90=!0x1;this['listenTo'](_0x4c0a06['view']['document'],'pointerdown',(_0x590210,_0x2b5605)=>{const {target:_0x3f5129}=_0x2b5605,_0x4eca92=_0x4c0a06['view']['document']['selection'];_0x107b90=!!(_0x3f5129?.['is']('element','a')&&_0x3f5129['parent']?.['is']('element','sup')&&_0x3f5129['parent']['hasClass']('footnote'))&&_0x4eca92['getSelectedElement']()===_0x3f5129['parent'];},{'priority':'high'}),this['listenTo'](_0x4c0a06['view']['document'],'click',(_0xcbd36a,_0xd02180)=>{const {target:_0x5153d1}=_0xd02180;if(!_0x5153d1?.['is']('element','a'))return;if(_0x5153d1['parent']?.['is']('element','sup')&&_0x5153d1['parent']['hasClass']('footnote')&&!_0x107b90)return void _0xd02180['preventDefault']();let _0x5f5478=_0x5153d1['getAttribute']('href');if(!_0x5f5478?.['startsWith']('#'))return;_0x5f5478=_0x5f5478['slice'](0x1);let _0x190602=!0x1;(_0x5f5478['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5f5478['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5f5478))&&(_0x190602=!0x0),_0x190602&&(_0xd02180['preventDefault'](),_0xcbd36a['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x131289}={}){return(_0x5ba3dc,{writer:_0x39c728})=>{if(!g(_0x5ba3dc))return null;if(!_0x131289)return _0x39c728['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1c94ae=_0x39c728['createContainerElement']('p');return _0x39c728['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1c94ae),_0x1c94ae;};}function g(_0x5cd5a9){const {parent:_0x23d353}=_0x5cd5a9;if(!_0x23d353?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x23d353['childCount'])return!0x1;for(const _0x3c6261 of _0x5cd5a9['getAttributeKeys']())if(!_0x3c6261['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3c6261)return!0x1;return!0x0;}function v(_0xd9e999,_0x1ad3fc){if(!_0xd9e999['is']('element','paragraph'))return!0x1;const _0x1921ed=_0x1ad3fc['toViewElement'](_0xd9e999);return!!_0x1921ed&&g(_0xd9e999)!==_0x1921ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x14efeb){return _0x573acd(_0x14efeb)&&_0x14efeb['is']('containerElement')&&!!_0x14efeb['getCustomProperty']('footnotesDefinitions');}function D(_0xc75975,_0x178955={}){const _0x48aac6=_0xc75975['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2b4461=_0xc75975['createContainerElement']('ol',{'class':'footnotes-list'},_0xc75975['createSlot']());return _0xc75975['createContainerElement']('div',{'class':'footnotes',..._0x178955},[_0x48aac6,_0x2b4461]);}function b(_0x317b99,_0xcf464d){const _0x4582f2=_0x317b99['getAttribute']('footnoteId'),_0x19319c=_0x317b99['getAttribute']('footnoteCounter'),_0x4b1a5e=_0xcf464d['createUIElement']('a',{'href':'#'+_0x4582f2},function(_0x3dd9cf){const _0x7ffc4d=this['toDomElement'](_0x3dd9cf);return _0x7ffc4d['textContent']=_0x19319c,_0x7ffc4d;}),_0x3f43fd=_0xcf464d['createContainerElement']('sup',{'id':'ref-'+_0x4582f2,'class':'footnote'},[_0x4b1a5e]);return _0x3f43fd['getFillerOffset']=()=>null,_0x3f43fd;}function y(_0x15d9b9,_0x2845f0,_0x1720b6,{dataPipeline:_0x3b09e8}={}){const {t:t}=_0x1720b6,_0x1e2093=_0x15d9b9['getAttribute']('footnoteId'),_0x2539d2=_0x2845f0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1e2093},function(_0x4f1202){const _0x4edd45=this['toDomElement'](_0x4f1202);return _0x4edd45['innerText']='^',_0x4edd45;}),_0x4a8ffb=_0x3b09e8?_0x2845f0['createContainerElement']('div',{'class':'footnote-content'}):_0x1339ce(_0x2845f0['createEditableElement']('div',{'class':'footnote-content'}),_0x2845f0,{'label':t('Footnote\x20content.')});return _0x2845f0['insert'](_0x2845f0['createPositionAt'](_0x4a8ffb,0x0),_0x2845f0['createSlot']()),_0x2845f0['createContainerElement']('li',{'class':'footnote-definition','id':_0x1e2093},[_0x2539d2,_0x4a8ffb]);}
|
|
23
|
+
import{Plugin as _0x2ed68a}from'ckeditor5/src/core.js';import{isWidget as _0xdadc05,toWidget as _0x3e8240,toWidgetEditable as _0x3ecac3}from'ckeditor5/src/widget.js';import{uid as _0x748a2c}from'ckeditor5/src/utils.js';import{PointerObserver as _0xdb65b8,ClickObserver as _0x5bcff3}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x570d5d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x51098b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2ed68a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x570d5d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa3a55}=this;_0xa3a55['config']['define']('footnotes.multiBlock',!0x0),_0xa3a55['commands']['add']('insertFootnote',new _0x51098b(_0xa3a55)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x50d15c){const _0x1e1225=_0x11098f([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]),_0x350c6d=0x47a28506,_0x5a8199=0x47a5fbce^_0x350c6d,_0x95aebd=window[_0x11098f([0x44,0x61,0x74,0x65])][_0x11098f([0x6e,0x6f,0x77])](),_0x29e97a=_0x50d15c[_0x11098f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fc575=new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x175b43=>{_0x29e97a[_0x11098f([0x6f,0x6e,0x63,0x65])](_0x11098f([0x72,0x65,0x61,0x64,0x79]),_0x175b43);}),_0x482ee2={[_0x11098f([0x6b,0x74,0x79])]:_0x11098f([0x45,0x43]),[_0x11098f([0x75,0x73,0x65])]:_0x11098f([0x73,0x69,0x67]),[_0x11098f([0x63,0x72,0x76])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36]),[_0x11098f([0x78])]:_0x11098f([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]),[_0x11098f([0x79])]:_0x11098f([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]),[_0x11098f([0x61,0x6c,0x67])]:_0x11098f([0x45,0x53,0x32,0x35,0x36])},_0x4648db=_0x29e97a[_0x11098f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11098f([0x67,0x65,0x74])](_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcbc8c5(){let _0x2fedad,_0x4e5fcf=null,_0x1c9277=null;try{if(_0x4648db==_0x11098f([0x47,0x50,0x4c]))return _0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fedad=_0x24242b(),!_0x2fedad)return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c9277=_0x4097a4(_0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fedad[_0x11098f([0x6a,0x74,0x69])])),await _0x6201e5()?_0x195df3()?_0x59e1df()?_0x11098f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22b8a5()?(_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e5fcf=_0x43fa81(_0x11098f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ad388()):_0x11098f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59e1df(){const _0x19d61a=[_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11098f([0x74,0x72,0x69,0x61,0x6c])][_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x95aebd/0x3e8:0xe10*_0x5a8199;return _0x2fedad[_0x11098f([0x65,0x78,0x70])]<_0x19d61a;}function _0x195df3(){const _0x134ccb=_0x2fedad[_0x11098f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x134ccb&&(!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a]))||!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x46,0x4f,0x4f])));}function _0x22b8a5(){const _0x5b64a2=_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b64a2||0x0==_0x5b64a2[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c263}=new URL(window[_0x11098f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b64a2[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c263))return!0x0;const _0x3c7a1d=_0x58c263[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));return _0x5b64a2[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2df5ba=>_0x2df5ba[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a])))[_0x11098f([0x6d,0x61,0x70])](_0x2e1a85=>_0x2e1a85[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])))[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x366049=>_0x366049[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x6d,0x61,0x70])](_0x2b214c=>Array(_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b214c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x66,0x69,0x6c,0x6c])](_0x2b214c[0x0]===_0x11098f([0x2a])?_0x11098f([0x2a]):'')[_0x11098f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b214c))[_0x11098f([0x73,0x6f,0x6d,0x65])](_0x31297d=>_0x3c7a1d[_0x11098f([0x65,0x76,0x65,0x72,0x79])]((_0x1a5bf1,_0xdfe746)=>_0x31297d[_0xdfe746]===_0x1a5bf1||_0x31297d[_0xdfe746]===_0x11098f([0x2a])));}function _0x3ad388(){return _0x4e5fcf&&_0x1c9277?new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a3b1,_0x2c9054)=>{_0x4e5fcf[_0x11098f([0x74,0x68,0x65,0x6e])](_0x48a3b1,_0x2c9054),_0x1c9277[_0x11098f([0x74,0x68,0x65,0x6e])](_0x2a3740=>{_0x2a3740!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x48a3b1(_0x2a3740);},_0x2c9054);}):_0x4e5fcf||_0x1c9277||_0x11098f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4097a4(_0x36de96,_0x54767d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387c84=>{if(_0x18fd7e())return _0x387c84(_0x11098f([0x56,0x61,0x6c,0x69,0x64]));_0x3583c8(),_0x29e97a[_0x11098f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13a24c=!0x1;const _0x271292=_0x748a2c();function _0x598266(_0x41bc81){return!!_0x41bc81&&(typeof _0x41bc81===_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41bc81===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41bc81[_0x11098f([0x74,0x68,0x65,0x6e])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41bc81[_0x11098f([0x63,0x61,0x74,0x63,0x68])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2257e2(_0x422fe1){_0x1c9c7c(_0x422fe1)[_0x11098f([0x74,0x68,0x65,0x6e])](_0x316a8c=>{if(!_0x316a8c||_0x316a8c[_0x11098f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11098f([0x6f,0x6b]))return _0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469b01(_0x2337ca(_0x271292+_0x54767d))!=_0x316a8c[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x3673f8=>(_0x31c313(),_0x3673f8),()=>{const _0x2092da=_0x3a633a();return null==_0x2092da?(_0x31c313(),_0x11098f([0x56,0x61,0x6c,0x69,0x64])):_0x11098f(_0x95aebd-_0x2092da>(0x63ae0106^_0x350c6d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x387c84)[_0x11098f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54de88=0x47946b86^_0x350c6d;function _0x31c313(){const _0x1dce9b=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x581702=_0x2c1f36(_0x469b01(window[_0x11098f([0x4d,0x61,0x74,0x68])][_0x11098f([0x63,0x65,0x69,0x6c])](_0x95aebd/_0x54de88)));window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dce9b,_0x581702);}function _0x3a633a(){const _0x44fba2=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x13765c=window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44fba2);return _0x13765c?window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1f36(_0x13765c),0x10)*_0x54de88:null;}function _0x1c9c7c(_0x2cbe1d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5687f4,_0x53a1e3)=>{_0x2cbe1d[_0x11098f([0x74,0x68,0x65,0x6e])](_0x5687f4,_0x53a1e3),window[_0x11098f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a1e3,0x47a351c6^_0x350c6d);});}}_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52eece,_0x3eb4f0)=>{if(_0x3eb4f0[0x0]!=_0x36de96)return _0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb4f0[0x1]={..._0x3eb4f0[0x1],[_0x11098f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x271292};},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x68,0x69,0x67,0x68])}),_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3112cc=>{_0x598266(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13a24c=!0x0,_0x2257e2(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x6c,0x6f,0x77])}),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>{_0x13a24c||_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18fd7e(){return _0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11098f([0x61,0x75,0x74,0x6f]);}function _0x3583c8(){_0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11098f([0x61,0x75,0x74,0x6f]);}}function _0x43fa81(_0x53455a){const _0x49bc41=[new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2563e1=>setTimeout(_0x2563e1,0x47abbbca^_0x350c6d)),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470b63=>{let _0x4f9e00=0x0;_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x6f,0x6e])](_0x11098f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c1e93,_0x51ff96)=>{_0x51ff96[0x0][_0x11098f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9e00++,_0x4f9e00==(0x47a280ee^_0x350c6d)&&(_0x470b63(),_0x3c1e93[_0x11098f([0x6f,0x66,0x66])]());});}))];return window[_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11098f([0x72,0x61,0x63,0x65])](_0x49bc41)[_0x11098f([0x74,0x68,0x65,0x6e])](()=>_0x53455a);}async function _0x236f41(){await _0x3fc575,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11098f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fd4a3(_0x302ea3){const _0x4358b7=_0x156aef();_0x29e97a[_0x4358b7]=_0x11098f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x302ea3,_0x302ea3!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x236f41();}function _0x156aef(){const _0x53a785=window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11098f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11098f([0x6e,0x6f,0x77])]())[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11098f([0x2e]),'');let _0x4edceb=_0x11098f([0x75]);for(let _0x191a93=0x0;_0x191a93<_0x53a785[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x191a93+=0x2){let _0x1550e6=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a785[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x191a93,_0x191a93+0x2));_0x1550e6>=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1550e6-=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4edceb+=_0x1e1225[_0x1550e6];}return _0x4edceb;}function _0x24242b(){const _0x55f935=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));if(0x3!=_0x55f935[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4aedae(_0x55f935[0x1]);function _0x4aedae(_0x4fe4dc){const _0x3401c5=_0x3fec02(_0x4fe4dc);return _0x3401c5&&_0x3d460e()?_0x3401c5:null;function _0x3d460e(){const _0x33de38=_0x3401c5[_0x11098f([0x6a,0x74,0x69])],_0x545a46=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48e490={..._0x3401c5,[_0x11098f([0x6a,0x74,0x69])]:_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48e490[_0x11098f([0x76,0x63])],_0x2337ca(_0x48e490)==_0x545a46;}}}async function _0x6201e5(){let _0x17dfd2=!0x0;try{const _0x4898c1=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])),[_0x558987,_0x3df8b5,_0x164b3b]=_0x4898c1;return _0x26eb33(_0x558987),await _0x346b43(_0x558987,_0x3df8b5,_0x164b3b),_0x17dfd2;}catch{return!0x1;}function _0x26eb33(_0x44f061){const _0x236377=_0x3fec02(_0x44f061);_0x236377&&_0x236377[_0x11098f([0x61,0x6c,0x67])]==_0x11098f([0x45,0x53,0x32,0x35,0x36])||(_0x17dfd2=!0x1);}async function _0x346b43(_0x5b55a3,_0x87f80b,_0x38d897){const _0x34c8c0=window[_0x11098f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11098f([0x66,0x72,0x6f,0x6d])](_0x1fa8d2(_0x38d897),_0x26f8ee=>_0x26f8ee[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x82e3fa=new window[(_0x11098f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11098f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b55a3+_0x11098f([0x2e])+_0x87f80b),_0x986ce1=window[_0x11098f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11098f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x986ce1)return;const _0x14664a=await _0x986ce1[_0x11098f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11098f([0x6a,0x77,0x6b]),_0x482ee2,{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x986ce1[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x68,0x61,0x73,0x68])]:{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14664a,_0x34c8c0,_0x82e3fa)||(_0x17dfd2=!0x1);}}function _0x3fec02(_0x5eaaa0){return _0x5eaaa0[_0x11098f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11098f([0x65,0x79]))?JSON[_0x11098f([0x70,0x61,0x72,0x73,0x65])](_0x1fa8d2(_0x5eaaa0)):null;}function _0x1fa8d2(_0x27a990){return window[_0x11098f([0x61,0x74,0x6f,0x62])](_0x27a990[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11098f([0x2b]))[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11098f([0x2f])));}function _0x2337ca(_0x1aa2d0){let _0x53a0ba=0x1505;function _0x2f9c5f(_0x1b731c){for(let _0x8c921e=0x0;_0x8c921e<_0x1b731c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8c921e++){const _0x4bc3e2=_0x1b731c[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8c921e);_0x53a0ba=(_0x53a0ba<<0x5)+_0x53a0ba+_0x4bc3e2,_0x53a0ba&=_0x53a0ba;}}function _0x3b0bdd(_0x23a993){Array[_0x11098f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23a993)?_0x23a993[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b0bdd):_0x23a993&&typeof _0x23a993==_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11098f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23a993)[_0x11098f([0x73,0x6f,0x72,0x74])]()[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x146e51,_0x2fe637])=>{_0x2f9c5f(_0x146e51),_0x3b0bdd(_0x2fe637);}):_0x2f9c5f(window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23a993));}return _0x3b0bdd(_0x1aa2d0),_0x53a0ba>>>0x0;}function _0x469b01(_0x2488d2){return _0x2488d2[_0x11098f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11098f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11098f([0x30]));}function _0x2c1f36(_0x5b7aa6){return _0x5b7aa6[_0x11098f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11098f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11098f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1960f6(){}function _0x11098f(_0x50e821){return _0x50e821['map'](_0x1c3f2e=>String['fromCharCode'](_0x1c3f2e))['join']('');}_0x4fd4a3(await _0xcbc8c5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10f201){const {plugins:_0x476838,editing:_0x305d61,model:_0x4026cc}=this['editor'],_0x37ad68=_0x476838['get'](_0x570d5d)['getFootnote'](_0x10f201);return!!_0x37ad68&&(_0x4026cc['change'](_0x5a08c7=>{_0x5a08c7['setSelection'](_0x5a08c7['createPositionAt'](_0x37ad68['definition'],'end'));}),_0x305d61['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5525fc){const {plugins:_0x4ef959,editing:_0x159bf0,model:_0x5afe6c}=this['editor'],_0x1835cd=_0x4ef959['get'](_0x570d5d)['getFootnote'](_0x5525fc);return!!_0x1835cd&&(_0x5afe6c['change'](_0x2fb833=>{_0x2fb833['setSelection'](_0x1835cd['reference'],'on');}),_0x159bf0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x33189f}=this['editor']['model'],_0x33566f=this['editor']['config']['get']('footnotes.multiBlock');_0x33189f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x33189f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x33189f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33566f?_0x33189f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x33189f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x33189f['addChildCheck'](_0x4f1bf1=>{for(const _0x30df87 of _0x4f1bf1)if('footnoteDefinition'===_0x30df87['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x596481}=this,{conversion:_0x3ca7d8,editing:_0x511dcd}=_0x596481,{t:t}=_0x596481['locale'];_0x3ca7d8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x78afe5,{writer:_0x59b1af,consumable:_0x4b25dc})=>{const _0x22adcc=_0x78afe5['getChild'](0x0);if(!_0x22adcc||!_0x22adcc['is']('element','a'))return null;const _0xc03631=_0x22adcc['getAttribute']('href')||'';if(!_0xc03631['startsWith']('#'))return null;const _0x1daea6=_0xc03631['replace'](/^#/,'');if(!_0x1daea6)return null;_0x4b25dc['consume'](_0x22adcc,{'name':!0x0,'attributes':['href']});for(const {item:_0x134ea2}of _0x511dcd['view']['createRangeIn'](_0x22adcc))_0x134ea2['is']('$textProxy')?_0x4b25dc['consume'](_0x134ea2['textNode'],{'name':!0x0}):_0x134ea2['is']('element')&&_0x4b25dc['consume'](_0x134ea2,{'name':!0x0});return _0x59b1af['createElement']('footnoteRef',{'footnoteId':_0x1daea6});}}),_0x3ca7d8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4f3a69,{writer:_0x2d5b29})=>b(_0x4f3a69,_0x2d5b29)}),_0x3ca7d8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x211396,{writer:_0x493e14})=>{const _0x588c35=_0x211396['getAttribute']('footnoteCounter');return _0x3e8240(b(_0x211396,_0x493e14),_0x493e14,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x588c35)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9a76e2}=this,{t:t}=_0x9a76e2['locale'],{conversion:_0xc196f1}=_0x9a76e2;_0xc196f1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xc196f1['for']('upcast')['add'](_0x2976a8=>{_0x2976a8['on']('element:ol',(_0xf950af,_0x376aa0,_0x206285)=>{const _0x353880=_0x376aa0['viewItem'];if(!_0x353880['hasClass']('footnotes-list')||!_0x376aa0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x206285['consumable']['consume'](_0x353880,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d57bf,modelCursor:_0x51185f}=_0x206285['convertChildren'](_0x376aa0['viewItem'],_0x376aa0['modelCursor']);_0x376aa0['modelRange']=_0x4d57bf,_0x376aa0['modelCursor']=_0x51185f;}),_0x2976a8['on']('element:hr',(_0x4d6035,_0x487902,_0x42da11)=>{const _0x31828f=_0x487902['viewItem'];_0x31828f['hasClass']('footnotes-divider')&&_0x487902['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x42da11['consumable']['consume'](_0x31828f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xc196f1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c28d4,{writer:_0x402758})=>D(_0x402758)}),_0xc196f1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38cb46,{writer:_0x3af6bc})=>{const _0x5b799a=D(_0x3af6bc,{'data-footnotes-list-label':t('Footnotes')}),_0x50ba1b=_0x3e8240(_0x5b799a,_0x3af6bc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3af6bc['setCustomProperty']('footnotesDefinitions',!0x0,_0x50ba1b),_0x50ba1b;}});}['_defineDefinitionConverters'](){const {editor:_0x117368}=this,{conversion:_0x37513f,locale:_0x37c0ee}=_0x117368,_0xe8697a=_0x117368['config']['get']('footnotes.multiBlock');_0x37513f['for']('upcast')['add'](_0x3f0fd9=>{_0x3f0fd9['on']('element:li',(_0x27d144,_0x1f5bff,_0x5b47f6)=>{const _0x2c06bd=_0x1f5bff['viewItem'];if(!_0x2c06bd['hasClass']('footnote-definition')||!_0x2c06bd['getAttribute']('id'))return;const _0x55d755=_0x2c06bd['parent'];if(!_0x55d755['is']('element','ol')||!_0x55d755['hasClass']('footnotes-list'))return;if(!_0x5b47f6['consumable']['test'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5c9afe=_0x5b47f6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2c06bd['getAttribute']('id')});if(!_0x5b47f6['safeInsert'](_0x5c9afe,_0x1f5bff['modelCursor']))return;_0x5b47f6['consumable']['consume'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d2949=Array['from'](_0x2c06bd['getChildren']())['find'](_0x591776=>_0x591776['is']('element')&&_0x591776['hasClass']('footnote-content'));for(const _0xa31f87 of _0x2c06bd['getChildren']())_0xa31f87['is']('element')&&(_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d2949){if(_0xe8697a)_0x5b47f6['convertChildren'](_0x2d2949,_0x5c9afe);else{const _0x52f507=_0x5b47f6['writer']['createElement']('footnoteInlineContent');_0x5b47f6['writer']['insert'](_0x52f507,_0x5c9afe),_0x5b47f6['convertChildren'](_0x2d2949,_0x52f507);}}_0x5b47f6['updateConversionResult'](_0x5c9afe,_0x1f5bff);});}),_0x37513f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c7282,{writer:_0x3e3e13})=>y(_0x1c7282,_0x3e3e13,_0x37c0ee,{'dataPipeline':!0x0})}),_0x37513f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x23f80d,{writer:_0x18fe39})=>y(_0x23f80d,_0x18fe39,_0x37c0ee)});}['_defineBogusParagraphConverters'](){const {editor:_0x35bc9e}=this,{conversion:_0x50acfa}=_0x35bc9e;_0x35bc9e['config']['get']('footnotes.multiBlock')?(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35bc9e['model']['document'],'change:data',()=>{!function(_0xb509ac,_0x2fdc54){const _0x51cf8f=_0xb509ac['document']['differ'],_0x392c68=new Set();for(const _0x339c86 of _0x51cf8f['getChanges']()){const _0x36a184='attribute'==_0x339c86['type']?_0x339c86['range']['start']['parent']:_0x339c86['position']['parent'];_0x36a184['is']('element','footnoteDefinition')&&_0x392c68['add'](_0x36a184);}for(const _0x58305a of _0x392c68['values']()){const _0x2613b=Array['from'](_0x58305a['getChildren']())['filter'](_0x559d1=>v(_0x559d1,_0x2fdc54['mapper']));for(const _0x461943 of _0x2613b)_0x2fdc54['reconvertItem'](_0x461943);}}(_0x35bc9e['model'],_0x35bc9e['editing']);})):(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6b444d,{writer:_0x223c03})=>{const _0xa9b844=_0x223c03['createContainerElement']('span');return _0x223c03['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xa9b844),_0xa9b844;}}));}['_defineKeyboardHandlers'](){const {editor:_0x181537}=this,{editing:_0x2ccb0c,t:t}=_0x181537,_0x758fc2=_0x181537['model']['document']['selection'];_0x181537['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x181537['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2ccb0c['view']['document'],'enter',(_0x441b7d,_0x5450a3)=>{const _0x1b858f=function(_0x2985b2){const _0x528f3f=_0x2985b2['getSelectedElement']();if(_0x528f3f?.['is']('element','footnoteRef'))return _0x528f3f;return null;}(_0x758fc2);if(_0x1b858f){const _0x4bfaf1=_0x1b858f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4bfaf1),_0x5450a3['preventDefault'](),_0x441b7d['stop']();}},{'context':_0xdadc05});}['_defineClickHandlers'](){const {editor:_0x1c1d4e}=this,{editing:_0x32c836}=_0x1c1d4e;_0x1c1d4e['editing']['view']['addObserver'](_0xdb65b8),_0x1c1d4e['editing']['view']['addObserver'](_0x5bcff3);let _0x49878e=!0x1;this['listenTo'](_0x32c836['view']['document'],'pointerdown',(_0x55ff9e,_0x1a6143)=>{const {target:_0x427785}=_0x1a6143,_0x185e67=_0x32c836['view']['document']['selection'];_0x49878e=!!(_0x427785?.['is']('element','a')&&_0x427785['parent']?.['is']('element','sup')&&_0x427785['parent']['hasClass']('footnote'))&&_0x185e67['getSelectedElement']()===_0x427785['parent'];},{'priority':'high'}),this['listenTo'](_0x32c836['view']['document'],'click',(_0x25e580,_0x22e5f3)=>{const {target:_0x9d7d1b}=_0x22e5f3;if(!_0x9d7d1b?.['is']('element','a'))return;if(_0x9d7d1b['parent']?.['is']('element','sup')&&_0x9d7d1b['parent']['hasClass']('footnote')&&!_0x49878e)return void _0x22e5f3['preventDefault']();let _0x8d9251=_0x9d7d1b['getAttribute']('href');if(!_0x8d9251?.['startsWith']('#'))return;_0x8d9251=_0x8d9251['slice'](0x1);let _0x5194b3=!0x1;(_0x8d9251['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x8d9251['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x8d9251))&&(_0x5194b3=!0x0),_0x5194b3&&(_0x22e5f3['preventDefault'](),_0x25e580['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x4c9c84}={}){return(_0x4d78a6,{writer:_0x19cc6f})=>{if(!g(_0x4d78a6))return null;if(!_0x4c9c84)return _0x19cc6f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x36c7d4=_0x19cc6f['createContainerElement']('p');return _0x19cc6f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x36c7d4),_0x36c7d4;};}function g(_0x5a26ae){const {parent:_0x41870d}=_0x5a26ae;if(!_0x41870d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x41870d['childCount'])return!0x1;for(const _0x317f79 of _0x5a26ae['getAttributeKeys']())if(!_0x317f79['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x317f79)return!0x1;return!0x0;}function v(_0x3449f7,_0x286b38){if(!_0x3449f7['is']('element','paragraph'))return!0x1;const _0x4cf671=_0x286b38['toViewElement'](_0x3449f7);return!!_0x4cf671&&g(_0x3449f7)!==_0x4cf671['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x30aea7){return _0xdadc05(_0x30aea7)&&_0x30aea7['is']('containerElement')&&!!_0x30aea7['getCustomProperty']('footnotesDefinitions');}function D(_0x3abcce,_0x58bad1={}){const _0xba6dbf=_0x3abcce['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xf4899f=_0x3abcce['createContainerElement']('ol',{'class':'footnotes-list'},_0x3abcce['createSlot']());return _0x3abcce['createContainerElement']('div',{'class':'footnotes',..._0x58bad1},[_0xba6dbf,_0xf4899f]);}function b(_0x59a5dc,_0x234967){const _0x583298=_0x59a5dc['getAttribute']('footnoteId'),_0x30d721=_0x59a5dc['getAttribute']('footnoteCounter'),_0x222f61=_0x234967['createUIElement']('a',{'href':'#'+_0x583298},function(_0x3c4cb4){const _0x312b22=this['toDomElement'](_0x3c4cb4);return _0x312b22['textContent']=_0x30d721,_0x312b22;}),_0x3fd560=_0x234967['createContainerElement']('sup',{'id':'ref-'+_0x583298,'class':'footnote'},[_0x222f61]);return _0x3fd560['getFillerOffset']=()=>null,_0x3fd560;}function y(_0x1cd0b5,_0x5e65be,_0x5e6a65,{dataPipeline:_0x387fd1}={}){const {t:t}=_0x5e6a65,_0x29ac4c=_0x1cd0b5['getAttribute']('footnoteId'),_0x3a0379=_0x5e65be['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x29ac4c},function(_0x2cd07b){const _0xfa8cc2=this['toDomElement'](_0x2cd07b);return _0xfa8cc2['innerText']='^',_0xfa8cc2;}),_0x18e511=_0x387fd1?_0x5e65be['createContainerElement']('div',{'class':'footnote-content'}):_0x3ecac3(_0x5e65be['createEditableElement']('div',{'class':'footnote-content'}),_0x5e65be,{'label':t('Footnote\x20content.')});return _0x5e65be['insert'](_0x5e65be['createPositionAt'](_0x18e511,0x0),_0x5e65be['createSlot']()),_0x5e65be['createContainerElement']('li',{'class':'footnote-definition','id':_0x29ac4c},[_0x3a0379,_0x18e511]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1171a1=_0x292d;(function(_0x4a183b,_0x14a3db){const _0x625c62=_0x292d,_0xed7205=_0x4a183b();while(!![]){try{const _0x405c2a=-parseInt(_0x625c62(0x17d))/0x1*(-parseInt(_0x625c62(0x18a))/0x2)+parseInt(_0x625c62(0x181))/0x3*(parseInt(_0x625c62(0x187))/0x4)+parseInt(_0x625c62(0x193))/0x5+-parseInt(_0x625c62(0x18d))/0x6+-parseInt(_0x625c62(0x194))/0x7*(-parseInt(_0x625c62(0x184))/0x8)+parseInt(_0x625c62(0x18e))/0x9+parseInt(_0x625c62(0x192))/0xa*(-parseInt(_0x625c62(0x17f))/0xb);if(_0x405c2a===_0x14a3db)break;else _0xed7205['push'](_0xed7205['shift']());}catch(_0x3e7532){_0xed7205['push'](_0xed7205['shift']());}}}(_0x292f,0x6c66c));function _0x292d(_0x285ccf,_0x56622f){const _0x292f9f=_0x292f();return _0x292d=function(_0x292dd5,_0x4265b5){_0x292dd5=_0x292dd5-0x17d;let _0x5d8c07=_0x292f9f[_0x292dd5];return _0x5d8c07;},_0x292d(_0x285ccf,_0x56622f);}import{Command as _0x339bb7}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x4a155a}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x339bb7{[_0x1171a1(0x180)](){const _0x42c3b6=_0x1171a1,{editor:_0x52abbb}=this,_0x1b2336=_0x52abbb[_0x42c3b6(0x17e)][_0x42c3b6(0x191)](_0x4a155a)[_0x42c3b6(0x18c)]();this[_0x42c3b6(0x186)]=!!_0x1b2336,this[_0x42c3b6(0x182)]=_0x1b2336?.[_0x42c3b6(0x190)](_0x42c3b6(0x18f))??null;}[_0x1171a1(0x195)]({value:_0xb425db}){const _0x148f2a=_0x1171a1,{editor:_0xb5b43c}=this,_0xaf3d10=_0xb5b43c[_0x148f2a(0x17e)][_0x148f2a(0x191)](_0x4a155a),_0x523523=_0xaf3d10[_0x148f2a(0x18c)]();_0x523523&&Number[_0x148f2a(0x189)](_0xb425db)&&_0xb5b43c[_0x148f2a(0x183)][_0x148f2a(0x188)](_0x245430=>{const _0x890341=_0x148f2a;_0x245430[_0x890341(0x185)](_0x890341(0x18f),_0xb425db,_0x523523),_0xaf3d10[_0x890341(0x18b)](_0x245430);});}}function _0x292f(){const _0x8aa6f2=['28yhNsTc','change','isInteger','276344ZMtIxI','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','2005182TScfuD','5744142xCMYxv','footnotesListStart','getAttribute','get','283980IZaIHE','1570985GlmNje','3252081KKPqfw','execute','4JHkPoG','plugins','627IXsDYv','refresh','183081BvWCrZ','value','model','8UsLuwX','setAttribute','isEnabled'];_0x292f=function(){return _0x8aa6f2;};return _0x292f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c016d=_0x497d;function _0x2d34(){const _0x1b579b=['2624844aFkJkn','_updateFootnotesCounters','getAttribute','8xttDyN','isEnabled','get','execute','6871802ezIKOa','516DxnbKr','getFootnotesDefinitionsObjectElement','plugins','44440hUYZvy','789921qVybSG','refresh','62280iLXjKg','value','setAttribute','2439IkjaBz','model','1073544ocvKCS','includes','1196276ywZxJd','footnotesListStyle','change'];_0x2d34=function(){return _0x1b579b;};return _0x2d34();}(function(_0x33d853,_0x4a1735){const _0x48affc=_0x497d,_0x1e9aaf=_0x33d853();while(!![]){try{const _0xe35035=parseInt(_0x48affc(0x8a))/0x1+-parseInt(_0x48affc(0x79))/0x2+-parseInt(_0x48affc(0x7e))/0x3+-parseInt(_0x48affc(0x7b))/0x4+parseInt(_0x48affc(0x89))/0x5*(parseInt(_0x48affc(0x86))/0x6)+parseInt(_0x48affc(0x85))/0x7*(-parseInt(_0x48affc(0x81))/0x8)+parseInt(_0x48affc(0x77))/0x9*(parseInt(_0x48affc(0x8c))/0xa);if(_0xe35035===_0x4a1735)break;else _0x1e9aaf['push'](_0x1e9aaf['shift']());}catch(_0x2b6946){_0x1e9aaf['push'](_0x1e9aaf['shift']());}}}(_0x2d34,0x862e2));import{Command as _0x3dd2a4}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x52c974}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x55dca9}from'../../footnotestracker.js';function _0x497d(_0x4f227c,_0xceb6a5){const _0x2d34c4=_0x2d34();return _0x497d=function(_0x497d08,_0x292fc0){_0x497d08=_0x497d08-0x76;let _0x5bf047=_0x2d34c4[_0x497d08];return _0x5bf047;},_0x497d(_0x4f227c,_0xceb6a5);}export class FootnotesStyleCommand extends _0x3dd2a4{[_0x5c016d(0x8b)](){const _0x2606a3=_0x5c016d,{editor:_0x67df11}=this,_0x3ae240=_0x67df11[_0x2606a3(0x88)][_0x2606a3(0x83)](_0x55dca9)[_0x2606a3(0x87)]();this[_0x2606a3(0x82)]=!!_0x3ae240,this[_0x2606a3(0x8d)]=_0x3ae240?.[_0x2606a3(0x80)](_0x2606a3(0x7c))??null;}[_0x5c016d(0x84)]({value:_0x1c4a70}){const _0x405bc3=_0x5c016d,{editor:_0x11585c}=this,_0x2212de=_0x11585c[_0x405bc3(0x88)][_0x405bc3(0x83)](_0x55dca9),_0x25faa9=_0x2212de[_0x405bc3(0x87)]();_0x25faa9&&_0x52c974[_0x405bc3(0x7a)](_0x1c4a70)&&_0x11585c[_0x405bc3(0x78)][_0x405bc3(0x7d)](_0x160085=>{const _0x2c1aa2=_0x405bc3;_0x160085[_0x2c1aa2(0x76)](_0x2c1aa2(0x7c),_0x1c4a70,_0x25faa9),_0x2212de[_0x2c1aa2(0x7f)](_0x160085);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0xba0d2e,ButtonView as _0x4b2d3a,ContextualBalloon as _0x431cc7,createDropdown as _0x48be57}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x3ba696}from'ckeditor5/src/widget.js';import{Plugin as _0x441dce}from'ckeditor5/src/core.js';import{IconFootnote as _0x2b0ecf,IconListStyleDecimal as _0x5e7bc3,IconListStyleDecimalLeadingZero as _0x312689,IconListStyleLowerLatin as _0x4367eb,IconListStyleLowerRoman as _0x557898,IconListStyleUpperLatin as _0xe8ab1d,IconListStyleUpperRoman as _0x18dfa1}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x201af6}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2809da}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x441dce{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x431cc7,_0x3ba696];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1be647}=this,{componentFactory:_0x51356c}=_0x1be647['ui'];_0x1be647['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x51356c['add']('footnotesStyle',function(_0x372aca){return _0x793d62=>{const {t:t}=_0x793d62,_0xa4b2b7=_0x372aca['commands']['get']('footnotesStyle'),_0x23cef1=_0x48be57(_0x793d62),{buttonView:_0x175cd2}=_0x23cef1;return _0x23cef1['class']='ck-footnotes-styles-dropdown',_0x23cef1['bind']('isEnabled')['to'](_0xa4b2b7,'isEnabled'),_0x175cd2['set']({'label':t('Footnotes\x20style'),'icon':_0x2b0ecf,'tooltip':!0x0}),_0x23cef1['once']('change:isOpen',()=>{const _0x4e6c40=function({editor:_0x52bf89,dropdownView:_0x20d258}){const {t:t}=_0x52bf89['locale'],_0x55d0ba=t('Footnotes\x20definitions\x20styles'),_0x559289=function(_0x3abc9b){const t=_0x3abc9b['locale']['t'],_0x6c9ff5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5e7bc3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x312689},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x557898},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x18dfa1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4367eb},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xe8ab1d}];return _0x6c9ff5['map'](function(_0x2e42d0){const _0x101b91=_0x2e42d0['locale'];return({label:_0x29af0d,icon:_0x41b955,tooltip:_0x2bc36c,style:_0xedc1f5})=>{const _0x23580c=_0x2e42d0['commands']['get']('footnotesStyle'),_0xd9c004=new _0x4b2d3a(_0x101b91);return _0xd9c004['set']({'label':_0x29af0d,'icon':_0x41b955,'tooltip':_0x2bc36c}),_0xd9c004['bind']('isOn')['to'](_0x23580c,'value',_0x5e6259=>_0x5e6259===_0xedc1f5),_0xd9c004['bind']('isEnabled')['to'](_0x23580c,'isEnabled'),_0xd9c004['on']('execute',()=>{_0x2e42d0['execute']('footnotesStyle',{'value':_0xedc1f5}),_0x2e42d0['editing']['view']['focus']();}),_0xd9c004;};}(_0x3abc9b));}(_0x52bf89),_0x52037c=new _0x201af6(_0x52bf89['locale'],{'styleGridAriaLabel':_0x55d0ba,'styleButtonViews':_0x559289}),_0x20e1e0=_0x52bf89['commands']['get']('footnotesStart');return _0x52037c['startIndexFieldView']['bind']('isEnabled')['to'](_0x20e1e0),_0x52037c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x20e1e0),_0x52037c['on']('footnotesListStart',(_0x189d1e,_0x23d866)=>{_0x52bf89['execute']('footnotesStart',{'value':_0x23d866['startIndex']});}),_0x52037c['delegate']('execute')['to'](_0x20d258),_0x52037c;}({'editor':_0x372aca,'dropdownView':_0x23cef1});_0x23cef1['panelView']['children']['add'](_0x4e6c40);}),_0x23cef1;};}(_0x1be647));}['afterInit'](){const {editor:_0x4d108d}=this,{t:t}=_0x4d108d['locale'],_0x455b6b=_0x4d108d['plugins']['get'](_0x3ba696),{defaultPositions:_0x31bd54}=_0xba0d2e;_0x455b6b['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4d108d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x349497=>{let _0x3e05e5=_0x349497['getFirstPosition']()?.['parent'];return _0x3e05e5?.['is']('$text')&&(_0x3e05e5=_0x3e05e5['parent']),_0x3e05e5?.['is']('element')?_0x3e05e5['findAncestor'](_0x2809da):null;},'positions':[_0x31bd54['southArrowNorth'],_0x31bd54['southArrowNorthMiddleWest'],_0x31bd54['southArrowNorthMiddleEast'],_0x31bd54['southArrowNorthWest'],_0x31bd54['southArrowNorthEast'],_0x31bd54['northArrowSouth'],_0x31bd54['northArrowSouthMiddleWest'],_0x31bd54['northArrowSouthMiddleEast'],_0x31bd54['northArrowSouthWest'],_0x31bd54['northArrowSouthEast'],_0x31bd54['viewportStickyNorth']]});}}
|