@ckeditor/ckeditor5-footnotes 47.3.0-alpha.2 → 47.3.0-alpha.3
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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["getItems","get","from","getElementKey","type","965601cnjAQp","values","7496HXUIZt","_trackedElements","createRangeOn","165012xfupoe","insert","element","root","attributes","107117tCiZbk","set","$graveyard","nodeAfter","$text","length","rootName","789ekBIeG","flat","_model","remove","_getElementKey","has","clear","4cnoUYO","reset","10jeWrEv","6030svsFTT","delete","add","name","14992tllBNy","elementName","40455569IBbFYt","position","getChanges","push","5479555kPLZuP","_elementName","slice"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=150]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(588675===parseInt(e(172))/1*(-parseInt(e(186))/2)+parseInt(e(179))/3*(-parseInt(e(193))/4)+-parseInt(e(154))/5+-parseInt(e(167))/6+-parseInt(e(162))/7+parseInt(e(164))/8*(-parseInt(e(189))/9)+parseInt(e(188))/10*(parseInt(e(150))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(181)];[a(155)];[a(183)];[a(165)]=new Map;constructor(t,e){const o=a;this[o(181)]=t,this[o(155)]=e[o(194)],this[o(183)]=e[o(160)]}[a(187)](){const t=a;this[t(165)][t(185)]()}[a(152)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(168)===i[e(161)]&&e(176)!==i[e(192)]&&i[e(151)][e(175)]){const t=this[e(181)][e(166)](i[e(151)][e(175)]);for(const o of t[e(157)]()){if(!o.is(e(169),this[e(155)]))continue;const t=this[e(183)](o);n[e(184)](t)||n[e(173)](t,[]),n[e(158)](t)[e(153)](o)}}if(e(182)===i[e(161)]&&i[e(192)]===this[e(155)]){const t=this[e(183)]({getAttribute:t=>i[e(171)][e(158)](t)});o[e(191)](t)}}for(const[t,n]of this[e(165)])e(174)===n[e(170)][e(178)]&&o[e(191)](t);for(const t of o)this[e(165)][e(190)](t);for(const[t,o]of n)this[e(165)][e(173)](t,o[o[e(177)]-1]);const i=new Set;for(const[t,s]of n)o[e(184)](t)&&(i[e(191)](s[0]),s[e(177)]>1?n[e(173)](t,s[e(156)](1)):n[e(190)](t),o[e(190)](t));return{removed:Array[e(159)](o),inserted:Array[e(159)](n[e(163)]())[e(180)](),moved:Array[e(159)](i)}}}function u(){const t=["root","before","footnoteInlineContent","getFootnotes","registerPostFixer","pluginName","childCount","_footnoteRefsTracker","min","change:data","getRootNames","197716cpRmnU","footnoteCounter","createRangeOn","getFootnotesFormatter","footnoteDefinition","map","document","after","_footnoteDefsTracker","658vwvLKd","_insertEmptyFootnotesDefinitionsContainer","61032KYWWcO","rootName","unshift","splice","setFootnoteFormatter","append","getFootnote","_ensureFootnotesReferencesHaveProperOrder","createRangeIn","_handleInsertedFootnoteReference","compareWith","31636099qqsQhC","from","indexOf","parent","insert","length","createElement","_sortFootnoteDefinitions","high","init","has","_handleFootnotesDefinitionsObjectChanges","_footnoteFormatter","_handleFootnoteDefinitionsChanges","9935980WNdxCn","setAttribute","_handleRemoveFootnoteReferenceById","set","createPositionAt","reference","16300ViytcE","getFootnotesDefinitionsObjectElement","low","_updateFootnoteRefCounter","getChanges","editor","model","differ","listenTo","FootnotesTracker","config","end","_handleMovedFootnoteReference","findIndex","isPremiumPlugin","20754dkqyjh","isOfficialPlugin","paragraph","_updateFootnotesCounters","getChildren","438tmxrMc","_footnotes","_ensureFootnotesDefinitionsContainerExists","enqueueChange","_footnoteDefsContainerTracker","find","definition","add","some","_footnotesDefinitions","singleton","footnotesDefinitions","footnoteId","footnotes.multiBlock","_handleFootnoteReferencesChanges","push","2900590kRkwws","reset","81qzpTAb","get","isEqual","_handleFootnotesDefinitionsObjectSync","footnoteRef","createPositionBefore","remove","2uowYzj","move","$graveyard","getAttribute"];return(u=function(){return t})()}function f(t,e){const o=u();return(f=function(t,e){return o[t-=457]})(t,e)}const d=f;!function(t){const e=f,o=t();for(;;)try{if(511252===parseInt(e(458))/1*(parseInt(e(545))/2)+-parseInt(e(520))/3*(parseInt(e(500))/4)+-parseInt(e(536))/5+parseInt(e(515))/6*(-parseInt(e(467))/7)+-parseInt(e(469))/8*(parseInt(e(538))/9)+-parseInt(e(494))/10+parseInt(e(480))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[d(521)]=[];[d(529)]=null;[d(492)]=null;[d(524)];[d(556)];[d(466)];static get[d(554)](){return d(509)}static get[d(516)](){return!0}static get[d(514)](){return!0}constructor(t){const e=d;super(t),this[e(524)]=new l(this[e(505)][e(506)],{elementName:e(531),getElementKey:()=>e(530)}),this[e(556)]=new l(this[e(505)][e(506)],{elementName:e(542),getElementKey:t=>t[e(548)](e(532))}),this[e(466)]=new l(this[e(505)][e(506)],{elementName:e(462),getElementKey:t=>t[e(548)](e(532))})}[d(489)](){const t=d,{editor:e}=this,{model:o,data:n}=e;o[t(464)][t(553)](e=>{const n=t,i=o[n(464)][n(507)][n(504)]();let s=!1;return this[n(491)](e,i)&&(s=!0),this[n(493)](e,i)&&(s=!0),this[n(534)](e,i)&&(s=!0),this[n(476)](e)&&(s=!0),this[n(541)](e)&&(s=!0),this[n(487)](e)&&(s=!0),s}),this[t(508)](o[t(464)],t(558),()=>{const e=t;o[e(523)]({isUndoable:!1},t=>{this[e(522)](t)})},{priority:t(502)}),this[t(508)](n,t(497),()=>{const e=t;this[e(521)]=[],this[e(524)][e(537)](),this[e(556)][e(537)](),this[e(466)][e(537)]()},{priority:t(488)})}[d(501)](){return this[d(529)]}[d(475)](t){const e=d;return this[e(521)][e(525)](e=>e.id===t)||null}[d(552)](){const t=d;return Array[t(481)](this[t(521)])}[d(461)](){return this[d(492)]}[d(473)](t){this[d(492)]=t}[d(518)](t,e=0){const o=d;let n=!1;for(let i=e;i<this[o(521)][o(485)];i++)this[o(503)](t,i)&&(n=!0);return n}[d(468)](t,e){const o=d,n=t[o(486)](o(531),{});return t[o(474)](n,e),this[o(529)]=n,n}[d(522)](t){const e=d;if(!this[e(521)][e(485)]||this[e(529)])return;const o=this[e(521)][0][e(499)][e(549)],n=this[e(468)](t,o);for(const o of this[e(521)])o[e(526)][e(483)]||t[e(484)](o[e(526)],n,e(511));this[e(518)](t)}[d(491)](t,e){const o=d;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(524)][o(504)](e);if(r[o(485)]&&(this[o(529)]=r[0]),i[o(485)])if(i[o(485)]>1||this[o(529)]&&i[o(528)](t=>t!==this[o(529)])){const e=t[o(486)](o(531),{}),s=[];this[o(529)]&&s[o(535)](this[o(529)]),s[o(535)](...i),t[o(484)](e,s[0],o(550));for(const n of s)t[o(546)](t[o(477)](n),t[o(498)](e,o(511))),t[o(544)](n);this[o(529)]=e,this[o(518)](t),n=!0}else this[o(529)]=i[0];if(s[o(485)]&&o(547)===this[o(529)]?.[o(549)][o(470)]){for(const e of this[o(521)])t[o(544)](e[o(499)]),n=!0;this[o(521)]=[],this[o(529)]=null}return n}[d(493)](t,e){const o=d;let n=!1;const i=this[o(505)][o(510)][o(539)](o(533)),{inserted:s,moved:r}=this[o(466)][o(504)](e);for(const e of[...r,...s]){const s=e[o(548)](o(532)),r=this[o(475)](s);r&&(r[o(526)]=e),h(t,i,e)&&(n=!0)}return n}[d(534)](t,e){const o=d;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(556)][o(504)](e);for(const e of i)this[o(496)](t,e)&&(n=!0);for(const e of s)this[o(478)](t,e)&&(n=!0);for(const e of r)this[o(512)](t,e)&&(n=!0);return n}[d(541)](t){const e=d;if(!this[e(529)])return!1;let o=!1;if(this[e(529)][e(555)]!==this[e(521)][e(485)]){const n=[];for(const t of this[e(529)][e(519)]()){const i=t[e(548)](e(532));this[e(475)](i)||(n[e(471)](t),o=!0)}for(const o of n)t[e(544)](o)}const n=new Set,i=[];for(const t of this[e(529)][e(519)]()){const s=t[e(548)](e(532));n[e(490)](s)?(i[e(471)](t),o=!0):n[e(527)](s)}for(const o of i)t[e(544)](o);return this[e(529)][e(555)]||(t[e(544)](this[e(529)]),this[e(529)]=null,o=!0),o}[d(478)](t,e){const o=d;if(this[o(521)][o(525)](t=>t[o(499)]===e))return!1;let n=!1;const i=e[o(548)](o(532)),s=this[o(521)][o(513)](t=>t.id===i);-1!==s&&(t[o(544)](this[o(521)][s][o(499)]),this[o(521)][o(472)](s,1),n=!0);let r=this[o(529)]?function(t,e){const n=o;for(const o of t[n(519)]())if(o[n(548)](n(532))===e)return o;return null}(this[o(529)],i):null;r||(r=t[o(486)](o(462),{footnoteId:i}),this[o(529)]&&(t[o(484)](r,this[o(529)],o(511)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(505)][o(506)],this[o(521)],e);this[o(521)][o(472)](c,0,a);let l=c;return-1!==s&&(l=Math[o(557)](c,s)),this[o(518)](t,l)&&(n=!0),n}[d(496)](t,e){const o=d,n=this[o(521)][o(513)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(521)][n];return o(547)!==s[o(526)][o(549)][o(470)]&&(t[o(544)](s[o(526)]),i=!0),this[o(521)][o(472)](n,1),this[o(518)](t,n)&&(i=!0),i}[d(512)](t,e){const o=d,n=e[o(548)](o(532)),i=this[o(521)][o(513)](t=>t.id===n),s=this[o(521)][i];let r=!1;s[o(499)]=e,this[o(521)][o(472)](i,1);const a=m(this[o(505)][o(506)],this[o(521)],e);return this[o(521)][o(472)](a,0,s),this[o(518)](t,Math[o(557)](i,a))&&(r=!0),r}[d(503)](t,e){const o=d;if(!this[o(529)])return!1;const n=this[o(521)][e];let i;return i=this[o(492)]?this[o(492)]({footnote:n,container:this[o(529)],digits:String(this[o(521)][o(485)])[o(485)],value:e+1}):String(e+1),n[o(499)][o(548)](o(459))!=i&&(t[o(495)](o(459),i,n[o(499)]),!0)}[d(487)](t){const e=d;if(!this[e(529)]||this[e(521)][e(485)]<2)return!1;if(function(t,o){const n=e;if(t[n(485)]!==o[n(485)])return!1;for(let e=0;e<t[n(485)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(521)][e(463)](t=>t.id),Array[e(481)](this[e(529)][e(519)]())[e(463)](t=>t[e(548)](e(532)))))return!1;let o=!1;for(let n=0;n<this[e(521)][e(485)];n++){const i=this[e(521)][n],s=t[e(543)](i[e(526)]),r=t[e(498)](this[e(529)],n);s[e(540)](r)||(t[e(546)](t[e(460)](i[e(526)]),r),o=!0)}return o}[d(476)](t){const e=d;if(!this[e(521)][e(485)])return!1;const{model:o}=this[e(505)];let n=!1;for(let i=0;i<this[e(521)][e(485)]-1;i++){const s=this[e(521)][i],r=this[e(521)][i+1],a=o[e(543)](s[e(499)]),c=o[e(543)](r[e(499)]);e(465)===a[e(479)](c)&&(this[e(512)](t,s[e(499)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=d;if(o[n(555)])return!1;const i=n(e?517:551);return t[n(484)](t[n(486)](i),o),!0}function m(t,e,o){const n=d;if(0===e[n(485)])return 0;const i=t[n(543)](o);for(let o=0;o<e[n(485)];o++){const s=e[o],r=t[n(543)](s[n(499)]);if(n(550)===i[n(479)](r))return o}const s=o[n(549)];let r=-1;for(let t=e[n(485)]-1;t>=0;t--)if(e[t][n(499)][n(549)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(464)][n(457)](),c=a[n(482)](s[n(470)]),l=a[c+1];if(l)for(let t=0;t<e[n(485)];t++)if(e[t][n(499)][n(549)][n(470)]===l)return t;return e[n(485)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=208]})(t,e)}function y(){const t=["2462598lPCwKJ","test","footnoteId","getFirstRange","11UaKSKv","execute","309184qoKAsR","5313392BFJLRr","editor","12901690govraf","footnoteRef","model","selection","63rtfSlr","checkChild","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","get","1322919CTGfxE","isObject","isEnabled","end","createElement","insertObject","string","getItems","FootnotesEditing","length","_getPositionToInsertFootnote","822540xQqgwN","5yCdZVs","1085608ELQbNS","refresh","plugins","change","document","4KwblXH","isBlock"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(706775===parseInt(e(217))/1+-parseInt(e(224))/2*(parseInt(e(244))/3)+-parseInt(e(232))/4*(-parseInt(e(218))/5)+-parseInt(e(226))/6+parseInt(e(233))/7+parseInt(e(219))/8*(-parseInt(e(239))/9)+parseInt(e(235))/10*(parseInt(e(230))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(220)](){const t=g,e=this[t(234)][t(237)][t(223)][t(238)],o=this[t(216)](e);this[t(208)]=!!o}[g(231)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(223)],r=this[e(216)](s);if(!r)return;const a=o[e(221)][e(243)](e(214)),c=t?.[e(228)]??(0,i.uid)();!function(t){const o=e;return o(212)==typeof t&&t[o(215)]>0&&!/\s/[o(227)](t)&&!/^\d/[o(227)](t)}(c)?(0,i.logWarning)(e(242)):(n[e(222)](t=>{const o=e,i=t[o(210)](o(236),{footnoteId:c});n[o(211)](i,r,null)}),a[e(241)](c))}[g(216)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(229)]();for(const t of i[e(213)]())if(n[e(225)](t)||n[e(245)](t))return null;const s=i[e(209)];return n[e(240)](s,e(236))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764288e3;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(p).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(p).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){const e=_,o=t();for(;;)try{if(342930===parseInt(e(339))/1+parseInt(e(336))/2*(parseInt(e(329))/3)+parseInt(e(324))/4*(parseInt(e(373))/5)+-parseInt(e(361))/6*(parseInt(e(342))/7)+-parseInt(e(398))/8*(-parseInt(e(383))/9)+parseInt(e(335))/10*(parseInt(e(328))/11)+parseInt(e(353))/12*(-parseInt(e(380))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(370)](){return T(351)}static get[T(349)](){return[v,S.ClipboardPipeline]}static get[T(374)](){return!0}static get[T(355)](){return!0}[T(350)](){this[T(354)]()}[T(354)](){const t=T;this[t(387)](),this[t(323)]()}[T(387)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(384)](S.ClipboardPipeline),s=o[t(384)](p);this[t(363)](i,t(356),(o,i)=>{const r=t,a=L(n[r(348)](i[r(352)]));if(!a[r(341)])return;const c=s[r(378)](),l=a[r(347)]((t,o)=>{const n=r,i=c[n(392)](t=>t.id===o);if(i){const o=e[n(377)][n(325)](i[n(372)],{isClipboardPipeline:!0}),s=e[n(377)][n(364)][n(395)](o);t[i.id]=s}return t},Object[r(396)](null));i[r(340)][r(360)](r(369),JSON[r(389)](l))})}[T(323)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(345)],r=n[t(384)](S.ClipboardPipeline),a=n[t(384)](p),c=e[t(390)][t(384)](t(388));let l=null;this[t(363)](s[t(330)],t(338),(e,o)=>{const n=t,i=o[n(340)][n(379)](n(369));l=i?JSON[n(386)](i):null}),this[t(363)](r,t(357),(n,s)=>{const r=t,u=s[r(368)]===this[r(327)].id;u&&r(385)===s[r(321)]||o[r(381)](t=>{const n=r;let f=a[n(401)]();const d=!!f&&Array[n(344)](o[n(330)][n(334)][n(331)]())[n(375)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(348)](e))n.is(o(393),o(394))&&i[o(382)](n);for(const e of i)t[o(332)](e)}(t,s[n(352)]),!l)return;const{selection:p}=o[n(330)],h=p[n(358)]()[n(333)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(348)](e))if(n.is(o(393),o(394)))return n;return null}(t,s[n(352)]),f||=a[n(376)](t,h));const m=Array[n(344)](p[n(371)]())[n(367)](L),g=function(t,e,o){const s=n,r=Object[s(396)](null);for(const{item:n}of t[s(348)](e))if(n.is(s(393),s(399))){const e=n[s(346)](s(391));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(362)](s(391),r[e],n)}return r}(t,s[n(352)],t=>{const e=n;return!u||!!a[e(326)](t)&&!m[e(375)](t)});for(const[o,i]of Object[n(402)](l)){const s=g[o]||o,r=t[n(365)](n(359),{footnoteId:s}),a=e[n(377)][n(364)][n(325)](i);let l;if(c)l=e[n(377)][n(343)](a,r);else{l=t[n(365)](n(337));const o=e[n(377)][n(343)](a,l);t[n(400)](o,l)}t[n(397)](l,r),t[n(400)](r,f,n(366))}l=null})})}}function A(){const t=["flatMap","sourceEditorId","application/ckeditor5-footnotes","pluginName","getRanges","definition","115utwspo","isOfficialPlugin","includes","_insertEmptyFootnotesDefinitionsContainer","data","getFootnotes","getData","39FwnUIG","change","push","62874lYBFgK","get","drop","parse","_handleCopyFootnotesDefinitions","footnotes.multiBlock","stringify","config","footnoteId","find","element","footnotesDefinitions","toData","create","append","656EjPkuZ","footnoteRef","insert","getFootnotesDefinitionsObjectElement","entries","method","add","_handlePasteFootnotesDefinitions","32588Gptjym","toView","getFootnote","editor","88RIQODb","105nIaxSF","document","getSelectedBlocks","remove","root","selection","189140ekqvfg","7814ryrxNa","footnoteInlineContent","clipboardInput","456119qgHEGc","dataTransfer","length","14pViANN","toModel","from","editing","getAttribute","reduce","createRangeIn","requires","init","FootnotesClipboard","content","2601132TnIdJM","_defineClipboardIntegration","isPremiumPlugin","outputTransformation","contentInsertion","getFirstRange","footnoteDefinition","setData","1533588yVDGMs","setAttribute","listenTo","htmlProcessor","createElement","end"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=321]})(t,e)}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(393),e(399))&&o[e(322)](n[e(346)](e(391)));return Array[e(344)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),j=o.n(K),B=o(102),M=o.n(B),U=o(123),z=o.n(U),W=o(741),q=o.n(W),H=o(728),Z={attributes:{"data-cke":!0}};Z.setAttributes=z(),Z.insert=M().bind(null,"head"),Z.domAPI=j(),Z.insertStyleElement=q();R()(H.A,Z);H.A&&H.A.locals&&H.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",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=G;function G(t,e){var o=X();return(G=function(t,e){return o[t-=478]})(t,e)}function X(){var t=["3659404GVwaUC","Footnotes","2QbOuQm","1676124eLxVPu","1609112ZkWrew","311697FlqGXO","4yKqVta","isPremiumPlugin","pluginName","53451IavJdT","400ktcsqD","requires","731907IacIJl","isOfficialPlugin","2594425blBWhP"];return(X=function(){return t})()}!function(t){for(var e=G,o=t();;)try{if(654212===-parseInt(e(491))/1+parseInt(e(488))/2*(parseInt(e(483))/3)+parseInt(e(492))/4*(-parseInt(e(485))/5)+parseInt(e(489))/6+parseInt(e(486))/7+parseInt(e(490))/8+parseInt(e(480))/9*(parseInt(e(481))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(X);class $ extends t.Plugin{static get[Y(479)](){return Y(487)}static get[Y(482)](){return[v,D,J]}static get[Y(484)](){return!0}static get[Y(478)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=247]})(t,e)}function ot(){const t=["upper-latin","decimal-leading-zero","7836810dvZWbw","lower-latin","upper-alpha","decimal","lower-alpha","lower-roman","1282989ZDVRbE","2770210TxEiug","3066YZZwDx","354410ZnrMWF","4MpAujD","54OKnfGb","11zJdcNb","10zQnJMt","1225308xlouSJ","upper-roman","1680072PhAkiO"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(747435===parseInt(e(257))/1*(-parseInt(e(252))/2)+-parseInt(e(250))/3*(-parseInt(e(254))/4)+-parseInt(e(253))/5+-parseInt(e(263))/6+parseInt(e(258))/7+parseInt(e(260))/8*(parseInt(e(255))/9)+parseInt(e(251))/10*(parseInt(e(256))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(247),tt(262),tt(264),tt(261),tt(248),tt(265),tt(249),tt(259)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=402]})(t,e)}function rt(){const t=["footnotesListStyle","9664gblbXx","1278712OzVBoZ","isEnabled","2871GHwQXQ","value","plugins","get","499094ZSnvYu","execute","1183056JQUDQZ","3KnrtUc","change","getFootnotesDefinitionsObjectElement","setAttribute","5jQUQRx","4275730uqFbYu","getAttribute","includes","model","22rJiOcH","refresh","_updateFootnotesCounters","1974516ZcznMo","414864emEttQ"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(241685===parseInt(e(405))/1+-parseInt(e(414))/2*(-parseInt(e(417))/3)+parseInt(e(408))/4*(parseInt(e(421))/5)+parseInt(e(404))/6+parseInt(e(416))/7+parseInt(e(407))/8*(-parseInt(e(410))/9)+-parseInt(e(422))/10*(parseInt(e(426))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(402)](){const t=it,{editor:e}=this,o=e[t(412)][t(413)](p)[t(419)]();this[t(409)]=!!o,this[t(411)]=o?.[t(423)](t(406))??null}[it(415)]({value:t}){const e=it,{editor:o}=this,n=o[e(412)][e(413)](p),i=n[e(419)]();i&&nt[e(424)](t)&&o[e(425)][e(418)](o=>{const s=e;o[s(420)](s(406),t,i),n[s(403)](o)})}}const ct=ut;function lt(){const t=["isEnabled","9133300pQwRbQ","get","refresh","3863061Fnceop","7166736JEtGXs","isInteger","footnotesListStart","4992702JFPQuz","value","change","43jpFzsr","getAttribute","924tUcquo","4BHvxfe","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","40160ZCtdhI","setAttribute","execute","60438sqDwyn","3632795fJxnzv","plugins","model"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=468]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(834530===-parseInt(e(491))/1*(-parseInt(e(473))/2)+-parseInt(e(488))/3+parseInt(e(470))/4*(parseInt(e(477))/5)+parseInt(e(469))/6*(-parseInt(e(476))/7)+parseInt(e(485))/8+parseInt(e(484))/9+parseInt(e(481))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(483)](){const t=ct,{editor:e}=this,o=e[t(478)][t(482)](p)[t(472)]();this[t(480)]=!!o,this[t(489)]=o?.[t(468)](t(487))??null}[ct(475)]({value:t}){const e=ct,{editor:o}=this,n=o[e(478)][e(482)](p),i=n[e(472)]();i&&Number[e(486)](t)&&o[e(479)][e(490)](o=>{const s=e;o[s(474)](s(487),t,i),n[s(471)](o)})}}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=236]})(t,e)}function ht(){const t=["start","position","upper-alpha","add","10501340gDduZq","from","_formatFootnoteListValue","list-style-type","footnotes.footnotesProperties.defaultStartIndex","setFootnoteFormatter","for","plugins","getChanges","get","21469INNGcO","createRangeOn","item","getAttribute","modelCursor","FootnotesPropertiesEditing","upper-roman","footnotes-list","footnotesStyle","getStyle","model","parseInt","max","element:ol","find","viewItem","setAttribute","942CFKevc","11286270YRHavU","checkAttribute","footnotes.footnotesProperties.defaultListStyle","name","12FMjRaH","define","upcast","_updateFootnotesCounters","footnotesDefinitions","toLowerCase","fromCharCode","toUpperCase","$text","attribute:footnotesListStart:footnotesDefinitions","2093366YHVeZU","_getDefaultListStyle","removeStyle","decimal","3633333GefUpO","decimal-leading-zero","getItems","consumable","removeAttribute","setStyle","isOfficialPlugin","getChildren","_definePostfixer","schema","pluginName","4700920Yfjlwk","requires","upper-latin","parent","isPremiumPlugin","_getDefaultStartIndex","lower-latin","attribute:footnotesListStyle:footnotesDefinitions","lower-alpha","footnotesListStart","hasClass","lower-roman","type","padStart","2035080oDgVWd","mapper","_defineFormatter","editor","consume","_defineSchema","hasAttribute","footnotesListStyle","element","extend","differ","init","commands","config","downcast","floor","1YiDsJX","registerPostFixer","insert","_defineConverters","isNaN","toViewElement","nodeAfter","writer","footnotesStart","document"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(726754===-parseInt(e(314))/1*(-parseInt(e(269))/2)+parseInt(e(273))/3+-parseInt(e(259))/4*(parseInt(e(298))/5)+-parseInt(e(254))/6*(-parseInt(e(237))/7)+-parseInt(e(284))/8+-parseInt(e(255))/9+parseInt(e(328))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(283)](){return dt(242)}static get[dt(285)](){return[v,p]}static get[dt(279)](){return!0}static get[dt(288)](){return!0}[dt(309)](){const t=dt,{editor:e}=this;e[t(311)][t(260)](t(257),t(272)),e[t(311)][t(260)](t(332),1),e[t(310)][t(327)](t(245),new at(e)),e[t(310)][t(327)](t(322),new ft(e)),this[t(303)](),this[t(317)](),this[t(300)](),this[t(281)]()}[dt(303)](){const t=dt,{editor:e}=this,{schema:o}=e[t(247)];o[t(307)](t(263),{allowAttributes:[t(305),t(293)]})}[dt(317)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(334)](t(261))[t(327)](e=>{const o=t;e.on(o(250),(t,e,n)=>{const s=o,r=e[s(252)],a=e[s(241)]?.[s(287)];r[s(294)](s(244))&&a?.is(s(306),s(263))&&(function(t,e,o,n){const i=s;if(!n[i(256)](e,i(293)))return;let r=1;const a=o[i(276)][i(302)](t,{attributes:i(324)});if(a){const e=Number[i(248)](t[i(240)](i(324)),10);Number[i(318)](e)||(r=e)}!a&&e[i(304)](i(293))||o[i(321)][i(253)](i(293),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(256)](e,i(305)))return;let r=i(272),a=!1;if(o[i(276)][i(302)](t,{attributes:i(296)})){const e={1:i(272),a:i(292),A:i(326),i:i(295),I:i(243)}[t[i(240)](i(296))];e&&(r=e),a=!0}o[i(276)][i(302)](t,{styles:i(331)})&&(r=t[i(246)](i(331)),a=!0),!a&&e[i(304)](i(305))||o[i(321)][i(253)](i(305),r,e)}(r,a,n,i))})}),o[t(334)](t(312))[t(327)](e=>{const o=t;e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(302)](e[i(239)],t[i(258)]))return;const s=gt(e[i(239)],n[i(299)]),{attributeNewValue:r}=e;null==r||1===r?n[i(321)][i(277)](i(324),s):n[i(321)][i(253)](i(324),String(r),s)}),e.on(o(291),(t,e,n)=>{const i=o;if(!n[i(276)][i(302)](e[i(239)],t[i(258)]))return;const s=gt(e[i(239)],n[i(299)]),{attributeNewValue:r}=e;r&&i(272)!==r?n[i(321)][i(278)](i(331),r,s):n[i(321)][i(271)](i(331),s)})})}[dt(281)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(335)][t(236)](p),i=this[t(270)](),s=this[t(289)]();o[t(323)][t(315)](e=>{const r=t,a=o[r(323)][r(308)][r(336)]();let c=!1;for(const t of a){if(r(316)!==t[r(296)]||r(267)===t[r(258)])continue;const n=o[r(238)](t[r(325)][r(320)]);for(const t of n[r(275)]())t.is(r(306),r(263))&&(!t[r(304)](r(293))&&o[r(282)][r(256)](t,r(293))&&(e[r(253)](r(293),s,t),c=!0),!t[r(304)](r(305))&&o[r(282)][r(256)](t,r(305))&&(e[r(253)](r(305),i,t),c=!0))}return c&&n[r(262)](e),c})}[dt(300)](){const t=dt,{editor:e}=this;e[t(335)][t(236)](p)[t(333)](e=>this[t(330)](e))}[dt(270)](){const t=dt;return this[t(301)][t(311)][t(236)](t(257))}[dt(289)](){const t=dt;return this[t(301)][t(311)][t(236)](t(332))}[dt(330)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(305)),s=t[n(240)](n(293)),r=Math[n(313)](e)+(s??1)-1;switch(i){case n(274):return function(t,e){const o=n;return String(t)[o(297)](e,"0")}(r,Math[n(249)](2,o));case n(292):case n(290):return wt(r,!1);case n(326):case n(286):return wt(r,!0);case n(295):return bt(r,!1);case n(243):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(319)](t);return Array[o(329)](n[o(280)]())[o(251)](t=>t.is(o(306),"ol")&&t[o(294)](o(244)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(265)](97+t)+n,i=Math[o(313)]((i-1)/26)}return e?n[o(266)]():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(264)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=M().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});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}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(){var t=["793064fVAVEo","2cTgAhY","6byzdTS","2092220jomsqb","3551135DDRkAJ","55oglkIw","FootnotesProperties","1118021vbBynd","1620996uEYPyB","pluginName","requires","isPremiumPlugin","54qLwoom","5mFUBlX","1529400cxjCkW","isOfficialPlugin","328612mcwKNe"];return(Ft=function(){return t})()}var xt=Et;function Et(t,e){var o=Ft();return(Et=function(t,e){return o[t-=359]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(737628===-parseInt(e(363))/1+-parseInt(e(374))/2*(parseInt(e(370))/3)+-parseInt(e(372))/4*(-parseInt(e(369))/5)+-parseInt(e(375))/6*(-parseInt(e(360))/7)+-parseInt(e(373))/8*(-parseInt(e(368))/9)+-parseInt(e(359))/10*(-parseInt(e(361))/11)+parseInt(e(364))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Ft);class Pt extends t.Plugin{static get[xt(365)](){return xt(362)}static get[xt(366)](){return[mt,Ct]}static get[xt(371)](){return!0}static get[xt(367)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=441]})(t,e)}function Tt(){var t=["124DYEDCm","9tgJvZx","120235alXuew","914566ytBPZn","1728381xFbLbb","2019486ATWAqj","1966898YkcPfC","3958626UYlvUs","2253008QcBcmh"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(544960===parseInt(e(448))/1+parseInt(e(442))/2+parseInt(e(449))/3+-parseInt(e(445))/4*(parseInt(e(447))/5)+-parseInt(e(441))/6+-parseInt(e(443))/7+parseInt(e(444))/8*(-parseInt(e(446))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["insert","1945AgVQHQ","1571867nuWCeA","element","getElementKey","root","_getElementKey","attributes","78psWvqX","nodeAfter","94956PQReOk","slice","delete","$text","values","1131rUKeyq","set","_trackedElements","_elementName","push","remove","has","1334068aBZBBr","rootName","3yKOTSB","136146pLNZAW","24fZWIWU","type","_model","10FzsBuX","3722616NZYBNB","reset","position","clear","get","getChanges","from","$graveyard","add","1LBKUme","getItems","length","name","flat","elementName","createRangeOn","1036581UHSdHi"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=105]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(244408===-parseInt(e(144))/1*(-parseInt(e(130))/2)+parseInt(e(129))/3*(-parseInt(e(127))/4)+parseInt(e(106))/5*(-parseInt(e(113))/6)+parseInt(e(151))/7*(-parseInt(e(131))/8)+parseInt(e(135))/9+parseInt(e(134))/10*(-parseInt(e(107))/11)+-parseInt(e(115))/12*(-parseInt(e(120))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(133)];[r(123)];[r(111)];[r(122)]=new Map;constructor(t,e){const o=r;this[o(133)]=t,this[o(123)]=e[o(149)],this[o(111)]=e[o(109)]}[r(136)](){const t=r;this[t(122)][t(138)]()}[r(140)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(132)]&&e(118)!==i[e(147)]&&i[e(137)][e(114)]){const t=this[e(133)][e(150)](i[e(137)][e(114)]);for(const o of t[e(145)]()){if(!o.is(e(108),this[e(123)]))continue;const t=this[e(111)](o);n[e(126)](t)||n[e(121)](t,[]),n[e(139)](t)[e(124)](o)}}if(e(125)===i[e(132)]&&i[e(147)]===this[e(123)]){const t=this[e(111)]({getAttribute:t=>i[e(112)][e(139)](t)});o[e(143)](t)}}for(const[t,n]of this[e(122)])e(142)===n[e(110)][e(128)]&&o[e(143)](t);for(const t of o)this[e(122)][e(117)](t);for(const[t,o]of n)this[e(122)][e(121)](t,o[o[e(146)]-1]);const i=new Set;for(const[t,s]of n)o[e(126)](t)&&(i[e(143)](s[0]),s[e(146)]>1?n[e(121)](t,s[e(116)](1)):n[e(117)](t),o[e(117)](t));return{removed:Array[e(141)](o),inserted:Array[e(141)](n[e(119)]())[e(148)](),moved:Array[e(141)](i)}}}const f=p;function u(){const t=["_updateFootnotesCounters","footnoteCounter","_handleInsertedFootnoteReference","footnoteRef","527910myobfi","_footnoteRefsTracker","createPositionAt","map","from","paragraph","some","push","model","_footnoteDefsTracker","473808YFoFdm","reference","footnotes.multiBlock","getFootnote","FootnotesTracker","createElement","find","_footnoteDefsContainerTracker","$graveyard","set","12fWEIHF","move","83555ictCoo","length","387gicSHt","isOfficialPlugin","footnotesDefinitions","after","parent","getChanges","change:data","editor","_updateFootnoteRefCounter","setFootnoteFormatter","250692WgfBYx","footnoteInlineContent","_footnotes","singleton","get","enqueueChange","compareWith","reset","before","definition","indexOf","root","setAttribute","unshift","57544JvsWUh","pluginName","has","splice","differ","registerPostFixer","createRangeOn","_ensureFootnotesReferencesHaveProperOrder","insert","childCount","findIndex","config","end","createRangeIn","low","listenTo","add","remove","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","document","getAttribute","append","_handleFootnoteReferencesChanges","isEqual","_handleRemoveFootnoteReferenceById","236889fiBgfv","_footnotesDefinitions","footnoteId","_ensureFootnotesDefinitionsContainerExists","getChildren","getRootNames","_handleFootnoteDefinitionsChanges","footnoteDefinition","high","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","_footnoteFormatter","getFootnotesDefinitionsObjectElement","min","_sortFootnoteDefinitions","_handleMovedFootnoteReference","getFootnotesFormatter","createPositionBefore","rootName","init","873320SNVWow","_handleFootnotesDefinitionsObjectChanges"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(143295===-parseInt(e(164))/1+parseInt(e(190))/2+parseInt(e(124))/3+-parseInt(e(200))/4+parseInt(e(212))/5*(-parseInt(e(210))/6)+-parseInt(e(184))/7+-parseInt(e(138))/8*(-parseInt(e(114))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(126)]=[];[f(165)]=null;[f(175)]=null;[f(207)];[f(191)];[f(199)];static get[f(139)](){return f(204)}static get[f(115)](){return!0}static get[f(157)](){return!0}constructor(t){const e=f;super(t),this[e(207)]=new l(this[e(121)][e(198)],{elementName:e(116),getElementKey:()=>e(127)}),this[e(191)]=new l(this[e(121)][e(198)],{elementName:e(189),getElementKey:t=>t[e(159)](e(166))}),this[e(199)]=new l(this[e(121)][e(198)],{elementName:e(171),getElementKey:t=>t[e(159)](e(166))})}[f(183)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(158)][t(143)](e=>{const n=t,i=o[n(158)][n(142)][n(119)]();let s=!1;return this[n(185)](e,i)&&(s=!0),this[n(170)](e,i)&&(s=!0),this[n(161)](e,i)&&(s=!0),this[n(145)](e)&&(s=!0),this[n(156)](e)&&(s=!0),this[n(178)](e)&&(s=!0),s}),this[t(153)](o[t(158)],t(120),()=>{const e=t;o[e(129)]({isUndoable:!1},t=>{this[e(167)](t)})},{priority:t(152)}),this[t(153)](n,t(209),()=>{const e=t;this[e(126)]=[],this[e(207)][e(131)](),this[e(191)][e(131)](),this[e(199)][e(131)]()},{priority:t(172)})}[f(176)](){return this[f(165)]}[f(203)](t){const e=f;return this[e(126)][e(206)](e=>e.id===t)||null}[f(174)](){const t=f;return Array[t(194)](this[t(126)])}[f(180)](){return this[f(175)]}[f(123)](t){this[f(175)]=t}[f(186)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(126)][o(213)];i++)this[o(122)](t,i)&&(n=!0);return n}[f(173)](t,e){const o=f,n=t[o(205)](o(116),{});return t[o(160)](n,e),this[o(165)]=n,n}[f(167)](t){const e=f;if(!this[e(126)][e(213)]||this[e(165)])return;const o=this[e(126)][0][e(201)][e(135)],n=this[e(173)](t,o);for(const o of this[e(126)])o[e(133)][e(118)]||t[e(146)](o[e(133)],n,e(150));this[e(186)](t)}[f(185)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(207)][o(119)](e);if(r[o(213)]&&(this[o(165)]=r[0]),i[o(213)])if(i[o(213)]>1||this[o(165)]&&i[o(196)](t=>t!==this[o(165)])){const e=t[o(205)](o(116),{}),s=[];this[o(165)]&&s[o(197)](this[o(165)]),s[o(197)](...i),t[o(146)](e,s[0],o(132));for(const n of s)t[o(211)](t[o(151)](n),t[o(192)](e,o(150))),t[o(155)](n);this[o(165)]=e,this[o(186)](t),n=!0}else this[o(165)]=i[0];if(s[o(213)]&&o(208)===this[o(165)]?.[o(135)][o(182)]){for(const e of this[o(126)])t[o(155)](e[o(201)]),n=!0;this[o(126)]=[],this[o(165)]=null}return n}[f(170)](t,e){const o=f;let n=!1;const i=this[o(121)][o(149)][o(128)](o(202)),{inserted:s,moved:r}=this[o(199)][o(119)](e);for(const e of[...r,...s]){const s=e[o(159)](o(166)),r=this[o(203)](s);r&&(r[o(133)]=e),h(t,i,e)&&(n=!0)}return n}[f(161)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(191)][o(119)](e);for(const e of i)this[o(163)](t,e)&&(n=!0);for(const e of s)this[o(188)](t,e)&&(n=!0);for(const e of r)this[o(179)](t,e)&&(n=!0);return n}[f(156)](t){const e=f;if(!this[e(165)])return!1;let o=!1;if(this[e(165)][e(147)]!==this[e(126)][e(213)]){const n=[];for(const t of this[e(165)][e(168)]()){const i=t[e(159)](e(166));this[e(203)](i)||(n[e(137)](t),o=!0)}for(const o of n)t[e(155)](o)}const n=new Set,i=[];for(const t of this[e(165)][e(168)]()){const s=t[e(159)](e(166));n[e(140)](s)?(i[e(137)](t),o=!0):n[e(154)](s)}for(const o of i)t[e(155)](o);return this[e(165)][e(147)]||(t[e(155)](this[e(165)]),this[e(165)]=null,o=!0),o}[f(188)](t,e){const o=f;if(this[o(126)][o(206)](t=>t[o(201)]===e))return!1;let n=!1;const i=e[o(159)](o(166)),s=this[o(126)][o(148)](t=>t.id===i);-1!==s&&(t[o(155)](this[o(126)][s][o(201)]),this[o(126)][o(141)](s,1),n=!0);let r=this[o(165)]?function(t,e){const n=o;for(const o of t[n(168)]())if(o[n(159)](n(166))===e)return o;return null}(this[o(165)],i):null;r||(r=t[o(205)](o(171),{footnoteId:i}),this[o(165)]&&(t[o(146)](r,this[o(165)],o(150)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(121)][o(198)],this[o(126)],e);this[o(126)][o(141)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(186)](t,l)&&(n=!0),n}[f(163)](t,e){const o=f,n=this[o(126)][o(148)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(126)][n];return o(208)!==s[o(133)][o(135)][o(182)]&&(t[o(155)](s[o(133)]),i=!0),this[o(126)][o(141)](n,1),this[o(186)](t,n)&&(i=!0),i}[f(179)](t,e){const o=f,n=e[o(159)](o(166)),i=this[o(126)][o(148)](t=>t.id===n),s=this[o(126)][i];let r=!1;s[o(201)]=e,this[o(126)][o(141)](i,1);const a=m(this[o(121)][o(198)],this[o(126)],e);return this[o(126)][o(141)](a,0,s),this[o(186)](t,Math[o(177)](i,a))&&(r=!0),r}[f(122)](t,e){const o=f;if(!this[o(165)])return!1;const n=this[o(126)][e];let i;return i=this[o(175)]?this[o(175)]({footnote:n,container:this[o(165)],digits:String(this[o(126)][o(213)])[o(213)],value:e+1}):String(e+1),n[o(201)][o(159)](o(187))!=i&&(t[o(136)](o(187),i,n[o(201)]),!0)}[f(178)](t){const e=f;if(!this[e(165)]||this[e(126)][e(213)]<2)return!1;if(function(t,o){const n=e;if(t[n(213)]!==o[n(213)])return!1;for(let e=0;e<t[n(213)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(126)][e(193)](t=>t.id),Array[e(194)](this[e(165)][e(168)]())[e(193)](t=>t[e(159)](e(166)))))return!1;let o=!1;for(let n=0;n<this[e(126)][e(213)];n++){const i=this[e(126)][n],s=t[e(181)](i[e(133)]),r=t[e(192)](this[e(165)],n);s[e(162)](r)||(t[e(211)](t[e(144)](i[e(133)]),r),o=!0)}return o}[f(145)](t){const e=f;if(!this[e(126)][e(213)])return!1;const{model:o}=this[e(121)];let n=!1;for(let i=0;i<this[e(126)][e(213)]-1;i++){const s=this[e(126)][i],r=this[e(126)][i+1],a=o[e(181)](s[e(201)]),c=o[e(181)](r[e(201)]);e(117)===a[e(130)](c)&&(this[e(179)](t,s[e(201)]),i=-1,n=!0)}return n}}function p(t,e){const o=u();return(p=function(t,e){return o[t-=114]})(t,e)}function h(t,e,o){const n=f;if(o[n(147)])return!1;const i=n(e?195:125);return t[n(146)](t[n(205)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(213)])return 0;const i=t[n(181)](o);for(let o=0;o<e[n(213)];o++){const s=e[o],r=t[n(181)](s[n(201)]);if(n(132)===i[n(130)](r))return o}const s=o[n(135)];let r=-1;for(let t=e[n(213)]-1;t>=0;t--)if(e[t][n(201)][n(135)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(158)][n(169)](),c=a[n(134)](s[n(182)]),l=a[c+1];if(l)for(let t=0;t<e[n(213)];t++)if(e[t][n(201)][n(135)][n(182)]===l)return t;return e[n(213)]}const g=y;function w(){const t=["end","plugins","string","178fNSakp","editor","change","get","checkChild","_getPositionToInsertFootnote","execute","createElement","getFirstRange","6VPNNYG","footnoteId","isBlock","FootnotesEditing","isEnabled","2817603yvcvmj","length","getItems","1480lYLVku","13741632DpasLN","isObject","insert-footnote-command-executed-with-invalid-id","3887155MxyGmU","document","selection","refresh","_moveSelectionToFootnoteDefinition","231TyOwnm","model","5053hAaJbc","763YZFHPW","222668lHWCAn","6seDQmb","220370IWimOS","test","insertObject","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(565507===-parseInt(e(142))/1*(parseInt(e(153))/2)+-parseInt(e(162))/3*(parseInt(e(144))/4)+parseInt(e(135))/5*(parseInt(e(145))/6)+parseInt(e(143))/7*(-parseInt(e(131))/8)+-parseInt(e(128))/9+-parseInt(e(146))/10*(parseInt(e(140))/11)+parseInt(e(132))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(138)](){const t=g,e=this[t(154)][t(141)][t(136)][t(137)],o=this[t(158)](e);this[t(127)]=!!o}[g(159)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(136)],r=this[e(158)](s);if(!r)return;const a=o[e(151)][e(156)](e(165)),c=t?.[e(163)]??(0,i.uid)();!function(t){const o=e;return o(152)==typeof t&&t[o(129)]>0&&!/\s/[o(147)](t)&&!/^\d/[o(147)](t)}(c)?(0,i.logWarning)(e(134)):(n[e(155)](t=>{const o=e,i=t[o(160)](o(149),{footnoteId:c});n[o(148)](i,r,null)}),a[e(139)](c))}[g(158)](t){const e=g,{model:o}=this[e(154)],{schema:n}=o,i=t[e(161)]();for(const t of i[e(130)]())if(n[e(164)](t)||n[e(133)](t))return null;const s=i[e(150)];return n[e(157)](s,e(149))?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:1764374400;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 T=o(331);const P=D;function A(){const t=["config","reduce","createRangeIn","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","drop","90853luBNYr","32624zxZQTO","sourceEditorId","354vSTASl","content","outputTransformation","change","_handleCopyFootnotesDefinitions","toView","isOfficialPlugin","pluginName","_defineClipboardIntegration","footnoteDefinition","footnotes.multiBlock","clipboardInput","method","toModel","flatMap","includes","init","get","requires","end","stringify","element","definition","editor","toData","isPremiumPlugin","application/ckeditor5-footnotes","2873760rvzUwJ","4UlkkaH","18185535FJQBIc","append","htmlProcessor","editing","contentInsertion","data","footnoteId","insert","dataTransfer","createElement","root","1977064rRLffb","getSelectedBlocks","entries","push","2720065VCnEFE","setAttribute","add","getFootnotesDefinitionsObjectElement","FootnotesClipboard","getRanges","getFootnotes","parse","footnotesDefinitions","from","selection","document","remove","listenTo","_handlePasteFootnotesDefinitions","getData","setData","length","getAttribute","getFootnote","2178090YmjGoY","getFirstRange","create","find","footnoteRef"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=194]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(536282===parseInt(e(254))/1*(-parseInt(e(206))/2)+-parseInt(e(242))/3+-parseInt(e(205))/4+parseInt(e(222))/5+parseInt(e(256))/6*(-parseInt(e(253))/7)+parseInt(e(218))/8+parseInt(e(207))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[P(263)](){return P(226)}static get[P(196)](){return[v,T.ClipboardPipeline]}static get[P(262)](){return!0}static get[P(203)](){return!0}[P(194)](){this[P(264)]()}[P(264)](){const t=P;this[t(260)](),this[t(236)]()}[P(260)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(195)](T.ClipboardPipeline),s=o[t(195)](d);this[t(235)](i,t(258),(o,i)=>{const r=t,a=L(n[r(249)](i[r(257)]));if(!a[r(239)])return;const c=s[r(228)](),l=a[r(248)]((t,o)=>{const n=r,i=c[n(245)](t=>t.id===o);if(i){const o=e[n(212)][n(261)](i[n(200)],{isClipboardPipeline:!0}),s=e[n(212)][n(209)][n(202)](o);t[i.id]=s}return t},Object[r(244)](null));i[r(215)][r(238)](r(204),JSON[r(198)](l))})}[P(236)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(210)],r=n[t(195)](T.ClipboardPipeline),a=n[t(195)](d),c=e[t(247)][t(195)](t(266));let l=null;this[t(235)](s[t(233)],t(267),(e,o)=>{const n=t,i=o[n(215)][n(237)](n(204));l=i?JSON[n(229)](i):null}),this[t(235)](r,t(211),(n,s)=>{const r=t,f=s[r(255)]===this[r(201)].id;f&&r(252)===s[r(268)]||o[r(259)](t=>{const n=r;let u=a[n(225)]();const d=!!u&&Array[n(231)](o[n(233)][n(232)][n(219)]())[n(271)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(249)](e))n.is(o(199),o(230))&&i[o(221)](n);for(const e of i)t[o(234)](e)}(t,s[n(257)]),!l)return;const{selection:p}=o[n(233)],h=p[n(243)]()[n(217)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(249)](e))if(n.is(o(199),o(230)))return n;return null}(t,s[n(257)]),u||=a[n(250)](t,h));const m=Array[n(231)](p[n(227)]())[n(270)](L),g=function(t,e,o){const s=n,r=Object[s(244)](null);for(const{item:n}of t[s(249)](e))if(n.is(s(199),s(246))){const e=n[s(240)](s(213));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(223)](s(213),r[e],n)}return r}(t,s[n(257)],t=>{const e=n;return!f||!!a[e(241)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(220)](l)){const s=g[o]||o,r=t[n(216)](n(265),{footnoteId:s}),a=e[n(212)][n(209)][n(261)](i);let l;if(c)l=e[n(212)][n(269)](a,r);else{l=t[n(216)](n(251));const o=e[n(212)][n(269)](a,l);t[n(214)](o,l)}t[n(208)](l,r),t[n(214)](r,u,n(197))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(199),e(246))&&o[e(224)](n[e(240)](e(213)));return Array[e(231)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),B=o.n(K),W=o(102),j=o.n(W),U=o(123),M=o.n(U),H=o(741),z=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=M(),G.insert=j().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=z();R()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=J,o=t();;)try{if(100083===-parseInt(e(420))/1*(-parseInt(e(413))/2)+parseInt(e(408))/3*(-parseInt(e(406))/4)+-parseInt(e(411))/5*(-parseInt(e(407))/6)+-parseInt(e(421))/7+-parseInt(e(418))/8+parseInt(e(415))/9*(parseInt(e(409))/10)+-parseInt(e(414))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[X(412)](){return X(410)}static get[X(405)](){return[v,_,Y]}static get[X(416)](){return!0}static get[X(419)](){return!0}}function $(){var t=["505575RCfgGy","requires","724LJyxee","388302NCvkaF","3261mPbaFI","26900EEwJLV","Footnotes","5jhLeAE","pluginName","8rwprGd","287309AVGlsZ","450pQlrSI","isOfficialPlugin","144mVUNxN","1171568TStBEs","isPremiumPlugin","714xyDcIX"];return($=function(){return t})()}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=359]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(927603===parseInt(e(368))/1*(parseInt(e(363))/2)+parseInt(e(370))/3*(-parseInt(e(369))/4)+-parseInt(e(367))/5+-parseInt(e(365))/6*(-parseInt(e(375))/7)+-parseInt(e(373))/8*(parseInt(e(377))/9)+-parseInt(e(362))/10*(-parseInt(e(378))/11)+parseInt(e(359))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(360),et(374),et(376),et(361),et(366),et(371),et(364),et(372)];function nt(){const t=["240DHjWnG","decimal-leading-zero","35mOWHeC","lower-latin","383742vFupDr","22NSYDTX","49630776CTDqFM","decimal","upper-latin","2077150UrSZzC","179412NwADCP","lower-roman","33246cKfqVn","lower-alpha","8683740XgCuWT","13RemTLg","116240JkCrJP","186SaKFfN","upper-alpha","upper-roman"];return(nt=function(){return t})()}const it=rt;function st(){const t=["71148oUOinD","value","change","_updateFootnotesCounters","includes","4403791saFFuM","setAttribute","3926cymfgr","3727590RZQSCM","execute","9lYcXZa","130gqDcMZ","1240ZxgUAP","5WWdazs","refresh","getFootnotesDefinitionsObjectElement","model","plugins","74vlrudF","get","8318264GjiuAC","3062620rtqZEI","isEnabled","2051748EcPWFi","footnotesListStyle","3vcwxVm","getAttribute"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(553274===parseInt(e(219))/1*(-parseInt(e(230))/2)+-parseInt(e(237))/3*(parseInt(e(233))/4)+-parseInt(e(225))/5*(-parseInt(e(220))/6)+-parseInt(e(244))/7+-parseInt(e(232))/8*(parseInt(e(222))/9)+parseInt(e(224))/10*(parseInt(e(239))/11)+parseInt(e(235))/12*(parseInt(e(223))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(226)](){const t=it,{editor:e}=this,o=e[t(229)][t(231)](d)[t(227)]();this[t(234)]=!!o,this[t(240)]=o?.[t(238)](t(236))??null}[it(221)]({value:t}){const e=it,{editor:o}=this,n=o[e(229)][e(231)](d),i=n[e(227)]();i&&ot[e(243)](t)&&o[e(228)][e(241)](o=>{const s=e;o[s(218)](s(236),t,i),n[s(242)](o)})}}const ct=ft;function lt(){const t=["isInteger","853737gWQxls","_updateFootnotesCounters","setAttribute","getAttribute","13798UUyZYE","isEnabled","get","getFootnotesDefinitionsObjectElement","1881816cOZNJP","model","8XrrTlq","value","1698680SdUpds","execute","footnotesListStart","267ieaNDC","refresh","change","9433359sCZryT","10754233GTeazx","2138464IaAUpx","plugins"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(846650===parseInt(e(383))/1+-parseInt(e(387))/2*(parseInt(e(375))/3)+-parseInt(e(380))/4+parseInt(e(372))/5+parseInt(e(391))/6+parseInt(e(379))/7*(parseInt(e(370))/8)+-parseInt(e(378))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(376)](){const t=ct,{editor:e}=this,o=e[t(381)][t(389)](d)[t(390)]();this[t(388)]=!!o,this[t(371)]=o?.[t(386)](t(374))??null}[ct(373)]({value:t}){const e=ct,{editor:o}=this,n=o[e(381)][e(389)](d),i=n[e(390)]();i&&Number[e(382)](t)&&o[e(392)][e(377)](o=>{const s=e;o[s(385)](s(374),t,i),n[s(384)](o)})}}function dt(){const t=["parent","hasAttribute","start","20XHTHak","891991WAdaWn","mapper","isOfficialPlugin","setAttribute","upper-latin","add","isNaN","fromCharCode","setStyle","10703759hbywsi","footnotes.footnotesProperties.defaultListStyle","removeStyle","toViewElement","find","element:ol","position","padStart","7hlXgEb","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","footnotesStyle","_defineConverters","getChanges","_getDefaultListStyle","367527VzHKEe","_defineFormatter","_defineSchema","_formatFootnoteListValue","lower-alpha","writer","lower-roman","getChildren","footnotesListStyle","2UHHVJT","parseInt","list-style-type","define","extend","createRangeOn","1038xytWdd","_definePostfixer","2342169cEdYzn","footnotesDefinitions","item","lower-latin","footnotes.footnotesProperties.defaultStartIndex","commands","isPremiumPlugin","$text","editor","registerPostFixer","footnotesListStart","config","35210LYlVoP","type","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","getStyle","name","floor","consumable","checkAttribute","downcast","1411056IXoqwU","3531076hophNe","setFootnoteFormatter","nodeAfter","from","upper-roman","schema","for","requires","viewItem","upcast","_getDefaultStartIndex","document","differ","decimal","insert","footnotes-list","decimal-leading-zero","footnotesStart","FootnotesPropertiesEditing","element","_updateFootnotesCounters","get","getAttribute","init","max","getItems","hasClass","model","toLowerCase","consume","plugins","upper-alpha","pluginName","toUpperCase"];return(dt=function(){return t})()}const pt=mt;!function(t){const e=mt,o=t();for(;;)try{if(830512===-parseInt(e(152))/1*(parseInt(e(185))/2)+-parseInt(e(176))/3+-parseInt(e(216))/4+parseInt(e(205))/5*(parseInt(e(191))/6)+-parseInt(e(169))/7*(parseInt(e(215))/8)+-parseInt(e(193))/9+parseInt(e(151))/10*(parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ht extends t.Plugin{static get[pt(146)](){return pt(234)}static get[pt(223)](){return[v,d]}static get[pt(154)](){return!0}static get[pt(199)](){return!0}[pt(137)](){const t=pt,{editor:e}=this;e[t(204)][t(188)](t(162),t(229)),e[t(204)][t(188)](t(197),1),e[t(198)][t(157)](t(172),new at(e)),e[t(198)][t(157)](t(233),new ut(e)),this[t(178)](),this[t(173)](),this[t(177)](),this[t(192)]()}[pt(178)](){const t=pt,{editor:e}=this,{schema:o}=e[t(141)];o[t(189)](t(194),{allowAttributes:[t(184),t(203)]})}[pt(173)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(222)](t(225))[t(157)](e=>{const o=t;e.on(o(166),(t,e,n)=>{const s=o,r=e[s(224)],a=e[s(171)]?.[s(148)];r[s(140)](s(231))&&a?.is(s(235),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(213)](e,i(203)))return;let r=1;const a=o[i(212)][i(143)](t,{attributes:i(150)});if(a){const e=Number[i(186)](t[i(136)](i(150)),10);Number[i(158)](e)||(r=e)}!a&&e[i(149)](i(203))||o[i(181)][i(155)](i(203),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(213)](e,i(184)))return;let r=i(229),a=!1;if(o[i(212)][i(143)](t,{attributes:i(206)})){const e={1:i(229),a:i(180),A:i(145),i:i(182),I:i(220)}[t[i(136)](i(206))];e&&(r=e),a=!0}o[i(212)][i(143)](t,{styles:i(187)})&&(r=function(t){const e=i;switch(t){case e(180):return e(196);case e(145):return e(156);default:return t}}(t[i(209)](i(187))),a=!0),!a&&e[i(149)](i(184))||o[i(181)][i(155)](i(184),r,e)}(r,a,n,i))})}),o[t(222)](t(214))[t(157)](e=>{const o=t;e.on(o(207),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;null==r||1===r?n[i(181)][i(208)](i(150),s):n[i(181)][i(155)](i(150),String(r),s)}),e.on(o(170),(t,e,n)=>{const i=o;if(!n[i(212)][i(143)](e[i(195)],t[i(210)]))return;const s=gt(e[i(195)],n[i(153)]),{attributeNewValue:r}=e;r&&i(229)!==r?n[i(181)][i(160)](i(187),r,s):n[i(181)][i(163)](i(187),s)})})}[pt(192)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(144)][t(135)](d),i=this[t(175)](),s=this[t(226)]();o[t(227)][t(202)](e=>{const r=t,a=o[r(227)][r(228)][r(174)]();let c=!1;for(const t of a){if(r(230)!==t[r(206)]||r(200)===t[r(210)])continue;const n=o[r(190)](t[r(167)][r(218)]);for(const t of n[r(139)]())t.is(r(235),r(194))&&(!t[r(149)](r(203))&&o[r(221)][r(213)](t,r(203))&&(e[r(155)](r(203),s,t),c=!0),!t[r(149)](r(184))&&o[r(221)][r(213)](t,r(184))&&(e[r(155)](r(184),i,t),c=!0))}return c&&n[r(236)](e),c})}[pt(177)](){const t=pt,{editor:e}=this;e[t(144)][t(135)](d)[t(217)](e=>this[t(179)](e))}[pt(175)](){const t=pt;return this[t(201)][t(204)][t(135)](t(162))}[pt(226)](){const t=pt;return this[t(201)][t(204)][t(135)](t(197))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(136)](n(184)),s=t[n(136)](n(203)),r=Math[n(211)](e)+(s??1)-1;switch(i){case n(232):return function(t,e){const o=n;return String(t)[o(168)](e,"0")}(r,Math[n(138)](2,o));case n(180):case n(196):return wt(r,!1);case n(145):case n(156):return wt(r,!0);case n(182):return bt(r,!1);case n(220):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt();return(mt=function(t,e){return o[t-=135]})(t,e)}function gt(t,e){const o=pt,n=e[o(164)](t);return Array[o(219)](n[o(183)]())[o(165)](t=>t.is(o(235),"ol")&&t[o(140)](o(231)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(159)](97+t)+n,i=Math[o(211)]((i-1)/26)}return e?n[o(147)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=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(142)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=M(),kt.insert=j().bind(null,"head"),kt.domAPI=B(),kt.insertStyleElement=z();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=491]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","16PGXoOm","isOfficialPlugin","5VkOiYa","81ZitBLb","2311896oYTRuq","FootnotesProperties","requires","119WkEaHE","199284GGYZJs","3497672rEGrzm","127896nvpEQS","30689BXKotR","572412aoiWrX","616430oweDyH","418OYHQuP"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(290988===parseInt(e(499))/1*(parseInt(e(505))/2)+parseInt(e(500))/3+parseInt(e(492))/4*(parseInt(e(507))/5)+-parseInt(e(498))/6*(parseInt(e(495))/7)+-parseInt(e(497))/8+-parseInt(e(491))/9*(parseInt(e(501))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(504)](){return Ft(493)}static get[Ft(494)](){return[ht,Ct]}static get[Ft(506)](){return!0}static get[Ft(503)](){return!0}}function Tt(){var t=["10wXxEqk","6lNlDfM","1666840GlxjfH","2904QLMVJo","1288PhdGTq","2575680WmqHUv","13909UQGmuQ","50VPLett","636205YKwAUY","936562GvrpKj","542862xzKuhL"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=118]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(199876===parseInt(e(127))/1*(-parseInt(e(128))/2)+parseInt(e(124))/3*(parseInt(e(125))/4)+parseInt(e(118))/5+parseInt(e(122))/6*(-parseInt(e(123))/7)+parseInt(e(126))/8+-parseInt(e(120))/9+-parseInt(e(121))/10*(-parseInt(e(119))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|