@ckeditor/ckeditor5-footnotes 47.3.0-alpha.6 → 47.3.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/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.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/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>T,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["nodeAfter","type","root","$text","name","14276187FSjHRd","_trackedElements","attributes","elementName","rootName","slice","4600855fDGFGL","values","get","from","clear","_model","length","_getElementKey","getChanges","insert","has","push","getElementKey","getItems","1493994cbLzpT","set","6kDEZWQ","delete","172pxVXiO","createRangeOn","_elementName","add","element","reset","51477JTCHuJ","flat","4320835lLVvfq","position","remove","859681KfiMVP","$graveyard","3907408pdUzdo"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=348]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(445226===parseInt(e(363))/1+parseInt(e(348))/2+parseInt(e(358))/3*(-parseInt(e(352))/4)+parseInt(e(360))/5*(-parseInt(e(350))/6)+-parseInt(e(377))/7+-parseInt(e(365))/8+parseInt(e(371))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(382)];[a(354)];[a(384)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(382)]=t,this[o(354)]=e[o(374)],this[o(384)]=e[o(389)]}[a(357)](){const t=a;this[t(372)][t(381)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(386)===i[e(367)]&&e(369)!==i[e(370)]&&i[e(361)][e(366)]){const t=this[e(382)][e(353)](i[e(361)][e(366)]);for(const o of t[e(390)]()){if(!o.is(e(356),this[e(354)]))continue;const t=this[e(384)](o);n[e(387)](t)||n[e(349)](t,[]),n[e(379)](t)[e(388)](o)}}if(e(362)===i[e(367)]&&i[e(370)]===this[e(354)]){const t=this[e(384)]({getAttribute:t=>i[e(373)][e(379)](t)});o[e(355)](t)}}for(const[t,n]of this[e(372)])e(364)===n[e(368)][e(375)]&&o[e(355)](t);for(const t of o)this[e(372)][e(351)](t);for(const[t,o]of n)this[e(372)][e(349)](t,o[o[e(383)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(355)](s[0]),s[e(383)]>1?n[e(349)](t,s[e(376)](1)):n[e(351)](t),o[e(351)](t));return{removed:Array[e(380)](o),inserted:Array[e(380)](n[e(378)]())[e(359)](),moved:Array[e(380)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=141]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(773037===parseInt(e(146))/1+parseInt(e(218))/2+parseInt(e(161))/3+parseInt(e(237))/4*(parseInt(e(175))/5)+parseInt(e(195))/6*(parseInt(e(208))/7)+parseInt(e(169))/8+parseInt(e(141))/9*(-parseInt(e(225))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(170)]=[];[f(144)]=null;[f(236)]=null;[f(238)];[f(222)];[f(241)];static get[f(213)](){return f(223)}static get[f(184)](){return!0}static get[f(205)](){return!0}constructor(t){const e=f;super(t),this[e(238)]=new l(this[e(142)][e(178)],{elementName:e(164),getElementKey:()=>e(168)}),this[e(222)]=new l(this[e(142)][e(178)],{elementName:e(207),getElementKey:t=>t[e(229)](e(228))}),this[e(241)]=new l(this[e(142)][e(178)],{elementName:e(201),getElementKey:t=>t[e(229)](e(228))})}[f(193)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(217)][t(162)](e=>{const n=t,i=o[n(217)][n(157)][n(183)]();let s=!1;return this[n(143)](e,i)&&(s=!0),this[n(154)](e,i)&&(s=!0),this[n(227)](e,i)&&(s=!0),this[n(212)](e)&&(s=!0),this[n(186)](e)&&(s=!0),this[n(155)](e)&&(s=!0),s}),this[t(151)](o[t(217)],t(194),()=>{const e=t;o[e(239)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(165)}),this[t(151)](n,t(188),()=>{const e=t;this[e(170)]=[],this[e(238)][e(145)](),this[e(222)][e(145)](),this[e(241)][e(145)]()},{priority:t(160)})}[f(202)](){return this[f(144)]}[f(159)](t){const e=f;return this[e(170)][e(214)](e=>e.id===t)||null}[f(185)](){const t=f;return Array[t(150)](this[t(170)])}[f(224)](){return this[f(236)]}[f(191)](t){this[f(236)]=t}[f(197)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(170)][o(221)];i++)this[o(192)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(216)](o(164),{});return t[o(180)](n,e),this[o(144)]=n,n}[f(167)](t){const e=f;if(!this[e(170)][e(221)]||this[e(144)])return;const o=this[e(170)][0][e(198)][e(147)],n=this[e(173)](t,o);for(const o of this[e(170)])o[e(196)][e(158)]||t[e(240)](o[e(196)],n,e(210));this[e(197)](t)}[f(143)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(238)][o(183)](e);if(r[o(221)]&&(this[o(144)]=r[0]),i[o(221)])if(i[o(221)]>1||this[o(144)]&&i[o(174)](t=>t!==this[o(144)])){const e=t[o(216)](o(164),{}),s=[];this[o(144)]&&s[o(199)](this[o(144)]),s[o(199)](...i),t[o(240)](e,s[0],o(204));for(const n of s)t[o(233)](t[o(220)](n),t[o(232)](e,o(210))),t[o(234)](n);this[o(144)]=e,this[o(197)](t),n=!0}else this[o(144)]=i[0];if(s[o(221)]&&o(206)===this[o(144)]?.[o(147)][o(231)]){for(const e of this[o(170)])t[o(234)](e[o(198)]),n=!0;this[o(170)]=[],this[o(144)]=null}return n}[f(154)](t,e){const o=f;let n=!1;const i=this[o(142)][o(153)][o(148)](o(171)),{inserted:s,moved:r}=this[o(241)][o(183)](e);for(const e of[...r,...s]){const s=e[o(229)](o(228)),r=this[o(159)](s);r&&(r[o(196)]=e),h(t,i,e)&&(n=!0)}return n}[f(227)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(222)][o(183)](e);for(const e of i)this[o(211)](t,e)&&(n=!0);for(const e of s)this[o(209)](t,e)&&(n=!0);for(const e of r)this[o(172)](t,e)&&(n=!0);return n}[f(186)](t){const e=f;if(!this[e(144)])return!1;let o=!1;if(this[e(144)][e(203)]!==this[e(170)][e(221)]){const n=[];for(const t of this[e(144)][e(166)]()){const i=t[e(229)](e(228));this[e(159)](i)||(n[e(230)](t),o=!0)}for(const o of n)t[e(234)](o)}const n=new Set,i=[];for(const t of this[e(144)][e(166)]()){const s=t[e(229)](e(228));n[e(152)](s)?(i[e(230)](t),o=!0):n[e(177)](s)}for(const o of i)t[e(234)](o);return this[e(144)][e(203)]||(t[e(234)](this[e(144)]),this[e(144)]=null,o=!0),o}[f(209)](t,e){const o=f;if(this[o(170)][o(214)](t=>t[o(198)]===e))return!1;let n=!1;const i=e[o(229)](o(228)),s=this[o(170)][o(156)](t=>t.id===i);-1!==s&&(t[o(234)](this[o(170)][s][o(198)]),this[o(170)][o(215)](s,1),n=!0);let r=this[o(144)]?function(t,e){const n=o;for(const o of t[n(166)]())if(o[n(229)](n(228))===e)return o;return null}(this[o(144)],i):null;r||(r=t[o(216)](o(201),{footnoteId:i}),this[o(144)]&&(t[o(240)](r,this[o(144)],o(210)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(142)][o(178)],this[o(170)],e);this[o(170)][o(215)](c,0,a);let l=c;return-1!==s&&(l=Math[o(179)](c,s)),this[o(197)](t,l)&&(n=!0),n}[f(211)](t,e){const o=f,n=this[o(170)][o(156)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(170)][n];return o(206)!==s[o(196)][o(147)][o(231)]&&(t[o(234)](s[o(196)]),i=!0),this[o(170)][o(215)](n,1),this[o(197)](t,n)&&(i=!0),i}[f(172)](t,e){const o=f,n=e[o(229)](o(228)),i=this[o(170)][o(156)](t=>t.id===n),s=this[o(170)][i];let r=!1;s[o(198)]=e,this[o(170)][o(215)](i,1);const a=m(this[o(142)][o(178)],this[o(170)],e);return this[o(170)][o(215)](a,0,s),this[o(197)](t,Math[o(179)](i,a))&&(r=!0),r}[f(192)](t,e){const o=f;if(!this[o(144)])return!1;const n=this[o(170)][e];let i;return i=this[o(236)]?this[o(236)]({footnote:n,container:this[o(144)],digits:String(this[o(170)][o(221)])[o(221)],value:e+1}):String(e+1),n[o(198)][o(229)](o(181))!=i&&(t[o(200)](o(181),i,n[o(198)]),!0)}[f(155)](t){const e=f;if(!this[e(144)]||this[e(170)][e(221)]<2)return!1;if(function(t,o){const n=e;if(t[n(221)]!==o[n(221)])return!1;for(let e=0;e<t[n(221)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(170)][e(219)](t=>t.id),Array[e(150)](this[e(144)][e(166)]())[e(219)](t=>t[e(229)](e(228)))))return!1;let o=!1;for(let n=0;n<this[e(170)][e(221)];n++){const i=this[e(170)][n],s=t[e(190)](i[e(196)]),r=t[e(232)](this[e(144)],n);s[e(176)](r)||(t[e(233)](t[e(235)](i[e(196)]),r),o=!0)}return o}[f(212)](t){const e=f;if(!this[e(170)][e(221)])return!1;const{model:o}=this[e(142)];let n=!1;for(let i=0;i<this[e(170)][e(221)]-1;i++){const s=this[e(170)][i],r=this[e(170)][i+1],a=o[e(190)](s[e(198)]),c=o[e(190)](r[e(198)]);e(163)===a[e(182)](c)&&(this[e(172)](t,s[e(198)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(203)])return!1;const i=n(e?226:149);return t[n(240)](t[n(216)](i),o),!0}function p(){const t=["650856mDGCEl","registerPostFixer","after","footnotesDefinitions","low","getChildren","_ensureFootnotesDefinitionsContainerExists","singleton","9121208mxCaDM","_footnotes","footnotes.multiBlock","_handleMovedFootnoteReference","_insertEmptyFootnotesDefinitionsContainer","some","10rMoZDv","isEqual","add","model","min","append","footnoteCounter","compareWith","getChanges","isOfficialPlugin","getFootnotes","_handleFootnotesDefinitionsObjectSync","indexOf","set","getRootNames","createPositionBefore","setFootnoteFormatter","_updateFootnoteRefCounter","init","change:data","6yBzRab","definition","_updateFootnotesCounters","reference","push","setAttribute","footnoteDefinition","getFootnotesDefinitionsObjectElement","childCount","before","isPremiumPlugin","$graveyard","footnoteRef","5950378whGruC","_handleInsertedFootnoteReference","end","_handleRemoveFootnoteReferenceById","_ensureFootnotesReferencesHaveProperOrder","pluginName","find","splice","createElement","document","1061894ykixOq","map","createRangeIn","length","_footnoteRefsTracker","FootnotesTracker","getFootnotesFormatter","10rLBUlL","paragraph","_handleFootnoteReferencesChanges","footnoteId","getAttribute","unshift","rootName","createPositionAt","move","remove","createRangeOn","_footnoteFormatter","1111416qHEmCG","_footnoteDefsContainerTracker","enqueueChange","insert","_footnoteDefsTracker","36190701jtNJQe","editor","_handleFootnotesDefinitionsObjectChanges","_footnotesDefinitions","reset","1500414mORFXD","root","get","footnoteInlineContent","from","listenTo","has","config","_handleFootnoteDefinitionsChanges","_sortFootnoteDefinitions","findIndex","differ","parent","getFootnote","high"];return(p=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(221)])return 0;const i=t[n(190)](o);for(let o=0;o<e[n(221)];o++){const s=e[o],r=t[n(190)](s[n(198)]);if(n(204)===i[n(182)](r))return o}const s=o[n(147)];let r=-1;for(let t=e[n(221)]-1;t>=0;t--)if(e[t][n(198)][n(147)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(217)][n(189)](),c=a[n(187)](s[n(231)]),l=a[c+1];if(l)for(let t=0;t<e[n(221)];t++)if(e[t][n(198)][n(147)][n(231)]===l)return t;return e[n(221)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=146]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(906502===-parseInt(e(181))/1+-parseInt(e(178))/2+-parseInt(e(174))/3+parseInt(e(155))/4*(-parseInt(e(176))/5)+-parseInt(e(150))/6*(parseInt(e(163))/7)+parseInt(e(173))/8*(-parseInt(e(151))/9)+parseInt(e(147))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(160)](){const t=g,e=this[t(182)][t(180)][t(168)][t(149)],o=this[t(177)](e);this[t(152)]=!!o}[g(157)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(168)],r=this[e(177)](s);if(!r)return;const a=o[e(146)][e(165)](e(170)),c=t?.[e(159)]??(0,i.uid)();!function(t){const o=e;return o(156)==typeof t&&t[o(171)]>0&&!/\s/[o(148)](t)&&!/^\d/[o(148)](t)}(c)?(0,i.logWarning)(e(166)):(n[e(162)](t=>{const o=e,i=t[o(164)](o(158),{footnoteId:c});n[o(167)](i,r,null)}),a[e(175)](c))}[g(177)](t){const e=g,{model:o}=this[e(182)],{schema:n}=o,i=t[e(169)]();for(const t of i[e(172)]())if(n[e(179)](t)||n[e(161)](t))return null;const s=i[e(154)];return n[e(153)](s,e(158))?s:null}}function b(){const t=["8gKpaKB","515682huokhY","_moveSelectionToFootnoteDefinition","5uynVhG","_getPositionToInsertFootnote","3209398BXXgYK","isBlock","model","433167GolZMW","editor","plugins","46465440foxejv","test","selection","16062hfUkpB","874845IOENXG","isEnabled","checkChild","end","3547876TtcLag","string","execute","footnoteRef","footnoteId","refresh","isObject","change","1428PdpRww","createElement","get","insert-footnote-command-executed-with-invalid-id","insertObject","document","getFirstRange","FootnotesEditing","length","getItems"];return(b=function(){return t})()}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 y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764633600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);function _(t,e){const o=D();return(_=function(t,e){return o[t-=151]})(t,e)}const A=_;!function(t){const e=_,o=t();for(;;)try{if(669434===parseInt(e(177))/1+-parseInt(e(160))/2*(parseInt(e(153))/3)+parseInt(e(213))/4+-parseInt(e(212))/5+-parseInt(e(179))/6+-parseInt(e(206))/7*(-parseInt(e(167))/8)+-parseInt(e(186))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class T extends t.Plugin{static get[A(190)](){return A(209)}static get[A(215)](){return[v,P.ClipboardPipeline]}static get[A(157)](){return!0}static get[A(198)](){return!0}[A(218)](){this[A(161)]()}[A(161)](){const t=A;this[t(200)](),this[t(203)]()}[A(200)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(205)](P.ClipboardPipeline),s=o[t(205)](d);this[t(217)](i,t(192),(o,i)=>{const r=t,a=L(n[r(165)](i[r(154)]));if(!a[r(173)])return;const c=s[r(221)](),l=a[r(199)]((t,o)=>{const n=r,i=c[n(195)](t=>t.id===o);if(i){const o=e[n(158)][n(193)](i[n(166)],{isClipboardPipeline:!0}),s=e[n(158)][n(163)][n(162)](o);t[i.id]=s}return t},Object[r(191)](null));i[r(156)][r(188)](r(187),JSON[r(224)](l))})}[A(203)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(175)],r=n[t(205)](P.ClipboardPipeline),a=n[t(205)](d),c=e[t(210)][t(205)](t(201));let l=null;this[t(217)](s[t(211)],t(220),(e,o)=>{const n=t,i=o[n(156)][n(152)](n(187));l=i?JSON[n(222)](i):null}),this[t(217)](r,t(176),(n,s)=>{const r=t,f=s[r(225)]===this[r(178)].id;f&&r(197)===s[r(164)]||o[r(172)](t=>{const n=r;let u=a[n(202)]();const d=!!u&&Array[n(207)](o[n(211)][n(169)][n(227)]())[n(194)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(165)](e))n.is(o(170),o(174))&&i[o(181)](n);for(const e of i)t[o(155)](e)}(t,s[n(154)]),!l)return;const{selection:h}=o[n(211)],p=h[n(168)]()[n(204)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(165)](e))if(n.is(o(170),o(174)))return n;return null}(t,s[n(154)]),u||=a[n(189)](t,p));const m=Array[n(207)](h[n(151)]())[n(223)](L),g=function(t,e,o){const s=n,r=Object[s(191)](null);for(const{item:n}of t[s(165)](e))if(n.is(s(170),s(214))){const e=n[s(171)](s(159));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(208)](s(159),r[e],n)}return r}(t,s[n(154)],t=>{const e=n;return!f||!!a[e(183)](t)&&!m[e(194)](t)});for(const[o,i]of Object[n(196)](l)){const s=g[o]||o,r=t[n(185)](n(219),{footnoteId:s}),a=e[n(158)][n(163)][n(193)](i);let l;if(c)l=e[n(158)][n(216)](a,r);else{l=t[n(185)](n(180));const o=e[n(158)][n(216)](a,l);t[n(184)](o,l)}t[n(182)](l,r),t[n(184)](r,u,n(228))}l=null})})}}function D(){const t=["flatMap","stringify","sourceEditorId","add","getSelectedBlocks","end","getRanges","getData","2478tcWxGB","content","remove","dataTransfer","isOfficialPlugin","data","footnoteId","382nlxqrO","_defineClipboardIntegration","toData","htmlProcessor","method","createRangeIn","definition","108040JSmeVh","getFirstRange","selection","element","getAttribute","change","length","footnotesDefinitions","editing","contentInsertion","1177439pMovjM","editor","398166EBVjop","footnoteInlineContent","push","append","getFootnote","insert","createElement","21100671IBxYlO","application/ckeditor5-footnotes","setData","_insertEmptyFootnotesDefinitionsContainer","pluginName","create","outputTransformation","toView","includes","find","entries","drop","isPremiumPlugin","reduce","_handleCopyFootnotesDefinitions","footnotes.multiBlock","getFootnotesDefinitionsObjectElement","_handlePasteFootnotesDefinitions","root","get","595rsfyMF","from","setAttribute","FootnotesClipboard","config","document","712525BuAffC","4220884tRnpGY","footnoteRef","requires","toModel","listenTo","init","footnoteDefinition","clipboardInput","getFootnotes","parse"];return(D=function(){return t})()}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(170),e(214))&&o[e(226)](n[e(171)](e(159)));return Array[e(207)](o)}var V=o(311),R=o(355),O=o(929),N=o.n(O),j=o(297),K=o.n(j),M=o(102),B=o.n(M),z=o(123),H=o.n(z),W=o(741),G=o.n(W),U=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=H(),q.insert=B().bind(null,"head"),q.domAPI=K(),q.insertStyleElement=G();N()(U.A,q);U.A&&U.A.locals&&U.A.locals;class J 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",X(t,V.ButtonView)),e.add("menuBar:insertFootnote",X(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=227]})(t,e)}function $(){var t=["4782000OKoEsK","324910oMjogE","isPremiumPlugin","2275767feYwfJ","651861lJRRzO","753756YyuxHd","pluginName","4SZzsGl","isOfficialPlugin","requires","Footnotes","120dqYxZh","201669bWBiiJ","126942IUinHg"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(360224===parseInt(e(229))/1+-parseInt(e(232))/2+-parseInt(e(236))/3*(-parseInt(e(238))/4)+-parseInt(e(228))/5*(-parseInt(e(230))/6)+-parseInt(e(235))/7+-parseInt(e(231))/8+parseInt(e(234))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Y(237)](){return Y(227)}static get[Y(240)](){return[v,T,J]}static get[Y(239)](){return!0}static get[Y(233)](){return!0}}function tt(){const t=["41lNqFmn","decimal-leading-zero","8186OQxtzJ","4256148ysXWSr","upper-latin","251960jGjzyA","decimal","12bLEqYo","1701736OvaGMv","68010brHgyw","54NAtWVQ","63260Tcrocb","lower-alpha","lower-roman","lower-latin","414AnfPPz","upper-alpha","7zDrjJx","upper-roman","1387276URDHHM"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=100]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(163025===parseInt(e(114))/1*(parseInt(e(116))/2)+-parseInt(e(104))/3*(parseInt(e(105))/4)+parseInt(e(119))/5*(-parseInt(e(101))/6)+-parseInt(e(111))/7*(-parseInt(e(102))/8)+-parseInt(e(109))/9*(parseInt(e(103))/10)+parseInt(e(113))/11+parseInt(e(117))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(100),ot(115),ot(108),ot(118),ot(106),ot(110),ot(107),ot(112)];function it(t,e){const o=at();return(it=function(t,e){return o[t-=304]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(219187===-parseInt(e(326))/1*(parseInt(e(304))/2)+-parseInt(e(314))/3*(-parseInt(e(311))/4)+-parseInt(e(312))/5*(-parseInt(e(305))/6)+-parseInt(e(330))/7+parseInt(e(323))/8*(-parseInt(e(306))/9)+parseInt(e(328))/10*(parseInt(e(309))/11)+parseInt(e(321))/12*(parseInt(e(329))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[st(318)](){const t=st,{editor:e}=this,o=e[t(325)][t(316)](d)[t(320)]();this[t(327)]=!!o,this[t(317)]=o?.[t(308)](t(319))??null}[st(313)]({value:t}){const e=st,{editor:o}=this,n=o[e(325)][e(316)](d),i=n[e(320)]();i&&nt[e(307)](t)&&o[e(322)][e(310)](o=>{const s=e;o[s(315)](s(319),t,i),n[s(324)](o)})}}function at(){const t=["3tqnvvf","setAttribute","get","value","refresh","footnotesListStyle","getFootnotesDefinitionsObjectElement","348828zWYmch","model","568fUdKRw","_updateFootnotesCounters","plugins","84947clEFwC","isEnabled","3816730xLGVmu","286MlaDbF","2385915RVATNv","4ASeIeG","6nzxhXS","54801ibifmv","includes","getAttribute","11tPBbMw","change","359596PVizAw","255775kXXZba","execute"];return(at=function(){return t})()}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=335]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(408074===-parseInt(e(355))/1+parseInt(e(343))/2*(-parseInt(e(347))/3)+parseInt(e(341))/4+parseInt(e(342))/5+-parseInt(e(339))/6+-parseInt(e(351))/7+parseInt(e(344))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(337)](){const t=ct,{editor:e}=this,o=e[t(353)][t(354)](d)[t(346)]();this[t(350)]=!!o,this[t(349)]=o?.[t(340)](t(352))??null}[ct(335)]({value:t}){const e=ct,{editor:o}=this,n=o[e(353)][e(354)](d),i=n[e(346)]();i&&Number[e(345)](t)&&o[e(336)][e(348)](o=>{const s=e;o[s(338)](s(352),t,i),n[s(356)](o)})}}function ut(){const t=["_updateFootnotesCounters","execute","model","refresh","setAttribute","3618954kRheGP","getAttribute","2850580VHsEEt","3663320usmGcL","158266BSHvvG","12295408oAazSh","isInteger","getFootnotesDefinitionsObjectElement","27NmjHOt","change","value","isEnabled","5235664dieQPi","footnotesListStart","plugins","get","510853cHtIik"];return(ut=function(){return t})()}function dt(){const t=["attribute:footnotesListStyle:footnotesDefinitions","toViewElement","_defineSchema","1309513RoJQKW","document","removeAttribute","floor","start","7860210jqoEyu","element:ol","toUpperCase","modelCursor","upcast","footnotesListStart","footnotesDefinitions","1222002OaKwHS","add","insert","checkAttribute","_defineConverters","footnotesListStyle","getChanges","parseInt","fromCharCode","mapper","extend","setAttribute","from","parent","attribute:footnotesListStart:footnotesDefinitions","isPremiumPlugin","createRangeOn","1151196fqIRVN","upper-latin","downcast","$text","_definePostfixer","find","footnotesStyle","setStyle","name","_formatFootnoteListValue","getItems","padStart","pluginName","commands","list-style-type","hasAttribute","4498028YYGirF","config","lower-latin","writer","hasClass","decimal","_getDefaultListStyle","decimal-leading-zero","getStyle","5itRDQx","requires","FootnotesPropertiesEditing","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","consume","_updateFootnotesCounters","16673232zEHBid","differ","item","upper-alpha","_getDefaultStartIndex","footnotes.footnotesProperties.defaultListStyle","for","footnotesStart","getAttribute","editor","model","isOfficialPlugin","nodeAfter","7420686wahjHc","element","init","footnotes-list","position","lower-roman","get","toLowerCase","plugins","upper-roman","_defineFormatter","isNaN","registerPostFixer","schema","removeStyle","getChildren","define","consumable","viewItem","setFootnoteFormatter","max","type"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=249]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(768067===parseInt(e(324))/1+parseInt(e(254))/2+-parseInt(e(336))/3+parseInt(e(270))/4+-parseInt(e(279))/5*(-parseInt(e(329))/6)+-parseInt(e(299))/7+-parseInt(e(286))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(266)](){return ht(281)}static get[ht(280)](){return[v,d]}static get[ht(297)](){return!0}static get[ht(252)](){return!0}[ht(301)](){const t=ht,{editor:e}=this;e[t(271)][t(315)](t(291),t(275)),e[t(271)][t(315)](t(282),1),e[t(267)][t(337)](t(260),new rt(e)),e[t(267)][t(337)](t(293),new ft(e)),this[t(323)](),this[t(340)](),this[t(309)](),this[t(258)]()}[ht(323)](){const t=ht,{editor:e}=this,{schema:o}=e[t(296)];o[t(346)](t(335),{allowAttributes:[t(341),t(334)]})}[ht(340)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(292)](t(333))[t(337)](e=>{const o=t;e.on(o(330),(t,e,n)=>{const s=o,r=e[s(317)],a=e[s(332)]?.[s(250)];r[s(274)](s(302))&&a?.is(s(300),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(339)](e,i(334)))return;let r=1;const a=o[i(316)][i(284)](t,{attributes:i(328)});if(a){const e=Number[i(343)](t[i(294)](i(328)),10);Number[i(310)](e)||(r=e)}!a&&e[i(269)](i(334))||o[i(273)][i(347)](i(334),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(339)](e,i(341)))return;let r=i(275),a=!1;if(o[i(316)][i(284)](t,{attributes:i(320)})){const e={1:i(275),a:i(283),A:i(289),i:i(304),I:i(308)}[t[i(294)](i(320))];e&&(r=e),a=!0}o[i(316)][i(284)](t,{styles:i(268)})&&(r=function(t){const e=i;switch(t){case e(283):return e(272);case e(289):return e(255);default:return t}}(t[i(278)](i(268))),a=!0),!a&&e[i(269)](i(341))||o[i(273)][i(347)](i(341),r,e)}(r,a,n,i))})}),o[t(292)](t(256))[t(337)](e=>{const o=t;e.on(o(251),(t,e,n)=>{const i=o;if(!n[i(316)][i(284)](e[i(288)],t[i(262)]))return;const s=gt(e[i(288)],n[i(345)]),{attributeNewValue:r}=e;null==r||1===r?n[i(273)][i(326)](i(328),s):n[i(273)][i(347)](i(328),String(r),s)}),e.on(o(321),(t,e,n)=>{const i=o;if(!n[i(316)][i(284)](e[i(288)],t[i(262)]))return;const s=gt(e[i(288)],n[i(345)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(273)][i(261)](i(268),r,s):n[i(273)][i(313)](i(268),s)})})}[ht(258)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(307)][t(305)](d),i=this[t(276)](),s=this[t(290)]();o[t(325)][t(311)](e=>{const r=t,a=o[r(325)][r(287)][r(342)]();let c=!1;for(const t of a){if(r(338)!==t[r(320)]||r(257)===t[r(262)])continue;const n=o[r(253)](t[r(303)][r(298)]);for(const t of n[r(264)]())t.is(r(300),r(335))&&(!t[r(269)](r(334))&&o[r(312)][r(339)](t,r(334))&&(e[r(347)](r(334),s,t),c=!0),!t[r(269)](r(341))&&o[r(312)][r(339)](t,r(341))&&(e[r(347)](r(341),i,t),c=!0))}return c&&n[r(285)](e),c})}[ht(309)](){const t=ht,{editor:e}=this;e[t(307)][t(305)](d)[t(318)](e=>this[t(263)](e))}[ht(276)](){const t=ht;return this[t(295)][t(271)][t(305)](t(291))}[ht(290)](){const t=ht;return this[t(295)][t(271)][t(305)](t(282))}[ht(263)]({container:t,value:e,digits:o}){const n=ht,i=t[n(294)](n(341)),s=t[n(294)](n(334)),r=Math[n(327)](e)+(s??1)-1;switch(i){case n(277):return function(t,e){const o=n;return String(t)[o(265)](e,"0")}(r,Math[n(319)](2,o));case n(283):case n(272):return wt(r,!1);case n(289):case n(255):return wt(r,!0);case n(304):return bt(r,!1);case n(308):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(322)](t);return Array[o(249)](n[o(314)]())[o(259)](t=>t.is(o(300),"ol")&&t[o(274)](o(302)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(344)](97+t)+n,i=Math[o(327)]((i-1)/26)}return e?n[o(331)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=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(306)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=H(),kt.insert=B().bind(null,"head"),kt.domAPI=K(),kt.insertStyleElement=G();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=218]})(t,e)}function Et(){var t=["4GctuXC","67461hSZxxw","2265600FEPOxH","pluginName","1042767hYRpNo","isOfficialPlugin","FootnotesProperties","2147976jfBilp","695536yQlxyo","10284IwtSHm","7sfMxRn","5jzuRQc","requires","634992goeFlP","isPremiumPlugin"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(181828===-parseInt(e(228))/1*(parseInt(e(227))/2)+parseInt(e(225))/3+-parseInt(e(221))/4*(-parseInt(e(223))/5)+-parseInt(e(219))/6*(-parseInt(e(222))/7)+parseInt(e(220))/8+-parseInt(e(231))/9+-parseInt(e(229))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(230)](){return Ft(218)}static get[Ft(224)](){return[mt,Ct]}static get[Ft(232)](){return!0}static get[Ft(226)](){return!0}}function Pt(){var t=["6PrGiaQ","12036820ZWGFkg","163200tGktJz","752tZBEjM","1891015rIdjzT","2qlbjwq","73323lozMyW","1182600YHxVDp","395712mPIerA","158771IZrMvg"];return(Pt=function(){return t})()}function _t(t,e){var o=Pt();return(_t=function(t,e){return o[t-=189]})(t,e)}!function(t){for(var e=_t,o=t();;)try{if(471866===parseInt(e(196))/1*(parseInt(e(192))/2)+-parseInt(e(195))/3+-parseInt(e(194))/4+parseInt(e(189))/5+-parseInt(e(197))/6*(-parseInt(e(191))/7)+-parseInt(e(190))/8*(parseInt(e(193))/9)+parseInt(e(198))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Y,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>u,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["reset","1493274wmanrD","getItems","flat","nodeAfter","_getElementKey","$graveyard","9FmiuaC","from","_model","6634655lGFKlt","delete","27974950ugxQFn","name","_trackedElements","has","get","1434183OtxmZH","add","elementName","_elementName","$text","getElementKey","139032jdWBRI","3436880mDsVAJ","root","4BhIxkl","28pVyRlU","getChanges","set","values","element","push","clear","remove","type","position","attributes","length","createRangeOn","1159440PgfBnK","insert","rootName","slice"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=275]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(663967===-parseInt(e(280))/1+-parseInt(e(297))/2+parseInt(e(318))/3+parseInt(e(283))/4*(-parseInt(e(311))/5)+-parseInt(e(302))/6*(parseInt(e(284))/7)+-parseInt(e(281))/8*(-parseInt(e(308))/9)+parseInt(e(313))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(310)];[a(277)];[a(306)];[a(315)]=new Map;constructor(t,e){const o=a;this[o(310)]=t,this[o(277)]=e[o(276)],this[o(306)]=e[o(279)]}[a(301)](){const t=a;this[t(315)][t(290)]()}[a(285)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(298)===i[e(292)]&&e(278)!==i[e(314)]&&i[e(293)][e(305)]){const t=this[e(310)][e(296)](i[e(293)][e(305)]);for(const o of t[e(303)]()){if(!o.is(e(288),this[e(277)]))continue;const t=this[e(306)](o);n[e(316)](t)||n[e(286)](t,[]),n[e(317)](t)[e(289)](o)}}if(e(291)===i[e(292)]&&i[e(314)]===this[e(277)]){const t=this[e(306)]({getAttribute:t=>i[e(294)][e(317)](t)});o[e(275)](t)}}for(const[t,n]of this[e(315)])e(307)===n[e(282)][e(299)]&&o[e(275)](t);for(const t of o)this[e(315)][e(312)](t);for(const[t,o]of n)this[e(315)][e(286)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(316)](t)&&(i[e(275)](s[0]),s[e(295)]>1?n[e(286)](t,s[e(300)](1)):n[e(312)](t),o[e(312)](t));return{removed:Array[e(309)](o),inserted:Array[e(309)](n[e(287)]())[e(304)](),moved:Array[e(309)](i)}}}const f=h;!function(t){const e=h,o=t();for(;;)try{if(703337===-parseInt(e(350))/1*(-parseInt(e(325))/2)+-parseInt(e(368))/3*(-parseInt(e(338))/4)+parseInt(e(409))/5*(-parseInt(e(394))/6)+parseInt(e(329))/7+-parseInt(e(420))/8+parseInt(e(337))/9+-parseInt(e(418))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class u extends t.Plugin{[f(354)]=[];[f(412)]=null;[f(401)]=null;[f(366)];[f(397)];[f(322)];static get[f(356)](){return f(359)}static get[f(367)](){return!0}static get[f(331)](){return!0}constructor(t){const e=f;super(t),this[e(366)]=new l(this[e(414)][e(385)],{elementName:e(400),getElementKey:()=>e(341)}),this[e(397)]=new l(this[e(414)][e(385)],{elementName:e(364),getElementKey:t=>t[e(403)](e(358))}),this[e(322)]=new l(this[e(414)][e(385)],{elementName:e(419),getElementKey:t=>t[e(403)](e(358))})}[f(361)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(332)][t(347)](e=>{const n=t,i=o[n(332)][n(388)][n(384)]();let s=!1;return this[n(352)](e,i)&&(s=!0),this[n(380)](e,i)&&(s=!0),this[n(387)](e,i)&&(s=!0),this[n(362)](e)&&(s=!0),this[n(375)](e)&&(s=!0),this[n(407)](e)&&(s=!0),s}),this[t(417)](o[t(332)],t(360),()=>{const e=t;o[e(339)]({isUndoable:!1},t=>{this[e(390)](t)})},{priority:t(383)}),this[t(417)](n,t(351),()=>{const e=t;this[e(354)]=[],this[e(366)][e(391)](),this[e(397)][e(391)](),this[e(322)][e(391)]()},{priority:t(381)})}[f(343)](){return this[f(412)]}[f(377)](t){const e=f;return this[e(354)][e(374)](e=>e.id===t)||null}[f(416)](){const t=f;return Array[t(392)](this[t(354)])}[f(335)](){return this[f(401)]}[f(363)](t){this[f(401)]=t}[f(348)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(354)][o(411)];i++)this[o(324)](t,i)&&(n=!0);return n}[f(376)](t,e){const o=f,n=t[o(365)](o(400),{});return t[o(369)](n,e),this[o(412)]=n,n}[f(390)](t){const e=f;if(!this[e(354)][e(411)]||this[e(412)])return;const o=this[e(354)][0][e(379)][e(396)],n=this[e(376)](t,o);for(const o of this[e(354)])o[e(346)][e(344)]||t[e(334)](o[e(346)],n,e(349));this[e(348)](t)}[f(352)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(366)][o(384)](e);if(r[o(411)]&&(this[o(412)]=r[0]),i[o(411)])if(i[o(411)]>1||this[o(412)]&&i[o(355)](t=>t!==this[o(412)])){const e=t[o(365)](o(400),{}),s=[];this[o(412)]&&s[o(353)](this[o(412)]),s[o(353)](...i),t[o(334)](e,s[0],o(406));for(const n of s)t[o(408)](t[o(321)](n),t[o(345)](e,o(349))),t[o(395)](n);this[o(412)]=e,this[o(348)](t),n=!0}else this[o(412)]=i[0];if(s[o(411)]&&o(373)===this[o(412)]?.[o(396)][o(393)]){for(const e of this[o(354)])t[o(395)](e[o(379)]),n=!0;this[o(354)]=[],this[o(412)]=null}return n}[f(380)](t,e){const o=f;let n=!1;const i=this[o(414)][o(378)][o(386)](o(415)),{inserted:s,moved:r}=this[o(322)][o(384)](e);for(const e of[...r,...s]){const s=e[o(403)](o(358)),r=this[o(377)](s);r&&(r[o(346)]=e),d(t,i,e)&&(n=!0)}return n}[f(387)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(397)][o(384)](e);for(const e of i)this[o(413)](t,e)&&(n=!0);for(const e of s)this[o(398)](t,e)&&(n=!0);for(const e of r)this[o(389)](t,e)&&(n=!0);return n}[f(375)](t){const e=f;if(!this[e(412)])return!1;let o=!1;if(this[e(412)][e(326)]!==this[e(354)][e(411)]){const n=[];for(const t of this[e(412)][e(333)]()){const i=t[e(403)](e(358));this[e(377)](i)||(n[e(342)](t),o=!0)}for(const o of n)t[e(395)](o)}const n=new Set,i=[];for(const t of this[e(412)][e(333)]()){const s=t[e(403)](e(358));n[e(336)](s)?(i[e(342)](t),o=!0):n[e(370)](s)}for(const o of i)t[e(395)](o);return this[e(412)][e(326)]||(t[e(395)](this[e(412)]),this[e(412)]=null,o=!0),o}[f(398)](t,e){const o=f;if(this[o(354)][o(374)](t=>t[o(379)]===e))return!1;let n=!1;const i=e[o(403)](o(358)),s=this[o(354)][o(410)](t=>t.id===i);-1!==s&&(t[o(395)](this[o(354)][s][o(379)]),this[o(354)][o(402)](s,1),n=!0);let r=this[o(412)]?function(t,e){const n=o;for(const o of t[n(333)]())if(o[n(403)](n(358))===e)return o;return null}(this[o(412)],i):null;r||(r=t[o(365)](o(419),{footnoteId:i}),this[o(412)]&&(t[o(334)](r,this[o(412)],o(349)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(414)][o(385)],this[o(354)],e);this[o(354)][o(402)](c,0,a);let l=c;return-1!==s&&(l=Math[o(340)](c,s)),this[o(348)](t,l)&&(n=!0),n}[f(413)](t,e){const o=f,n=this[o(354)][o(410)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(354)][n];return o(373)!==s[o(346)][o(396)][o(393)]&&(t[o(395)](s[o(346)]),i=!0),this[o(354)][o(402)](n,1),this[o(348)](t,n)&&(i=!0),i}[f(389)](t,e){const o=f,n=e[o(403)](o(358)),i=this[o(354)][o(410)](t=>t.id===n),s=this[o(354)][i];let r=!1;s[o(379)]=e,this[o(354)][o(402)](i,1);const a=p(this[o(414)][o(385)],this[o(354)],e);return this[o(354)][o(402)](a,0,s),this[o(348)](t,Math[o(340)](i,a))&&(r=!0),r}[f(324)](t,e){const o=f;if(!this[o(412)])return!1;const n=this[o(354)][e];let i;return i=this[o(401)]?this[o(401)]({footnote:n,container:this[o(412)],digits:String(this[o(354)][o(411)])[o(411)],value:e+1}):String(e+1),n[o(379)][o(403)](o(371))!=i&&(t[o(357)](o(371),i,n[o(379)]),!0)}[f(407)](t){const e=f;if(!this[e(412)]||this[e(354)][e(411)]<2)return!1;if(function(t,o){const n=e;if(t[n(411)]!==o[n(411)])return!1;for(let e=0;e<t[n(411)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(354)][e(327)](t=>t.id),Array[e(392)](this[e(412)][e(333)]())[e(327)](t=>t[e(403)](e(358)))))return!1;let o=!1;for(let n=0;n<this[e(354)][e(411)];n++){const i=this[e(354)][n],s=t[e(399)](i[e(346)]),r=t[e(345)](this[e(412)],n);s[e(323)](r)||(t[e(408)](t[e(405)](i[e(346)]),r),o=!0)}return o}[f(362)](t){const e=f;if(!this[e(354)][e(411)])return!1;const{model:o}=this[e(414)];let n=!1;for(let i=0;i<this[e(354)][e(411)]-1;i++){const s=this[e(354)][i],r=this[e(354)][i+1],a=o[e(399)](s[e(379)]),c=o[e(399)](r[e(379)]);e(372)===a[e(382)](c)&&(this[e(389)](t,s[e(379)]),i=-1,n=!0)}return n}}function d(t,e,o){const n=f;if(o[n(326)])return!1;const i=n(e?328:404);return t[n(334)](t[n(365)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(411)])return 0;const i=t[n(399)](o);for(let o=0;o<e[n(411)];o++){const s=e[o],r=t[n(399)](s[n(379)]);if(n(406)===i[n(382)](r))return o}const s=o[n(396)];let r=-1;for(let t=e[n(411)]-1;t>=0;t--)if(e[t][n(379)][n(396)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(332)][n(330)](),c=a[n(421)](s[n(393)]),l=a[c+1];if(l)for(let t=0;t<e[n(411)];t++)if(e[t][n(379)][n(396)][n(393)]===l)return t;return e[n(411)]}function h(t,e){const o=m();return(h=function(t,e){return o[t-=321]})(t,e)}function m(){const t=["createElement","_footnoteDefsContainerTracker","isOfficialPlugin","9amzFGZ","append","add","footnoteCounter","after","$graveyard","find","_handleFootnotesDefinitionsObjectSync","_insertEmptyFootnotesDefinitionsContainer","getFootnote","config","reference","_handleFootnoteDefinitionsChanges","high","compareWith","low","getChanges","model","get","_handleFootnoteReferencesChanges","differ","_handleMovedFootnoteReference","_ensureFootnotesDefinitionsContainerExists","reset","from","rootName","1202406EknNCl","remove","root","_footnoteRefsTracker","_handleInsertedFootnoteReference","createPositionBefore","footnotesDefinitions","_footnoteFormatter","splice","getAttribute","footnoteInlineContent","createRangeOn","before","_sortFootnoteDefinitions","move","5qnVHMX","findIndex","length","_footnotesDefinitions","_handleRemoveFootnoteReferenceById","editor","footnotes.multiBlock","getFootnotes","listenTo","15135860YHXOZj","footnoteDefinition","2782024pljkPu","indexOf","createRangeIn","_footnoteDefsTracker","isEqual","_updateFootnoteRefCounter","8XlzxOs","childCount","map","paragraph","3310034wCmRhl","getRootNames","isPremiumPlugin","document","getChildren","insert","getFootnotesFormatter","has","8783298uSMree","1184908RjyPrk","enqueueChange","min","singleton","unshift","getFootnotesDefinitionsObjectElement","parent","createPositionAt","definition","registerPostFixer","_updateFootnotesCounters","end","106903ovstQa","set","_handleFootnotesDefinitionsObjectChanges","push","_footnotes","some","pluginName","setAttribute","footnoteId","FootnotesTracker","change:data","init","_ensureFootnotesReferencesHaveProperOrder","setFootnoteFormatter","footnoteRef"];return(m=function(){return t})()}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=358]})(t,e)}function y(){const t=["insert-footnote-command-executed-with-invalid-id","string","FootnotesEditing","model","1143174zzpSWW","685AFyFJT","insertObject","execute","change","_getPositionToInsertFootnote","getFirstRange","isObject","length","7etNAHx","editor","checkChild","isEnabled","145450CjIzyf","12392uOfGJb","getItems","get","1193951MUNCYU","refresh","10aAySig","plugins","selection","isBlock","245781CgLIhK","footnoteId","4191328IWOtkH","test","end","document","178056rqKmYr","footnoteRef","3LpZirx","_moveSelectionToFootnoteDefinition","createElement"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(404950===parseInt(e(369))/1+-parseInt(e(391))/2*(-parseInt(e(371))/3)+-parseInt(e(392))/4*(parseInt(e(379))/5)+parseInt(e(378))/6*(parseInt(e(387))/7)+parseInt(e(365))/8+-parseInt(e(363))/9*(parseInt(e(359))/10)+-parseInt(e(395))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(358)](){const t=g,e=this[t(388)][t(377)][t(368)][t(361)],o=this[t(383)](e);this[t(390)]=!!o}[g(381)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(368)],r=this[e(383)](s);if(!r)return;const a=o[e(360)][e(394)](e(376)),c=t?.[e(364)]??(0,i.uid)();!function(t){const o=e;return o(375)==typeof t&&t[o(386)]>0&&!/\s/[o(366)](t)&&!/^\d/[o(366)](t)}(c)?(0,i.logWarning)(e(374)):(n[e(382)](t=>{const o=e,i=t[o(373)](o(370),{footnoteId:c});n[o(380)](i,r,null)}),a[e(372)](c))}[g(383)](t){const e=g,{model:o}=this[e(388)],{schema:n}=o,i=t[e(384)]();for(const t of i[e(393)]())if(n[e(362)](t)||n[e(385)](t))return null;const s=i[e(367)];return n[e(389)](s,e(370))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[u]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:176472e4;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(u).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(u).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})=>S(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)(S(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({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:v()}),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 v({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 S(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 E(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const P=L;function L(t,e){const o=T();return(L=function(t,e){return o[t-=355]})(t,e)}function T(){const t=["getFootnotesDefinitionsObjectElement","createRangeIn","createElement","push","18rXhmdN","getData","1570780cQMDLm","htmlProcessor","getRanges","editor","footnotes.multiBlock","remove","FootnotesClipboard","footnoteDefinition","4ixeiid","parse","init","_handlePasteFootnotesDefinitions","application/ckeditor5-footnotes","80esWQme","insert","getFootnote","method","getFirstRange","change","contentInsertion","getFootnotes","isOfficialPlugin","element","stringify","find","_insertEmptyFootnotesDefinitionsContainer","document","create","from","footnoteInlineContent","get","content","64230xbHfYY","getAttribute","setData","14HoJGjM","_handleCopyFootnotesDefinitions","clipboardInput","155400zIaADo","footnoteId","definition","_defineClipboardIntegration","toData","227734ZibLef","data","getSelectedBlocks","listenTo","end","editing","includes","isPremiumPlugin","flatMap","footnotesDefinitions","selection","dataTransfer","drop","sourceEditorId","footnoteRef","reduce","1097459CrCvYX","root","setAttribute","toModel","config","entries","1071333moHQkt","toView","outputTransformation","length","append","add","pluginName","requires","132HrKwRV","305080zcbRkP"];return(T=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(299861===parseInt(e(361))/1*(parseInt(e(407))/2)+parseInt(e(383))/3+-parseInt(e(412))/4*(-parseInt(e(431))/5)+-parseInt(e(356))/6*(-parseInt(e(434))/7)+-parseInt(e(392))/8+-parseInt(e(397))/9*(-parseInt(e(399))/10)+-parseInt(e(377))/11*(parseInt(e(391))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[P(389)](){return P(405)}static get[P(390)](){return[I,A.ClipboardPipeline]}static get[P(420)](){return!0}static get[P(368)](){return!0}[P(409)](){this[P(359)]()}[P(359)](){const t=P;this[t(435)](),this[t(410)]()}[P(435)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(429)](A.ClipboardPipeline),s=o[t(429)](u);this[t(364)](i,t(385),(o,i)=>{const r=t,a=D(n[r(394)](i[r(430)]));if(!a[r(386)])return;const c=s[r(419)](),l=a[r(376)]((t,o)=>{const n=r,i=c[n(423)](t=>t.id===o);if(i){const o=e[n(362)][n(384)](i[n(358)],{isClipboardPipeline:!0}),s=e[n(362)][n(400)][n(360)](o);t[i.id]=s}return t},Object[r(426)](null));i[r(372)][r(433)](r(411),JSON[r(422)](l))})}[P(410)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(366)],r=n[t(429)](A.ClipboardPipeline),a=n[t(429)](u),c=e[t(381)][t(429)](t(403));let l=null;this[t(364)](s[t(425)],t(355),(e,o)=>{const n=t,i=o[n(372)][n(398)](n(411));l=i?JSON[n(408)](i):null}),this[t(364)](r,t(418),(n,s)=>{const r=t,f=s[r(374)]===this[r(402)].id;f&&r(373)===s[r(415)]||o[r(417)](t=>{const n=r;let u=a[n(393)]();const d=!!u&&Array[n(427)](o[n(425)][n(371)][n(363)]())[n(367)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(394)](e))n.is(o(421),o(370))&&i[o(396)](n);for(const e of i)t[o(404)](e)}(t,s[n(430)]),!l)return;const{selection:p}=o[n(425)],h=p[n(416)]()[n(378)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(394)](e))if(n.is(o(421),o(370)))return n;return null}(t,s[n(430)]),u||=a[n(424)](t,h));const m=Array[n(427)](p[n(401)]())[n(369)](D),g=function(t,e,o){const s=n,r=Object[s(426)](null);for(const{item:n}of t[s(394)](e))if(n.is(s(421),s(375))){const e=n[s(432)](s(357));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(379)](s(357),r[e],n)}return r}(t,s[n(430)],t=>{const e=n;return!f||!!a[e(414)](t)&&!m[e(367)](t)});for(const[o,i]of Object[n(382)](l)){const s=g[o]||o,r=t[n(395)](n(406),{footnoteId:s}),a=e[n(362)][n(400)][n(384)](i);let l;if(c)l=e[n(362)][n(380)](a,r);else{l=t[n(395)](n(428));const o=e[n(362)][n(380)](a,l);t[n(413)](o,l)}t[n(387)](l,r),t[n(413)](r,u,n(365))}l=null})})}}function D(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(421),e(375))&&o[e(388)](n[e(432)](e(357)));return Array[e(427)](o)}var N=o(311),V=o(355),R=o(929),O=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),z=o(123),H=o.n(z),U=o(741),W=o.n(U),G=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=H(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=W();O()(G.A,X);G.A&&G.A.locals&&G.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",q(t,N.ButtonView)),e.add("menuBar:insertFootnote",q(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=Q;function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=339]})(t,e)}function $(){var t=["isPremiumPlugin","180AAGbkt","10AsmioU","pluginName","1004XyAGmp","1656290pdcIaW","176667tRSfZn","4XNaGTr","435tzoLSZ","isOfficialPlugin","672goDrGF","requires","Footnotes","3519693TNnWOd","1167012mFiTRb","25312zzkeWt","183370ldMIqn"];return($=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(201352===-parseInt(e(352))/1*(-parseInt(e(353))/2)+-parseInt(e(354))/3*(-parseInt(e(350))/4)+-parseInt(e(351))/5+-parseInt(e(343))/6+parseInt(e(339))/7*(-parseInt(e(344))/8)+parseInt(e(342))/9*(parseInt(e(348))/10)+-parseInt(e(345))/11*(-parseInt(e(347))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Y extends t.Plugin{static get[J(349)](){return J(341)}static get[J(340)](){return[I,_,Z]}static get[J(355)](){return!0}static get[J(346)](){return!0}}const tt=ot;function et(){const t=["decimal-leading-zero","lower-latin","58911yPQASF","lower-alpha","decimal","upper-latin","upper-alpha","787860dhIhxf","lower-roman","58WEGhAM","12rZiyWr","495855XOhwaG","44dJKaVS","7167108dDALXb","upper-roman","2080540OXKpEv","88lXcJLU","777015UlZJsh","14VSsTgc","3180980kHxQtI"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(686731===parseInt(e(264))/1+parseInt(e(276))/2*(-parseInt(e(269))/3)+parseInt(e(277))/4*(-parseInt(e(262))/5)+-parseInt(e(274))/6*(-parseInt(e(265))/7)+-parseInt(e(263))/8*(parseInt(e(278))/9)+-parseInt(e(266))/10+parseInt(e(279))/11*(parseInt(e(280))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(271),tt(267),tt(268),tt(272),tt(270),tt(273),tt(275),tt(281)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=385]})(t,e)}function rt(){const t=["isEnabled","455KLScmQ","588855nwNnCH","model","_updateFootnotesCounters","14gjAaLV","change","get","3jdHBsD","11vNkLJd","22296cUIGcs","74NxKdTl","includes","24EiqlOJ","10401mmLhPa","footnotesListStyle","execute","setAttribute","getAttribute","plugins","getFootnotesDefinitionsObjectElement","479763xyGNoi","value","1891916TRgyjr","1372390RdfUMV","820038ZRUZQb","refresh"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(247129===-parseInt(e(409))/1*(parseInt(e(406))/2)+parseInt(e(403))/3*(parseInt(e(391))/4)+parseInt(e(397))/5+-parseInt(e(393))/6*(-parseInt(e(400))/7)+-parseInt(e(408))/8*(parseInt(e(389))/9)+-parseInt(e(392))/10*(parseInt(e(404))/11)+-parseInt(e(405))/12*(-parseInt(e(396))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(394)](){const t=it,{editor:e}=this,o=e[t(387)][t(402)](u)[t(388)]();this[t(395)]=!!o,this[t(390)]=o?.[t(386)](t(410))??null}[it(411)]({value:t}){const e=it,{editor:o}=this,n=o[e(387)][e(402)](u),i=n[e(388)]();i&&nt[e(407)](t)&&o[e(398)][e(401)](o=>{const s=e;o[s(385)](s(410),t,i),n[s(399)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=147]})(t,e)}function ft(){const t=["135679XJCMWi","execute","_updateFootnotesCounters","57253vhIXSt","4477LfyEML","refresh","getFootnotesDefinitionsObjectElement","plugins","4848NRIkny","footnotesListStart","3458mAcdZB","model","2nrqvBi","getAttribute","isEnabled","change","25540mxJKck","5NYjXqs","1900656vcJmbL","10MpuZed","59137nFPWPg","isInteger","112nUjbLl","value","1044114DZHzLi","get","setAttribute","96wNSFLf"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(119467===-parseInt(e(158))/1*(parseInt(e(170))/2)+parseInt(e(157))/3*(-parseInt(e(174))/4)+-parseInt(e(147))/5*(parseInt(e(154))/6)+-parseInt(e(161))/7*(parseInt(e(152))/8)+-parseInt(e(148))/9*(parseInt(e(149))/10)+parseInt(e(162))/11*(-parseInt(e(166))/12)+-parseInt(e(150))/13*(-parseInt(e(168))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(163)](){const t=ct,{editor:e}=this,o=e[t(165)][t(155)](u)[t(164)]();this[t(172)]=!!o,this[t(153)]=o?.[t(171)](t(167))??null}[ct(159)]({value:t}){const e=ct,{editor:o}=this,n=o[e(165)][e(155)](u),i=n[e(164)]();i&&Number[e(151)](t)&&o[e(169)][e(173)](o=>{const s=e;o[s(156)](s(167),t,i),n[s(160)](o)})}}function dt(t,e){const o=ht();return(dt=function(t,e){return o[t-=454]})(t,e)}const pt=dt;function ht(){const t=["decimal","floor","1000080dndPcR","getStyle","1902304zVWZmm","_formatFootnoteListValue","setStyle","max","setAttribute","50yKDlZf","document","1kVIsmX","16GBedKr","parent","mapper","toLowerCase","position","1946762wmnuOo","44883ICAcEz","find","_definePostfixer","padStart","start","_defineConverters","define","1193087oGvNXN","isPremiumPlugin","from","getChanges","lower-latin","consume","add","element:ol","fromCharCode","requires","footnotes.footnotesProperties.defaultListStyle","registerPostFixer","getChildren","getAttribute","item","$text","extend","insert","writer","lower-alpha","removeStyle","isOfficialPlugin","commands","downcast","footnotesListStart","hasAttribute","pluginName","footnotes.footnotesProperties.defaultStartIndex","attribute:footnotesListStyle:footnotesDefinitions","list-style-type","hasClass","728358PPXJZC","_defineFormatter","footnotes-list","getItems","footnotesDefinitions","2710gAXbsK","setFootnoteFormatter","model","init","editor","footnotesStyle","config","schema","plugins","get","type","1205490pfrmAm","nodeAfter","parseInt","attribute:footnotesListStart:footnotesDefinitions","viewItem","differ","decimal-leading-zero","consumable","element","toViewElement","removeAttribute","lower-roman","for","upcast","createRangeOn","_getDefaultListStyle","upper-alpha","checkAttribute","_defineSchema","isNaN","modelCursor","FootnotesPropertiesEditing","upper-latin","name","upper-roman","toUpperCase","footnotesStart","_updateFootnotesCounters","_getDefaultStartIndex","footnotesListStyle"];return(ht=function(){return t})()}!function(t){const e=dt,o=t();for(;;)try{if(802672===-parseInt(e(511))/1*(-parseInt(e(517))/2)+-parseInt(e(502))/3+parseInt(e(504))/4+-parseInt(e(509))/5*(parseInt(e(454))/6)+-parseInt(e(525))/7*(parseInt(e(512))/8)+parseInt(e(518))/9*(parseInt(e(459))/10)+-parseInt(e(470))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(551)](){return pt(491)}static get[pt(534)](){return[I,u]}static get[pt(546)](){return!0}static get[pt(526)](){return!0}[pt(462)](){const t=pt,{editor:e}=this;e[t(465)][t(524)](t(535),t(500)),e[t(465)][t(524)](t(552),1),e[t(547)][t(531)](t(464),new at(e)),e[t(547)][t(531)](t(496),new ut(e)),this[t(488)](),this[t(523)](),this[t(455)](),this[t(520)]()}[pt(488)](){const t=pt,{editor:e}=this,{schema:o}=e[t(461)];o[t(541)](t(458),{allowAttributes:[t(499),t(549)]})}[pt(523)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(482)](t(483))[t(531)](e=>{const o=t;e.on(o(532),(t,e,n)=>{const s=o,r=e[s(474)],a=e[s(490)]?.[s(513)];r[s(555)](s(456))&&a?.is(s(478),s(458))&&(function(t,e,o,n){const i=s;if(!n[i(487)](e,i(549)))return;let r=1;const a=o[i(477)][i(530)](t,{attributes:i(522)});if(a){const e=Number[i(472)](t[i(538)](i(522)),10);Number[i(489)](e)||(r=e)}!a&&e[i(550)](i(549))||o[i(543)][i(508)](i(549),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(487)](e,i(499)))return;let r=i(500),a=!1;if(o[i(477)][i(530)](t,{attributes:i(469)})){const e={1:i(500),a:i(544),A:i(486),i:i(481),I:i(494)}[t[i(538)](i(469))];e&&(r=e),a=!0}o[i(477)][i(530)](t,{styles:i(554)})&&(r=function(t){const e=i;switch(t){case e(544):return e(529);case e(486):return e(492);default:return t}}(t[i(503)](i(554))),a=!0),!a&&e[i(550)](i(499))||o[i(543)][i(508)](i(499),r,e)}(r,a,n,i))})}),o[t(482)](t(548))[t(531)](e=>{const o=t;e.on(o(473),(t,e,n)=>{const i=o;if(!n[i(477)][i(530)](e[i(539)],t[i(493)]))return;const s=gt(e[i(539)],n[i(514)]),{attributeNewValue:r}=e;null==r||1===r?n[i(543)][i(480)](i(522),s):n[i(543)][i(508)](i(522),String(r),s)}),e.on(o(553),(t,e,n)=>{const i=o;if(!n[i(477)][i(530)](e[i(539)],t[i(493)]))return;const s=gt(e[i(539)],n[i(514)]),{attributeNewValue:r}=e;r&&i(500)!==r?n[i(543)][i(506)](i(554),r,s):n[i(543)][i(545)](i(554),s)})})}[pt(520)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(467)][t(468)](u),i=this[t(485)](),s=this[t(498)]();o[t(510)][t(536)](e=>{const r=t,a=o[r(510)][r(475)][r(528)]();let c=!1;for(const t of a){if(r(542)!==t[r(469)]||r(540)===t[r(493)])continue;const n=o[r(484)](t[r(516)][r(471)]);for(const t of n[r(457)]())t.is(r(478),r(458))&&(!t[r(550)](r(549))&&o[r(466)][r(487)](t,r(549))&&(e[r(508)](r(549),s,t),c=!0),!t[r(550)](r(499))&&o[r(466)][r(487)](t,r(499))&&(e[r(508)](r(499),i,t),c=!0))}return c&&n[r(497)](e),c})}[pt(455)](){const t=pt,{editor:e}=this;e[t(467)][t(468)](u)[t(460)](e=>this[t(505)](e))}[pt(485)](){const t=pt;return this[t(463)][t(465)][t(468)](t(535))}[pt(498)](){const t=pt;return this[t(463)][t(465)][t(468)](t(552))}[pt(505)]({container:t,value:e,digits:o}){const n=pt,i=t[n(538)](n(499)),s=t[n(538)](n(549)),r=Math[n(501)](e)+(s??1)-1;switch(i){case n(476):return function(t,e){const o=n;return String(t)[o(521)](e,"0")}(r,Math[n(507)](2,o));case n(544):case n(529):return wt(r,!1);case n(486):case n(492):return wt(r,!0);case n(481):return bt(r,!1);case n(494):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(479)](t);return Array[o(527)](n[o(537)]())[o(519)](t=>t.is(o(478),"ol")&&t[o(555)](o(456)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(533)](97+t)+n,i=Math[o(501)]((i-1)/26)}return e?n[o(495)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(515)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.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,N.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 N.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 N.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 N.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 N.LabeledFieldView(this.locale,N.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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=H(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=W();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.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,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.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}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=353]})(t,e)}function St(){var t=["1214808wubNkU","808836KGhEjt","88tmUzQC","132ccoSiL","679wwMiMP","229305hekqRh","11895860NqioFL","isPremiumPlugin","pluginName","FootnotesProperties","33912RzgHGp","279568axctqp","requires","isOfficialPlugin","3472GGNflf","6giZZtt","18864ffwwRC"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(648556===parseInt(e(367))/1*(-parseInt(e(354))/2)+-parseInt(e(357))/3+parseInt(e(358))/4*(-parseInt(e(361))/5)+-parseInt(e(366))/6*(parseInt(e(360))/7)+-parseInt(e(353))/8*(-parseInt(e(355))/9)+parseInt(e(362))/10+-parseInt(e(359))/11*(-parseInt(e(356))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(364)](){return Ft(365)}static get[Ft(368)](){return[mt,Ct]}static get[Ft(369)](){return!0}static get[Ft(363)](){return!0}}function At(){var t=["1209150FRLNHT","527787dWkAiJ","1285240BRVIwJ","104kuIzOw","12oVSHHu","769433GopsQS","3994850dxdwZO","674874CYkHQM","1279216hYNlyw"];return(At=function(){return t})()}function Pt(t,e){var o=At();return(Pt=function(t,e){return o[t-=408]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(425767===-parseInt(e(413))/1+parseInt(e(411))/2+-parseInt(e(412))/3+parseInt(e(414))/4+-parseInt(e(409))/5+-parseInt(e(416))/6*(-parseInt(e(408))/7)+-parseInt(e(415))/8*(-parseInt(e(410))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|