@ckeditor/ckeditor5-footnotes 47.4.0-alpha.1 → 47.4.0-alpha.2
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-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:()=>tt,FootnotesClipboard:()=>T,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["reset","root","_trackedElements","getChanges","values","getElementKey","1WJoibl","remove","createRangeOn","6976635XEcUiI","position","26401122SqUFuf","clear","attributes","rootName","_getElementKey","_model","length","7376152iBmNiU","insert","1300174zxZlPR","258EzBBfq","name","4117284nBXJpR","set","getItems","push","elementName","delete","_elementName","$text","109476irIapp","132321FHccuO","has","get","slice","from","type","$graveyard","flat","add","element","nodeAfter"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=486]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(733969===parseInt(e(502))/1*(parseInt(e(516))/2)+-parseInt(e(519))/3+parseInt(e(527))/4+-parseInt(e(505))/5+parseInt(e(517))/6*(parseInt(e(528))/7)+-parseInt(e(514))/8+parseInt(e(507))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(512)];[r(525)];[r(511)];[r(498)]=new Map;constructor(t,e){const o=r;this[o(512)]=t,this[o(525)]=e[o(523)],this[o(511)]=e[o(501)]}[r(496)](){const t=r;this[t(498)][t(508)]()}[r(499)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(515)===i[e(490)]&&e(526)!==i[e(518)]&&i[e(506)][e(495)]){const t=this[e(512)][e(504)](i[e(506)][e(495)]);for(const o of t[e(521)]()){if(!o.is(e(494),this[e(525)]))continue;const t=this[e(511)](o);n[e(486)](t)||n[e(520)](t,[]),n[e(487)](t)[e(522)](o)}}if(e(503)===i[e(490)]&&i[e(518)]===this[e(525)]){const t=this[e(511)]({getAttribute:t=>i[e(509)][e(487)](t)});o[e(493)](t)}}for(const[t,n]of this[e(498)])e(491)===n[e(497)][e(510)]&&o[e(493)](t);for(const t of o)this[e(498)][e(524)](t);for(const[t,o]of n)this[e(498)][e(520)](t,o[o[e(513)]-1]);const i=new Set;for(const[t,s]of n)o[e(486)](t)&&(i[e(493)](s[0]),s[e(513)]>1?n[e(520)](t,s[e(488)](1)):n[e(524)](t),o[e(524)](t));return{removed:Array[e(489)](o),inserted:Array[e(489)](n[e(500)]())[e(492)](),moved:Array[e(489)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=288]})(t,e)}function d(){const t=["_handleFootnotesDefinitionsObjectSync","push","isOfficialPlugin","1213752XxUUvO","getFootnotesDefinitionsObjectElement","init","footnoteRef","footnoteCounter","reset","_sortFootnoteDefinitions","isPremiumPlugin","getChanges","min","setAttribute","67015IkvPVY","_footnoteDefsContainerTracker","change:data","paragraph","set","footnoteId","createElement","getRootNames","_handleFootnoteReferencesChanges","FootnotesTracker","_updateFootnoteRefCounter","4096024jLFqow","singleton","model","108252HQsjmh","after","setFootnoteFormatter","rootName","before","createRangeOn","pluginName","document","parent","compareWith","1507JMzuzI","footnotesDefinitions","length","indexOf","footnoteInlineContent","createPositionAt","get","_footnotes","_footnoteDefsTracker","footnotes.multiBlock","getFootnotes","footnoteDefinition","end","createPositionBefore","isEqual","_handleRemoveFootnoteReferenceById","getFootnotesFormatter","getChildren","7GybiUC","append","createRangeIn","find","enqueueChange","add","12AXzfiE","_footnoteRefsTracker","childCount","move","high","root","_updateFootnotesCounters","getAttribute","_handleMovedFootnoteReference","config","_handleFootnoteDefinitionsChanges","561835ONJnfU","_handleInsertedFootnoteReference","$graveyard","has","splice","48098cMgzEY","10ZbSTPT","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotesDefinitions","remove","low","unshift","_insertEmptyFootnotesDefinitionsContainer","editor","_ensureFootnotesDefinitionsContainerExists","registerPostFixer","reference","definition","getFootnote","_footnoteFormatter","insert","4402674ngtktx","264PBZruh","from","some","_ensureFootnotesReferencesHaveProperOrder","listenTo","map","differ"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(314369===-parseInt(e(315))/1+-parseInt(e(320))/2*(parseInt(e(304))/3)+parseInt(e(348))/4+-parseInt(e(359))/5*(parseInt(e(338))/6)+parseInt(e(298))/7*(parseInt(e(370))/8)+parseInt(e(337))/9*(-parseInt(e(321))/10)+-parseInt(e(383))/11*(-parseInt(e(373))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(390)]=[];[u(324)]=null;[u(335)]=null;[u(360)];[u(305)];[u(288)];static get[u(379)](){return u(368)}static get[u(347)](){return!0}static get[u(355)](){return!0}constructor(t){const e=u;super(t),this[e(360)]=new l(this[e(329)][e(372)],{elementName:e(384),getElementKey:()=>e(371)}),this[e(305)]=new l(this[e(329)][e(372)],{elementName:e(351),getElementKey:t=>t[e(311)](e(364))}),this[e(288)]=new l(this[e(329)][e(372)],{elementName:e(291),getElementKey:t=>t[e(311)](e(364))})}[u(350)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(380)][t(331)](e=>{const n=t,i=o[n(380)][n(344)][n(356)]();let s=!1;return this[n(322)](e,i)&&(s=!0),this[n(314)](e,i)&&(s=!0),this[n(367)](e,i)&&(s=!0),this[n(341)](e)&&(s=!0),this[n(345)](e)&&(s=!0),this[n(354)](e)&&(s=!0),s}),this[t(342)](o[t(380)],t(361),()=>{const e=t;o[e(302)]({isUndoable:!1},t=>{this[e(330)](t)})},{priority:t(326)}),this[t(342)](n,t(363),()=>{const e=t;this[e(390)]=[],this[e(360)][e(353)](),this[e(305)][e(353)](),this[e(288)][e(353)]()},{priority:t(308)})}[u(349)](){return this[u(324)]}[u(334)](t){const e=u;return this[e(390)][e(301)](e=>e.id===t)||null}[u(290)](){const t=u;return Array[t(339)](this[t(390)])}[u(296)](){return this[u(335)]}[u(375)](t){this[u(335)]=t}[u(310)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(390)][o(385)];i++)this[o(369)](t,i)&&(n=!0);return n}[u(328)](t,e){const o=u,n=t[o(365)](o(384),{});return t[o(299)](n,e),this[o(324)]=n,n}[u(330)](t){const e=u;if(!this[e(390)][e(385)]||this[e(324)])return;const o=this[e(390)][0][e(332)][e(309)],n=this[e(328)](t,o);for(const o of this[e(390)])o[e(333)][e(381)]||t[e(336)](o[e(333)],n,e(292));this[e(310)](t)}[u(322)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(360)][o(356)](e);if(r[o(385)]&&(this[o(324)]=r[0]),i[o(385)])if(i[o(385)]>1||this[o(324)]&&i[o(340)](t=>t!==this[o(324)])){const e=t[o(365)](o(384),{}),s=[];this[o(324)]&&s[o(346)](this[o(324)]),s[o(346)](...i),t[o(336)](e,s[0],o(377));for(const n of s)t[o(307)](t[o(300)](n),t[o(388)](e,o(292))),t[o(325)](n);this[o(324)]=e,this[o(310)](t),n=!0}else this[o(324)]=i[0];if(s[o(385)]&&o(317)===this[o(324)]?.[o(309)][o(376)]){for(const e of this[o(390)])t[o(325)](e[o(332)]),n=!0;this[o(390)]=[],this[o(324)]=null}return n}[u(314)](t,e){const o=u;let n=!1;const i=this[o(329)][o(313)][o(389)](o(289)),{inserted:s,moved:r}=this[o(288)][o(356)](e);for(const e of[...r,...s]){const s=e[o(311)](o(364)),r=this[o(334)](s);r&&(r[o(333)]=e),h(t,i,e)&&(n=!0)}return n}[u(367)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(305)][o(356)](e);for(const e of i)this[o(295)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(312)](t,e)&&(n=!0);return n}[u(345)](t){const e=u;if(!this[e(324)])return!1;let o=!1;if(this[e(324)][e(306)]!==this[e(390)][e(385)]){const n=[];for(const t of this[e(324)][e(297)]()){const i=t[e(311)](e(364));this[e(334)](i)||(n[e(327)](t),o=!0)}for(const o of n)t[e(325)](o)}const n=new Set,i=[];for(const t of this[e(324)][e(297)]()){const s=t[e(311)](e(364));n[e(318)](s)?(i[e(327)](t),o=!0):n[e(303)](s)}for(const o of i)t[e(325)](o);return this[e(324)][e(306)]||(t[e(325)](this[e(324)]),this[e(324)]=null,o=!0),o}[u(316)](t,e){const o=u;if(this[o(390)][o(301)](t=>t[o(332)]===e))return!1;let n=!1;const i=e[o(311)](o(364)),s=this[o(390)][o(323)](t=>t.id===i);-1!==s&&(t[o(325)](this[o(390)][s][o(332)]),this[o(390)][o(319)](s,1),n=!0);let r=this[o(324)]?function(t,e){const n=o;for(const o of t[n(297)]())if(o[n(311)](n(364))===e)return o;return null}(this[o(324)],i):null;r||(r=t[o(365)](o(291),{footnoteId:i}),this[o(324)]&&(t[o(336)](r,this[o(324)],o(292)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(329)][o(372)],this[o(390)],e);this[o(390)][o(319)](c,0,a);let l=c;return-1!==s&&(l=Math[o(357)](c,s)),this[o(310)](t,l)&&(n=!0),n}[u(295)](t,e){const o=u,n=this[o(390)][o(323)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(390)][n];return o(317)!==s[o(333)][o(309)][o(376)]&&(t[o(325)](s[o(333)]),i=!0),this[o(390)][o(319)](n,1),this[o(310)](t,n)&&(i=!0),i}[u(312)](t,e){const o=u,n=e[o(311)](o(364)),i=this[o(390)][o(323)](t=>t.id===n),s=this[o(390)][i];let r=!1;s[o(332)]=e,this[o(390)][o(319)](i,1);const a=m(this[o(329)][o(372)],this[o(390)],e);return this[o(390)][o(319)](a,0,s),this[o(310)](t,Math[o(357)](i,a))&&(r=!0),r}[u(369)](t,e){const o=u;if(!this[o(324)])return!1;const n=this[o(390)][e];let i;return i=this[o(335)]?this[o(335)]({footnote:n,container:this[o(324)],digits:String(this[o(390)][o(385)])[o(385)],value:e+1}):String(e+1),n[o(332)][o(311)](o(352))!=i&&(t[o(358)](o(352),i,n[o(332)]),!0)}[u(354)](t){const e=u;if(!this[e(324)]||this[e(390)][e(385)]<2)return!1;if(function(t,o){const n=e;if(t[n(385)]!==o[n(385)])return!1;for(let e=0;e<t[n(385)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(390)][e(343)](t=>t.id),Array[e(339)](this[e(324)][e(297)]())[e(343)](t=>t[e(311)](e(364)))))return!1;let o=!1;for(let n=0;n<this[e(390)][e(385)];n++){const i=this[e(390)][n],s=t[e(293)](i[e(333)]),r=t[e(388)](this[e(324)],n);s[e(294)](r)||(t[e(307)](t[e(378)](i[e(333)]),r),o=!0)}return o}[u(341)](t){const e=u;if(!this[e(390)][e(385)])return!1;const{model:o}=this[e(329)];let n=!1;for(let i=0;i<this[e(390)][e(385)]-1;i++){const s=this[e(390)][i],r=this[e(390)][i+1],a=o[e(293)](s[e(332)]),c=o[e(293)](r[e(332)]);e(374)===a[e(382)](c)&&(this[e(312)](t,s[e(332)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(306)])return!1;const i=n(e?362:387);return t[n(336)](t[n(365)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(385)])return 0;const i=t[n(293)](o);for(let o=0;o<e[n(385)];o++){const s=e[o],r=t[n(293)](s[n(332)]);if(n(377)===i[n(382)](r))return o}const s=o[n(309)];let r=-1;for(let t=e[n(385)]-1;t>=0;t--)if(e[t][n(332)][n(309)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(380)][n(366)](),c=a[n(386)](s[n(376)]),l=a[c+1];if(l)for(let t=0;t<e[n(385)];t++)if(e[t][n(332)][n(309)][n(376)]===l)return t;return e[n(385)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(141963===-parseInt(e(460))/1*(parseInt(e(453))/2)+-parseInt(e(456))/3*(-parseInt(e(461))/4)+-parseInt(e(438))/5*(-parseInt(e(437))/6)+-parseInt(e(459))/7+-parseInt(e(433))/8*(-parseInt(e(466))/9)+-parseInt(e(432))/10+-parseInt(e(431))/11*(-parseInt(e(451))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(434)](){const t=g,e=this[t(468)][t(467)][t(455)][t(457)],o=this[t(463)](e);this[t(441)]=!!o}[g(446)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(455)],r=this[e(463)](s);if(!r)return;const a=o[e(448)][e(435)](e(444)),c=t?.[e(454)]??(0,i.uid)();!function(t){const o=e;return o(449)==typeof t&&t[o(447)]>0&&!/\s/[o(462)](t)&&!/^\d/[o(462)](t)}(c)?(0,i.logWarning)(e(452)):(n[e(439)](t=>{const o=e,i=t[o(442)](o(430),{footnoteId:c});n[o(443)](i,r,null)}),a[e(445)](c))}[g(463)](t){const e=g,{model:o}=this[e(468)],{schema:n}=o,i=t[e(458)]();for(const t of i[e(450)]())if(n[e(464)](t)||n[e(440)](t))return null;const s=i[e(465)];return n[e(436)](s,e(430))?s:null}}function b(){const t=["2234660wbgdrM","1216wgkAwz","refresh","get","checkChild","20994RNqhMu","280Sryedf","change","isObject","isEnabled","createElement","insertObject","FootnotesEditing","_moveSelectionToFootnoteDefinition","execute","length","plugins","string","getItems","144NvDcOj","insert-footnote-command-executed-with-invalid-id","3436oUNXyl","footnoteId","document","55101ZcWsGo","selection","getFirstRange","396067NDeAvu","73nkzUYU","16OXJnoX","test","_getPositionToInsertFootnote","isBlock","end","2439nrFiCF","model","editor","footnoteRef","217085KVOezA"];return(b=function(){return t})()}class I 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 y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1767916800;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(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 x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=_;function _(t,e){const o=D();return(_=function(t,e){return o[t-=421]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(606070===parseInt(e(467))/1*(parseInt(e(505))/2)+-parseInt(e(506))/3*(-parseInt(e(436))/4)+parseInt(e(454))/5*(-parseInt(e(484))/6)+-parseInt(e(478))/7*(parseInt(e(461))/8)+parseInt(e(462))/9*(parseInt(e(432))/10)+-parseInt(e(494))/11+parseInt(e(481))/12*(-parseInt(e(421))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class T extends t.Plugin{static get[A(449)](){return A(493)}static get[A(441)](){return[I,P.ClipboardPipeline]}static get[A(488)](){return!0}static get[A(451)](){return!0}[A(438)](){this[A(502)]()}[A(502)](){const t=A;this[t(434)](),this[t(499)]()}[A(434)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(472)](P.ClipboardPipeline),s=o[t(472)](p);this[t(450)](i,t(456),(o,i)=>{const r=t,a=V(n[r(500)](i[r(479)]));if(!a[r(480)])return;const c=s[r(430)](),l=a[r(475)]((t,o)=>{const n=r,i=c[n(486)](t=>t.id===o);if(i){const o=e[n(437)][n(429)](i[n(497)],{isClipboardPipeline:!0}),s=e[n(437)][n(452)][n(469)](o);t[i.id]=s}return t},Object[r(491)](null));i[r(489)][r(455)](r(504),JSON[r(444)](l))})}[A(499)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(495)],r=n[t(472)](P.ClipboardPipeline),a=n[t(472)](p),c=e[t(470)][t(472)](t(492));let l=null;this[t(450)](s[t(473)],t(474),(e,o)=>{const n=t,i=o[n(489)][n(477)](n(504));l=i?JSON[n(426)](i):null}),this[t(450)](r,t(433),(n,s)=>{const r=t,u=s[r(425)]===this[r(501)].id;u&&r(483)===s[r(424)]||o[r(498)](t=>{const n=r;let f=a[n(465)]();const d=!!f&&Array[n(476)](o[n(473)][n(445)][n(490)]())[n(448)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(460),e(507)))return!0;return!1}(o[n(500)](s[n(479)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(491)](null);for(const e of i[o(457)]())e.is(o(460),o(423))&&e[o(466)](o(422))&&(s[e[o(442)](o(422))]=t[o(439)](e,!0));return Object[o(458)](s)[o(480)]?s:null}(t,s[n(479)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(500)](e))n.is(o(460),o(447))&&i[o(485)](n);for(const e of i)t[o(496)](e)}(t,s[n(479)]),!l)return;const{selection:p}=o[n(473)],h=p[n(482)]()[n(468)];f&&!d||(f=L(t,s[n(479)]),f||=a[n(487)](t,h));const m=Array[n(476)](p[n(464)]())[n(446)](V),g=function(t,e,o){const s=n,r=Object[s(491)](null);for(const{item:n}of t[s(500)](e))if(n.is(s(460),s(507))){const e=n[s(442)](s(422));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(443)](s(422),r[e],n)}return r}(t,s[n(479)],t=>{const e=n;return!u||!!a[e(453)](t)&&!m[e(448)](t)});for(const[o,i]of Object[n(427)](l)){const s=g[o]||o;let r;if(n(435)!=typeof i)r=i,s!==o&&t[n(443)](n(422),s,r);else{r=t[n(431)](n(423),{footnoteId:s});const o=e[n(437)][n(452)][n(429)](i);let a;if(c)a=e[n(437)][n(459)](o,r);else{a=t[n(431)](n(471));const i=e[n(437)][n(459)](o,a);t[n(503)](i,a)}t[n(440)](a,r)}t[n(503)](r,f,n(428))}l=null})})}}function D(){const t=["editing","remove","definition","change","_handlePasteFootnotesDefinitions","createRangeIn","editor","_defineClipboardIntegration","insert","application/ckeditor5-footnotes","50Aftazv","561864izWnAL","footnoteRef","13PmUVoo","footnoteId","footnoteDefinition","method","sourceEditorId","parse","entries","end","toView","getFootnotes","createElement","10cVJsnH","contentInsertion","_handleCopyFootnotesDefinitions","string","24tqdWuR","data","init","cloneElement","append","requires","getAttribute","setAttribute","stringify","selection","flatMap","footnotesDefinitions","includes","pluginName","listenTo","isPremiumPlugin","htmlProcessor","getFootnote","15750VmFJGB","setData","outputTransformation","getChildren","keys","toModel","element","104eCeIKN","2127663zGQfEE","add","getRanges","getFootnotesDefinitionsObjectElement","hasAttribute","48161mVvxHN","root","toData","config","footnoteInlineContent","get","document","clipboardInput","reduce","from","getData","146006uzwDzk","content","length","13637484OCprKZ","getFirstRange","drop","858cqbbaa","push","find","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","dataTransfer","getSelectedBlocks","create","footnotes.multiBlock","FootnotesClipboard","1100319IyBJKY"];return(D=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(500)](e))if(n.is(o(460),o(447)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(460),e(507))&&o[e(463)](n[e(442)](e(422)));return Array[e(476)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=q();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Y;function $(){var t=["2875080SoZldu","6349563dwaUhq","28ZhptIe","353731vSPMOk","isPremiumPlugin","336190OkWBPt","isOfficialPlugin","65139ZOyjxW","6bvUSFu","100048hNImGZ","requires","pluginName","Footnotes","158833NQuEVb"];return($=function(){return t})()}function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=175]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(185169===parseInt(e(186))/1+-parseInt(e(182))/2+parseInt(e(180))/3*(-parseInt(e(175))/4)+-parseInt(e(178))/5*(parseInt(e(181))/6)+-parseInt(e(176))/7+-parseInt(e(187))/8+parseInt(e(188))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(184)](){return G(185)}static get[G(183)](){return[I,T,Q]}static get[G(179)](){return!0}static get[G(177)](){return!0}}const et=nt;function ot(){const t=["5MVqQKM","decimal","lower-alpha","55363hcpMfK","upper-roman","413750gZIVSJ","upper-alpha","626421hkUhUi","542978PvJSgE","2445846hmlplP","upper-latin","lower-roman","decimal-leading-zero","2293236XKsdjc","120Qoukta","lower-latin","5823621nLLayP"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(296220===parseInt(e(109))/1+-parseInt(e(112))/2+-parseInt(e(111))/3+-parseInt(e(117))/4+-parseInt(e(104))/5*(-parseInt(e(113))/6)+parseInt(e(107))/7*(-parseInt(e(101))/8)+parseInt(e(103))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(105),et(116),et(102),et(114),et(106),et(110),et(115),et(108)];function st(){const t=["499kXzTYj","24UcIQYG","22203qDsAyI","setAttribute","93532kprDBM","860dhymFU","footnotesListStyle","805025VduSnw","getAttribute","_updateFootnotesCounters","model","refresh","18RNRxLB","plugins","includes","isEnabled","509217xlJEiJ","change","3858suKvyS","40188SDwFLF","get","502306owToIM","execute","value","getFootnotesDefinitionsObjectElement","4609oPBHcy"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=295]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(662913===parseInt(e(296))/1*(parseInt(e(314))/2)+parseInt(e(312))/3+parseInt(e(300))/4+parseInt(e(303))/5*(parseInt(e(308))/6)+parseInt(e(317))/7*(parseInt(e(297))/8)+-parseInt(e(298))/9*(-parseInt(e(301))/10)+parseInt(e(295))/11*(-parseInt(e(315))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(307)](){const t=rt,{editor:e}=this,o=e[t(309)][t(316)](p)[t(320)]();this[t(311)]=!!o,this[t(319)]=o?.[t(304)](t(302))??null}[rt(318)]({value:t}){const e=rt,{editor:o}=this,n=o[e(309)][e(316)](p),i=n[e(320)]();i&&it[e(310)](t)&&o[e(306)][e(313)](o=>{const s=e;o[s(299)](s(302),t,i),n[s(305)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=328]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(238671===parseInt(e(343))/1+-parseInt(e(330))/2*(-parseInt(e(337))/3)+parseInt(e(333))/4+parseInt(e(349))/5+parseInt(e(345))/6*(-parseInt(e(346))/7)+parseInt(e(344))/8+-parseInt(e(339))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(332)](){const t=lt,{editor:e}=this,o=e[t(348)][t(347)](p)[t(336)]();this[t(338)]=!!o,this[t(342)]=o?.[t(329)](t(335))??null}[lt(341)]({value:t}){const e=lt,{editor:o}=this,n=o[e(348)][e(347)](p),i=n[e(336)]();i&&Number[e(340)](t)&&o[e(350)][e(334)](o=>{const s=e;o[s(331)](s(335),t,i),n[s(328)](o)})}}function dt(){const t=["_updateFootnotesCounters","getAttribute","32586YkfQUf","setAttribute","refresh","1407452yxObCY","change","footnotesListStart","getFootnotesDefinitionsObjectElement","42tVFIrH","isEnabled","3974688aQQAEl","isInteger","execute","value","277300vpkwlK","386352SkIeoh","6690IGeUCe","2569BMVrQJ","get","plugins","919745AuFNsB","model"];return(dt=function(){return t})()}function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=459]})(t,e)}const ht=pt;function mt(){const t=["7gbCSNr","plugins","getChanges","footnotes-list","footnotesDefinitions","lower-alpha","commands","item","fromCharCode","_getDefaultListStyle","footnotesStart","$text","attribute:footnotesListStyle:footnotesDefinitions","registerPostFixer","getAttribute","max","padStart","modelCursor","find","editor","_defineSchema","define","position","9Mgawrk","5857064izJbzQ","upcast","consume","146058gZdDLo","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","36uqaoEI","footnotesListStart","for","getChildren","schema","55ZpenhR","pluginName","removeStyle","parent","floor","_formatFootnoteListValue","model","document","viewItem","toViewElement","from","start","insert","setAttribute","15728193dTsCnB","isOfficialPlugin","lower-roman","parseInt","footnotesListStyle","list-style-type","downcast","writer","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","type","681XspLct","setFootnoteFormatter","getStyle","_defineConverters","element:ol","setStyle","element","consumable","createRangeOn","_definePostfixer","add","FootnotesPropertiesEditing","differ","isNaN","name","lower-latin","removeAttribute","checkAttribute","isPremiumPlugin","hasClass","upper-roman","_updateFootnotesCounters","getItems","extend","mapper","790892WrqHnr","nodeAfter","footnotes.footnotesProperties.defaultStartIndex","8536cKqpuL","upper-latin","get","init","9600490ojLInT","footnotesStyle","config","toUpperCase","decimal","2vuKrmV","toLowerCase","1921546kROwJk","requires","hasAttribute","upper-alpha","_defineFormatter"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(496588===parseInt(e(525))/1*(parseInt(e(513))/2)+-parseInt(e(488))/3*(parseInt(e(516))/4)+parseInt(e(463))/5*(-parseInt(e(559))/6)+parseInt(e(532))/7*(parseInt(e(556))/8)+-parseInt(e(555))/9*(parseInt(e(520))/10)+-parseInt(e(527))/11*(parseInt(e(562))/12)+parseInt(e(477))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(464)](){return ht(499)}static get[ht(528)](){return[I,p]}static get[ht(478)](){return!0}static get[ht(506)](){return!0}[ht(519)](){const t=ht,{editor:e}=this;e[t(522)][t(553)](t(560),t(524)),e[t(522)][t(553)](t(515),1),e[t(538)][t(498)](t(521),new ct(e)),e[t(538)][t(498)](t(542),new ft(e)),this[t(552)](),this[t(491)](),this[t(531)](),this[t(497)]()}[ht(552)](){const t=ht,{editor:e}=this,{schema:o}=e[t(469)];o[t(511)](t(536),{allowAttributes:[t(481),t(459)]})}[ht(491)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(460)](t(557))[t(498)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(471)],a=e[s(549)]?.[s(466)];r[s(507)](s(535))&&a?.is(s(494),s(536))&&(function(t,e,o,n){const i=s;if(!n[i(505)](e,i(459)))return;let r=1;const a=o[i(495)][i(558)](t,{attributes:i(474)});if(a){const e=Number[i(480)](t[i(546)](i(474)),10);Number[i(501)](e)||(r=e)}!a&&e[i(529)](i(459))||o[i(484)][i(476)](i(459),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(505)](e,i(481)))return;let r=i(524),a=!1;if(o[i(495)][i(558)](t,{attributes:i(487)})){const e={1:i(524),a:i(537),A:i(530),i:i(479),I:i(508)}[t[i(546)](i(487))];e&&(r=e),a=!0}o[i(495)][i(558)](t,{styles:i(482)})&&(r=function(t){const e=i;switch(t){case e(537):return e(503);case e(530):return e(517);default:return t}}(t[i(490)](i(482))),a=!0),!a&&e[i(529)](i(481))||o[i(484)][i(476)](i(481),r,e)}(r,a,n,i))})}),o[t(460)](t(483))[t(498)](e=>{const o=t;e.on(o(486),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;null==r||1===r?n[i(484)][i(504)](i(474),s):n[i(484)][i(476)](i(474),String(r),s)}),e.on(o(544),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;r&&i(524)!==r?n[i(484)][i(493)](i(482),r,s):n[i(484)][i(465)](i(482),s)})})}[ht(497)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(533)][t(518)](p),i=this[t(541)](),s=this[t(485)]();o[t(470)][t(545)](e=>{const r=t,a=o[r(470)][r(500)][r(534)]();let c=!1;for(const t of a){if(r(475)!==t[r(487)]||r(543)===t[r(502)])continue;const n=o[r(496)](t[r(554)][r(514)]);for(const t of n[r(510)]())t.is(r(494),r(536))&&(!t[r(529)](r(459))&&o[r(462)][r(505)](t,r(459))&&(e[r(476)](r(459),s,t),c=!0),!t[r(529)](r(481))&&o[r(462)][r(505)](t,r(481))&&(e[r(476)](r(481),i,t),c=!0))}return c&&n[r(509)](e),c})}[ht(531)](){const t=ht,{editor:e}=this;e[t(533)][t(518)](p)[t(489)](e=>this[t(468)](e))}[ht(541)](){const t=ht;return this[t(551)][t(522)][t(518)](t(560))}[ht(485)](){const t=ht;return this[t(551)][t(522)][t(518)](t(515))}[ht(468)]({container:t,value:e,digits:o}){const n=ht,i=t[n(546)](n(481)),s=t[n(546)](n(459)),r=Math[n(467)](e)+(s??1)-1;switch(i){case n(561):return function(t,e){const o=n;return String(t)[o(548)](e,"0")}(r,Math[n(547)](2,o));case n(537):case n(503):return yt(r,!1);case n(530):case n(517):return yt(r,!0);case n(479):return It(r,!1);case n(508):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(472)](t);return Array[o(473)](n[o(461)]())[o(550)](t=>t.is(o(494),"ol")&&t[o(507)](o(535)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(540)](97+t)+n,i=Math[o(467)]((i-1)/26)}return e?n[o(523)]():n}const bt=[{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 It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(526)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Et=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=162]})(t,e)}function St(){var t=["90801AGUSZC","10qCPZBK","2135500WyQeWS","requires","9848GGPhhm","76SMvDzs","264488tilela","1855035cfWzQH","isOfficialPlugin","FootnotesProperties","isPremiumPlugin","161DHVomU","2732466LeFIoK","pluginName","29iNyWAI","34066692YuNmiX"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(715313===parseInt(e(166))/1*(-parseInt(e(172))/2)+-parseInt(e(168))/3*(parseInt(e(173))/4)+parseInt(e(169))/5*(-parseInt(e(164))/6)+parseInt(e(163))/7*(-parseInt(e(174))/8)+-parseInt(e(175))/9+parseInt(e(170))/10+parseInt(e(167))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[Et(165)](){return Et(177)}static get[Et(171)](){return[gt,Ft]}static get[Et(176)](){return!0}static get[Et(162)](){return!0}}function At(){var t=["50wJLowr","7EdkaGa","30896gQmdEa","1827RyEMQX","162166ItdTMD","65EkKHzN","3940tsAUyt","22908HbkLpe","1529973bscUKZ","1146mSjotA","5948701AVXQcB","34726584msimlA"];return(At=function(){return t})()}function _t(t,e){var o=At();return(_t=function(t,e){return o[t-=412]})(t,e)}!function(t){for(var e=_t,o=t();;)try{if(583221===parseInt(e(416))/1*(-parseInt(e(419))/2)+-parseInt(e(412))/3*(parseInt(e(421))/4)+-parseInt(e(420))/5*(parseInt(e(422))/6)+-parseInt(e(418))/7*(parseInt(e(417))/8)+-parseInt(e(423))/9*(parseInt(e(415))/10)+parseInt(e(413))/11+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>T,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768003200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const D=L;function P(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(P=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class T extends t.Plugin{static get[D(375)](){return D(450)}static get[D(395)](){return[v,A.ClipboardPipeline]}static get[D(390)](){return!0}static get[D(410)](){return!0}[D(368)](){this[D(409)]()}[D(409)](){const t=D;this[t(448)](),this[t(435)]()}[D(448)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](A.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[D(435)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](A.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=_(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function _(t,e){const o=D;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=P();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),G=o.n(z),W=o(741),H=o.n(W),X=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=G(),q.insert=U().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();K()(X.A,q);X.A&&X.A.locals&&X.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(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||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof 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 J=Q;function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[J(382)](){return J(378)}static get[J(389)](){return[v,T,Z]}static get[J(379)](){return!0}static get[J(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=379]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(440716===-parseInt(e(404))/1*(parseInt(e(388))/2)+-parseInt(e(380))/3*(parseInt(e(395))/4)+parseInt(e(396))/5+-parseInt(e(382))/6+parseInt(e(392))/7*(-parseInt(e(386))/8)+-parseInt(e(381))/9*(parseInt(e(379))/10)+parseInt(e(401))/11*(parseInt(e(389))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(397)](){const t=st,{editor:e}=this,o=e[t(398)][t(402)](d)[t(384)]();this[t(391)]=!!o,this[t(394)]=o?.[t(400)](t(387))??null}[st(393)]({value:t}){const e=st,{editor:o}=this,n=o[e(398)][e(402)](d),i=n[e(384)]();i&&it[e(399)](t)&&o[e(385)][e(383)](o=>{const s=e;o[s(403)](s(387),t,i),n[s(390)](o)})}}function ct(){const t=["2952mGZGmA","footnotesListStyle","2bJlFNB","13344108wxUcct","_updateFootnotesCounters","isEnabled","9611GPwHNn","execute","value","312020JftpCX","1642955wsyOHx","refresh","plugins","includes","getAttribute","22gbOXCP","get","setAttribute","207219PGvsES","1297470iHZfXP","15njBDqo","45vlMNDK","2155662kQpXVP","change","getFootnotesDefinitionsObjectElement","model"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new at(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():n}const bt=[{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 vt(t,e){const o=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=G(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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 It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=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 xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function Dt(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(Dt=function(){return t})()}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|