@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251202.0 → 0.0.0-nightly-20251203.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),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:()=>$,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>u,FootnotesUI:()=>X,InsertFootnoteCommand:()=>w});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=l();return(r=function(t,e){return o[t-=126]})(t,e)}const a=r;!function(t){const e=r,o=t();for(;;)try{if(905253===-parseInt(e(132))/1*(parseInt(e(159))/2)+-parseInt(e(136))/3+-parseInt(e(153))/4+parseInt(e(145))/5+-parseInt(e(151))/6*(parseInt(e(166))/7)+parseInt(e(162))/8*(-parseInt(e(150))/9)+parseInt(e(134))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[a(161)];[a(129)];[a(139)];[a(158)]=new Map;constructor(t,e){const o=a;this[o(161)]=t,this[o(129)]=e[o(155)],this[o(139)]=e[o(133)]}[a(168)](){const t=a;this[t(158)][t(135)]()}[a(131)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(138)===i[e(137)]&&e(156)!==i[e(146)]&&i[e(143)][e(169)]){const t=this[e(161)][e(128)](i[e(143)][e(169)]);for(const o of t[e(130)]()){if(!o.is(e(147),this[e(129)]))continue;const t=this[e(139)](o);n[e(157)](t)||n[e(142)](t,[]),n[e(126)](t)[e(164)](o)}}if(e(152)===i[e(137)]&&i[e(146)]===this[e(129)]){const t=this[e(139)]({getAttribute:t=>i[e(160)][e(126)](t)});o[e(140)](t)}}for(const[t,n]of this[e(158)])e(167)===n[e(154)][e(165)]&&o[e(140)](t);for(const t of o)this[e(158)][e(144)](t);for(const[t,o]of n)this[e(158)][e(142)](t,o[o[e(149)]-1]);const i=new Set;for(const[t,s]of n)o[e(157)](t)&&(i[e(140)](s[0]),s[e(149)]>1?n[e(142)](t,s[e(141)](1)):n[e(144)](t),o[e(144)](t));return{removed:Array[e(148)](o),inserted:Array[e(148)](n[e(163)]())[e(127)](),moved:Array[e(148)](i)}}}function l(){const t=["5338935RldMni","type","insert","_getElementKey","add","slice","set","position","delete","6078625VPRlVZ","name","element","from","length","376866hybjKL","6iJHyRt","remove","3578624kOkOsX","root","elementName","$text","has","_trackedElements","38130xLCIzd","attributes","_model","96RaqXCX","values","push","rootName","1795199myWGLo","$graveyard","reset","nodeAfter","get","flat","createRangeOn","_elementName","getItems","getChanges","13GKXdxb","getElementKey","33706190LppraM","clear"];return(l=function(){return t})()}const f=h;!function(t){const e=h,o=t();for(;;)try{if(947196===-parseInt(e(510))/1+-parseInt(e(517))/2*(parseInt(e(536))/3)+parseInt(e(546))/4+-parseInt(e(539))/5*(-parseInt(e(537))/6)+parseInt(e(568))/7+-parseInt(e(518))/8*(-parseInt(e(541))/9)+-parseInt(e(545))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class u extends t.Plugin{[f(519)]=[];[f(554)]=null;[f(570)]=null;[f(564)];[f(530)];[f(533)];static get[f(480)](){return f(562)}static get[f(478)](){return!0}static get[f(574)](){return!0}constructor(t){const e=f;super(t),this[e(564)]=new c(this[e(529)][e(551)],{elementName:e(552),getElementKey:()=>e(483)}),this[e(530)]=new c(this[e(529)][e(551)],{elementName:e(547),getElementKey:t=>t[e(520)](e(527))}),this[e(533)]=new c(this[e(529)][e(551)],{elementName:e(505),getElementKey:t=>t[e(520)](e(527))})}[f(492)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(532)][t(525)](e=>{const n=t,i=o[n(532)][n(573)][n(548)]();let s=!1;return this[n(522)](e,i)&&(s=!0),this[n(488)](e,i)&&(s=!0),this[n(540)](e,i)&&(s=!0),this[n(481)](e)&&(s=!0),this[n(556)](e)&&(s=!0),this[n(497)](e)&&(s=!0),s}),this[t(475)](o[t(532)],t(499),()=>{const e=t;o[e(535)]({isUndoable:!1},t=>{this[e(544)](t)})},{priority:t(495)}),this[t(475)](n,t(485),()=>{const e=t;this[e(519)]=[],this[e(564)][e(484)](),this[e(530)][e(484)](),this[e(533)][e(484)]()},{priority:t(569)})}[f(514)](){return this[f(554)]}[f(506)](t){const e=f;return this[e(519)][e(493)](e=>e.id===t)||null}[f(476)](){const t=f;return Array[t(500)](this[t(519)])}[f(503)](){return this[f(570)]}[f(559)](t){this[f(570)]=t}[f(550)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(519)][o(560)];i++)this[o(486)](t,i)&&(n=!0);return n}[f(543)](t,e){const o=f,n=t[o(561)](o(552),{});return t[o(498)](n,e),this[o(554)]=n,n}[f(544)](t){const e=f;if(!this[e(519)][e(560)]||this[e(554)])return;const o=this[e(519)][0][e(509)][e(508)],n=this[e(543)](t,o);for(const o of this[e(519)])o[e(526)][e(553)]||t[e(490)](o[e(526)],n,e(572));this[e(550)](t)}[f(522)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(564)][o(548)](e);if(r[o(560)]&&(this[o(554)]=r[0]),i[o(560)])if(i[o(560)]>1||this[o(554)]&&i[o(479)](t=>t!==this[o(554)])){const e=t[o(561)](o(552),{}),s=[];this[o(554)]&&s[o(496)](this[o(554)]),s[o(496)](...i),t[o(490)](e,s[0],o(516));for(const n of s)t[o(557)](t[o(513)](n),t[o(504)](e,o(572))),t[o(494)](n);this[o(554)]=e,this[o(550)](t),n=!0}else this[o(554)]=i[0];if(s[o(560)]&&o(489)===this[o(554)]?.[o(508)][o(474)]){for(const e of this[o(519)])t[o(494)](e[o(509)]),n=!0;this[o(519)]=[],this[o(554)]=null}return n}[f(488)](t,e){const o=f;let n=!1;const i=this[o(529)][o(482)][o(571)](o(528)),{inserted:s,moved:r}=this[o(533)][o(548)](e);for(const e of[...r,...s]){const s=e[o(520)](o(527)),r=this[o(506)](s);r&&(r[o(526)]=e),d(t,i,e)&&(n=!0)}return n}[f(540)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(530)][o(548)](e);for(const e of i)this[o(521)](t,e)&&(n=!0);for(const e of s)this[o(538)](t,e)&&(n=!0);for(const e of r)this[o(555)](t,e)&&(n=!0);return n}[f(556)](t){const e=f;if(!this[e(554)])return!1;let o=!1;if(this[e(554)][e(542)]!==this[e(519)][e(560)]){const n=[];for(const t of this[e(554)][e(515)]()){const i=t[e(520)](e(527));this[e(506)](i)||(n[e(549)](t),o=!0)}for(const o of n)t[e(494)](o)}const n=new Set,i=[];for(const t of this[e(554)][e(515)]()){const s=t[e(520)](e(527));n[e(491)](s)?(i[e(549)](t),o=!0):n[e(524)](s)}for(const o of i)t[e(494)](o);return this[e(554)][e(542)]||(t[e(494)](this[e(554)]),this[e(554)]=null,o=!0),o}[f(538)](t,e){const o=f;if(this[o(519)][o(493)](t=>t[o(509)]===e))return!1;let n=!1;const i=e[o(520)](o(527)),s=this[o(519)][o(531)](t=>t.id===i);-1!==s&&(t[o(494)](this[o(519)][s][o(509)]),this[o(519)][o(523)](s,1),n=!0);let r=this[o(554)]?function(t,e){const n=o;for(const o of t[n(515)]())if(o[n(520)](n(527))===e)return o;return null}(this[o(554)],i):null;r||(r=t[o(561)](o(505),{footnoteId:i}),this[o(554)]&&(t[o(490)](r,this[o(554)],o(572)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(529)][o(551)],this[o(519)],e);this[o(519)][o(523)](c,0,a);let l=c;return-1!==s&&(l=Math[o(567)](c,s)),this[o(550)](t,l)&&(n=!0),n}[f(521)](t,e){const o=f,n=this[o(519)][o(531)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(519)][n];return o(489)!==s[o(526)][o(508)][o(474)]&&(t[o(494)](s[o(526)]),i=!0),this[o(519)][o(523)](n,1),this[o(550)](t,n)&&(i=!0),i}[f(555)](t,e){const o=f,n=e[o(520)](o(527)),i=this[o(519)][o(531)](t=>t.id===n),s=this[o(519)][i];let r=!1;s[o(509)]=e,this[o(519)][o(523)](i,1);const a=p(this[o(529)][o(551)],this[o(519)],e);return this[o(519)][o(523)](a,0,s),this[o(550)](t,Math[o(567)](i,a))&&(r=!0),r}[f(486)](t,e){const o=f;if(!this[o(554)])return!1;const n=this[o(519)][e];let i;return i=this[o(570)]?this[o(570)]({footnote:n,container:this[o(554)],digits:String(this[o(519)][o(560)])[o(560)],value:e+1}):String(e+1),n[o(509)][o(520)](o(565))!=i&&(t[o(501)](o(565),i,n[o(509)]),!0)}[f(497)](t){const e=f;if(!this[e(554)]||this[e(519)][e(560)]<2)return!1;if(function(t,o){const n=e;if(t[n(560)]!==o[n(560)])return!1;for(let e=0;e<t[n(560)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(519)][e(487)](t=>t.id),Array[e(500)](this[e(554)][e(515)]())[e(487)](t=>t[e(520)](e(527)))))return!1;let o=!1;for(let n=0;n<this[e(519)][e(560)];n++){const i=this[e(519)][n],s=t[e(507)](i[e(526)]),r=t[e(504)](this[e(554)],n);s[e(477)](r)||(t[e(557)](t[e(558)](i[e(526)]),r),o=!0)}return o}[f(481)](t){const e=f;if(!this[e(519)][e(560)])return!1;const{model:o}=this[e(529)];let n=!1;for(let i=0;i<this[e(519)][e(560)]-1;i++){const s=this[e(519)][i],r=this[e(519)][i+1],a=o[e(507)](s[e(509)]),c=o[e(507)](r[e(509)]);e(566)===a[e(512)](c)&&(this[e(555)](t,s[e(509)]),i=-1,n=!0)}return n}}function d(t,e,o){const n=f;if(o[n(542)])return!1;const i=n(e?502:511);return t[n(490)](t[n(561)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(560)])return 0;const i=t[n(507)](o);for(let o=0;o<e[n(560)];o++){const s=e[o],r=t[n(507)](s[n(509)]);if(n(516)===i[n(512)](r))return o}const s=o[n(508)];let r=-1;for(let t=e[n(560)]-1;t>=0;t--)if(e[t][n(509)][n(508)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(532)][n(534)](),c=a[n(563)](s[n(474)]),l=a[c+1];if(l)for(let t=0;t<e[n(560)];t++)if(e[t][n(509)][n(508)][n(474)]===l)return t;return e[n(560)]}function h(t,e){const o=m();return(h=function(t,e){return o[t-=474]})(t,e)}function m(){const t=["footnoteInlineContent","compareWith","createRangeIn","getFootnotesDefinitionsObjectElement","getChildren","before","149766tOxHYZ","4520rEsimG","_footnotes","getAttribute","_handleRemoveFootnoteReferenceById","_handleFootnotesDefinitionsObjectChanges","splice","add","registerPostFixer","definition","footnoteId","footnotes.multiBlock","editor","_footnoteRefsTracker","findIndex","document","_footnoteDefsTracker","getRootNames","enqueueChange","6iJzZRa","6JXHxgR","_handleInsertedFootnoteReference","5339185xwVthZ","_handleFootnoteReferencesChanges","837mTRqob","childCount","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesDefinitionsContainerExists","8543360zLrSgr","4636492bxkCak","footnoteRef","getChanges","unshift","_updateFootnotesCounters","model","footnotesDefinitions","parent","_footnotesDefinitions","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","move","createRangeOn","setFootnoteFormatter","length","createElement","FootnotesTracker","indexOf","_footnoteDefsContainerTracker","footnoteCounter","after","min","4947817dzqYul","high","_footnoteFormatter","get","end","differ","isPremiumPlugin","rootName","listenTo","getFootnotes","isEqual","isOfficialPlugin","some","pluginName","_ensureFootnotesReferencesHaveProperOrder","config","singleton","reset","set","_updateFootnoteRefCounter","map","_handleFootnoteDefinitionsChanges","$graveyard","insert","has","init","find","remove","low","push","_sortFootnoteDefinitions","append","change:data","from","setAttribute","paragraph","getFootnotesFormatter","createPositionAt","footnoteDefinition","getFootnote","createPositionBefore","root","reference","1035038OxryFK"];return(m=function(){return t})()}const g=y;!function(t){const e=y,o=t();for(;;)try{if(848147===parseInt(e(448))/1*(-parseInt(e(475))/2)+parseInt(e(465))/3*(-parseInt(e(454))/4)+-parseInt(e(468))/5+parseInt(e(473))/6*(-parseInt(e(471))/7)+parseInt(e(458))/8*(parseInt(e(472))/9)+-parseInt(e(445))/10+parseInt(e(470))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class w extends t.Command{[g(474)](){const t=g,e=this[t(447)][t(442)][t(450)][t(461)],o=this[t(444)](e);this[t(463)]=!!o}[g(438)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(450)],r=this[e(444)](s);if(!r)return;const a=o[e(449)][e(464)](e(453)),c=t?.[e(455)]??(0,i.uid)();!function(t){const o=e;return o(441)==typeof t&&t[o(467)]>0&&!/\s/[o(462)](t)&&!/^\d/[o(462)](t)}(c)?(0,i.logWarning)(e(469)):(n[e(440)](t=>{const o=e,i=t[o(466)](o(456),{footnoteId:c});n[o(451)](i,r,null)}),a[e(457)](c))}[g(444)](t){const e=g,{model:o}=this[e(447)],{schema:n}=o,i=t[e(452)]();for(const t of i[e(446)]())if(n[e(459)](t)||n[e(460)](t))return null;const s=i[e(439)];return n[e(443)](s,e(456))?s:null}}function y(t,e){const o=b();return(y=function(t,e){return o[t-=438]})(t,e)}function b(){const t=["change","string","model","checkChild","_getPositionToInsertFootnote","10821010fynMkS","getItems","editor","17291ingMRn","plugins","document","insertObject","getFirstRange","FootnotesEditing","8088SuYxUJ","footnoteId","footnoteRef","_moveSelectionToFootnoteDefinition","6149272weZVEL","isBlock","isObject","selection","test","isEnabled","get","366esPjNB","createElement","length","2314890cJLRfy","insert-footnote-command-executed-with-invalid-id","31874282gRLeak","133280FfpudD","9TEfDfV","318fXvxHO","refresh","2jnxiYw","execute","end"];return(b=function(){return t})()}class v 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 w(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: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&&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})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=_;function _(t,e){const o=A();return(_=function(t,e){return o[t-=355]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(910245===-parseInt(e(387))/1+-parseInt(e(357))/2+parseInt(e(390))/3*(parseInt(e(381))/4)+parseInt(e(388))/5+-parseInt(e(402))/6*(parseInt(e(376))/7)+parseInt(e(398))/8*(-parseInt(e(424))/9)+parseInt(e(397))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class L extends t.Plugin{static get[T(360)](){return T(399)}static get[T(395)](){return[v,S.ClipboardPipeline]}static get[T(383)](){return!0}static get[T(406)](){return!0}[T(369)](){this[T(430)]()}[T(430)](){const t=T;this[t(428)](),this[t(371)]()}[T(428)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(421)](S.ClipboardPipeline),s=o[t(421)](u);this[t(364)](i,t(382),(o,i)=>{const r=t,a=D(n[r(380)](i[r(429)]));if(!a[r(405)])return;const c=s[r(400)](),l=a[r(372)]((t,o)=>{const n=r,i=c[n(425)](t=>t.id===o);if(i){const o=e[n(417)][n(419)](i[n(356)],{isClipboardPipeline:!0}),s=e[n(417)][n(415)][n(379)](o);t[i.id]=s}return t},Object[r(359)](null));i[r(361)][r(426)](r(416),JSON[r(355)](l))})}[T(371)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(378)],r=n[t(421)](S.ClipboardPipeline),a=n[t(421)](u);let c=null;this[t(364)](s[t(362)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(420)](n(416));c=i?JSON[n(422)](i):null}),this[t(364)](r,t(375),(n,s)=>{const r=t,l=s[r(377)]===this[r(386)].id;l&&r(384)===s[r(365)]||o[r(414)](t=>{const n=r;let f=a[n(363)]();const u=!!f&&Array[n(366)](o[n(362)][n(374)][n(409)]())[n(392)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(380)](e))n.is(o(403),o(368))&&i[o(412)](n);for(const e of i)t[o(427)](e)}(t,s[n(429)]),!c)return;const{selection:d}=o[n(362)],p=d[n(407)]()[n(373)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(380)](e))if(n.is(o(403),o(368)))return n;return null}(t,s[n(429)]),f||=a[n(396)](t,p));const h=Array[n(366)](d[n(410)]())[n(411)](D),m=function(t,e,o){const s=n,r=Object[s(359)](null);for(const{item:n}of t[s(380)](e))if(n.is(s(403),s(385))){const e=n[s(418)](s(423));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(393)](s(423),r[e],n)}return r}(t,s[n(429)],t=>{const e=n;return!l||!!a[e(389)](t)&&!h[e(392)](t)});for(const[o,i]of Object[n(413)](c)){const s=m[o]||o,r=t[n(370)](n(401),{footnoteId:s}),a=e[n(417)][n(415)][n(419)](i),c=e[n(417)][n(404)](a,r);t[n(391)](c,r),t[n(367)](r,f,n(358))}c=null})})}}function A(){const t=["data","getAttribute","toView","getData","get","parse","footnoteId","2042694ZffJSR","find","setData","remove","_handleCopyFootnotesDefinitions","content","_defineClipboardIntegration","stringify","definition","483392VxBBgF","end","create","pluginName","dataTransfer","document","getFootnotesDefinitionsObjectElement","listenTo","method","from","insert","footnotesDefinitions","init","createElement","_handlePasteFootnotesDefinitions","reduce","root","selection","contentInsertion","1194025bgJqbR","sourceEditorId","editing","toData","createRangeIn","7868OQcXxB","outputTransformation","isOfficialPlugin","drop","footnoteRef","editor","1119526AEepuv","8677875QKfSLH","getFootnote","183Ywhhrd","append","includes","setAttribute","clipboardInput","requires","_insertEmptyFootnotesDefinitionsContainer","17227120xwOKog","16rPPhfH","FootnotesClipboard","getFootnotes","footnoteDefinition","30ginwzw","element","toModel","length","isPremiumPlugin","getFirstRange","add","getSelectedBlocks","getRanges","flatMap","push","entries","change","htmlProcessor","application/ckeditor5-footnotes"];return(A=function(){return t})()}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(403),e(385))&&o[e(408)](n[e(418)](e(423)));return Array[e(366)](o)}var O=o(311),R=o(355),V=o(929),N=o.n(V),K=o(297),j=o.n(K),B=o(102),M=o.n(B),z=o(123),U=o.n(z),W=o(741),q=o.n(W),H=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=M().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();N()(H.A,J);H.A&&H.A.locals&&H.A.locals;class X 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",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=G;function G(t,e){var o=Y();return(G=function(t,e){return o[t-=423]})(t,e)}function Y(){var t=["6xboZsP","716779zWkgzn","2376248XZfFQG","5300664VheTzm","1266282FlwIpT","455WaiZOZ","78762RQzmfF","isOfficialPlugin","isPremiumPlugin","95384vCfoZa","pluginName","Footnotes","requires","116460pFYJmf","1628UmThgq","5QtPfEq"];return(Y=function(){return t})()}!function(t){for(var e=G,o=t();;)try{if(459280===-parseInt(e(426))/1+parseInt(e(425))/2*(parseInt(e(431))/3)+-parseInt(e(427))/4*(parseInt(e(424))/5)+parseInt(e(428))/6+-parseInt(e(430))/7*(parseInt(e(434))/8)+-parseInt(e(429))/9+-parseInt(e(438))/10*(-parseInt(e(423))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[Q(435)](){return Q(436)}static get[Q(437)](){return[v,L,X]}static get[Q(432)](){return!0}static get[Q(433)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=125]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(745120===parseInt(e(125))/1+-parseInt(e(139))/2+-parseInt(e(127))/3+-parseInt(e(130))/4*(-parseInt(e(134))/5)+-parseInt(e(141))/6+parseInt(e(131))/7*(-parseInt(e(126))/8)+-parseInt(e(136))/9*(-parseInt(e(140))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(129),tt(138),tt(135),tt(132),tt(137),tt(142),tt(133),tt(128)];function nt(){const t=["322208jHzISN","16WfBjov","835356hpCfYI","upper-roman","decimal","8WLTuvA","4635547jyOyEh","upper-latin","lower-roman","1439015SRenUu","lower-latin","1509786TmkZYG","lower-alpha","decimal-leading-zero","140860SbBQqL","100xvTxnz","941460QeOghW","upper-alpha"];return(nt=function(){return t})()}function it(t,e){const o=rt();return(it=function(t,e){return o[t-=112]})(t,e)}const st=it;function rt(){const t=["7285500HpIkkt","execute","refresh","5465tHAcDj","change","13haBsml","footnotesListStyle","8183LdJpMq","12391038EduDuu","7368uAFqoe","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","model","isEnabled","1335frPmQK","8750016GtZycR","get","includes","getAttribute","10QFizdJ","3156oHesDP","75018MOlWsS","1096CAHZdq","value","plugins","setAttribute"];return(rt=function(){return t})()}!function(t){const e=it,o=t();for(;;)try{if(906353===-parseInt(e(123))/1*(-parseInt(e(113))/2)+parseInt(e(132))/3*(-parseInt(e(112))/4)+-parseInt(e(121))/5*(-parseInt(e(127))/6)+-parseInt(e(125))/7*(parseInt(e(114))/8)+-parseInt(e(118))/9+parseInt(e(137))/10*(parseInt(e(126))/11)+-parseInt(e(133))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[st(120)](){const t=st,{editor:e}=this,o=e[t(116)][t(134)](u)[t(128)]();this[t(131)]=!!o,this[t(115)]=o?.[t(136)](t(124))??null}[st(119)]({value:t}){const e=st,{editor:o}=this,n=o[e(116)][e(134)](u),i=n[e(128)]();i&&ot[e(135)](t)&&o[e(130)][e(122)](o=>{const s=e;o[s(117)](s(124),t,i),n[s(129)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(686970===parseInt(e(236))/1+-parseInt(e(228))/2*(-parseInt(e(237))/3)+parseInt(e(219))/4*(parseInt(e(232))/5)+-parseInt(e(221))/6*(parseInt(e(229))/7)+parseInt(e(234))/8*(parseInt(e(218))/9)+-parseInt(e(224))/10+parseInt(e(240))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(239)](){const t=ct,{editor:e}=this,o=e[t(225)][t(220)](u)[t(238)]();this[t(233)]=!!o,this[t(227)]=o?.[t(223)](t(226))??null}[ct(241)]({value:t}){const e=ct,{editor:o}=this,n=o[e(225)][e(220)](u),i=n[e(238)]();i&&Number[e(235)](t)&&o[e(242)][e(222)](o=>{const s=e;o[s(231)](s(226),t,i),n[s(230)](o)})}}function ut(){const t=["109213nOEtPN","525wlvlCO","getFootnotesDefinitionsObjectElement","refresh","11840994nqvvYQ","execute","model","62433fbtGiU","4mBKQdn","get","6361878cMwcWX","change","getAttribute","9361570WDLQpO","plugins","footnotesListStart","value","9328FckpUx","7TLuqPC","_updateFootnotesCounters","setAttribute","2332630HCFbvY","isEnabled","248qJtdtd","isInteger"];return(ut=function(){return t})()}const dt=mt;function pt(){const t=["define","mapper","47578488XqaANp","footnotesDefinitions","nodeAfter","plugins","getStyle","isPremiumPlugin","start","insert","attribute:footnotesListStyle:footnotesDefinitions","init","FootnotesPropertiesEditing","toUpperCase","downcast","removeAttribute","element:ol","16ubUXdE","commands","element","padStart","schema","from","$text","for","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","isNaN","consume","removeStyle","getChanges","type","getItems","decimal-leading-zero","editor","_formatFootnoteListValue","createRangeOn","footnotesStyle","viewItem","attribute:footnotesListStart:footnotesDefinitions","footnotesListStyle","registerPostFixer","_getDefaultListStyle","189SJkjrk","find","parseInt","item","upcast","1642482oBBUFt","fromCharCode","pluginName","decimal","lower-alpha","footnotesListStart","hasClass","getAttribute","upper-latin","modelCursor","setFootnoteFormatter","_definePostfixer","footnotes-list","consumable","requires","_getDefaultStartIndex","_defineSchema","2305625poIPoe","toViewElement","60852fOknMz","toLowerCase","7252505QSFpRR","_defineConverters","11GqLOWW","_defineFormatter","max","hasAttribute","parent","position","2ShoEet","lower-roman","setStyle","isOfficialPlugin","upper-roman","2241018vSQyfm","11448470PqbdBd","differ","lower-latin","list-style-type","get","model","add","writer","checkAttribute","name","floor","_updateFootnotesCounters","document","footnotesStart","extend","config","getChildren","setAttribute","upper-alpha","6iZfjBl"];return(pt=function(){return t})()}!function(t){const e=mt,o=t();for(;;)try{if(842248===-parseInt(e(514))/1*(parseInt(e(543))/2)+-parseInt(e(509))/3*(parseInt(e(533))/4)+parseInt(e(535))/5+-parseInt(e(568))/6*(parseInt(e(531))/7)+parseInt(e(483))/8*(-parseInt(e(548))/9)+-parseInt(e(549))/10+parseInt(e(537))/11*(parseInt(e(571))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[dt(516)](){return dt(478)}static get[dt(528)](){return[v,u]}static get[dt(546)](){return!0}static get[dt(576)](){return!0}[dt(477)](){const t=dt,{editor:e}=this;e[t(564)][t(569)](t(491),t(517)),e[t(564)][t(569)](t(492),1),e[t(484)][t(555)](t(503),new at(e)),e[t(484)][t(555)](t(562),new ft(e)),this[t(530)](),this[t(536)](),this[t(538)](),this[t(525)]()}[dt(530)](){const t=dt,{editor:e}=this,{schema:o}=e[t(554)];o[t(563)](t(572),{allowAttributes:[t(506),t(519)]})}[dt(536)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(490)](t(513))[t(555)](e=>{const o=t;e.on(o(482),(t,e,n)=>{const s=o,r=e[s(504)],a=e[s(523)]?.[s(541)];r[s(520)](s(526))&&a?.is(s(485),s(572))&&(function(t,e,o,n){const i=s;if(!n[i(557)](e,i(519)))return;let r=1;const a=o[i(527)][i(494)](t,{attributes:i(577)});if(a){const e=Number[i(511)](t[i(521)](i(577)),10);Number[i(493)](e)||(r=e)}!a&&e[i(540)](i(519))||o[i(556)][i(566)](i(519),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(557)](e,i(506)))return;let r=i(517),a=!1;if(o[i(527)][i(494)](t,{attributes:i(497)})){const e={1:i(517),a:i(518),A:i(567),i:i(544),I:i(547)}[t[i(521)](i(497))];e&&(r=e),a=!0}o[i(527)][i(494)](t,{styles:i(552)})&&(r=t[i(575)](i(552)),a=!0),!a&&e[i(540)](i(506))||o[i(556)][i(566)](i(506),r,e)}(r,a,n,i))})}),o[t(490)](t(480))[t(555)](e=>{const o=t;e.on(o(505),(t,e,n)=>{const i=o;if(!n[i(527)][i(494)](e[i(512)],t[i(558)]))return;const s=gt(e[i(512)],n[i(570)]),{attributeNewValue:r}=e;null==r||1===r?n[i(556)][i(481)](i(577),s):n[i(556)][i(566)](i(577),String(r),s)}),e.on(o(476),(t,e,n)=>{const i=o;if(!n[i(527)][i(494)](e[i(512)],t[i(558)]))return;const s=gt(e[i(512)],n[i(570)]),{attributeNewValue:r}=e;r&&i(517)!==r?n[i(556)][i(545)](i(552),r,s):n[i(556)][i(495)](i(552),s)})})}[dt(525)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(574)][t(553)](u),i=this[t(508)](),s=this[t(529)]();o[t(561)][t(507)](e=>{const r=t,a=o[r(561)][r(550)][r(496)]();let c=!1;for(const t of a){if(r(475)!==t[r(497)]||r(489)===t[r(558)])continue;const n=o[r(502)](t[r(542)][r(573)]);for(const t of n[r(498)]())t.is(r(485),r(572))&&(!t[r(540)](r(519))&&o[r(487)][r(557)](t,r(519))&&(e[r(566)](r(519),s,t),c=!0),!t[r(540)](r(506))&&o[r(487)][r(557)](t,r(506))&&(e[r(566)](r(506),i,t),c=!0))}return c&&n[r(560)](e),c})}[dt(538)](){const t=dt,{editor:e}=this;e[t(574)][t(553)](u)[t(524)](e=>this[t(501)](e))}[dt(508)](){const t=dt;return this[t(500)][t(564)][t(553)](t(491))}[dt(529)](){const t=dt;return this[t(500)][t(564)][t(553)](t(492))}[dt(501)]({container:t,value:e,digits:o}){const n=dt,i=t[n(521)](n(506)),s=t[n(521)](n(519)),r=Math[n(559)](e)+(s??1)-1;switch(i){case n(499):return function(t,e){const o=n;return String(t)[o(486)](e,"0")}(r,Math[n(539)](2,o));case n(518):case n(551):return wt(r,!1);case n(567):case n(522):return wt(r,!0);case n(544):return bt(r,!1);case n(547):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt();return(mt=function(t,e){return o[t-=475]})(t,e)}function gt(t,e){const o=dt,n=e[o(532)](t);return Array[o(488)](n[o(565)]())[o(510)](t=>t.is(o(485),"ol")&&t[o(520)](o(526)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(515)](97+t)+n,i=Math[o(559)]((i-1)/26)}return e?n[o(479)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(534)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=M().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["862432FUzGfP","1194996RURwMf","requires","104481ZkBoqE","2797480PzgWMy","671451yPpQUo","isOfficialPlugin","FootnotesProperties","pluginName","isPremiumPlugin","151492QnggIX","578915qzJmWJ"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=267]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(127821===-parseInt(e(270))/1+-parseInt(e(277))/2+-parseInt(e(272))/3+parseInt(e(267))/4+parseInt(e(278))/5+-parseInt(e(268))/6+parseInt(e(271))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Ft(275)](){return Ft(274)}static get[Ft(269)](){return[ht,Ct]}static get[Ft(273)](){return!0}static get[Ft(276)](){return!0}}function St(){var t=["4IXxeKg","51309jcyhKh","67960BllnEG","288kbdDXt","8375653YKUBDr","55517axgCKd","1889555QOJUnl","126uZlVNK","6zvTPJW","3133120DBqoIK","875516HrvPun"];return(St=function(){return t})()}function Tt(t,e){var o=St();return(Tt=function(t,e){return o[t-=282]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(627001===parseInt(e(287))/1+-parseInt(e(285))/2*(parseInt(e(289))/3)+parseInt(e(288))/4*(parseInt(e(283))/5)+parseInt(e(291))/6*(parseInt(e(282))/7)+-parseInt(e(290))/8*(-parseInt(e(284))/9)+-parseInt(e(286))/10+-parseInt(e(292))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=458]})(t,e)}function a(){const t=["377604QmPmrZ","delete","slice","20504QwKxtY","flat","createRangeOn","1agWfiB","from","getChanges","$graveyard","root","type","set","1783226ypHbeb","element","push","getElementKey","_getElementKey","2180TnLUfe","insert","284WxKfgg","clear","_model","length","position","getItems","_elementName","get","$text","values","216072QoJNPu","_trackedElements","3458gVAGec","remove","add","elementName","nodeAfter","7998JQSAVg","162weGqrZ","1300gEEZcL","reset","rootName","name","attributes","has","9570564ZoTWOG"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(459e3===parseInt(e(468))/1*(parseInt(e(475))/2)+parseInt(e(462))/3+parseInt(e(482))/4*(parseInt(e(480))/5)+parseInt(e(499))/6*(-parseInt(e(494))/7)+parseInt(e(492))/8*(-parseInt(e(500))/9)+-parseInt(e(501))/10*(parseInt(e(465))/11)+parseInt(e(461))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(484)];[c(488)];[c(479)];[c(493)]=new Map;constructor(t,e){const o=c;this[o(484)]=t,this[o(488)]=e[o(497)],this[o(479)]=e[o(478)]}[c(502)](){const t=c;this[t(493)][t(483)]()}[c(470)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(473)]&&e(490)!==i[e(458)]&&i[e(486)][e(498)]){const t=this[e(484)][e(467)](i[e(486)][e(498)]);for(const o of t[e(487)]()){if(!o.is(e(476),this[e(488)]))continue;const t=this[e(479)](o);n[e(460)](t)||n[e(474)](t,[]),n[e(489)](t)[e(477)](o)}}if(e(495)===i[e(473)]&&i[e(458)]===this[e(488)]){const t=this[e(479)]({getAttribute:t=>i[e(459)][e(489)](t)});o[e(496)](t)}}for(const[t,n]of this[e(493)])e(471)===n[e(472)][e(503)]&&o[e(496)](t);for(const t of o)this[e(493)][e(463)](t);for(const[t,o]of n)this[e(493)][e(474)](t,o[o[e(485)]-1]);const i=new Set;for(const[t,s]of n)o[e(460)](t)&&(i[e(496)](s[0]),s[e(485)]>1?n[e(474)](t,s[e(464)](1)):n[e(463)](t),o[e(463)](t));return{removed:Array[e(469)](o),inserted:Array[e(469)](n[e(491)]())[e(466)](),moved:Array[e(469)](i)}}}function f(){const t=["4490bFGeKV","init","unshift","_updateFootnotesCounters","has","reference","definition","registerPostFixer","createPositionAt","singleton","getFootnotesFormatter","createElement","1827636JRtpsn","min","_footnoteRefsTracker","parent","childCount","append","push","isPremiumPlugin","findIndex","move","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","2555780SOxAGt","config","find","editor","getFootnotes","_handleInsertedFootnoteReference","footnotes.multiBlock","footnoteInlineContent","remove","_handleFootnotesDefinitionsObjectSync","getFootnote","footnoteId","paragraph","_updateFootnoteRefCounter","330qbIjtm","get","getChanges","FootnotesTracker","_handleFootnoteDefinitionsChanges","_footnoteDefsContainerTracker","indexOf","_insertEmptyFootnotesDefinitionsContainer","4777816jVdwqU","_ensureFootnotesReferencesHaveProperOrder","after","end","createRangeOn","from","setFootnoteFormatter","getFootnotesDefinitionsObjectElement","_footnoteDefsTracker","change:data","footnotesDefinitions","_footnoteFormatter","_footnotes","footnoteRef","document","rootName","model","getAttribute","map","before","3228cKdlaM","set","_handleRemoveFootnoteReferenceById","setAttribute","reset","isOfficialPlugin","_handleFootnoteReferencesChanges","createPositionBefore","length","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","low","enqueueChange","differ","5714401qrkLDp","4yWLAZb","_footnotesDefinitions","some","splice","high","9651015dePfGh","root","footnoteCounter","insert","listenTo","getRootNames","pluginName","createRangeIn","compareWith","_sortFootnoteDefinitions","add","getChildren","isEqual","$graveyard"];return(f=function(){return t})()}const u=h;!function(t){const e=h,o=t();for(;;)try{if(415456===-parseInt(e(266))/1*(-parseInt(e(285))/2)+-parseInt(e(297))/3+parseInt(e(309))/4+parseInt(e(223))/5*(parseInt(e(251))/6)+parseInt(e(265))/7+parseInt(e(231))/8+-parseInt(e(271))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(243)]=[];[u(267)]=null;[u(242)]=null;[u(228)];[u(299)];[u(239)];static get[u(277)](){return u(226)}static get[u(256)](){return!0}static get[u(304)](){return!0}constructor(t){const e=u;super(t),this[e(228)]=new l(this[e(312)][e(247)],{elementName:e(241),getElementKey:()=>e(294)}),this[e(299)]=new l(this[e(312)][e(247)],{elementName:e(244),getElementKey:t=>t[e(248)](e(320))}),this[e(239)]=new l(this[e(312)][e(247)],{elementName:e(261),getElementKey:t=>t[e(248)](e(320))})}[u(286)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(245)][t(292)](e=>{const n=t,i=o[n(245)][n(264)][n(225)]();let s=!1;return this[n(307)](e,i)&&(s=!0),this[n(227)](e,i)&&(s=!0),this[n(257)](e,i)&&(s=!0),this[n(232)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(280)](e)&&(s=!0),s}),this[t(275)](o[t(245)],t(240),()=>{const e=t;o[e(263)]({isUndoable:!1},t=>{this[e(260)](t)})},{priority:t(262)}),this[t(275)](n,t(252),()=>{const e=t;this[e(243)]=[],this[e(228)][e(255)](),this[e(299)][e(255)](),this[e(239)][e(255)]()},{priority:t(270)})}[u(238)](){return this[u(267)]}[u(319)](t){const e=u;return this[e(243)][e(311)](e=>e.id===t)||null}[u(313)](){const t=u;return Array[t(236)](this[t(243)])}[u(295)](){return this[u(242)]}[u(237)](t){this[u(242)]=t}[u(288)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(243)][o(259)];i++)this[o(222)](t,i)&&(n=!0);return n}[u(230)](t,e){const o=u,n=t[o(296)](o(241),{});return t[o(302)](n,e),this[o(267)]=n,n}[u(260)](t){const e=u;if(!this[e(243)][e(259)]||this[e(267)])return;const o=this[e(243)][0][e(290)][e(272)],n=this[e(230)](t,o);for(const o of this[e(243)])o[e(291)][e(300)]||t[e(274)](o[e(291)],n,e(234));this[e(288)](t)}[u(307)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(228)][o(225)](e);if(r[o(259)]&&(this[o(267)]=r[0]),i[o(259)])if(i[o(259)]>1||this[o(267)]&&i[o(268)](t=>t!==this[o(267)])){const e=t[o(296)](o(241),{}),s=[];this[o(267)]&&s[o(303)](this[o(267)]),s[o(303)](...i),t[o(274)](e,s[0],o(250));for(const n of s)t[o(306)](t[o(278)](n),t[o(293)](e,o(234))),t[o(317)](n);this[o(267)]=e,this[o(288)](t),n=!0}else this[o(267)]=i[0];if(s[o(259)]&&o(284)===this[o(267)]?.[o(272)][o(246)]){for(const e of this[o(243)])t[o(317)](e[o(290)]),n=!0;this[o(243)]=[],this[o(267)]=null}return n}[u(227)](t,e){const o=u;let n=!1;const i=this[o(312)][o(310)][o(224)](o(315)),{inserted:s,moved:r}=this[o(239)][o(225)](e);for(const e of[...r,...s]){const s=e[o(248)](o(320)),r=this[o(319)](s);r&&(r[o(291)]=e),p(t,i,e)&&(n=!0)}return n}[u(257)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(299)][o(225)](e);for(const e of i)this[o(253)](t,e)&&(n=!0);for(const e of s)this[o(314)](t,e)&&(n=!0);for(const e of r)this[o(308)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(267)])return!1;let o=!1;if(this[e(267)][e(301)]!==this[e(243)][e(259)]){const n=[];for(const t of this[e(267)][e(282)]()){const i=t[e(248)](e(320));this[e(319)](i)||(n[e(287)](t),o=!0)}for(const o of n)t[e(317)](o)}const n=new Set,i=[];for(const t of this[e(267)][e(282)]()){const s=t[e(248)](e(320));n[e(289)](s)?(i[e(287)](t),o=!0):n[e(281)](s)}for(const o of i)t[e(317)](o);return this[e(267)][e(301)]||(t[e(317)](this[e(267)]),this[e(267)]=null,o=!0),o}[u(314)](t,e){const o=u;if(this[o(243)][o(311)](t=>t[o(290)]===e))return!1;let n=!1;const i=e[o(248)](o(320)),s=this[o(243)][o(305)](t=>t.id===i);-1!==s&&(t[o(317)](this[o(243)][s][o(290)]),this[o(243)][o(269)](s,1),n=!0);let r=this[o(267)]?function(t,e){const n=o;for(const o of t[n(282)]())if(o[n(248)](n(320))===e)return o;return null}(this[o(267)],i):null;r||(r=t[o(296)](o(261),{footnoteId:i}),this[o(267)]&&(t[o(274)](r,this[o(267)],o(234)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(312)][o(247)],this[o(243)],e);this[o(243)][o(269)](c,0,a);let l=c;return-1!==s&&(l=Math[o(298)](c,s)),this[o(288)](t,l)&&(n=!0),n}[u(253)](t,e){const o=u,n=this[o(243)][o(305)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(243)][n];return o(284)!==s[o(291)][o(272)][o(246)]&&(t[o(317)](s[o(291)]),i=!0),this[o(243)][o(269)](n,1),this[o(288)](t,n)&&(i=!0),i}[u(308)](t,e){const o=u,n=e[o(248)](o(320)),i=this[o(243)][o(305)](t=>t.id===n),s=this[o(243)][i];let r=!1;s[o(290)]=e,this[o(243)][o(269)](i,1);const a=m(this[o(312)][o(247)],this[o(243)],e);return this[o(243)][o(269)](a,0,s),this[o(288)](t,Math[o(298)](i,a))&&(r=!0),r}[u(222)](t,e){const o=u;if(!this[o(267)])return!1;const n=this[o(243)][e];let i;return i=this[o(242)]?this[o(242)]({footnote:n,container:this[o(267)],digits:String(this[o(243)][o(259)])[o(259)],value:e+1}):String(e+1),n[o(290)][o(248)](o(273))!=i&&(t[o(254)](o(273),i,n[o(290)]),!0)}[u(280)](t){const e=u;if(!this[e(267)]||this[e(243)][e(259)]<2)return!1;if(function(t,o){const n=e;if(t[n(259)]!==o[n(259)])return!1;for(let e=0;e<t[n(259)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(243)][e(249)](t=>t.id),Array[e(236)](this[e(267)][e(282)]())[e(249)](t=>t[e(248)](e(320)))))return!1;let o=!1;for(let n=0;n<this[e(243)][e(259)];n++){const i=this[e(243)][n],s=t[e(258)](i[e(291)]),r=t[e(293)](this[e(267)],n);s[e(283)](r)||(t[e(306)](t[e(235)](i[e(291)]),r),o=!0)}return o}[u(232)](t){const e=u;if(!this[e(243)][e(259)])return!1;const{model:o}=this[e(312)];let n=!1;for(let i=0;i<this[e(243)][e(259)]-1;i++){const s=this[e(243)][i],r=this[e(243)][i+1],a=o[e(258)](s[e(290)]),c=o[e(258)](r[e(290)]);e(233)===a[e(279)](c)&&(this[e(308)](t,s[e(290)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(301)])return!1;const i=n(e?221:316);return t[n(274)](t[n(296)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=221]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(259)])return 0;const i=t[n(258)](o);for(let o=0;o<e[n(259)];o++){const s=e[o],r=t[n(258)](s[n(290)]);if(n(250)===i[n(279)](r))return o}const s=o[n(272)];let r=-1;for(let t=e[n(259)]-1;t>=0;t--)if(e[t][n(290)][n(272)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(245)][n(276)](),c=a[n(229)](s[n(246)]),l=a[c+1];if(l)for(let t=0;t<e[n(259)];t++)if(e[t][n(290)][n(272)][n(246)]===l)return t;return e[n(259)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=485]})(t,e)}function y(){const t=["execute","document","footnoteRef","end","4265BhZVxV","3930UkgfqQ","editor","FootnotesEditing","190QRymgt","343346lXgePB","footnoteId","4522546JrdJwE","isEnabled","getFirstRange","969472DvyKpk","get","refresh","insertObject","checkChild","plugins","4533208KjjSZl","_moveSelectionToFootnoteDefinition","1474389HEnHaG","createElement","_getPositionToInsertFootnote","isObject","isBlock","length","getItems","insert-footnote-command-executed-with-invalid-id","change","201304MTCsSA","string","model","selection","6LWzHZo","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(412421===-parseInt(e(519))/1+-parseInt(e(487))/2+parseInt(e(508))/3*(-parseInt(e(504))/4)+-parseInt(e(514))/5*(parseInt(e(515))/6)+-parseInt(e(521))/7+-parseInt(e(493))/8+parseInt(e(495))/9*(parseInt(e(518))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(489)](){const t=g,e=this[t(516)][t(506)][t(511)][t(507)],o=this[t(497)](e);this[t(485)]=!!o}[g(510)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(511)],r=this[e(497)](s);if(!r)return;const a=o[e(492)][e(488)](e(517)),c=t?.[e(520)]??(0,i.uid)();!function(t){const o=e;return o(505)==typeof t&&t[o(500)]>0&&!/\s/[o(509)](t)&&!/^\d/[o(509)](t)}(c)?(0,i.logWarning)(e(502)):(n[e(503)](t=>{const o=e,i=t[o(496)](o(512),{footnoteId:c});n[o(490)](i,r,null)}),a[e(494)](c))}[g(497)](t){const e=g,{model:o}=this[e(516)],{schema:n}=o,i=t[e(486)]();for(const t of i[e(501)]())if(n[e(499)](t)||n[e(498)](t))return null;const s=i[e(513)];return n[e(491)](s,e(512))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](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(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 D=o(331);const P=A;function T(){const t=["definition","getFootnotesDefinitionsObjectElement","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","end","stringify","_defineClipboardIntegration","insert","push","add","listenTo","3060OhRHnb","find","26210pepFaO","includes","reduce","110GGKhfK","parse","toModel","document","from","getFootnote","element","editor","drop","root","244AFuvTD","45498wbXGKY","application/ckeditor5-footnotes","FootnotesClipboard","getFootnotes","get","contentInsertion","method","requires","toView","1080381MBmivl","selection","10012EdOSAk","3024KnwPiS","toData","sourceEditorId","isPremiumPlugin","append","createRangeIn","entries","footnotesDefinitions","127127UHdWYn","_handleCopyFootnotesDefinitions","create","clipboardInput","footnoteDefinition","3267876IDKODN","getRanges","data","dataTransfer","change","footnoteRef","remove","htmlProcessor","getData","getSelectedBlocks","length","content","pluginName","init","editing","getAttribute","flatMap","setData","287rbTxEo","isOfficialPlugin","getFirstRange","footnoteId","setAttribute","createElement","_handlePasteFootnotesDefinitions","600sjqyDK"];return(T=function(){return t})()}function A(t,e){const o=T();return(A=function(t,e){return o[t-=466]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(447189===parseInt(e(515))/1*(parseInt(e(537))/2)+parseInt(e(535))/3+parseInt(e(525))/4*(parseInt(e(512))/5)+parseInt(e(526))/6*(parseInt(e(491))/7)+parseInt(e(538))/8*(-parseInt(e(510))/9)+parseInt(e(498))/10*(-parseInt(e(468))/11)+-parseInt(e(473))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[P(485)](){return P(528)}static get[P(533)](){return[v,D.ClipboardPipeline]}static get[P(492)](){return!0}static get[P(541)](){return!0}[P(486)](){this[P(505)]()}[P(505)](){const t=P;this[t(469)](),this[t(497)]()}[P(469)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(530)](D.ClipboardPipeline),s=o[t(530)](d);this[t(509)](i,t(501),(o,i)=>{const r=t,a=L(n[r(543)](i[r(484)]));if(!a[r(483)])return;const c=s[r(529)](),l=a[r(514)]((t,o)=>{const n=r,i=c[n(511)](t=>t.id===o);if(i){const o=e[n(475)][n(534)](i[n(499)],{isClipboardPipeline:!0}),s=e[n(475)][n(480)][n(539)](o);t[i.id]=s}return t},Object[r(470)](null));i[r(476)][r(490)](r(527),JSON[r(504)](l))})}[P(497)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(487)],r=n[t(530)](D.ClipboardPipeline),a=n[t(530)](d);let c=null;this[t(509)](s[t(518)],t(471),(e,o)=>{const n=t,i=o[n(476)][n(481)](n(527));c=i?JSON[n(516)](i):null}),this[t(509)](r,t(531),(n,s)=>{const r=t,l=s[r(540)]===this[r(522)].id;l&&r(523)===s[r(532)]||o[r(477)](t=>{const n=r;let f=a[n(500)]();const u=!!f&&Array[n(519)](o[n(518)][n(536)][n(482)]())[n(513)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(543)](e))n.is(o(521),o(467))&&i[o(507)](n);for(const e of i)t[o(479)](e)}(t,s[n(484)]),!c)return;const{selection:d}=o[n(518)],p=d[n(493)]()[n(524)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(543)](e))if(n.is(o(521),o(467)))return n;return null}(t,s[n(484)]),f||=a[n(502)](t,p));const h=Array[n(519)](d[n(474)]())[n(489)](L),m=function(t,e,o){const s=n,r=Object[s(470)](null);for(const{item:n}of t[s(543)](e))if(n.is(s(521),s(478))){const e=n[s(488)](s(494));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(495)](s(494),r[e],n)}return r}(t,s[n(484)],t=>{const e=n;return!l||!!a[e(520)](t)&&!h[e(513)](t)});for(const[o,i]of Object[n(466)](c)){const s=m[o]||o,r=t[n(496)](n(472),{footnoteId:s}),a=e[n(475)][n(480)][n(534)](i),c=e[n(475)][n(517)](a,r);t[n(542)](c,r),t[n(506)](r,f,n(503))}c=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(521),e(478))&&o[e(508)](n[e(488)](e(494)));return Array[e(519)](o)}var O=o(311),V=o(355),N=o(929),K=o.n(N),R=o(297),M=o.n(R),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();K()(q.A,G);q.A&&q.A.locals&&q.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,O.ButtonView)),e.add("menuBar:insertFootnote",X(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Q(){var t=["31432ZlCgxN","requires","pluginName","1634092dbLpdf","10462544nFJzvY","isPremiumPlugin","252457cNzbbJ","603SqLMNI","8314135bUfWbf","6121276kdnSUS","isOfficialPlugin","7224144RfOuGn","Footnotes"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=249]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(925478===parseInt(e(261))/1+parseInt(e(258))/2+-parseInt(e(249))/3*(-parseInt(e(255))/4)+parseInt(e(250))/5+-parseInt(e(253))/6+-parseInt(e(251))/7+-parseInt(e(259))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class Y extends t.Plugin{static get[Z(257)](){return Z(254)}static get[Z(256)](){return[v,_,J]}static get[Z(252)](){return!0}static get[Z(260)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=106]})(t,e)}function ot(){const t=["upper-roman","725672thlnTe","3840IRBZTK","1hNVbDa","13311zuHyxX","28BPNSuH","1961330CjeDmU","6MtTzoq","lower-roman","upper-latin","decimal","3613350YRBcMx","lower-alpha","710560BAQzKF","lower-latin","770615fyFueG","upper-alpha","11638CMxTiR","14916VvqZZa","decimal-leading-zero"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(641404===parseInt(e(116))/1*(parseInt(e(119))/2)+parseInt(e(124))/3+-parseInt(e(106))/4+parseInt(e(108))/5*(parseInt(e(120))/6)+-parseInt(e(118))/7*(-parseInt(e(114))/8)+parseInt(e(117))/9*(-parseInt(e(115))/10)+parseInt(e(110))/11*(-parseInt(e(111))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(123),tt(112),tt(107),tt(122),tt(125),tt(109),tt(121),tt(113)],it=rt;function st(){const t=["isEnabled","get","includes","plugins","execute","value","2313376BchflK","18DYMlgL","_updateFootnotesCounters","105016rxPqfW","360855laumMO","model","1608288yUOiyE","579828rpCLvy","getFootnotesDefinitionsObjectElement","change","77CgnytX","footnotesListStyle","refresh","getAttribute","setAttribute","1965615mwVoon","5027060tfzctS"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=179]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(626560===-parseInt(e(186))/1+parseInt(e(182))/2+-parseInt(e(197))/3+parseInt(e(188))/4+-parseInt(e(198))/5+parseInt(e(189))/6*(parseInt(e(192))/7)+-parseInt(e(185))/8*(-parseInt(e(183))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(194)](){const t=it,{editor:e}=this,o=e[t(179)][t(200)](d)[t(190)]();this[t(199)]=!!o,this[t(181)]=o?.[t(195)](t(193))??null}[it(180)]({value:t}){const e=it,{editor:o}=this,n=o[e(179)][e(200)](d),i=n[e(190)]();i&&nt[e(201)](t)&&o[e(187)][e(191)](o=>{const s=e;o[s(196)](s(193),t,i),n[s(184)](o)})}}const ct=ft;function lt(){const t=["2046396WEjxak","isInteger","15KEVDfr","_updateFootnotesCounters","811038fNXlnV","model","8guQJEp","setAttribute","get","getAttribute","20903QCrHlO","1854525MXwdVR","execute","6697638OVDJBX","refresh","isEnabled","getFootnotesDefinitionsObjectElement","7919793KptCtU","footnotesListStart","change","value","134SNJdxO","plugins","24497990MiOWLi"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=386]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(712260===parseInt(e(400))/1*(-parseInt(e(387))/2)+-parseInt(e(401))/3+-parseInt(e(390))/4+-parseInt(e(392))/5*(-parseInt(e(394))/6)+-parseInt(e(407))/7*(-parseInt(e(396))/8)+-parseInt(e(403))/9+parseInt(e(389))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(404)](){const t=ct,{editor:e}=this,o=e[t(388)][t(398)](d)[t(406)]();this[t(405)]=!!o,this[t(386)]=o?.[t(399)](t(408))??null}[ct(402)]({value:t}){const e=ct,{editor:o}=this,n=o[e(388)][e(398)](d),i=n[e(406)]();i&&Number[e(391)](t)&&o[e(395)][e(409)](o=>{const s=e;o[s(397)](s(408),t,i),n[s(393)](o)})}}function dt(t,e){const o=ht();return(dt=function(t,e){return o[t-=493]})(t,e)}const pt=dt;function ht(){const t=["5YOfBYr","from","removeStyle","type","_definePostfixer","nodeAfter","_getDefaultStartIndex","getChildren","8faiuLd","model","mapper","hasAttribute","consumable","footnotes-list","writer","viewItem","footnotesListStart","210aRTEHL","get","upper-alpha","upper-roman","registerPostFixer","footnotesDefinitions","3420246qbdADx","isOfficialPlugin","add","define","setStyle","element:ol","isNaN","lower-alpha","find","_updateFootnotesCounters","name","parent","_getDefaultListStyle","2068644UvctsW","removeAttribute","setAttribute","parseInt","_defineSchema","decimal","_defineFormatter","config","init","start","extend","upper-latin","hasClass","editor","toUpperCase","1046784QWwYQR","checkAttribute","toLowerCase","plugins","8152mcIFDk","footnotes.footnotesProperties.defaultStartIndex","88GtvmdD","5157184NtNDjO","footnotesStyle","getChanges","floor","item","_formatFootnoteListValue","152019eUAHSJ","attribute:footnotesListStart:footnotesDefinitions","insert","215633jsiOoe","for","upcast","requires","list-style-type","getStyle","footnotes.footnotesProperties.defaultListStyle","fromCharCode","position","element","commands","FootnotesPropertiesEditing","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStyle","modelCursor","getAttribute","isPremiumPlugin","setFootnoteFormatter","decimal-leading-zero","createRangeOn","getItems","differ","footnotesStart","pluginName","downcast","consume","padStart","3640CkgcMp","lower-roman","$text","toViewElement","document","lower-latin","max","_defineConverters","schema"];return(ht=function(){return t})()}!function(t){const e=dt,o=t();for(;;)try{if(829944===-parseInt(e(530))/1*(parseInt(e(574))/2)+-parseInt(e(499))/3+parseInt(e(521))/4+parseInt(e(566))/5*(parseInt(e(589))/6)+-parseInt(e(557))/7*(parseInt(e(518))/8)+parseInt(e(527))/9*(parseInt(e(583))/10)+-parseInt(e(520))/11*(-parseInt(e(514))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(553)](){return pt(541)}static get[pt(533)](){return[v,d]}static get[pt(590)](){return!0}static get[pt(546)](){return!0}[pt(507)](){const t=pt,{editor:e}=this;e[t(506)][t(592)](t(536),t(504)),e[t(506)][t(592)](t(519),1),e[t(540)][t(591)](t(522),new at(e)),e[t(540)][t(591)](t(552),new ut(e)),this[t(503)](),this[t(564)](),this[t(505)](),this[t(570)]()}[pt(503)](){const t=pt,{editor:e}=this,{schema:o}=e[t(575)];o[t(509)](t(588),{allowAttributes:[t(543),t(582)]})}[pt(564)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(531)](t(532))[t(591)](e=>{const o=t;e.on(o(594),(t,e,n)=>{const s=o,r=e[s(581)],a=e[s(544)]?.[s(497)];r[s(511)](s(579))&&a?.is(s(539),s(588))&&(function(t,e,o,n){const i=s;if(!n[i(515)](e,i(582)))return;let r=1;const a=o[i(578)][i(555)](t,{attributes:i(508)});if(a){const e=Number[i(502)](t[i(545)](i(508)),10);Number[i(595)](e)||(r=e)}!a&&e[i(577)](i(582))||o[i(580)][i(501)](i(582),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(515)](e,i(543)))return;let r=i(504),a=!1;if(o[i(578)][i(555)](t,{attributes:i(569)})){const e={1:i(504),a:i(493),A:i(585),i:i(558),I:i(586)}[t[i(545)](i(569))];e&&(r=e),a=!0}o[i(578)][i(555)](t,{styles:i(534)})&&(r=t[i(535)](i(534)),a=!0),!a&&e[i(577)](i(543))||o[i(580)][i(501)](i(543),r,e)}(r,a,n,i))})}),o[t(531)](t(554))[t(591)](e=>{const o=t;e.on(o(528),(t,e,n)=>{const i=o;if(!n[i(578)][i(555)](e[i(525)],t[i(496)]))return;const s=gt(e[i(525)],n[i(576)]),{attributeNewValue:r}=e;null==r||1===r?n[i(580)][i(500)](i(508),s):n[i(580)][i(501)](i(508),String(r),s)}),e.on(o(542),(t,e,n)=>{const i=o;if(!n[i(578)][i(555)](e[i(525)],t[i(496)]))return;const s=gt(e[i(525)],n[i(576)]),{attributeNewValue:r}=e;r&&i(504)!==r?n[i(580)][i(593)](i(534),r,s):n[i(580)][i(568)](i(534),s)})})}[pt(570)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(517)][t(584)](d),i=this[t(498)](),s=this[t(572)]();o[t(561)][t(587)](e=>{const r=t,a=o[r(561)][r(551)][r(523)]();let c=!1;for(const t of a){if(r(529)!==t[r(569)]||r(559)===t[r(496)])continue;const n=o[r(549)](t[r(538)][r(571)]);for(const t of n[r(550)]())t.is(r(539),r(588))&&(!t[r(577)](r(582))&&o[r(565)][r(515)](t,r(582))&&(e[r(501)](r(582),s,t),c=!0),!t[r(577)](r(543))&&o[r(565)][r(515)](t,r(543))&&(e[r(501)](r(543),i,t),c=!0))}return c&&n[r(495)](e),c})}[pt(505)](){const t=pt,{editor:e}=this;e[t(517)][t(584)](d)[t(547)](e=>this[t(526)](e))}[pt(498)](){const t=pt;return this[t(512)][t(506)][t(584)](t(536))}[pt(572)](){const t=pt;return this[t(512)][t(506)][t(584)](t(519))}[pt(526)]({container:t,value:e,digits:o}){const n=pt,i=t[n(545)](n(543)),s=t[n(545)](n(582)),r=Math[n(524)](e)+(s??1)-1;switch(i){case n(548):return function(t,e){const o=n;return String(t)[o(556)](e,"0")}(r,Math[n(563)](2,o));case n(493):case n(562):return wt(r,!1);case n(585):case n(510):return wt(r,!0);case n(558):return bt(r,!1);case n(586):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(560)](t);return Array[o(567)](n[o(573)]())[o(494)](t=>t.is(o(539),"ol")&&t[o(511)](o(579)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(537)](97+t)+n,i=Math[o(524)]((i-1)/26)}return e?n[o(513)]():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(516)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();K()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["isOfficialPlugin","pluginName","isPremiumPlugin","475Vvkite","FootnotesProperties","3IMmgyk","260414GDdKza","717360BuTinI","35058gedPqJ","4124824QuoFHl","4923999GkrEAr","730886MiSYPn","80vddKfB","66483GuDCpJ","requires"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=268]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(603744===parseInt(e(278))/1*(parseInt(e(269))/2)+parseInt(e(271))/3+parseInt(e(282))/4+parseInt(e(276))/5*(-parseInt(e(281))/6)+-parseInt(e(279))/7*(parseInt(e(270))/8)+-parseInt(e(268))/9+-parseInt(e(280))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class St extends t.Plugin{static get[Ft(274)](){return Ft(277)}static get[Ft(272)](){return[mt,Ct]}static get[Ft(273)](){return!0}static get[Ft(275)](){return!0}}function Dt(t,e){var o=Pt();return(Dt=function(t,e){return o[t-=369]})(t,e)}function Pt(){var t=["7672608pfrhqI","316695xhVfmb","72yLaPiO","10lxrSCh","565668rAInyL","94252xHGOef","1568676jIKbXj","150752FJSFLk","907445avCvXX"];return(Pt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(860422===-parseInt(e(377))/1+parseInt(e(374))/2+parseInt(e(371))/3+parseInt(e(375))/4*(parseInt(e(373))/5)+parseInt(e(376))/6+-parseInt(e(369))/7*(-parseInt(e(372))/8)+-parseInt(e(370))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|