@ckeditor/ckeditor5-footnotes 47.5.0-alpha.2 → 47.5.0-alpha.4
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),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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["name","$graveyard","getItems","209894shqknr","position","length","reset","_elementName","clear","182EzmhNd","push","rootName","attributes","getChanges","delete","5135ROvtBQ","set","insert","element","get","flat","add","type","5008940MBVGtZ","has","remove","getElementKey","root","1122934HKvZuX","_trackedElements","from","22321080fZDHVV","27HmflXG","elementName","_model","values","_getElementKey","24ClKvfi","createRangeOn","$text","88410PpSjTG","2956995ttaCIu","nodeAfter","slice"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(815358===-parseInt(e(278))/1+parseInt(e(297))/2*(-parseInt(e(282))/3)+parseInt(e(273))/4+parseInt(e(265))/5+parseInt(e(290))/6*(parseInt(e(303))/7)+parseInt(e(287))/8*(-parseInt(e(291))/9)+parseInt(e(281))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(284)];[r(301)];[r(286)];[r(279)]=new Map;constructor(t,e){const o=r;this[o(284)]=t,this[o(301)]=e[o(283)],this[o(286)]=e[o(276)]}[r(300)](){const t=r;this[t(279)][t(302)]()}[r(263)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(267)===i[e(272)]&&e(289)!==i[e(294)]&&i[e(298)][e(292)]){const t=this[e(284)][e(288)](i[e(298)][e(292)]);for(const o of t[e(296)]()){if(!o.is(e(268),this[e(301)]))continue;const t=this[e(286)](o);n[e(274)](t)||n[e(266)](t,[]),n[e(269)](t)[e(304)](o)}}if(e(275)===i[e(272)]&&i[e(294)]===this[e(301)]){const t=this[e(286)]({getAttribute:t=>i[e(262)][e(269)](t)});o[e(271)](t)}}for(const[t,n]of this[e(279)])e(295)===n[e(277)][e(305)]&&o[e(271)](t);for(const t of o)this[e(279)][e(264)](t);for(const[t,o]of n)this[e(279)][e(266)](t,o[o[e(299)]-1]);const i=new Set;for(const[t,s]of n)o[e(274)](t)&&(i[e(271)](s[0]),s[e(299)]>1?n[e(266)](t,s[e(293)](1)):n[e(264)](t),o[e(264)](t));return{removed:Array[e(280)](o),inserted:Array[e(280)](n[e(285)]())[e(270)](),moved:Array[e(280)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=347]})(t,e)}function d(){const t=["_handleFootnotesDefinitionsObjectChanges","has","getRootNames","footnoteRef","some","low","1783932XDzDFC","footnotes.multiBlock","1606278LUtPdd","createPositionBefore","compareWith","reference","getFootnotes","150450SSevQt","createRangeIn","_handleFootnoteDefinitionsChanges","high","root","_ensureFootnotesReferencesHaveProperOrder","createRangeOn","footnoteId","_ensureFootnotesDefinitionsContainerExists","definition","singleton","findIndex","isEqual","min","childCount","_handleInsertedFootnoteReference","push","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","_footnoteDefsTracker","after","set","1335130iNPYFg","6432510yqexwe","537602OxDPfd","reset","change:data","indexOf","footnoteDefinition","_sortFootnoteDefinitions","_footnotesDefinitions","remove","createElement","isOfficialPlugin","editor","init","_footnotes","_updateFootnoteRefCounter","_insertEmptyFootnotesDefinitionsContainer","footnotesDefinitions","end","paragraph","getAttribute","footnoteInlineContent","get","getFootnotesFormatter","pluginName","_updateFootnotesCounters","registerPostFixer","unshift","FootnotesTracker","createPositionAt","getChildren","setFootnoteFormatter","parent","length","append","listenTo","from","getChanges","getFootnote","find","map","_footnoteRefsTracker","_footnoteDefsContainerTracker","document","footnoteCounter","13312390ykTqVe","_handleFootnoteReferencesChanges","splice","model","isPremiumPlugin","getFootnotesDefinitionsObjectElement","insert","move","add","_footnoteFormatter","before","setAttribute","rootName","config","differ","$graveyard","enqueueChange","_handleFootnotesDefinitionsObjectSync"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(969969===-parseInt(e(426))/1+-parseInt(e(357))/2+parseInt(e(431))/3+-parseInt(e(424))/4+parseInt(e(355))/5+parseInt(e(356))/6+parseInt(e(400))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(369)]=[];[u(363)]=null;[u(409)]=null;[u(397)];[u(396)];[u(352)];static get[u(379)](){return u(383)}static get[u(366)](){return!0}static get[u(404)](){return!0}constructor(t){const e=u;super(t),this[e(397)]=new l(this[e(367)][e(403)],{elementName:e(372),getElementKey:()=>e(441)}),this[e(396)]=new l(this[e(367)][e(403)],{elementName:e(421),getElementKey:t=>t[e(375)](e(438))}),this[e(352)]=new l(this[e(367)][e(403)],{elementName:e(361),getElementKey:t=>t[e(375)](e(438))})}[u(368)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(398)][t(381)](e=>{const n=t,i=o[n(398)][n(414)][n(392)]();let s=!1;return this[n(418)](e,i)&&(s=!0),this[n(433)](e,i)&&(s=!0),this[n(401)](e,i)&&(s=!0),this[n(436)](e)&&(s=!0),this[n(417)](e)&&(s=!0),this[n(362)](e)&&(s=!0),s}),this[t(390)](o[t(398)],t(359),()=>{const e=t;o[e(416)]({isUndoable:!1},t=>{this[e(439)](t)})},{priority:t(423)}),this[t(390)](n,t(354),()=>{const e=t;this[e(369)]=[],this[e(397)][e(358)](),this[e(396)][e(358)](),this[e(352)][e(358)]()},{priority:t(434)})}[u(405)](){return this[u(363)]}[u(393)](t){const e=u;return this[e(369)][e(394)](e=>e.id===t)||null}[u(430)](){const t=u;return Array[t(391)](this[t(369)])}[u(378)](){return this[u(409)]}[u(386)](t){this[u(409)]=t}[u(380)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(369)][o(388)];i++)this[o(370)](t,i)&&(n=!0);return n}[u(371)](t,e){const o=u,n=t[o(365)](o(372),{});return t[o(389)](n,e),this[o(363)]=n,n}[u(439)](t){const e=u;if(!this[e(369)][e(388)]||this[e(363)])return;const o=this[e(369)][0][e(429)][e(435)],n=this[e(371)](t,o);for(const o of this[e(369)])o[e(440)][e(387)]||t[e(406)](o[e(440)],n,e(373));this[e(380)](t)}[u(418)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(397)][o(392)](e);if(r[o(388)]&&(this[o(363)]=r[0]),i[o(388)])if(i[o(388)]>1||this[o(363)]&&i[o(422)](t=>t!==this[o(363)])){const e=t[o(365)](o(372),{}),s=[];this[o(363)]&&s[o(349)](this[o(363)]),s[o(349)](...i),t[o(406)](e,s[0],o(410));for(const n of s)t[o(407)](t[o(432)](n),t[o(384)](e,o(373))),t[o(364)](n);this[o(363)]=e,this[o(380)](t),n=!0}else this[o(363)]=i[0];if(s[o(388)]&&o(415)===this[o(363)]?.[o(435)][o(412)]){for(const e of this[o(369)])t[o(364)](e[o(429)]),n=!0;this[o(369)]=[],this[o(363)]=null}return n}[u(433)](t,e){const o=u;let n=!1;const i=this[o(367)][o(413)][o(377)](o(425)),{inserted:s,moved:r}=this[o(352)][o(392)](e);for(const e of[...r,...s]){const s=e[o(375)](o(438)),r=this[o(393)](s);r&&(r[o(440)]=e),p(t,i,e)&&(n=!0)}return n}[u(401)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(396)][o(392)](e);for(const e of i)this[o(350)](t,e)&&(n=!0);for(const e of s)this[o(348)](t,e)&&(n=!0);for(const e of r)this[o(351)](t,e)&&(n=!0);return n}[u(417)](t){const e=u;if(!this[e(363)])return!1;let o=!1;if(this[e(363)][e(347)]!==this[e(369)][e(388)]){const n=[];for(const t of this[e(363)][e(385)]()){const i=t[e(375)](e(438));this[e(393)](i)||(n[e(382)](t),o=!0)}for(const o of n)t[e(364)](o)}const n=new Set,i=[];for(const t of this[e(363)][e(385)]()){const s=t[e(375)](e(438));n[e(419)](s)?(i[e(382)](t),o=!0):n[e(408)](s)}for(const o of i)t[e(364)](o);return this[e(363)][e(347)]||(t[e(364)](this[e(363)]),this[e(363)]=null,o=!0),o}[u(348)](t,e){const o=u;if(this[o(369)][o(394)](t=>t[o(429)]===e))return!1;let n=!1;const i=e[o(375)](o(438)),s=this[o(369)][o(442)](t=>t.id===i);-1!==s&&(t[o(364)](this[o(369)][s][o(429)]),this[o(369)][o(402)](s,1),n=!0);let r=this[o(363)]?function(t,e){const n=o;for(const o of t[n(385)]())if(o[n(375)](n(438))===e)return o;return null}(this[o(363)],i):null;r||(r=t[o(365)](o(361),{footnoteId:i}),this[o(363)]&&(t[o(406)](r,this[o(363)],o(373)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(367)][o(403)],this[o(369)],e);this[o(369)][o(402)](c,0,a);let l=c;return-1!==s&&(l=Math[o(444)](c,s)),this[o(380)](t,l)&&(n=!0),n}[u(350)](t,e){const o=u,n=this[o(369)][o(442)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(369)][n];return o(415)!==s[o(440)][o(435)][o(412)]&&(t[o(364)](s[o(440)]),i=!0),this[o(369)][o(402)](n,1),this[o(380)](t,n)&&(i=!0),i}[u(351)](t,e){const o=u,n=e[o(375)](o(438)),i=this[o(369)][o(442)](t=>t.id===n),s=this[o(369)][i];let r=!1;s[o(429)]=e,this[o(369)][o(402)](i,1);const a=m(this[o(367)][o(403)],this[o(369)],e);return this[o(369)][o(402)](a,0,s),this[o(380)](t,Math[o(444)](i,a))&&(r=!0),r}[u(370)](t,e){const o=u;if(!this[o(363)])return!1;const n=this[o(369)][e];let i;return i=this[o(409)]?this[o(409)]({footnote:n,container:this[o(363)],digits:String(this[o(369)][o(388)])[o(388)],value:e+1}):String(e+1),n[o(429)][o(375)](o(399))!=i&&(t[o(411)](o(399),i,n[o(429)]),!0)}[u(362)](t){const e=u;if(!this[e(363)]||this[e(369)][e(388)]<2)return!1;if(function(t,o){const n=e;if(t[n(388)]!==o[n(388)])return!1;for(let e=0;e<t[n(388)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(369)][e(395)](t=>t.id),Array[e(391)](this[e(363)][e(385)]())[e(395)](t=>t[e(375)](e(438)))))return!1;let o=!1;for(let n=0;n<this[e(369)][e(388)];n++){const i=this[e(369)][n],s=t[e(427)](i[e(440)]),r=t[e(384)](this[e(363)],n);s[e(443)](r)||(t[e(407)](t[e(437)](i[e(440)]),r),o=!0)}return o}[u(436)](t){const e=u;if(!this[e(369)][e(388)])return!1;const{model:o}=this[e(367)];let n=!1;for(let i=0;i<this[e(369)][e(388)]-1;i++){const s=this[e(369)][i],r=this[e(369)][i+1],a=o[e(427)](s[e(429)]),c=o[e(427)](r[e(429)]);e(353)===a[e(428)](c)&&(this[e(351)](t,s[e(429)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(347)])return!1;const i=n(e?374:376);return t[n(406)](t[n(365)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(388)])return 0;const i=t[n(427)](o);for(let o=0;o<e[n(388)];o++){const s=e[o],r=t[n(427)](s[n(429)]);if(n(410)===i[n(428)](r))return o}const s=o[n(435)];let r=-1;for(let t=e[n(388)]-1;t>=0;t--)if(e[t][n(429)][n(435)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(398)][n(420)](),c=a[n(360)](s[n(412)]),l=a[c+1];if(l)for(let t=0;t<e[n(388)];t++)if(e[t][n(429)][n(435)][n(412)]===l)return t;return e[n(388)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=231]})(t,e)}function y(){const t=["28WTmOqd","getFirstRange","model","1044348WnswkN","editor","isObject","get","FootnotesEditing","2562xLmEwZ","_moveSelectionToFootnoteDefinition","3272230GonWOc","document","1052009tvEsbx","getItems","footnoteRef","8IYHROV","string","isBlock","plugins","execute","insertObject","950718qMxTZh","256195nwbxNb","change","checkChild","isEnabled","refresh","length","createElement","test","258XhSrAC","1233180uSaKMD","footnoteId","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","end","selection"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(222518===-parseInt(e(243))/1*(-parseInt(e(258))/2)+-parseInt(e(253))/3+-parseInt(e(250))/4*(-parseInt(e(235))/5)+-parseInt(e(234))/6+-parseInt(e(262))/7*(parseInt(e(265))/8)+-parseInt(e(244))/9+parseInt(e(260))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(239)](){const t=g,e=this[t(254)][t(252)][t(261)][t(249)],o=this[t(246)](e);this[t(238)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(261)],r=this[e(246)](s);if(!r)return;const a=o[e(231)][e(256)](e(257)),c=t?.[e(245)]??(0,i.uid)();!function(t){const o=e;return o(266)==typeof t&&t[o(240)]>0&&!/\s/[o(242)](t)&&!/^\d/[o(242)](t)}(c)?(0,i.logWarning)(e(247)):(n[e(236)](t=>{const o=e,i=t[o(241)](o(264),{footnoteId:c});n[o(233)](i,r,null)}),a[e(259)](c))}[g(246)](t){const e=g,{model:o}=this[e(254)],{schema:n}=o,i=t[e(251)]();for(const t of i[e(263)]())if(n[e(267)](t)||n[e(255)](t))return null;const s=i[e(248)];return n[e(237)](s,e(264))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}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:1770336e3;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(h).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(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=_;function T(){const t=["from","getFirstRange","footnoteInlineContent","createElement","drop","definition","data","footnoteRef","init","getData","88062MGQMpI","3510616dcMCWy","cloneElement","document","135AfUyMh","parse","length","footnoteDefinition","dataTransfer","61119nIbCwZ","create","requires","editing","hasAttribute","getFootnotesDefinitionsObjectElement","footnoteId","includes","listenTo","string","add","_handlePasteFootnotesDefinitions","application/ckeditor5-footnotes","_handleCopyFootnotesDefinitions","outputTransformation","2WfYCiL","contentInsertion","getSelectedBlocks","footnotesDefinitions","config","_defineClipboardIntegration","element","getFootnotes","getAttribute","append","reduce","end","_insertEmptyFootnotesDefinitionsContainer","clipboardInput","content","getChildren","keys","insert","setAttribute","selection","isOfficialPlugin","1051640jKFLmg","getRanges","remove","4761498lzQTCI","footnotes.multiBlock","change","416060UzXLMI","find","editor","method","push","flatMap","550ttxNrv","entries","getFootnote","toView","sourceEditorId","FootnotesClipboard","createRangeIn","8761130dVKAFO","isPremiumPlugin","get","pluginName","toData","root","toModel","stringify","setData","htmlProcessor"];return(T=function(){return t})()}!function(t){const e=_,o=t();for(;;)try{if(803909===parseInt(e(295))/1*(parseInt(e(238))/2)+-parseInt(e(235))/3+parseInt(e(272))/4+-parseInt(e(275))/5*(parseInt(e(271))/6)+parseInt(e(251))/7+-parseInt(e(232))/8+parseInt(e(280))/9*(parseInt(e(244))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class D extends t.Plugin{static get[A(254)](){return A(249)}static get[A(282)](){return[v,S.ClipboardPipeline]}static get[A(231)](){return!0}static get[A(252)](){return!0}[A(269)](){this[A(216)]()}[A(216)](){const t=A;this[t(293)](),this[t(291)]()}[A(293)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(253)](S.ClipboardPipeline),s=o[t(253)](h);this[t(288)](i,t(294),(o,i)=>{const r=t,a=V(n[r(250)](i[r(225)]));if(!a[r(277)])return;const c=s[r(218)](),l=a[r(221)]((t,o)=>{const n=r,i=c[n(239)](t=>t.id===o);if(i){const o=e[n(267)][n(247)](i[n(266)],{isClipboardPipeline:!0}),s=e[n(267)][n(260)][n(255)](o);t[i.id]=s}return t},Object[r(281)](null));i[r(279)][r(259)](r(292),JSON[r(258)](l))})}[A(291)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(283)],r=n[t(253)](S.ClipboardPipeline),a=n[t(253)](h),c=e[t(215)][t(253)](t(236));let l=null;this[t(288)](s[t(274)],t(224),(e,o)=>{const n=t,i=o[n(279)][n(270)](n(292));l=i?JSON[n(276)](i):null}),this[t(288)](r,t(296),(n,s)=>{const r=t,u=s[r(248)]===this[r(240)].id;u&&r(265)===s[r(241)]||o[r(237)](t=>{const n=r;let f=a[n(285)]();const d=!!f&&Array[n(261)](o[n(274)][n(230)][n(213)]())[n(287)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(217),e(268)))return!0;return!1}(o[n(250)](s[n(225)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(281)](null);for(const e of i[o(226)]())e.is(o(217),o(278))&&e[o(284)](o(286))&&(s[e[o(219)](o(286))]=t[o(273)](e,!0));return Object[o(227)](s)[o(277)]?s:null}(t,s[n(225)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(250)](e))n.is(o(217),o(214))&&i[o(242)](n);for(const e of i)t[o(234)](e)}(t,s[n(225)]),!l)return;const{selection:h}=o[n(274)],p=h[n(262)]()[n(256)];f&&!d||(f=L(t,s[n(225)]),f||=a[n(223)](t,p));const m=Array[n(261)](h[n(233)]())[n(243)](V),g=function(t,e,o){const s=n,r=Object[s(281)](null);for(const{item:n}of t[s(250)](e))if(n.is(s(217),s(268))){const e=n[s(219)](s(286));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(229)](s(286),r[e],n)}return r}(t,s[n(225)],t=>{const e=n;return!u||!!a[e(246)](t)&&!m[e(287)](t)});for(const[o,i]of Object[n(245)](l)){const s=g[o]||o;let r;if(n(289)!=typeof i)r=i,s!==o&&t[n(229)](n(286),s,r);else{r=t[n(264)](n(278),{footnoteId:s});const o=e[n(267)][n(260)][n(247)](i);let a;if(c)a=e[n(267)][n(257)](o,r);else{a=t[n(264)](n(263));const i=e[n(267)][n(257)](o,a);t[n(228)](i,a)}t[n(220)](a,r)}t[n(228)](r,f,n(222))}l=null})})}}function _(t,e){const o=T();return(_=function(t,e){return o[t-=213]})(t,e)}function L(t,e){const o=A;for(const{item:n}of t[o(250)](e))if(n.is(o(217),o(214)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(217),e(268))&&o[e(290)](n[e(219)](e(286)));return Array[e(261)](o)}var O=o(311),N=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),W=o.n(B),z=o(123),U=o.n(z),H=o(741),J=o.n(H),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=U(),X.insert=W().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=J();K()(q.A,X);q.A&&q.A.locals&&q.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",$(t,O.ButtonView)),e.add("menuBar:insertFootnote",$(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 $(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function G(){var t=["2992179xzogJl","pluginName","941656yighcF","19416cdaKkH","7797JngeGK","14180Arsyzj","164oJOsbC","requires","538648MAsYLJ","2581040pQAIDI","isOfficialPlugin","isPremiumPlugin","1535EzlPEw","Footnotes","45bBADKM"];return(G=function(){return t})()}function Q(t,e){var o=G();return(Q=function(t,e){return o[t-=207]})(t,e)}var Y=Q;!function(t){for(var e=Q,o=t();;)try{if(752556===parseInt(e(210))/1*(parseInt(e(212))/2)+parseInt(e(221))/3+-parseInt(e(214))/4+-parseInt(e(218))/5*(parseInt(e(209))/6)+parseInt(e(215))/7+-parseInt(e(208))/8+-parseInt(e(220))/9*(parseInt(e(211))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(G);class tt extends t.Plugin{static get[Y(207)](){return Y(219)}static get[Y(213)](){return[v,D,Z]}static get[Y(216)](){return!0}static get[Y(217)](){return!0}}const et=nt;function ot(){const t=["decimal","upper-roman","upper-alpha","1580872VFWEqv","1PUXYVv","lower-alpha","decimal-leading-zero","733415MYPNbt","9ejFvhp","890910YuVCAN","74978xUgZbe","lower-latin","13816Pmyvnp","1501356Kzioas","7JrPXuK","lower-roman","1059660dsHOYU","upper-latin"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(138017===parseInt(e(123))/1*(parseInt(e(129))/2)+-parseInt(e(127))/3*(parseInt(e(131))/4)+-parseInt(e(126))/5+parseInt(e(132))/6+parseInt(e(133))/7*(-parseInt(e(122))/8)+parseInt(e(128))/9+parseInt(e(135))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(137),et(125),et(130),et(136),et(124),et(121),et(134),et(138)],st=at;function rt(){const t=["18XDEHNX","_updateFootnotesCounters","includes","getFootnotesDefinitionsObjectElement","1830731sVJjWp","footnotesListStyle","8hMRqSH","3790dqPVJD","model","65945eLJVyI","plugins","3601148tBguRz","value","2678135WnbeVb","execute","get","change","setAttribute","getAttribute","isEnabled","11730wxtqkp","1667YUFbob","726kiIJuW","refresh","4653729uXWiTF"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=378]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(502498===-parseInt(e(385))/1*(parseInt(e(386))/2)+parseInt(e(384))/3+-parseInt(e(400))/4+-parseInt(e(402))/5+-parseInt(e(389))/6*(-parseInt(e(393))/7)+-parseInt(e(395))/8*(parseInt(e(388))/9)+-parseInt(e(396))/10*(-parseInt(e(398))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(387)](){const t=st,{editor:e}=this,o=e[t(399)][t(379)](h)[t(392)]();this[t(383)]=!!o,this[t(401)]=o?.[t(382)](t(394))??null}[st(378)]({value:t}){const e=st,{editor:o}=this,n=o[e(399)][e(379)](h),i=n[e(392)]();i&&it[e(391)](t)&&o[e(397)][e(380)](o=>{const s=e;o[s(381)](s(394),t,i),n[s(390)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=269]})(t,e)}function ft(){const t=["1683597nJVHVI","isInteger","7834233sqJTht","footnotesListStart","get","2FAQObU","refresh","285hTcLPH","851170cZyiZh","_updateFootnotesCounters","10BRlAvb","plugins","24PLzVIr","getAttribute","getFootnotesDefinitionsObjectElement","5769342FLvIrm","setAttribute","model","execute","124040giLejp","value","7mqNEOE","3429924esobyi","isEnabled","change","49116eBnaSj"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(540331===-parseInt(e(283))/1+-parseInt(e(280))/2*(parseInt(e(275))/3)+parseInt(e(274))/4*(-parseInt(e(282))/5)+parseInt(e(271))/6+-parseInt(e(270))/7*(-parseInt(e(294))/8)+-parseInt(e(290))/9*(-parseInt(e(285))/10)+-parseInt(e(277))/11*(-parseInt(e(287))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(281)](){const t=lt,{editor:e}=this,o=e[t(286)][t(279)](h)[t(289)]();this[t(272)]=!!o,this[t(269)]=o?.[t(288)](t(278))??null}[lt(293)]({value:t}){const e=lt,{editor:o}=this,n=o[e(286)][e(279)](h),i=n[e(289)]();i&&Number[e(276)](t)&&o[e(292)][e(273)](o=>{const s=e;o[s(291)](s(278),t,i),n[s(284)](o)})}}const ht=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=139]})(t,e)}function mt(){const t=["822fbPdJk","225168ASVhtS","footnotesStart","footnotesDefinitions","floor","FootnotesPropertiesEditing","footnotes.footnotesProperties.defaultStartIndex","add","329364odfZex","editor","from","decimal-leading-zero","find","insert","upper-roman","writer","$text","fromCharCode","_getDefaultListStyle","setFootnoteFormatter","lower-roman","getItems","differ","mapper","upper-alpha","footnotesStyle","384WVaSIP","nodeAfter","_defineFormatter","decimal","for","isNaN","isOfficialPlugin","config","getStyle","toLowerCase","_defineSchema","plugins","commands","removeStyle","_getDefaultStartIndex","614560LmIKQb","requires","list-style-type","footnotesListStyle","checkAttribute","footnotesListStart","padStart","lower-latin","toUpperCase","schema","define","toViewElement","type","consumable","start","hasAttribute","_definePostfixer","viewItem","_updateFootnotesCounters","upcast","model","downcast","hasClass","element:ol","attribute:footnotesListStyle:footnotesDefinitions","getChildren","footnotes-list","pluginName","modelCursor","get","1308084vttIVJ","190334dNpdhc","name","removeAttribute","parent","element","consume","attribute:footnotesListStart:footnotesDefinitions","setStyle","extend","footnotes.footnotesProperties.defaultListStyle","item","_defineConverters","max","document","2082336noJzFt","registerPostFixer","parseInt","createRangeOn","getAttribute","_formatFootnoteListValue","position","isPremiumPlugin","init","setAttribute","getChanges","upper-latin","lower-alpha"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(148928===parseInt(e(199))/1+parseInt(e(227))/2+-parseInt(e(226))/3*(parseInt(e(153))/4)+-parseInt(e(168))/5+-parseInt(e(198))/6+-parseInt(e(234))/7+parseInt(e(213))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(195)](){return ht(231)}static get[ht(169)](){return[v,h]}static get[ht(159)](){return!0}static get[ht(220)](){return!0}[ht(221)](){const t=ht,{editor:e}=this;e[t(160)][t(178)](t(208),t(156)),e[t(160)][t(178)](t(232),1),e[t(165)][t(233)](t(152),new ct(e)),e[t(165)][t(233)](t(228),new dt(e)),this[t(163)](),this[t(210)](),this[t(155)](),this[t(184)]()}[ht(163)](){const t=ht,{editor:e}=this,{schema:o}=e[t(188)];o[t(207)](t(229),{allowAttributes:[t(171),t(173)]})}[ht(210)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(157)](t(187))[t(233)](e=>{const o=t;e.on(o(191),(t,e,n)=>{const s=o,r=e[s(185)],a=e[s(196)]?.[s(202)];r[s(190)](s(194))&&a?.is(s(203),s(229))&&(function(t,e,o,n){const i=s;if(!n[i(172)](e,i(173)))return;let r=1;const a=o[i(181)][i(204)](t,{attributes:i(182)});if(a){const e=Number[i(215)](t[i(217)](i(182)),10);Number[i(158)](e)||(r=e)}!a&&e[i(183)](i(173))||o[i(142)][i(222)](i(173),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(172)](e,i(171)))return;let r=i(156),a=!1;if(o[i(181)][i(204)](t,{attributes:i(180)})){const e={1:i(156),a:i(225),A:i(151),i:i(147),I:i(141)}[t[i(217)](i(180))];e&&(r=e),a=!0}o[i(181)][i(204)](t,{styles:i(170)})&&(r=function(t){const e=i;switch(t){case e(225):return e(175);case e(151):return e(224);default:return t}}(t[i(161)](i(170))),a=!0),!a&&e[i(183)](i(171))||o[i(142)][i(222)](i(171),r,e)}(r,a,n,i))})}),o[t(157)](t(189))[t(233)](e=>{const o=t;e.on(o(205),(t,e,n)=>{const i=o;if(!n[i(181)][i(204)](e[i(209)],t[i(200)]))return;const s=wt(e[i(209)],n[i(150)]),{attributeNewValue:r}=e;null==r||1===r?n[i(142)][i(201)](i(182),s):n[i(142)][i(222)](i(182),String(r),s)}),e.on(o(192),(t,e,n)=>{const i=o;if(!n[i(181)][i(204)](e[i(209)],t[i(200)]))return;const s=wt(e[i(209)],n[i(150)]),{attributeNewValue:r}=e;r&&i(156)!==r?n[i(142)][i(206)](i(170),r,s):n[i(142)][i(166)](i(170),s)})})}[ht(184)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(164)][t(197)](h),i=this[t(145)](),s=this[t(167)]();o[t(212)][t(214)](e=>{const r=t,a=o[r(212)][r(149)][r(223)]();let c=!1;for(const t of a){if(r(140)!==t[r(180)]||r(143)===t[r(200)])continue;const n=o[r(216)](t[r(219)][r(154)]);for(const t of n[r(148)]())t.is(r(203),r(229))&&(!t[r(183)](r(173))&&o[r(177)][r(172)](t,r(173))&&(e[r(222)](r(173),s,t),c=!0),!t[r(183)](r(171))&&o[r(177)][r(172)](t,r(171))&&(e[r(222)](r(171),i,t),c=!0))}return c&&n[r(186)](e),c})}[ht(155)](){const t=ht,{editor:e}=this;e[t(164)][t(197)](h)[t(146)](e=>this[t(218)](e))}[ht(145)](){const t=ht;return this[t(235)][t(160)][t(197)](t(208))}[ht(167)](){const t=ht;return this[t(235)][t(160)][t(197)](t(232))}[ht(218)]({container:t,value:e,digits:o}){const n=ht,i=t[n(217)](n(171)),s=t[n(217)](n(173)),r=Math[n(230)](e)+(s??1)-1;switch(i){case n(237):return function(t,e){const o=n;return String(t)[o(174)](e,"0")}(r,Math[n(211)](2,o));case n(225):case n(175):return yt(r,!1);case n(151):case n(224):return yt(r,!0);case n(147):return vt(r,!1);case n(141):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(179)](t);return Array[o(236)](n[o(193)]())[o(139)](t=>t.is(o(203),"ol")&&t[o(190)](o(194)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(144)](97+t)+n,i=Math[o(230)]((i-1)/26)}return e?n[o(176)]():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=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(162)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=U(),Ct.insert=W().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=Pt();return(Et=function(t,e){return o[t-=482]})(t,e)}function Pt(){var t=["4079202yEgyZO","853954lObkzJ","FootnotesProperties","requires","4suuEvv","67878EXOIII","3540222fJHeud","6347637nSCuHW","isOfficialPlugin","718781NtXPfx","24mZtWlW","pluginName","isPremiumPlugin","2164715tNgdCc"];return(Pt=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(385683===-parseInt(e(482))/1+-parseInt(e(488))/2+-parseInt(e(492))/3*(-parseInt(e(491))/4)+-parseInt(e(486))/5+-parseInt(e(487))/6+parseInt(e(493))/7+-parseInt(e(483))/8*(-parseInt(e(494))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt);class St extends t.Plugin{static get[xt(484)](){return xt(489)}static get[xt(490)](){return[gt,Ft]}static get[xt(495)](){return!0}static get[xt(485)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=461]})(t,e)}function Tt(){var t=["2766LLJekH","948BfXGPk","4563475gWhVBp","31185FJrpND","9yyxwUy","5450056gdFFQZ","107585cJpWDQ","6772340iQLeTe","83582lhDmoJ","174qkepOP","6408NPvPZB","2ARxxXh"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(485427===-parseInt(e(462))/1*(-parseInt(e(471))/2)+-parseInt(e(463))/3*(-parseInt(e(464))/4)+parseInt(e(469))/5*(-parseInt(e(472))/6)+parseInt(e(465))/7+-parseInt(e(468))/8+-parseInt(e(467))/9*(parseInt(e(470))/10)+-parseInt(e(466))/11*(-parseInt(e(461))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["4vPaHqx","values","$graveyard","$text","push","createRangeOn","root","length","128177YjAxKI","flat","nodeAfter","add","rootName","_getElementKey","reset","18dTXtgz","delete","_elementName","get","from","getItems","insert","remove","_model","862023htXSMC","name","8xemtgq","7619967gxFZWg","6513130pOWlZH","_trackedElements","slice","getElementKey","has","element","getChanges","set","attributes","type","40444unQdIa","clear","elementName","7919160zxStvK","position","1896770GyRjqS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=327]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(677454===-parseInt(e(336))/1*(parseInt(e(330))/2)+parseInt(e(360))/3*(parseInt(e(362))/4)+-parseInt(e(335))/5+-parseInt(e(351))/6*(-parseInt(e(344))/7)+-parseInt(e(333))/8+parseInt(e(363))/9+parseInt(e(364))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(359)];[a(353)];[a(349)];[a(365)]=new Map;constructor(t,e){const o=a;this[o(359)]=t,this[o(353)]=e[o(332)],this[o(349)]=e[o(367)]}[a(350)](){const t=a;this[t(365)][t(331)]()}[a(370)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(357)===i[e(329)]&&e(339)!==i[e(361)]&&i[e(334)][e(346)]){const t=this[e(359)][e(341)](i[e(334)][e(346)]);for(const o of t[e(356)]()){if(!o.is(e(369),this[e(353)]))continue;const t=this[e(349)](o);n[e(368)](t)||n[e(327)](t,[]),n[e(354)](t)[e(340)](o)}}if(e(358)===i[e(329)]&&i[e(361)]===this[e(353)]){const t=this[e(349)]({getAttribute:t=>i[e(328)][e(354)](t)});o[e(347)](t)}}for(const[t,n]of this[e(365)])e(338)===n[e(342)][e(348)]&&o[e(347)](t);for(const t of o)this[e(365)][e(352)](t);for(const[t,o]of n)this[e(365)][e(327)](t,o[o[e(343)]-1]);const i=new Set;for(const[t,s]of n)o[e(368)](t)&&(i[e(347)](s[0]),s[e(343)]>1?n[e(327)](t,s[e(366)](1)):n[e(352)](t),o[e(352)](t));return{removed:Array[e(355)](o),inserted:Array[e(355)](n[e(337)]())[e(345)](),moved:Array[e(355)](i)}}}const f=u;function u(t,e){const o=h();return(u=function(t,e){return o[t-=266]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(938390===-parseInt(e(330))/1*(-parseInt(e(355))/2)+-parseInt(e(305))/3*(-parseInt(e(349))/4)+-parseInt(e(321))/5*(-parseInt(e(288))/6)+parseInt(e(314))/7*(-parseInt(e(273))/8)+-parseInt(e(310))/9+parseInt(e(275))/10+parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(346)]=[];[f(318)]=null;[f(301)]=null;[f(359)];[f(328)];[f(322)];static get[f(353)](){return f(274)}static get[f(327)](){return!0}static get[f(267)](){return!0}constructor(t){const e=f;super(t),this[e(359)]=new l(this[e(354)][e(287)],{elementName:e(339),getElementKey:()=>e(331)}),this[e(328)]=new l(this[e(354)][e(287)],{elementName:e(298),getElementKey:t=>t[e(292)](e(365))}),this[e(322)]=new l(this[e(354)][e(287)],{elementName:e(311),getElementKey:t=>t[e(292)](e(365))})}[f(340)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(323)][t(338)](e=>{const n=t,i=o[n(323)][n(308)][n(364)]();let s=!1;return this[n(334)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(294)](e,i)&&(s=!0),this[n(367)](e)&&(s=!0),this[n(313)](e)&&(s=!0),this[n(347)](e)&&(s=!0),s}),this[t(337)](o[t(323)],t(293),()=>{const e=t;o[e(362)]({isUndoable:!1},t=>{this[e(363)](t)})},{priority:t(317)}),this[t(337)](n,t(352),()=>{const e=t;this[e(346)]=[],this[e(359)][e(295)](),this[e(328)][e(295)](),this[e(322)][e(295)]()},{priority:t(285)})}[f(325)](){return this[f(318)]}[f(319)](t){const e=f;return this[e(346)][e(348)](e=>e.id===t)||null}[f(304)](){const t=f;return Array[t(300)](this[t(346)])}[f(283)](){return this[f(301)]}[f(315)](t){this[f(301)]=t}[f(279)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(346)][o(271)];i++)this[o(280)](t,i)&&(n=!0);return n}[f(366)](t,e){const o=f,n=t[o(345)](o(339),{});return t[o(361)](n,e),this[o(318)]=n,n}[f(363)](t){const e=f;if(!this[e(346)][e(271)]||this[e(318)])return;const o=this[e(346)][0][e(299)][e(357)],n=this[e(366)](t,o);for(const o of this[e(346)])o[e(316)][e(309)]||t[e(326)](o[e(316)],n,e(329));this[e(279)](t)}[f(334)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(364)](e);if(r[o(271)]&&(this[o(318)]=r[0]),i[o(271)])if(i[o(271)]>1||this[o(318)]&&i[o(289)](t=>t!==this[o(318)])){const e=t[o(345)](o(339),{}),s=[];this[o(318)]&&s[o(343)](this[o(318)]),s[o(343)](...i),t[o(326)](e,s[0],o(336));for(const n of s)t[o(276)](t[o(333)](n),t[o(282)](e,o(329))),t[o(342)](n);this[o(318)]=e,this[o(279)](t),n=!0}else this[o(318)]=i[0];if(s[o(271)]&&o(320)===this[o(318)]?.[o(357)][o(269)]){for(const e of this[o(346)])t[o(342)](e[o(299)]),n=!0;this[o(346)]=[],this[o(318)]=null}return n}[f(344)](t,e){const o=f;let n=!1;const i=this[o(354)][o(350)][o(312)](o(358)),{inserted:s,moved:r}=this[o(322)][o(364)](e);for(const e of[...r,...s]){const s=e[o(292)](o(365)),r=this[o(319)](s);r&&(r[o(316)]=e),p(t,i,e)&&(n=!0)}return n}[f(294)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(328)][o(364)](e);for(const e of i)this[o(302)](t,e)&&(n=!0);for(const e of s)this[o(332)](t,e)&&(n=!0);for(const e of r)this[o(303)](t,e)&&(n=!0);return n}[f(313)](t){const e=f;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(360)]!==this[e(346)][e(271)]){const n=[];for(const t of this[e(318)][e(341)]()){const i=t[e(292)](e(365));this[e(319)](i)||(n[e(286)](t),o=!0)}for(const o of n)t[e(342)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(341)]()){const s=t[e(292)](e(365));n[e(270)](s)?(i[e(286)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(342)](o);return this[e(318)][e(360)]||(t[e(342)](this[e(318)]),this[e(318)]=null,o=!0),o}[f(332)](t,e){const o=f;if(this[o(346)][o(348)](t=>t[o(299)]===e))return!1;let n=!1;const i=e[o(292)](o(365)),s=this[o(346)][o(272)](t=>t.id===i);-1!==s&&(t[o(342)](this[o(346)][s][o(299)]),this[o(346)][o(296)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(292)](n(365))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(311),{footnoteId:i}),this[o(318)]&&(t[o(326)](r,this[o(318)],o(329)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(354)][o(287)],this[o(346)],e);this[o(346)][o(296)](c,0,a);let l=c;return-1!==s&&(l=Math[o(351)](c,s)),this[o(279)](t,l)&&(n=!0),n}[f(302)](t,e){const o=f,n=this[o(346)][o(272)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(346)][n];return o(320)!==s[o(316)][o(357)][o(269)]&&(t[o(342)](s[o(316)]),i=!0),this[o(346)][o(296)](n,1),this[o(279)](t,n)&&(i=!0),i}[f(303)](t,e){const o=f,n=e[o(292)](o(365)),i=this[o(346)][o(272)](t=>t.id===n),s=this[o(346)][i];let r=!1;s[o(299)]=e,this[o(346)][o(296)](i,1);const a=m(this[o(354)][o(287)],this[o(346)],e);return this[o(346)][o(296)](a,0,s),this[o(279)](t,Math[o(351)](i,a))&&(r=!0),r}[f(280)](t,e){const o=f;if(!this[o(318)])return!1;const n=this[o(346)][e];let i;return i=this[o(301)]?this[o(301)]({footnote:n,container:this[o(318)],digits:String(this[o(346)][o(271)])[o(271)],value:e+1}):String(e+1),n[o(299)][o(292)](o(297))!=i&&(t[o(306)](o(297),i,n[o(299)]),!0)}[f(347)](t){const e=f;if(!this[e(318)]||this[e(346)][e(271)]<2)return!1;if(function(t,o){const n=e;if(t[n(271)]!==o[n(271)])return!1;for(let e=0;e<t[n(271)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(346)][e(335)](t=>t.id),Array[e(300)](this[e(318)][e(341)]())[e(335)](t=>t[e(292)](e(365)))))return!1;let o=!1;for(let n=0;n<this[e(346)][e(271)];n++){const i=this[e(346)][n],s=t[e(324)](i[e(316)]),r=t[e(282)](this[e(318)],n);s[e(290)](r)||(t[e(276)](t[e(291)](i[e(316)]),r),o=!0)}return o}[f(367)](t){const e=f;if(!this[e(346)][e(271)])return!1;const{model:o}=this[e(354)];let n=!1;for(let i=0;i<this[e(346)][e(271)]-1;i++){const s=this[e(346)][i],r=this[e(346)][i+1],a=o[e(324)](s[e(299)]),c=o[e(324)](r[e(299)]);e(284)===a[e(268)](c)&&(this[e(303)](t,s[e(299)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(360)])return!1;const i=n(e?281:307);return t[n(326)](t[n(345)](i),o),!0}function h(){const t=["footnotes.multiBlock","_footnoteDefsContainerTracker","childCount","append","enqueueChange","_ensureFootnotesDefinitionsContainerExists","getChanges","footnoteId","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","5098654gDUpEP","isPremiumPlugin","compareWith","rootName","has","length","findIndex","56FQDtwF","FootnotesTracker","3904940PNpzrd","move","getRootNames","indexOf","_updateFootnotesCounters","_updateFootnoteRefCounter","paragraph","createPositionAt","getFootnotesFormatter","after","high","unshift","model","6AYuhSV","some","isEqual","createRangeOn","getAttribute","change:data","_handleFootnoteReferencesChanges","reset","splice","footnoteCounter","footnoteRef","reference","from","_footnoteFormatter","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","getFootnotes","1250655AylzvG","setAttribute","footnoteInlineContent","differ","parent","4856841NhHSIl","footnoteDefinition","get","_handleFootnotesDefinitionsObjectSync","1754312JMYfel","setFootnoteFormatter","definition","low","_footnotesDefinitions","getFootnote","$graveyard","5090270xWNWzf","_footnoteDefsTracker","document","createPositionBefore","getFootnotesDefinitionsObjectElement","insert","isOfficialPlugin","_footnoteRefsTracker","end","7831ocLVpN","singleton","_handleInsertedFootnoteReference","createRangeIn","_handleFootnotesDefinitionsObjectChanges","map","before","listenTo","registerPostFixer","footnotesDefinitions","init","getChildren","remove","push","_handleFootnoteDefinitionsChanges","createElement","_footnotes","_sortFootnoteDefinitions","find","12ymrYFj","config","min","set","pluginName","editor","28DCnFFb","add","root"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(271)])return 0;const i=t[n(324)](o);for(let o=0;o<e[n(271)];o++){const s=e[o],r=t[n(324)](s[n(299)]);if(n(336)===i[n(268)](r))return o}const s=o[n(357)];let r=-1;for(let t=e[n(271)]-1;t>=0;t--)if(e[t][n(299)][n(357)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(323)][n(277)](),c=a[n(278)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(271)];t++)if(e[t][n(299)][n(357)][n(269)]===l)return t;return e[n(271)]}const g=y;function w(){const t=["getFirstRange","selection","_getPositionToInsertFootnote","plugins","4085904BkUuHJ","change","isBlock","model","22PMLnNx","string","_moveSelectionToFootnoteDefinition","insertObject","3611090cPtzEv","test","3052044oxMTuY","418292OEjLTg","get","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","getItems","createElement","footnoteRef","execute","editor","document","isObject","end","length","refresh","7HQcuTT","checkChild","footnoteId","153WKfwJp","11759124JlDPDJ","6362EefJDA","isEnabled","15mJDdSe","960145UZsPeq","12zttFzf"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=294]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(401005===-parseInt(e(329))/1*(parseInt(e(331))/2)+-parseInt(e(294))/3*(-parseInt(e(312))/4)+parseInt(e(295))/5*(-parseInt(e(296))/6)+parseInt(e(326))/7*(-parseInt(e(301))/8)+-parseInt(e(311))/9+-parseInt(e(309))/10+-parseInt(e(305))/11*(-parseInt(e(330))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(325)](){const t=g,e=this[t(320)][t(304)][t(321)][t(298)],o=this[t(299)](e);this[t(332)]=!!o}[g(319)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(321)],r=this[e(299)](s);if(!r)return;const a=o[e(300)][e(313)](e(314)),c=t?.[e(328)]??(0,i.uid)();!function(t){const o=e;return o(306)==typeof t&&t[o(324)]>0&&!/\s/[o(310)](t)&&!/^\d/[o(310)](t)}(c)?(0,i.logWarning)(e(315)):(n[e(302)](t=>{const o=e,i=t[o(317)](o(318),{footnoteId:c});n[o(308)](i,r,null)}),a[e(307)](c))}[g(299)](t){const e=g,{model:o}=this[e(320)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(316)]())if(n[e(303)](t)||n[e(322)](t))return null;const s=i[e(323)];return n[e(327)](s,e(318))?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=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 f(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 u(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])],f(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])?u(f(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])+u(f(t)),n=d(u(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])+u(f(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:1770508800;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=D;function T(){const t=["drop","listenTo","footnotesDefinitions","FootnotesClipboard","setAttribute","toData","_defineClipboardIntegration","push","clipboardInput","isOfficialPlugin","pluginName","8rqzslh","_insertEmptyFootnotesDefinitionsContainer","3nJwkts","113260DMsZQS","getFootnote","createElement","_handlePasteFootnotesDefinitions","insert","keys","reduce","toModel","flatMap","requires","element","footnoteId","getRanges","entries","getSelectedBlocks","isPremiumPlugin","3188ttcpdC","document","create","remove","76577hrTbUQ","footnotes.multiBlock","getFootnotes","hasAttribute","get","334146OEqtuD","2393586yzvBkm","end","data","string","cloneElement","length","root","selection","footnoteInlineContent","method","_handleCopyFootnotesDefinitions","getChildren","getAttribute","htmlProcessor","createRangeIn","footnoteRef","59283UrTAjS","config","dataTransfer","parse","toView","outputTransformation","stringify","396994QVYpOu","getFirstRange","getFootnotesDefinitionsObjectElement","includes","application/ckeditor5-footnotes","sourceEditorId","editing","change","definition","editor","from","append","setData","contentInsertion","find","footnoteDefinition","init","content","add","getData"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(103323===parseInt(e(198))/1+parseInt(e(144))/2*(-parseInt(e(177))/3)+parseInt(e(194))/4+parseInt(e(178))/5+-parseInt(e(120))/6+-parseInt(e(137))/7+parseInt(e(175))/8*(parseInt(e(121))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(174)](){return A(167)}static get[A(187)](){return[v,P.ClipboardPipeline]}static get[A(173)](){return!0}static get[A(193)](){return!0}[A(160)](){this[A(170)]()}[A(170)](){const t=A;this[t(131)](),this[t(181)]()}[A(131)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(119)](P.ClipboardPipeline),s=o[t(119)](d);this[t(165)](i,t(142),(o,i)=>{const r=t,a=N(n[r(135)](i[r(161)]));if(!a[r(126)])return;const c=s[r(117)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(158)](t=>t.id===o);if(i){const o=e[n(123)][n(141)](i[n(152)],{isClipboardPipeline:!0}),s=e[n(123)][n(134)][n(169)](o);t[i.id]=s}return t},Object[r(196)](null));i[r(139)][r(156)](r(148),JSON[r(143)](l))})}[A(181)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(119)](P.ClipboardPipeline),a=n[t(119)](d),c=e[t(138)][t(119)](t(116));let l=null;this[t(165)](s[t(195)],t(172),(e,o)=>{const n=t,i=o[n(139)][n(163)](n(148));l=i?JSON[n(140)](i):null}),this[t(165)](r,t(157),(n,s)=>{const r=t,f=s[r(149)]===this[r(153)].id;f&&r(164)===s[r(130)]||o[r(151)](t=>{const n=r;let u=a[n(146)]();const d=!!u&&Array[n(154)](o[n(195)][n(128)][n(192)]())[n(147)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(188),e(136)))return!0;return!1}(o[n(135)](s[n(161)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(196)](null);for(const e of i[o(132)]())e.is(o(188),o(159))&&e[o(118)](o(189))&&(s[e[o(133)](o(189))]=t[o(125)](e,!0));return Object[o(183)](s)[o(126)]?s:null}(t,s[n(161)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(135)](e))n.is(o(188),o(166))&&i[o(171)](n);for(const e of i)t[o(197)](e)}(t,s[n(161)]),!l)return;const{selection:p}=o[n(195)],h=p[n(145)]()[n(127)];u&&!d||(u=L(t,s[n(161)]),u||=a[n(176)](t,h));const m=Array[n(154)](p[n(190)]())[n(186)](N),g=function(t,e,o){const s=n,r=Object[s(196)](null);for(const{item:n}of t[s(135)](e))if(n.is(s(188),s(136))){const e=n[s(133)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(168)](s(189),r[e],n)}return r}(t,s[n(161)],t=>{const e=n;return!f||!!a[e(179)](t)&&!m[e(147)](t)});for(const[o,i]of Object[n(191)](l)){const s=g[o]||o;let r;if(n(124)!=typeof i)r=i,s!==o&&t[n(168)](n(189),s,r);else{r=t[n(180)](n(159),{footnoteId:s});const o=e[n(123)][n(134)][n(141)](i);let a;if(c)a=e[n(123)][n(185)](o,r);else{a=t[n(180)](n(129));const i=e[n(123)][n(185)](o,a);t[n(182)](i,a)}t[n(155)](a,r)}t[n(182)](r,u,n(122))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(135)](e))if(n.is(o(188),o(166)))return n;return null}function N(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(188),e(136))&&o[e(162)](n[e(133)](e(189)));return Array[e(154)](o)}var V=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),z=o(102),U=o.n(z),B=o(123),W=o.n(B),q=o(741),H=o.n(q),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=H();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 V.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 Q=$;function Y(){var t=["pluginName","7aszOkN","1635GfwsrH","210325nFoRPy","isPremiumPlugin","requires","Footnotes","2792UTOJCP","isOfficialPlugin","3087165NTVoGs","519446fqSQyz","16456581QJglMA","3767728AtvzqU","6187938rXIqNW"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=143]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(612641===-parseInt(e(145))/1+parseInt(e(152))/2+parseInt(e(144))/3*(-parseInt(e(149))/4)+parseInt(e(151))/5+-parseInt(e(155))/6+parseInt(e(143))/7*(-parseInt(e(154))/8)+parseInt(e(153))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(156)](){return Q(148)}static get[Q(147)](){return[v,_,G]}static get[Q(150)](){return!0}static get[Q(146)](){return!0}}const et=nt;function ot(){const t=["879750qIgpSk","lower-alpha","decimal-leading-zero","48587UxEWqM","upper-alpha","lower-latin","14936896vCZbdw","1394225NZsYXn","lower-roman","25369479Zujubs","726dxMMaZ","decimal","upper-latin","60fPlFSd","1206282YdlRJI","493340eQZOnD","upper-roman"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=284]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(980984===-parseInt(e(287))/1+-parseInt(e(294))/2+-parseInt(e(297))/3+-parseInt(e(293))/4*(-parseInt(e(295))/5)+-parseInt(e(290))/6*(-parseInt(e(300))/7)+-parseInt(e(286))/8+parseInt(e(289))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(291),et(299),et(285),et(292),et(298),et(284),et(288),et(296)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=445]})(t,e)}function at(){const t=["1072220ywNSZH","16wxwvjE","refresh","1069750omPqCf","18owGpNl","7307649viishP","setAttribute","includes","plugins","execute","12vUmzYw","value","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","5593fYpcFD","model","27802905mTyapp","isEnabled","change","get","8sGgEAR","178046bAzEGi","getAttribute","55FPWrrR","4518575hFMdXQ","6654aMetUj","footnotesListStyle"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(889594===parseInt(e(464))/1*(-parseInt(e(463))/2)+parseInt(e(447))/3*(-parseInt(e(470))/4)+-parseInt(e(467))/5+parseInt(e(468))/6*(parseInt(e(457))/7)+parseInt(e(471))/8*(parseInt(e(448))/9)+parseInt(e(446))/10*(-parseInt(e(466))/11)+parseInt(e(453))/12*(parseInt(e(459))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(445)](){const t=st,{editor:e}=this,o=e[t(451)][t(462)](d)[t(456)]();this[t(460)]=!!o,this[t(454)]=o?.[t(465)](t(469))??null}[st(452)]({value:t}){const e=st,{editor:o}=this,n=o[e(451)][e(462)](d),i=n[e(456)]();i&&it[e(450)](t)&&o[e(458)][e(461)](o=>{const s=e;o[s(449)](s(469),t,i),n[s(455)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=442]})(t,e)}const ft=lt;function ut(){const t=["3310535UJRxzw","refresh","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","getAttribute","4157598RUlrSp","isEnabled","3856664Aavbtm","2mFzGXA","4sARyam","execute","975060SVBmbt","get","value","5443352qgWZgf","change","isInteger","21103956nrXskw","footnotesListStart","model","plugins","setAttribute","2162703zrbBYD"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(488630===parseInt(e(444))/1*(-parseInt(e(464))/2)+-parseInt(e(455))/3+parseInt(e(442))/4*(parseInt(e(456))/5)+-parseInt(e(461))/6+parseInt(e(463))/7+-parseInt(e(447))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(457)](){const t=ft,{editor:e}=this,o=e[t(453)][t(445)](d)[t(458)]();this[t(462)]=!!o,this[t(446)]=o?.[t(460)](t(451))??null}[ft(443)]({value:t}){const e=ft,{editor:o}=this,n=o[e(453)][e(445)](d),i=n[e(458)]();i&&Number[e(449)](t)&&o[e(452)][e(448)](o=>{const s=e;o[s(454)](s(451),t,i),n[s(459)](o)})}}const pt=gt;function ht(){const t=["start","get","footnotes-list","upper-roman","insert","getChildren","12DdehKk","_formatFootnoteListValue","element:ol","consume","upper-alpha","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","_defineFormatter","schema","from","isNaN","floor","downcast","setFootnoteFormatter","list-style-type","footnotes.footnotesProperties.defaultStartIndex","$text","setStyle","config","footnotesStyle","_definePostfixer","model","for","init","padStart","registerPostFixer","plugins","7418expqTM","3225669khsOAu","parent","element","setAttribute","nodeAfter","4130287tJgPUU","editor","upper-latin","decimal","85563bIlvCK","getChanges","max","5135916jHSNGU","_updateFootnotesCounters","getAttribute","parseInt","isPremiumPlugin","requires","_getDefaultListStyle","toLowerCase","toViewElement","pluginName","_getDefaultStartIndex","name","viewItem","add","lower-roman","228BXikYq","footnotesListStyle","upcast","commands","checkAttribute","removeStyle","fromCharCode","4576165PnxBga","footnotesDefinitions","lower-latin","find","getItems","removeAttribute","type","FootnotesPropertiesEditing","getStyle","decimal-leading-zero","3993810eBbteH","extend","define","modelCursor","hasAttribute","writer","_defineConverters","position","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","40cAfPwA","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","4EbzIaR","footnotesStart","hasClass","mapper","document","toUpperCase","footnotesListStart","item","33eWcGXR","lower-alpha","differ","consumable"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(662623===parseInt(e(156))/1*(parseInt(e(184))/2)+-parseInt(e(157))/3*(-parseInt(e(214))/4)+-parseInt(e(191))/5+parseInt(e(232))/6*(-parseInt(e(162))/7)+-parseInt(e(211))/8*(parseInt(e(166))/9)+-parseInt(e(201))/10+-parseInt(e(222))/11*(-parseInt(e(169))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(178)](){return pt(198)}static get[pt(174)](){return[v,d]}static get[pt(212)](){return!0}static get[pt(173)](){return!0}[pt(152)](){const t=pt,{editor:e}=this;e[t(147)][t(203)](t(213),t(165)),e[t(147)][t(203)](t(144),1),e[t(187)][t(182)](t(148),new ct(e)),e[t(187)][t(182)](t(215),new dt(e)),this[t(210)](),this[t(207)](),this[t(239)](),this[t(149)]()}[pt(210)](){const t=pt,{editor:e}=this,{schema:o}=e[t(150)];o[t(202)](t(192),{allowAttributes:[t(185),t(220)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(151)](t(186))[t(182)](e=>{const o=t;e.on(o(234),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(204)]?.[s(158)];r[s(216)](s(228))&&a?.is(s(159),s(192))&&(function(t,e,o,n){const i=s;if(!n[i(188)](e,i(220)))return;let r=1;const a=o[i(225)][i(235)](t,{attributes:i(226)});if(a){const e=Number[i(172)](t[i(171)](i(226)),10);Number[i(242)](e)||(r=e)}!a&&e[i(205)](i(220))||o[i(206)][i(160)](i(220),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(188)](e,i(185)))return;let r=i(165),a=!1;if(o[i(225)][i(235)](t,{attributes:i(197)})){const e={1:i(165),a:i(223),A:i(236),i:i(183),I:i(229)}[t[i(171)](i(197))];e&&(r=e),a=!0}o[i(225)][i(235)](t,{styles:i(143)})&&(r=function(t){const e=i;switch(t){case e(223):return e(193);case e(236):return e(164);default:return t}}(t[i(199)](i(143))),a=!0),!a&&e[i(205)](i(185))||o[i(206)][i(160)](i(185),r,e)}(r,a,n,i))})}),o[t(151)](t(244))[t(182)](e=>{const o=t;e.on(o(237),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;null==r||1===r?n[i(206)][i(196)](i(226),s):n[i(206)][i(160)](i(226),String(r),s)}),e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;r&&i(165)!==r?n[i(206)][i(146)](i(143),r,s):n[i(206)][i(189)](i(143),s)})})}[pt(149)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(155)][t(227)](d),i=this[t(175)](),s=this[t(179)]();o[t(218)][t(154)](e=>{const r=t,a=o[r(218)][r(224)][r(167)]();let c=!1;for(const t of a){if(r(230)!==t[r(197)]||r(145)===t[r(180)])continue;const n=o[r(238)](t[r(208)][r(161)]);for(const t of n[r(195)]())t.is(r(159),r(192))&&(!t[r(205)](r(220))&&o[r(240)][r(188)](t,r(220))&&(e[r(160)](r(220),s,t),c=!0),!t[r(205)](r(185))&&o[r(240)][r(188)](t,r(185))&&(e[r(160)](r(185),i,t),c=!0))}return c&&n[r(170)](e),c})}[pt(239)](){const t=pt,{editor:e}=this;e[t(155)][t(227)](d)[t(245)](e=>this[t(233)](e))}[pt(175)](){const t=pt;return this[t(163)][t(147)][t(227)](t(213))}[pt(179)](){const t=pt;return this[t(163)][t(147)][t(227)](t(144))}[pt(233)]({container:t,value:e,digits:o}){const n=pt,i=t[n(171)](n(185)),s=t[n(171)](n(220)),r=Math[n(243)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(153)](e,"0")}(r,Math[n(168)](2,o));case n(223):case n(193):return yt(r,!1);case n(236):case n(164):return yt(r,!0);case n(183):return vt(r,!1);case n(229):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=143]})(t,e)}function wt(t,e){const o=pt,n=e[o(177)](t);return Array[o(241)](n[o(231)]())[o(194)](t=>t.is(o(159),"ol")&&t[o(216)](o(228)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(190)](97+t)+n,i=Math[o(243)]((i-1)/26)}return e?n[o(219)]():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=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(176)]()}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=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),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: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 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=St;function Et(){var t=["1018kiWdfe","1235908UDIAcM","FootnotesProperties","pluginName","isOfficialPlugin","4807840FfBzdX","1480554iLxXTI","7LLaOrz","isPremiumPlugin","25JrkKOs","592434LQsMFo","1324467nEzbHP","requires","957704CVziyS","909loRZFm"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=214]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(272465===-parseInt(e(226))/1*(-parseInt(e(227))/2)+-parseInt(e(223))/3+parseInt(e(228))/4+parseInt(e(221))/5*(-parseInt(e(222))/6)+-parseInt(e(219))/7*(-parseInt(e(225))/8)+-parseInt(e(218))/9+parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(215)](){return xt(214)}static get[xt(224)](){return[mt,Ft]}static get[xt(216)](){return!0}static get[xt(220)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=173]})(t,e)}function Tt(){var t=["2010162PDJkst","7lyEehe","326608rlEUaQ","23810bKJRaP","162VHqjuo","4157335XfGvav","11860hdoUwE","3448716tNAukk","3688824LvcUWS","142Hrmgbg"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(796733===parseInt(e(173))/1*(parseInt(e(176))/2)+parseInt(e(175))/3+-parseInt(e(174))/4+-parseInt(e(182))/5+parseInt(e(177))/6+-parseInt(e(178))/7*(-parseInt(e(179))/8)+-parseInt(e(181))/9*(-parseInt(e(180))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|