@ckeditor/ckeditor5-footnotes 47.4.0-alpha.3 → 47.4.0-alpha.5
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:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768089600;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const A=L;function D(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(D=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(375)](){return A(450)}static get[A(395)](){return[v,T.ClipboardPipeline]}static get[A(390)](){return!0}static get[A(410)](){return!0}[A(368)](){this[A(409)]()}[A(409)](){const t=A;this[t(448)](),this[t(435)]()}[A(448)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](T.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[A(435)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](T.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=P(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=P(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function P(t,e){const o=A;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=D();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),G=o(741),H=o.n(G),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(382)](){return Q(378)}static get[Q(389)](){return[v,_,Y]}static get[Q(379)](){return!0}static get[Q(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=353]})(t,e)}function at(){const t=["4332312mtAfqV","model","getAttribute","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","get","2502815JXWpQQ","4385832hxDhaK","footnotesListStyle","1764734vewIYK","1NojpiI","refresh","plugins","value","isEnabled","setAttribute","4636800anScsI","823915rzCTOR","execute","1825866MzXdzT","change"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(579818===parseInt(e(373))/1*(parseInt(e(372))/2)+-parseInt(e(360))/3+-parseInt(e(357))/4+-parseInt(e(358))/5+parseInt(e(370))/6+parseInt(e(369))/7+parseInt(e(362))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(374)](){const t=st,{editor:e}=this,o=e[t(353)][t(368)](d)[t(365)]();this[t(355)]=!!o,this[t(354)]=o?.[t(364)](t(371))??null}[st(359)]({value:t}){const e=st,{editor:o}=this,n=o[e(353)][e(368)](d),i=n[e(365)]();i&&it[e(366)](t)&&o[e(363)][e(361)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(367)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new ct(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Tt extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function At(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=y;function w(){const t=["end","isEnabled","getItems","checkChild","length","insertObject","plugins","278433uhTkWV","footnoteRef","execute","insert-footnote-command-executed-with-invalid-id","_getPositionToInsertFootnote","document","isObject","3298743IxQCYa","341220reQbIv","949764TGlKrV","refresh","2kIxAza","change","get","222430WuXWIi","FootnotesEditing","616563stmOVs","editor","string","getFirstRange","isBlock","createElement","5517750WiTYSq","model","selection","footnoteId","_moveSelectionToFootnoteDefinition","test","56GyxJMp"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=304]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(462695===-parseInt(e(327))/1*(parseInt(e(338))/2)+-parseInt(e(336))/3+parseInt(e(335))/4+parseInt(e(305))/5+parseInt(e(313))/6+-parseInt(e(334))/7+-parseInt(e(319))/8*(-parseInt(e(307))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(337)](){const t=g,e=this[t(308)][t(314)][t(332)][t(315)],o=this[t(331)](e);this[t(321)]=!!o}[g(329)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(332)],r=this[e(331)](s);if(!r)return;const a=o[e(326)][e(304)](e(306)),c=t?.[e(316)]??(0,i.uid)();!function(t){const o=e;return o(309)==typeof t&&t[o(324)]>0&&!/\s/[o(318)](t)&&!/^\d/[o(318)](t)}(c)?(0,i.logWarning)(e(330)):(n[e(339)](t=>{const o=e,i=t[o(312)](o(328),{footnoteId:c});n[o(325)](i,r,null)}),a[e(317)](c))}[g(331)](t){const e=g,{model:o}=this[e(308)],{schema:n}=o,i=t[e(310)]();for(const t of i[e(322)]())if(n[e(311)](t)||n[e(333)](t))return null;const s=i[e(320)];return n[e(323)](s,e(328))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768262400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,P.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](P.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](P.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),z=o(102),W=o.n(z),U=o(123),B=o.n(U),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=B(),X.insert=W().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,R.ButtonView)),e.add("menuBar:insertFootnote",Y(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Z;function Z(t,e){var o=tt();return(Z=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[G(146)](){return G(141)}static get[G(150)](){return[v,D,Q]}static get[G(142)](){return!0}static get[G(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["plugins","_updateFootnotesCounters","getAttribute","341444FTVKdg","30XvisGp","execute","change","2wStUqm","includes","setAttribute","isEnabled","footnotesListStyle","1285624EcJWJu","getFootnotesDefinitionsObjectElement","6079700mRljTs","value","9OIGfVN","9535559MbWPCz","model","16204sTvZID","refresh","116578JoSWVH","2494887eZswOM","1135yPeEaD","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=272]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(765724===parseInt(e(289))/1+-parseInt(e(293))/2*(parseInt(e(283))/3)+parseInt(e(280))/4*(parseInt(e(284))/5)+parseInt(e(290))/6*(-parseInt(e(282))/7)+parseInt(e(273))/8*(parseInt(e(277))/9)+-parseInt(e(275))/10+parseInt(e(278))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(281)](){const t=st,{editor:e}=this,o=e[t(286)][t(285)](d)[t(274)]();this[t(296)]=!!o,this[t(276)]=o?.[t(288)](t(272))??null}[st(291)]({value:t}){const e=st,{editor:o}=this,n=o[e(286)][e(285)](d),i=n[e(274)]();i&&it[e(294)](t)&&o[e(279)][e(292)](o=>{const s=e;o[s(295)](s(272),t,i),n[s(287)](o)})}}const lt=ft;function ut(){const t=["change","refresh","isInteger","get","getFootnotesDefinitionsObjectElement","getAttribute","24VXJzls","2749572oVuVeo","2146916tzTIHX","1085611HEeDSM","setAttribute","2589534lIBzgD","9104056Jrxefo","value","1114795Yzqvcb","plugins","3LJbpoM","isEnabled","execute","_updateFootnotesCounters","2506284JeFZKV","footnotesListStart","model"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=364]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(965659===-parseInt(e(386))/1+parseInt(e(385))/2+-parseInt(e(370))/3*(-parseInt(e(374))/4)+-parseInt(e(368))/5*(parseInt(e(383))/6)+parseInt(e(384))/7+parseInt(e(366))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(378)](){const t=lt,{editor:e}=this,o=e[t(369)][t(380)](d)[t(381)]();this[t(371)]=!!o,this[t(367)]=o?.[t(382)](t(375))??null}[lt(372)]({value:t}){const e=lt,{editor:o}=this,n=o[e(369)][e(380)](d),i=n[e(381)]();i&&Number[e(379)](t)&&o[e(376)][e(377)](o=>{const s=e;o[s(364)](s(375),t,i),n[s(373)](o)})}}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new dt(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.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=B(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),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[R.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,R.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 R.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}=R.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=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|