@ckeditor/ckeditor5-footnotes 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>p,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(357248===-parseInt(e(370))/1*(-parseInt(e(363))/2)+parseInt(e(371))/3*(-parseInt(e(358))/4)+-parseInt(e(356))/5+parseInt(e(380))/6*(-parseInt(e(355))/7)+-parseInt(e(382))/8+parseInt(e(383))/9+parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(381)];[r(361)];[r(357)];[r(367)]=new Map;constructor(t,e){const o=r;this[o(381)]=t,this[o(361)]=e[o(362)],this[o(357)]=e[o(379)]}[r(347)](){const t=r;this[t(367)][t(384)]()}[r(378)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(387)===i[e(376)]&&e(354)!==i[e(377)]&&i[e(346)][e(352)]){const t=this[e(381)][e(349)](i[e(346)][e(352)]);for(const o of t[e(364)]()){if(!o.is(e(365),this[e(361)]))continue;const t=this[e(357)](o);n[e(385)](t)||n[e(389)](t,[]),n[e(360)](t)[e(369)](o)}}if(e(368)===i[e(376)]&&i[e(377)]===this[e(361)]){const t=this[e(357)]({getAttribute:t=>i[e(351)][e(360)](t)});o[e(359)](t)}}for(const[t,n]of this[e(367)])e(372)===n[e(386)][e(366)]&&o[e(359)](t);for(const t of o)this[e(367)][e(353)](t);for(const[t,o]of n)this[e(367)][e(389)](t,o[o[e(350)]-1]);const i=new Set;for(const[t,s]of n)o[e(385)](t)&&(i[e(359)](s[0]),s[e(350)]>1?n[e(389)](t,s[e(388)](1)):n[e(353)](t),o[e(353)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(348)]())[e(374)](),moved:Array[e(373)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=346]})(t,e)}function l(){const t=["type","name","getChanges","getElementKey","244296cyVIQL","_model","3878832IencIy","1785024XmoGCE","clear","has","root","insert","slice","set","position","reset","values","createRangeOn","length","attributes","nodeAfter","delete","$text","91xqWrvJ","2995015cYimqZ","_getElementKey","540fRQoFJ","add","get","_elementName","elementName","2gkaFNU","getItems","element","rootName","_trackedElements","remove","push","76808WyicSp","1446xfYZlQ","$graveyard","from","flat","17603390ppoMtJ"];return(l=function(){return t})()}function u(){const t=["append","getFootnotes","195731jPVQVy","footnoteCounter","getFootnotesDefinitionsObjectElement","getFootnote","high","_ensureFootnotesDefinitionsContainerExists","enqueueChange","document","_handleFootnotesDefinitionsObjectSync","_handleRemoveFootnoteReferenceById","model","_ensureFootnotesReferencesHaveProperOrder","_sortFootnoteDefinitions","singleton","before","isOfficialPlugin","root","min","_handleFootnoteDefinitionsChanges","reset","remove","after","getFootnotesFormatter","init","_handleInsertedFootnoteReference","findIndex","compareWith","_insertEmptyFootnotesDefinitionsContainer","has","2424lHqCIs","FootnotesTracker","some","getChildren","splice","listenTo","find","differ","createPositionAt","footnotesDefinitions","createPositionBefore","config","_footnoteDefsContainerTracker","move","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","change:data","createRangeOn","map","end","153FRGKHJ","_updateFootnoteRefCounter","reference","createElement","132785Kfdvyg","412110iaWHeM","footnoteRef","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","_footnoteFormatter","get","_footnoteDefsTracker","from","isEqual","_handleMovedFootnoteReference","getAttribute","paragraph","setFootnoteFormatter","push","unshift","pluginName","footnoteDefinition","childCount","750864zfuecM","footnotes.multiBlock","_footnoteRefsTracker","footnoteId","insert","add","set","getRootNames","parent","getChanges","$graveyard","indexOf","_handleFootnoteReferencesChanges","rootName","641895oSTwCb","48sLjqXM","329JQfxjA","low","425970WyzAMu","footnoteInlineContent","editor","length","definition","registerPostFixer","setAttribute","createRangeIn"];return(u=function(){return t})()}const f=d;function d(t,e){const o=u();return(d=function(t,e){return o[t-=108]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(121915===-parseInt(e(201))/1+-parseInt(e(155))/2+parseInt(e(187))/3+-parseInt(e(173))/4+parseInt(e(154))/5*(-parseInt(e(188))/6)+parseInt(e(189))/7*(-parseInt(e(129))/8)+parseInt(e(150))/9*(parseInt(e(191))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(144)]=[];[f(145)]=null;[f(159)]=null;[f(141)];[f(175)];[f(161)];static get[f(170)](){return f(130)}static get[f(115)](){return!0}static get[f(158)](){return!0}constructor(t){const e=f;super(t),this[e(141)]=new a(this[e(193)][e(110)],{elementName:e(138),getElementKey:()=>e(113)}),this[e(175)]=new a(this[e(193)][e(110)],{elementName:e(156),getElementKey:t=>t[e(165)](e(176))}),this[e(161)]=new a(this[e(193)][e(110)],{elementName:e(171),getElementKey:t=>t[e(165)](e(176))})}[f(123)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(208)][t(196)](e=>{const n=t,i=o[n(208)][n(136)][n(182)]();let s=!1;return this[n(157)](e,i)&&(s=!0),this[n(118)](e,i)&&(s=!0),this[n(185)](e,i)&&(s=!0),this[n(111)](e)&&(s=!0),this[n(108)](e)&&(s=!0),this[n(112)](e)&&(s=!0),s}),this[t(134)](o[t(208)],t(146),()=>{const e=t;o[e(207)]({isUndoable:!1},t=>{this[e(206)](t)})},{priority:t(190)}),this[t(134)](n,t(179),()=>{const e=t;this[e(144)]=[],this[e(141)][e(119)](),this[e(175)][e(119)](),this[e(161)][e(119)]()},{priority:t(205)})}[f(203)](){return this[f(145)]}[f(204)](t){const e=f;return this[e(144)][e(135)](e=>e.id===t)||null}[f(200)](){const t=f;return Array[t(162)](this[t(144)])}[f(122)](){return this[f(159)]}[f(167)](t){this[f(159)]=t}[f(143)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(144)][o(194)];i++)this[o(151)](t,i)&&(n=!0);return n}[f(127)](t,e){const o=f,n=t[o(153)](o(138),{});return t[o(199)](n,e),this[o(145)]=n,n}[f(206)](t){const e=f;if(!this[e(144)][e(194)]||this[e(145)])return;const o=this[e(144)][0][e(152)][e(116)],n=this[e(127)](t,o);for(const o of this[e(144)])o[e(195)][e(181)]||t[e(177)](o[e(195)],n,e(149));this[e(143)](t)}[f(157)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(141)][o(182)](e);if(r[o(194)]&&(this[o(145)]=r[0]),i[o(194)])if(i[o(194)]>1||this[o(145)]&&i[o(131)](t=>t!==this[o(145)])){const e=t[o(153)](o(138),{}),s=[];this[o(145)]&&s[o(168)](this[o(145)]),s[o(168)](...i),t[o(177)](e,s[0],o(114));for(const n of s)t[o(142)](t[o(198)](n),t[o(137)](e,o(149))),t[o(120)](n);this[o(145)]=e,this[o(143)](t),n=!0}else this[o(145)]=i[0];if(s[o(194)]&&o(183)===this[o(145)]?.[o(116)][o(186)]){for(const e of this[o(144)])t[o(120)](e[o(152)]),n=!0;this[o(144)]=[],this[o(145)]=null}return n}[f(118)](t,e){const o=f;let n=!1;const i=this[o(193)][o(140)][o(160)](o(174)),{inserted:s,moved:r}=this[o(161)][o(182)](e);for(const e of[...r,...s]){const s=e[o(165)](o(176)),r=this[o(204)](s);r&&(r[o(195)]=e),h(t,i,e)&&(n=!0)}return n}[f(185)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(175)][o(182)](e);for(const e of i)this[o(109)](t,e)&&(n=!0);for(const e of s)this[o(124)](t,e)&&(n=!0);for(const e of r)this[o(164)](t,e)&&(n=!0);return n}[f(108)](t){const e=f;if(!this[e(145)])return!1;let o=!1;if(this[e(145)][e(172)]!==this[e(144)][e(194)]){const n=[];for(const t of this[e(145)][e(132)]()){const i=t[e(165)](e(176));this[e(204)](i)||(n[e(169)](t),o=!0)}for(const o of n)t[e(120)](o)}const n=new Set,i=[];for(const t of this[e(145)][e(132)]()){const s=t[e(165)](e(176));n[e(128)](s)?(i[e(169)](t),o=!0):n[e(178)](s)}for(const o of i)t[e(120)](o);return this[e(145)][e(172)]||(t[e(120)](this[e(145)]),this[e(145)]=null,o=!0),o}[f(124)](t,e){const o=f;if(this[o(144)][o(135)](t=>t[o(152)]===e))return!1;let n=!1;const i=e[o(165)](o(176)),s=this[o(144)][o(125)](t=>t.id===i);-1!==s&&(t[o(120)](this[o(144)][s][o(152)]),this[o(144)][o(133)](s,1),n=!0);let r=this[o(145)]?function(t,e){const n=o;for(const o of t[n(132)]())if(o[n(165)](n(176))===e)return o;return null}(this[o(145)],i):null;r||(r=t[o(153)](o(171),{footnoteId:i}),this[o(145)]&&(t[o(177)](r,this[o(145)],o(149)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(193)][o(110)],this[o(144)],e);this[o(144)][o(133)](c,0,a);let l=c;return-1!==s&&(l=Math[o(117)](c,s)),this[o(143)](t,l)&&(n=!0),n}[f(109)](t,e){const o=f,n=this[o(144)][o(125)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(144)][n];return o(183)!==s[o(195)][o(116)][o(186)]&&(t[o(120)](s[o(195)]),i=!0),this[o(144)][o(133)](n,1),this[o(143)](t,n)&&(i=!0),i}[f(164)](t,e){const o=f,n=e[o(165)](o(176)),i=this[o(144)][o(125)](t=>t.id===n),s=this[o(144)][i];let r=!1;s[o(152)]=e,this[o(144)][o(133)](i,1);const a=m(this[o(193)][o(110)],this[o(144)],e);return this[o(144)][o(133)](a,0,s),this[o(143)](t,Math[o(117)](i,a))&&(r=!0),r}[f(151)](t,e){const o=f;if(!this[o(145)])return!1;const n=this[o(144)][e];let i;return i=this[o(159)]?this[o(159)]({footnote:n,container:this[o(145)],digits:String(this[o(144)][o(194)])[o(194)],value:e+1}):String(e+1),n[o(152)][o(165)](o(202))!=i&&(t[o(197)](o(202),i,n[o(152)]),!0)}[f(112)](t){const e=f;if(!this[e(145)]||this[e(144)][e(194)]<2)return!1;if(function(t,o){const n=e;if(t[n(194)]!==o[n(194)])return!1;for(let e=0;e<t[n(194)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(144)][e(148)](t=>t.id),Array[e(162)](this[e(145)][e(132)]())[e(148)](t=>t[e(165)](e(176)))))return!1;let o=!1;for(let n=0;n<this[e(144)][e(194)];n++){const i=this[e(144)][n],s=t[e(139)](i[e(195)]),r=t[e(137)](this[e(145)],n);s[e(163)](r)||(t[e(142)](t[e(147)](i[e(195)]),r),o=!0)}return o}[f(111)](t){const e=f;if(!this[e(144)][e(194)])return!1;const{model:o}=this[e(193)];let n=!1;for(let i=0;i<this[e(144)][e(194)]-1;i++){const s=this[e(144)][i],r=this[e(144)][i+1],a=o[e(139)](s[e(152)]),c=o[e(139)](r[e(152)]);e(121)===a[e(126)](c)&&(this[e(164)](t,s[e(152)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(172)])return!1;const i=n(e?166:192);return t[n(177)](t[n(153)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(194)])return 0;const i=t[n(139)](o);for(let o=0;o<e[n(194)];o++){const s=e[o],r=t[n(139)](s[n(152)]);if(n(114)===i[n(126)](r))return o}const s=o[n(116)];let r=-1;for(let t=e[n(194)]-1;t>=0;t--)if(e[t][n(152)][n(116)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(208)][n(180)](),c=a[n(184)](s[n(186)]),l=a[c+1];if(l)for(let t=0;t<e[n(194)];t++)if(e[t][n(152)][n(116)][n(186)]===l)return t;return e[n(194)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=417]})(t,e)}const w=g;function y(){const t=["end","9345648QQShYa","isObject","isBlock","footnoteId","selection","string","2534514RmzOtj","getItems","change","5364544XurgdM","467768QdMVee","getFirstRange","document","_moveSelectionToFootnoteDefinition","createElement","FootnotesEditing","editor","1263559uMjwgs","1016538oxHUqM","execute","refresh","77ZsBcMz","_getPositionToInsertFootnote","length","6062945LFdTYG","model","checkChild","insert-footnote-command-executed-with-invalid-id","insertObject","test","plugins","footnoteRef","isEnabled","get"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(851486===-parseInt(e(436))/1+-parseInt(e(437))/2+-parseInt(e(425))/3+parseInt(e(428))/4+parseInt(e(443))/5+parseInt(e(419))/6+-parseInt(e(440))/7*(parseInt(e(429))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(439)](){const t=w,e=this[t(435)][t(444)][t(431)][t(423)],o=this[t(441)](e);this[t(451)]=!!o}[w(438)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(431)],r=this[e(441)](s);if(!r)return;const a=o[e(449)][e(417)](e(434)),c=t?.[e(422)]??(0,i.uid)();!function(t){const o=e;return o(424)==typeof t&&t[o(442)]>0&&!/\s/[o(448)](t)&&!/^\d/[o(448)](t)}(c)?(0,i.logWarning)(e(446)):(n[e(427)](t=>{const o=e,i=t[o(433)](o(450),{footnoteId:c});n[o(447)](i,r,null)}),a[e(432)](c))}[w(441)](t){const e=w,{model:o}=this[e(435)],{schema:n}=o,i=t[e(430)]();for(const t of i[e(426)]())if(n[e(421)](t)||n[e(420)](t))return null;const s=i[e(418)];return n[e(445)](s,e(450))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764115200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const T=_;function P(){const t=["1255755oeURjX","clipboardInput","push","init","content","get","getRanges","getAttribute","setAttribute","toModel","flatMap","778134rFiHuv","add","_handlePasteFootnotesDefinitions","append","stringify","getData","document","footnoteId","insert","3283857mCtcnJ","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","definition","find","getSelectedBlocks","setData","320OpDdHk","change","5434527ILXIKm","includes","7492592bPuZer","requires","length","selection","81hjNfSq","isOfficialPlugin","toView","_insertEmptyFootnotesDefinitionsContainer","outputTransformation","createElement","htmlProcessor","reduce","footnoteDefinition","editing","footnotesDefinitions","data","entries","isPremiumPlugin","application/ckeditor5-footnotes","getFootnote","footnoteRef","87416uuxlXD","getFootnotes","createRangeIn","77104NAVmoR","method","editor","FootnotesClipboard","listenTo","root","dataTransfer","sourceEditorId","_handleCopyFootnotesDefinitions","end","remove","element","toData","from","getFirstRange","parse","drop","contentInsertion","pluginName","create"];return(P=function(){return t})()}!function(t){const e=_,o=t();for(;;)try{if(764314===parseInt(e(483))/1+-parseInt(e(463))/2*(parseInt(e(443))/3)+parseInt(e(460))/4*(-parseInt(e(435))/5)+-parseInt(e(494))/6+parseInt(e(437))/7+parseInt(e(439))/8+parseInt(e(503))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class L extends t.Plugin{static get[T(481)](){return T(466)}static get[T(440)](){return[v,A.ClipboardPipeline]}static get[T(444)](){return!0}static get[T(456)](){return!0}[T(486)](){this[T(505)]()}[T(505)](){const t=T;this[t(471)](),this[t(496)]()}[T(471)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(488)](A.ClipboardPipeline),s=o[t(488)](p);this[t(467)](i,t(447),(o,i)=>{const r=t,a=D(n[r(462)](i[r(487)]));if(!a[r(441)])return;const c=s[r(461)](),l=a[r(450)]((t,o)=>{const n=r,i=c[n(507)](t=>t.id===o);if(i){const o=e[n(454)][n(445)](i[n(506)],{isClipboardPipeline:!0}),s=e[n(454)][n(449)][n(475)](o);t[i.id]=s}return t},Object[r(482)](null));i[r(469)][r(434)](r(457),JSON[r(498)](l))})}[T(496)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(452)],r=n[t(488)](A.ClipboardPipeline),a=n[t(488)](p);let c=null;this[t(467)](s[t(500)],t(484),(e,o)=>{const n=t,i=o[n(469)][n(499)](n(457));c=i?JSON[n(478)](i):null}),this[t(467)](r,t(480),(n,s)=>{const r=t,l=s[r(470)]===this[r(465)].id;l&&r(479)===s[r(464)]||o[r(436)](t=>{const n=r;let u=a[n(504)]();const f=!!u&&Array[n(476)](o[n(500)][n(442)][n(433)]())[n(438)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(462)](e))n.is(o(474),o(453))&&i[o(485)](n);for(const e of i)t[o(473)](e)}(t,s[n(487)]),!c)return;const{selection:d}=o[n(500)],p=d[n(477)]()[n(468)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(462)](e))if(n.is(o(474),o(453)))return n;return null}(t,s[n(487)]),u||=a[n(446)](t,p));const h=Array[n(476)](d[n(489)]())[n(493)](D),m=function(t,e,o){const s=n,r=Object[s(482)](null);for(const{item:n}of t[s(462)](e))if(n.is(s(474),s(459))){const e=n[s(490)](s(501));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(491)](s(501),r[e],n)}return r}(t,s[n(487)],t=>{const e=n;return!l||!!a[e(458)](t)&&!h[e(438)](t)});for(const[o,i]of Object[n(455)](c)){const s=m[o]||o,r=t[n(448)](n(451),{footnoteId:s}),a=e[n(454)][n(449)][n(445)](i),c=e[n(454)][n(492)](a,r);t[n(497)](c,r),t[n(502)](r,u,n(472))}c=null})})}}function _(t,e){const o=P();return(_=function(t,e){return o[t-=433]})(t,e)}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(474),e(459))&&o[e(495)](n[e(490)](e(501)));return Array[e(476)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),H=o.n(U),z=o(741),W=o.n(z),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=H(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=W();R()(q.A,X);q.A&&q.A.locals&&q.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=G;function G(t,e){var o=Y();return(G=function(t,e){return o[t-=172]})(t,e)}function Y(){var t=["Footnotes","1425710SuCWra","2241dmtHuV","pluginName","70QgNplP","isPremiumPlugin","3645396JemYyG","78768noKlWi","requires","2212OazZHS","3694044YyjwgH","isOfficialPlugin","757286gtSETm","35852UOIoBO"];return(Y=function(){return t})()}!function(t){for(var e=G,o=t();;)try{if(386069===parseInt(e(178))/1+parseInt(e(179))/2+parseInt(e(182))/3*(-parseInt(e(175))/4)+-parseInt(e(181))/5+parseInt(e(176))/6+-parseInt(e(184))/7*(-parseInt(e(173))/8)+-parseInt(e(172))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[Z(183)](){return Z(180)}static get[Z(174)](){return[v,L,J]}static get[Z(177)](){return!0}static get[Z(185)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=355]})(t,e)}function ot(){const t=["lower-latin","decimal-leading-zero","upper-latin","7451136wbGjQZ","lower-roman","49567752TRZtlR","801539wnEQxA","4008616tasOEl","decimal","5123418fmFfZz","14235stkLAw","1160044KTElUk","lower-alpha","upper-alpha","upper-roman","2148mYyXCd","21MTaeKa"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(907357===parseInt(e(368))/1+parseInt(e(356))/2+-parseInt(e(371))/3+parseInt(e(360))/4*(-parseInt(e(355))/5)+-parseInt(e(365))/6+parseInt(e(361))/7*(-parseInt(e(369))/8)+parseInt(e(367))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(370),tt(363),tt(362),tt(364),tt(357),tt(358),tt(366),tt(359)],it=rt;!function(t){const e=rt,o=t();for(;;)try{if(765941===parseInt(e(204))/1*(-parseInt(e(197))/2)+-parseInt(e(195))/3*(-parseInt(e(185))/4)+-parseInt(e(200))/5+-parseInt(e(187))/6+-parseInt(e(188))/7+-parseInt(e(181))/8*(-parseInt(e(182))/9)+-parseInt(e(198))/10*(-parseInt(e(184))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class st extends t.Command{[it(192)](){const t=it,{editor:e}=this,o=e[t(183)][t(199)](p)[t(186)]();this[t(202)]=!!o,this[t(194)]=o?.[t(191)](t(205))??null}[it(190)]({value:t}){const e=it,{editor:o}=this,n=o[e(183)][e(199)](p),i=n[e(186)]();i&&nt[e(193)](t)&&o[e(196)][e(203)](o=>{const s=e;o[s(201)](s(205),t,i),n[s(189)](o)})}}function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=181]})(t,e)}function at(){const t=["plugins","80157yZupsv","12036SYaURU","getFootnotesDefinitionsObjectElement","6036360lkORpN","7406889SjOLMJ","_updateFootnotesCounters","execute","getAttribute","refresh","includes","value","1128XJxkig","model","2qTeqBq","3510Jyotud","get","4090075guBZzw","setAttribute","isEnabled","change","595112EeFCIq","footnotesListStyle","4433072MEEVCY","9aopUBK"];return(at=function(){return t})()}function ct(t,e){const o=ft();return(ct=function(t,e){return o[t-=477]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(870046===parseInt(e(497))/1+parseInt(e(493))/2+-parseInt(e(482))/3+parseInt(e(496))/4*(-parseInt(e(477))/5)+parseInt(e(483))/6+parseInt(e(478))/7+-parseInt(e(498))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[lt(479)](){const t=lt,{editor:e}=this,o=e[t(494)][t(487)](p)[t(480)]();this[t(486)]=!!o,this[t(490)]=o?.[t(495)](t(481))??null}[lt(491)]({value:t}){const e=lt,{editor:o}=this,n=o[e(494)][e(487)](p),i=n[e(480)]();i&&Number[e(484)](t)&&o[e(492)][e(485)](o=>{const s=e;o[s(488)](s(481),t,i),n[s(489)](o)})}}function ft(){const t=["getFootnotesDefinitionsObjectElement","footnotesListStart","1859823LtzIyb","1024998mUMgsv","isInteger","change","isEnabled","get","setAttribute","_updateFootnotesCounters","value","execute","model","1080058jkxLwj","plugins","getAttribute","4kgmGXo","610779PLRDsA","4358208zBNHId","2518170FNNesL","8517292jHAXNo","refresh"];return(ft=function(){return t})()}function dt(){const t=["getAttribute","differ","1191602YDtuWJ","document","getItems","upper-latin","name","_defineFormatter","decimal-leading-zero","mapper","parent","_getDefaultListStyle","getChildren","_updateFootnotesCounters","6563412CynPof","schema","upper-roman","getStyle","6329853ADGSJL","insert","_definePostfixer","toUpperCase","1KxPVLw","4aaqdPp","decimal","isNaN","pluginName","upper-alpha","36645IAqJgE","getChanges","attribute:footnotesListStart:footnotesDefinitions","removeAttribute","init","822aYCQUA","consume","_getDefaultStartIndex","list-style-type","downcast","$text","isOfficialPlugin","checkAttribute","1305063CHgRDi","FootnotesPropertiesEditing","toViewElement","registerPostFixer","for","position","from","add","model","modelCursor","footnotesListStyle","footnotesStyle","removeStyle","commands","footnotesStart","44LmNUoL","lower-roman","start","attribute:footnotesListStyle:footnotesDefinitions","hasClass","padStart","nodeAfter","footnotesListStart","get","footnotes.footnotesProperties.defaultStartIndex","floor","setAttribute","_defineConverters","item","footnotesDefinitions","consumable","setStyle","setFootnoteFormatter","find","231180imyDWf","extend","upcast","plugins","type","toLowerCase","isPremiumPlugin","viewItem","651uNKbOL","define","_defineSchema","editor","footnotes.footnotesProperties.defaultListStyle","config","max","lower-alpha","_formatFootnoteListValue","lower-latin","footnotes-list","element","element:ol","51248YvdMMI","writer","createRangeOn","parseInt","hasAttribute","requires","fromCharCode"];return(dt=function(){return t})()}function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=390]})(t,e)}const ht=pt;!function(t){const e=pt,o=t();for(;;)try{if(588701===parseInt(e(458))/1*(-parseInt(e(438))/2)+parseInt(e(477))/3*(parseInt(e(459))/4)+-parseInt(e(464))/5*(parseInt(e(469))/6)+parseInt(e(416))/7*(parseInt(e(429))/8)+parseInt(e(454))/9+-parseInt(e(408))/10*(parseInt(e(492))/11)+parseInt(e(450))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(462)](){return ht(478)}static get[ht(434)](){return[v,p]}static get[ht(475)](){return!0}static get[ht(414)](){return!0}[ht(468)](){const t=ht,{editor:e}=this;e[t(421)][t(417)](t(420),t(460)),e[t(421)][t(417)](t(398),1),e[t(490)][t(484)](t(488),new st(e)),e[t(490)][t(484)](t(491),new ut(e)),this[t(418)](),this[t(401)](),this[t(443)](),this[t(456)]()}[ht(418)](){const t=ht,{editor:e}=this,{schema:o}=e[t(485)];o[t(409)](t(403),{allowAttributes:[t(487),t(396)]})}[ht(401)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(481)](t(410))[t(484)](e=>{const o=t;e.on(o(428),(t,e,n)=>{const s=o,r=e[s(415)],a=e[s(486)]?.[s(446)];r[s(393)](s(426))&&a?.is(s(427),s(403))&&(function(t,e,o,n){const i=s;if(!n[i(476)](e,i(396)))return;let r=1;const a=o[i(404)][i(470)](t,{attributes:i(391)});if(a){const e=Number[i(432)](t[i(436)](i(391)),10);Number[i(461)](e)||(r=e)}!a&&e[i(433)](i(396))||o[i(430)][i(400)](i(396),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(476)](e,i(487)))return;let r=i(460),a=!1;if(o[i(404)][i(470)](t,{attributes:i(412)})){const e={1:i(460),a:i(423),A:i(463),i:i(390),I:i(452)}[t[i(436)](i(412))];e&&(r=e),a=!0}o[i(404)][i(470)](t,{styles:i(472)})&&(r=t[i(453)](i(472)),a=!0),!a&&e[i(433)](i(487))||o[i(430)][i(400)](i(487),r,e)}(r,a,n,i))})}),o[t(481)](t(473))[t(484)](e=>{const o=t;e.on(o(466),(t,e,n)=>{const i=o;if(!n[i(404)][i(470)](e[i(402)],t[i(442)]))return;const s=gt(e[i(402)],n[i(445)]),{attributeNewValue:r}=e;null==r||1===r?n[i(430)][i(467)](i(391),s):n[i(430)][i(400)](i(391),String(r),s)}),e.on(o(392),(t,e,n)=>{const i=o;if(!n[i(404)][i(470)](e[i(402)],t[i(442)]))return;const s=gt(e[i(402)],n[i(445)]),{attributeNewValue:r}=e;r&&i(460)!==r?n[i(430)][i(405)](i(472),r,s):n[i(430)][i(489)](i(472),s)})})}[ht(456)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(411)][t(397)](p),i=this[t(447)](),s=this[t(471)]();o[t(439)][t(480)](e=>{const r=t,a=o[r(439)][r(437)][r(465)]();let c=!1;for(const t of a){if(r(455)!==t[r(412)]||r(474)===t[r(442)])continue;const n=o[r(431)](t[r(482)][r(395)]);for(const t of n[r(440)]())t.is(r(427),r(403))&&(!t[r(433)](r(396))&&o[r(451)][r(476)](t,r(396))&&(e[r(400)](r(396),s,t),c=!0),!t[r(433)](r(487))&&o[r(451)][r(476)](t,r(487))&&(e[r(400)](r(487),i,t),c=!0))}return c&&n[r(449)](e),c})}[ht(443)](){const t=ht,{editor:e}=this;e[t(411)][t(397)](p)[t(406)](e=>this[t(424)](e))}[ht(447)](){const t=ht;return this[t(419)][t(421)][t(397)](t(420))}[ht(471)](){const t=ht;return this[t(419)][t(421)][t(397)](t(398))}[ht(424)]({container:t,value:e,digits:o}){const n=ht,i=t[n(436)](n(487)),s=t[n(436)](n(396)),r=Math[n(399)](e)+(s??1)-1;switch(i){case n(444):return function(t,e){const o=n;return String(t)[o(394)](e,"0")}(r,Math[n(422)](2,o));case n(423):case n(425):return wt(r,!1);case n(463):case n(441):return wt(r,!0);case n(390):return bt(r,!1);case n(452):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(479)](t);return Array[o(483)](n[o(448)]())[o(407)](t=>t.is(o(427),"ol")&&t[o(393)](o(426)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(435)](97+t)+n,i=Math[o(399)]((i-1)/26)}return e?n[o(457)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=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(413)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=H(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=W();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=322]})(t,e)}function Et(){var t=["1384698CMdWBh","2079516iihAxH","5VSyNuJ","isPremiumPlugin","22278447dGpOBv","801428oXPNsq","5413968HKRqiz","pluginName","8ZKgObS","isOfficialPlugin","558138HyZLqa","requires","FootnotesProperties","1691628krjBAr"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(751537===parseInt(e(323))/1+-parseInt(e(326))/2+-parseInt(e(328))/3+-parseInt(e(332))/4*(parseInt(e(329))/5)+parseInt(e(327))/6+-parseInt(e(333))/7+parseInt(e(335))/8*(parseInt(e(331))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(334)](){return Ft(325)}static get[Ft(324)](){return[mt,Ct]}static get[Ft(322)](){return!0}static get[Ft(330)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=239]})(t,e)}function Tt(){var t=["1096929iVpULI","6prmMLu","8503sQTVJm","904955erZxkX","126BGWrFy","108656kvLBHG","4QNhpca","200682puVXHT","436950rvKXVv","36kwRTCy","8312436XVmDAX"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(202276===parseInt(e(248))/1*(parseInt(e(247))/2)+parseInt(e(246))/3+-parseInt(e(241))/4*(-parseInt(e(249))/5)+-parseInt(e(242))/6+-parseInt(e(239))/7*(-parseInt(e(240))/8)+parseInt(e(244))/9*(parseInt(e(243))/10)+-parseInt(e(245))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>y});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-=261]})(t,e)}function c(){const t=["741330TmMyaA","attributes","3535190XAiZMR","element","type","303714GcKGnm","elementName","name","8iNnkeH","delete","length","1219041soiBcf","$text","_model","remove","root","getItems","getElementKey","insert","1488753VWUUbJ","push","has","values","reset","nodeAfter","createRangeOn","getChanges","add","_elementName","clear","$graveyard","flat","6MfwCYZ","get","rootName","_trackedElements","655688gYcbgf","slice","position","_getElementKey","1953496prgcav","from","set"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(455047===parseInt(e(262))/1+-parseInt(e(274))/2+parseInt(e(269))/3+parseInt(e(266))/4+-parseInt(e(271))/5+parseInt(e(301))/6*(-parseInt(e(288))/7)+-parseInt(e(277))/8*(-parseInt(e(280))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(282)];[r(297)];[r(265)];[r(261)]=new Map;constructor(t,e){const o=r;this[o(282)]=t,this[o(297)]=e[o(275)],this[o(265)]=e[o(286)]}[r(292)](){const t=r;this[t(261)][t(298)]()}[r(295)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(287)===i[e(273)]&&e(281)!==i[e(276)]&&i[e(264)][e(293)]){const t=this[e(282)][e(294)](i[e(264)][e(293)]);for(const o of t[e(285)]()){if(!o.is(e(272),this[e(297)]))continue;const t=this[e(265)](o);n[e(290)](t)||n[e(268)](t,[]),n[e(302)](t)[e(289)](o)}}if(e(283)===i[e(273)]&&i[e(276)]===this[e(297)]){const t=this[e(265)]({getAttribute:t=>i[e(270)][e(302)](t)});o[e(296)](t)}}for(const[t,n]of this[e(261)])e(299)===n[e(284)][e(303)]&&o[e(296)](t);for(const t of o)this[e(261)][e(278)](t);for(const[t,o]of n)this[e(261)][e(268)](t,o[o[e(279)]-1]);const i=new Set;for(const[t,s]of n)o[e(290)](t)&&(i[e(296)](s[0]),s[e(279)]>1?n[e(268)](t,s[e(263)](1)):n[e(278)](t),o[e(278)](t));return{removed:Array[e(267)](o),inserted:Array[e(267)](n[e(291)]())[e(300)](),moved:Array[e(267)](i)}}}const u=d;function f(){const t=["_handleMovedFootnoteReference","_footnotesDefinitions","20884bvvDpq","_footnoteRefsTracker","_footnoteDefsContainerTracker","createElement","footnoteInlineContent","getFootnotes","length","createPositionBefore","createRangeIn","document","add","_handleRemoveFootnoteReferenceById","remove","insert","compareWith","rootName","move","before","_sortFootnoteDefinitions","pluginName","append","push","createPositionAt","_ensureFootnotesDefinitionsContainerExists","_insertEmptyFootnotesDefinitionsContainer","setAttribute","47023658hOZAxG","listenTo","28opEvlS","6394347ezuLwg","footnotes.multiBlock","end","registerPostFixer","enqueueChange","isOfficialPlugin","setFootnoteFormatter","getFootnote","getFootnotesDefinitionsObjectElement","singleton","$graveyard","_footnoteFormatter","_footnotes","findIndex","model","splice","footnoteId","_handleFootnoteDefinitionsChanges","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","getChanges","has","getAttribute","definition","config","editor","1pfLirZ","footnoteRef","isEqual","_footnoteDefsTracker","_handleFootnoteReferencesChanges","init","childCount","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","differ","reference","get","getRootNames","indexOf","1044HZLizR","_updateFootnoteRefCounter","footnotesDefinitions","set","find","9819528JVZTOR","map","createRangeOn","some","footnoteDefinition","5061885JLBbCN","root","getChildren","_handleInsertedFootnoteReference","min","after","_handleFootnotesDefinitionsObjectSync","3400082AVdRCh","_updateFootnotesCounters","1946992nBmkui","footnoteCounter","low","from","reset","change:data","unshift","20kmZVKK","isPremiumPlugin","paragraph","high","parent"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=361]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(934670===parseInt(e(366))/1*(-parseInt(e(397))/2)+-parseInt(e(380))/3*(parseInt(e(413))/4)+-parseInt(e(390))/5+parseInt(e(385))/6+parseInt(e(441))/7*(parseInt(e(399))/8)+parseInt(e(442))/9*(-parseInt(e(406))/10)+parseInt(e(439))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(454)]=[];[u(412)]=null;[u(453)]=null;[u(415)];[u(414)];[u(369)];static get[u(432)](){return u(373)}static get[u(447)](){return!0}static get[u(407)](){return!0}constructor(t){const e=u;super(t),this[e(415)]=new l(this[e(365)][e(456)],{elementName:e(382),getElementKey:()=>e(451)}),this[e(414)]=new l(this[e(365)][e(456)],{elementName:e(367),getElementKey:t=>t[e(362)](e(458))}),this[e(369)]=new l(this[e(365)][e(456)],{elementName:e(389),getElementKey:t=>t[e(362)](e(458))})}[u(371)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(422)][t(445)](e=>{const n=t,i=o[n(422)][n(375)][n(462)]();let s=!1;return this[n(374)](e,i)&&(s=!0),this[n(459)](e,i)&&(s=!0),this[n(370)](e,i)&&(s=!0),this[n(461)](e)&&(s=!0),this[n(396)](e)&&(s=!0),this[n(431)](e)&&(s=!0),s}),this[t(440)](o[t(422)],t(404),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(436)](t)})},{priority:t(401)}),this[t(440)](n,t(383),()=>{const e=t;this[e(454)]=[],this[e(415)][e(403)](),this[e(414)][e(403)](),this[e(369)][e(403)]()},{priority:t(409)})}[u(450)](){return this[u(412)]}[u(449)](t){const e=u;return this[e(454)][e(384)](e=>e.id===t)||null}[u(418)](){const t=u;return Array[t(402)](this[t(454)])}[u(460)](){return this[u(453)]}[u(448)](t){this[u(453)]=t}[u(398)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(454)][o(419)];i++)this[o(381)](t,i)&&(n=!0);return n}[u(437)](t,e){const o=u,n=t[o(416)](o(382),{});return t[o(433)](n,e),this[o(412)]=n,n}[u(436)](t){const e=u;if(!this[e(454)][e(419)]||this[e(412)])return;const o=this[e(454)][0][e(376)][e(391)],n=this[e(437)](t,o);for(const o of this[e(454)])o[e(363)][e(410)]||t[e(426)](o[e(363)],n,e(444));this[e(398)](t)}[u(374)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(415)][o(462)](e);if(r[o(419)]&&(this[o(412)]=r[0]),i[o(419)])if(i[o(419)]>1||this[o(412)]&&i[o(388)](t=>t!==this[o(412)])){const e=t[o(416)](o(382),{}),s=[];this[o(412)]&&s[o(434)](this[o(412)]),s[o(434)](...i),t[o(426)](e,s[0],o(430));for(const n of s)t[o(429)](t[o(421)](n),t[o(435)](e,o(444))),t[o(425)](n);this[o(412)]=e,this[o(398)](t),n=!0}else this[o(412)]=i[0];if(s[o(419)]&&o(452)===this[o(412)]?.[o(391)][o(428)]){for(const e of this[o(454)])t[o(425)](e[o(376)]),n=!0;this[o(454)]=[],this[o(412)]=null}return n}[u(459)](t,e){const o=u;let n=!1;const i=this[o(365)][o(364)][o(377)](o(443)),{inserted:s,moved:r}=this[o(369)][o(462)](e);for(const e of[...r,...s]){const s=e[o(362)](o(458)),r=this[o(449)](s);r&&(r[o(363)]=e),h(t,i,e)&&(n=!0)}return n}[u(370)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(414)][o(462)](e);for(const e of i)this[o(424)](t,e)&&(n=!0);for(const e of s)this[o(393)](t,e)&&(n=!0);for(const e of r)this[o(411)](t,e)&&(n=!0);return n}[u(396)](t){const e=u;if(!this[e(412)])return!1;let o=!1;if(this[e(412)][e(372)]!==this[e(454)][e(419)]){const n=[];for(const t of this[e(412)][e(392)]()){const i=t[e(362)](e(458));this[e(449)](i)||(n[e(405)](t),o=!0)}for(const o of n)t[e(425)](o)}const n=new Set,i=[];for(const t of this[e(412)][e(392)]()){const s=t[e(362)](e(458));n[e(361)](s)?(i[e(405)](t),o=!0):n[e(423)](s)}for(const o of i)t[e(425)](o);return this[e(412)][e(372)]||(t[e(425)](this[e(412)]),this[e(412)]=null,o=!0),o}[u(393)](t,e){const o=u;if(this[o(454)][o(384)](t=>t[o(376)]===e))return!1;let n=!1;const i=e[o(362)](o(458)),s=this[o(454)][o(455)](t=>t.id===i);-1!==s&&(t[o(425)](this[o(454)][s][o(376)]),this[o(454)][o(457)](s,1),n=!0);let r=this[o(412)]?function(t,e){const n=o;for(const o of t[n(392)]())if(o[n(362)](n(458))===e)return o;return null}(this[o(412)],i):null;r||(r=t[o(416)](o(389),{footnoteId:i}),this[o(412)]&&(t[o(426)](r,this[o(412)],o(444)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(365)][o(456)],this[o(454)],e);this[o(454)][o(457)](c,0,a);let l=c;return-1!==s&&(l=Math[o(394)](c,s)),this[o(398)](t,l)&&(n=!0),n}[u(424)](t,e){const o=u,n=this[o(454)][o(455)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(454)][n];return o(452)!==s[o(363)][o(391)][o(428)]&&(t[o(425)](s[o(363)]),i=!0),this[o(454)][o(457)](n,1),this[o(398)](t,n)&&(i=!0),i}[u(411)](t,e){const o=u,n=e[o(362)](o(458)),i=this[o(454)][o(455)](t=>t.id===n),s=this[o(454)][i];let r=!1;s[o(376)]=e,this[o(454)][o(457)](i,1);const a=m(this[o(365)][o(456)],this[o(454)],e);return this[o(454)][o(457)](a,0,s),this[o(398)](t,Math[o(394)](i,a))&&(r=!0),r}[u(381)](t,e){const o=u;if(!this[o(412)])return!1;const n=this[o(454)][e];let i;return i=this[o(453)]?this[o(453)]({footnote:n,container:this[o(412)],digits:String(this[o(454)][o(419)])[o(419)],value:e+1}):String(e+1),n[o(376)][o(362)](o(400))!=i&&(t[o(438)](o(400),i,n[o(376)]),!0)}[u(431)](t){const e=u;if(!this[e(412)]||this[e(454)][e(419)]<2)return!1;if(function(t,o){const n=e;if(t[n(419)]!==o[n(419)])return!1;for(let e=0;e<t[n(419)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(454)][e(386)](t=>t.id),Array[e(402)](this[e(412)][e(392)]())[e(386)](t=>t[e(362)](e(458)))))return!1;let o=!1;for(let n=0;n<this[e(454)][e(419)];n++){const i=this[e(454)][n],s=t[e(420)](i[e(363)]),r=t[e(435)](this[e(412)],n);s[e(368)](r)||(t[e(429)](t[e(387)](i[e(363)]),r),o=!0)}return o}[u(461)](t){const e=u;if(!this[e(454)][e(419)])return!1;const{model:o}=this[e(365)];let n=!1;for(let i=0;i<this[e(454)][e(419)]-1;i++){const s=this[e(454)][i],r=this[e(454)][i+1],a=o[e(420)](s[e(376)]),c=o[e(420)](r[e(376)]);e(395)===a[e(427)](c)&&(this[e(411)](t,s[e(376)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(372)])return!1;const i=n(e?408:417);return t[n(426)](t[n(416)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(419)])return 0;const i=t[n(420)](o);for(let o=0;o<e[n(419)];o++){const s=e[o],r=t[n(420)](s[n(376)]);if(n(430)===i[n(427)](r))return o}const s=o[n(391)];let r=-1;for(let t=e[n(419)]-1;t>=0;t--)if(e[t][n(376)][n(391)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(422)][n(378)](),c=a[n(379)](s[n(428)]),l=a[c+1];if(l)for(let t=0;t<e[n(419)];t++)if(e[t][n(376)][n(391)][n(428)]===l)return t;return e[n(419)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=155]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(932616===-parseInt(e(186))/1*(-parseInt(e(167))/2)+parseInt(e(177))/3+-parseInt(e(184))/4+-parseInt(e(163))/5*(parseInt(e(169))/6)+-parseInt(e(187))/7+-parseInt(e(165))/8+parseInt(e(160))/9*(parseInt(e(159))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(188)](){const t=g,e=this[t(162)][t(182)][t(183)][t(175)],o=this[t(191)](e);this[t(172)]=!!o}[g(156)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(183)],r=this[e(191)](s);if(!r)return;const a=o[e(173)][e(155)](e(168)),c=t?.[e(170)]??(0,i.uid)();!function(t){const o=e;return o(157)==typeof t&&t[o(174)]>0&&!/\s/[o(158)](t)&&!/^\d/[o(158)](t)}(c)?(0,i.logWarning)(e(189)):(n[e(161)](t=>{const o=e,i=t[o(176)](o(179),{footnoteId:c});n[o(180)](i,r,null)}),a[e(171)](c))}[g(191)](t){const e=g,{model:o}=this[e(162)],{schema:n}=o,i=t[e(166)]();for(const t of i[e(178)]())if(n[e(164)](t)||n[e(190)](t))return null;const s=i[e(185)];return n[e(181)](s,e(179))?s:null}}function b(){const t=["checkChild","model","document","6914024ZFpLag","end","317149XYnOWT","11316088KFbKgB","refresh","insert-footnote-command-executed-with-invalid-id","isObject","_getPositionToInsertFootnote","get","execute","string","test","650HUKbTo","733914SpKoGE","change","editor","5928795yjsVHf","isBlock","8505528CVBGGb","getFirstRange","2FINIUC","FootnotesEditing","6xrQqea","footnoteId","_moveSelectionToFootnoteDefinition","isEnabled","plugins","length","selection","createElement","2727051damrIk","getItems","footnoteRef","insertObject"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764201600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=A;function A(t,e){const o=L();return(A=function(t,e){return o[t-=319]})(t,e)}function L(){const t=["contentInsertion","createElement","init","create","stringify","_defineClipboardIntegration","getSelectedBlocks","setAttribute","createRangeIn","getData","6243IpPkip","entries","data","1177383IlRcvX","includes","_handleCopyFootnotesDefinitions","htmlProcessor","240WrClSM","25896pxHUas","remove","find","_handlePasteFootnotesDefinitions","from","isPremiumPlugin","963XlfTcH","toModel","root","document","getFootnote","sourceEditorId","getFirstRange","footnotesDefinitions","getRanges","reduce","_insertEmptyFootnotesDefinitionsContainer","flatMap","selection","133cJmLVZ","listenTo","footnoteDefinition","footnoteRef","outputTransformation","append","toView","add","dataTransfer","266504CcGlKi","push","length","8131210YtSYMK","2917235cXdPkX","editing","application/ckeditor5-footnotes","content","isOfficialPlugin","FootnotesClipboard","insert","drop","142542wUYouf","getFootnotesDefinitionsObjectElement","definition","get","getAttribute","method","pluginName","requires","end","toData","parse","getFootnotes","setData","clipboardInput","change","footnoteId","element","editor"];return(L=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(414723===-parseInt(e(370))/1*(-parseInt(e(377))/2)+-parseInt(e(373))/3+-parseInt(e(330))/4+-parseInt(e(334))/5+-parseInt(e(342))/6*(parseInt(e(321))/7)+-parseInt(e(378))/8*(-parseInt(e(384))/9)+parseInt(e(333))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[T(348)](){return T(339)}static get[T(349)](){return[v,P.ClipboardPipeline]}static get[T(338)](){return!0}static get[T(383)](){return!0}[T(362)](){this[T(365)]()}[T(365)](){const t=T;this[t(375)](),this[t(381)]()}[T(375)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(345)](P.ClipboardPipeline),s=o[t(345)](p);this[t(322)](i,t(325),(o,i)=>{const r=t,a=D(n[r(368)](i[r(337)]));if(!a[r(332)])return;const c=s[r(353)](),l=a[r(393)]((t,o)=>{const n=r,i=c[n(380)](t=>t.id===o);if(i){const o=e[n(372)][n(327)](i[n(344)],{isClipboardPipeline:!0}),s=e[n(372)][n(376)][n(351)](o);t[i.id]=s}return t},Object[r(363)](null));i[r(329)][r(354)](r(336),JSON[r(364)](l))})}[T(381)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(335)],r=n[t(345)](P.ClipboardPipeline),a=n[t(345)](p);let c=null;this[t(322)](s[t(387)],t(355),(e,o)=>{const n=t,i=o[n(329)][n(369)](n(336));c=i?JSON[n(352)](i):null}),this[t(322)](r,t(360),(n,s)=>{const r=t,l=s[r(389)]===this[r(359)].id;l&&r(341)===s[r(347)]||o[r(356)](t=>{const n=r;let u=a[n(343)]();const f=!!u&&Array[n(382)](o[n(387)][n(320)][n(366)]())[n(374)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(368)](e))n.is(o(358),o(391))&&i[o(331)](n);for(const e of i)t[o(379)](e)}(t,s[n(337)]),!c)return;const{selection:d}=o[n(387)],p=d[n(390)]()[n(386)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(368)](e))if(n.is(o(358),o(391)))return n;return null}(t,s[n(337)]),u||=a[n(394)](t,p));const h=Array[n(382)](d[n(392)]())[n(319)](D),m=function(t,e,o){const s=n,r=Object[s(363)](null);for(const{item:n}of t[s(368)](e))if(n.is(s(358),s(324))){const e=n[s(346)](s(357));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(367)](s(357),r[e],n)}return r}(t,s[n(337)],t=>{const e=n;return!l||!!a[e(388)](t)&&!h[e(374)](t)});for(const[o,i]of Object[n(371)](c)){const s=m[o]||o,r=t[n(361)](n(323),{footnoteId:s}),a=e[n(372)][n(376)][n(327)](i),c=e[n(372)][n(385)](a,r);t[n(326)](c,r),t[n(340)](r,u,n(350))}c=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(358),e(324))&&o[e(328)](n[e(346)](e(357)));return Array[e(382)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),q=o(728),Y={attributes:{"data-cke":!0}};Y.setAttributes=W(),Y.insert=B().bind(null,"head"),Y.domAPI=M(),Y.insertStyleElement=H();R()(q.A,Y);q.A&&q.A.locals&&q.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(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}}function X(t,e){var o=$();return(X=function(t,e){return o[t-=191]})(t,e)}var J=X;function $(){var t=["724381uUYRvV","1765160rbQwPZ","60CFnAhs","Footnotes","1360CEwFWU","76705WIQsZT","isOfficialPlugin","pluginName","36luXiNO","requires","706338MBdsFx","25081NMCBtC","546909benpwO","2057836zZPLUA","isPremiumPlugin"];return($=function(){return t})()}!function(t){for(var e=X,o=t();;)try{if(416370===-parseInt(e(195))/1+-parseInt(e(205))/2+-parseInt(e(192))/3+parseInt(e(193))/4+-parseInt(e(200))/5*(parseInt(e(197))/6)+parseInt(e(191))/7*(parseInt(e(199))/8)+parseInt(e(203))/9*(parseInt(e(196))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[J(202)](){return J(198)}static get[J(204)](){return[v,_,Z]}static get[J(201)](){return!0}static get[J(194)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=344]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(830666===parseInt(e(346))/1*(parseInt(e(348))/2)+-parseInt(e(360))/3*(-parseInt(e(354))/4)+-parseInt(e(345))/5+-parseInt(e(355))/6+-parseInt(e(359))/7+parseInt(e(358))/8*(-parseInt(e(350))/9)+parseInt(e(352))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(347),tt(351),tt(356),tt(357),tt(349),tt(361),tt(344),tt(353)];function nt(){const t=["7538EwCUPc","lower-alpha","9KHDpJd","decimal-leading-zero","35426160VVZfZI","upper-roman","834876EtKqSF","2291568nBLIbr","lower-latin","upper-latin","10306184fkgSAY","7996415LLvsdG","12kIYYWi","upper-alpha","lower-roman","3954075TKLatK","15cjXBMO","decimal"];return(nt=function(){return t})()}const it=rt;function st(){const t=["3786464KaqCeq","_updateFootnotesCounters","6YTRUSc","1914264dxqUjH","value","7CeLRnW","getFootnotesDefinitionsObjectElement","setAttribute","124yJVyiT","23980836NQEDrP","36DEaUwI","13OoXavH","model","execute","isEnabled","getAttribute","2810930QEWRNg","1981546rgYzQA","get","1897310cieNdd","includes","footnotesListStyle","change","plugins","45462qGevPs","1dcTbjy","refresh"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=392]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(678313===-parseInt(e(394))/1*(-parseInt(e(413))/2)+parseInt(e(393))/3*(parseInt(e(404))/4)+-parseInt(e(412))/5*(-parseInt(e(398))/6)+parseInt(e(401))/7*(parseInt(e(399))/8)+-parseInt(e(406))/9*(-parseInt(e(415))/10)+-parseInt(e(396))/11+parseInt(e(405))/12*(-parseInt(e(407))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(395)](){const t=it,{editor:e}=this,o=e[t(392)][t(414)](p)[t(402)]();this[t(410)]=!!o,this[t(400)]=o?.[t(411)](t(417))??null}[it(409)]({value:t}){const e=it,{editor:o}=this,n=o[e(392)][e(414)](p),i=n[e(402)]();i&&ot[e(416)](t)&&o[e(408)][e(418)](o=>{const s=e;o[s(403)](s(417),t,i),n[s(397)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=181]})(t,e)}function ut(){const t=["699273tPSLdY","38618nhyvuE","model","1446333QSRkZm","isEnabled","4LmPoSc","value","834964rYlvbr","change","getAttribute","getFootnotesDefinitionsObjectElement","plugins","execute","setAttribute","get","261WWCpNu","150050uflatT","isInteger","_updateFootnotesCounters","refresh","8SRGjDS","footnotesListStart","1499770rDlDBz","750192BTchIF"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(168136===-parseInt(e(196))/1*(parseInt(e(200))/2)+parseInt(e(195))/3+parseInt(e(202))/4+-parseInt(e(193))/5+-parseInt(e(194))/6+parseInt(e(198))/7*(-parseInt(e(191))/8)+-parseInt(e(186))/9*(-parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(190)](){const t=ct,{editor:e}=this,o=e[t(182)][t(185)](p)[t(181)]();this[t(199)]=!!o,this[t(201)]=o?.[t(204)](t(192))??null}[ct(183)]({value:t}){const e=ct,{editor:o}=this,n=o[e(182)][e(185)](p),i=n[e(181)]();i&&Number[e(188)](t)&&o[e(197)][e(203)](o=>{const s=e;o[s(184)](s(192),t,i),n[s(189)](o)})}}const dt=pt;function pt(t,e){const o=yt();return(pt=function(t,e){return o[t-=249]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(874679===-parseInt(e(284))/1*(-parseInt(e(300))/2)+-parseInt(e(343))/3*(parseInt(e(291))/4)+-parseInt(e(310))/5+parseInt(e(328))/6*(parseInt(e(314))/7)+parseInt(e(325))/8+parseInt(e(327))/9*(parseInt(e(306))/10)+-parseInt(e(293))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[dt(319)](){return dt(267)}static get[dt(318)](){return[v,p]}static get[dt(307)](){return!0}static get[dt(342)](){return!0}[dt(348)](){const t=dt,{editor:e}=this;e[t(276)][t(294)](t(253),t(289)),e[t(276)][t(294)](t(309),1),e[t(290)][t(258)](t(251),new at(e)),e[t(290)][t(258)](t(296),new ft(e)),this[t(287)](),this[t(282)](),this[t(329)](),this[t(295)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(341)];o[t(292)](t(280),{allowAttributes:[t(270),t(338)]})}[dt(282)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(320)](t(254))[t(258)](e=>{const o=t;e.on(o(260),(t,e,n)=>{const s=o,r=e[s(256)],a=e[s(336)]?.[s(347)];r[s(269)](s(255))&&a?.is(s(278),s(280))&&(function(t,e,o,n){const i=s;if(!n[i(350)](e,i(338)))return;let r=1;const a=o[i(298)][i(324)](t,{attributes:i(265)});if(a){const e=Number[i(335)](t[i(250)](i(265)),10);Number[i(346)](e)||(r=e)}!a&&e[i(316)](i(338))||o[i(305)][i(326)](i(338),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(350)](e,i(270)))return;let r=i(289),a=!1;if(o[i(298)][i(324)](t,{attributes:i(275)})){const e={1:i(289),a:i(331),A:i(259),i:i(345),I:i(304)}[t[i(250)](i(275))];e&&(r=e),a=!0}o[i(298)][i(324)](t,{styles:i(272)})&&(r=t[i(261)](i(272)),a=!0),!a&&e[i(316)](i(270))||o[i(305)][i(326)](i(270),r,e)}(r,a,n,i))})}),o[t(320)](t(344))[t(258)](e=>{const o=t;e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(298)][i(324)](e[i(339)],t[i(262)]))return;const s=mt(e[i(339)],n[i(286)]),{attributeNewValue:r}=e;null==r||1===r?n[i(305)][i(274)](i(265),s):n[i(305)][i(326)](i(265),String(r),s)}),e.on(o(279),(t,e,n)=>{const i=o;if(!n[i(298)][i(324)](e[i(339)],t[i(262)]))return;const s=mt(e[i(339)],n[i(286)]),{attributeNewValue:r}=e;r&&i(289)!==r?n[i(305)][i(271)](i(272),r,s):n[i(305)][i(257)](i(272),s)})})}[dt(295)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(303)][t(333)](p),i=this[t(297)](),s=this[t(332)]();o[t(340)][t(263)](e=>{const r=t,a=o[r(340)][r(317)][r(330)]();let c=!1;for(const t of a){if(r(252)!==t[r(275)]||r(277)===t[r(262)])continue;const n=o[r(288)](t[r(313)][r(281)]);for(const t of n[r(249)]())t.is(r(278),r(280))&&(!t[r(316)](r(338))&&o[r(302)][r(350)](t,r(338))&&(e[r(326)](r(338),s,t),c=!0),!t[r(316)](r(270))&&o[r(302)][r(350)](t,r(270))&&(e[r(326)](r(270),i,t),c=!0))}return c&&n[r(266)](e),c})}[dt(329)](){const t=dt,{editor:e}=this;e[t(303)][t(333)](p)[t(312)](e=>this[t(315)](e))}[dt(297)](){const t=dt;return this[t(273)][t(276)][t(333)](t(253))}[dt(332)](){const t=dt;return this[t(273)][t(276)][t(333)](t(309))}[dt(315)]({container:t,value:e,digits:o}){const n=dt,i=t[n(250)](n(270)),s=t[n(250)](n(338)),r=Math[n(299)](e)+(s??1)-1;switch(i){case n(321):return function(t,e){const o=n;return String(t)[o(283)](e,"0")}(r,Math[n(311)](2,o));case n(331):case n(264):return gt(r,!1);case n(259):case n(308):return gt(r,!0);case n(345):return bt(r,!1);case n(304):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(285)](t);return Array[o(322)](n[o(337)]())[o(301)](t=>t.is(o(278),"ol")&&t[o(269)](o(255)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(349)](97+t)+n,i=Math[o(299)]((i-1)/26)}return e?n[o(334)]():n}const wt=[{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 yt(){const t=["18367vtLYXt","toViewElement","mapper","_defineSchema","createRangeOn","decimal","commands","16ERcBUu","extend","1790723EcnCmY","define","_definePostfixer","footnotesStart","_getDefaultListStyle","consumable","floor","88vZMMEq","find","schema","plugins","upper-roman","writer","687070YZHCJk","isOfficialPlugin","upper-latin","footnotes.footnotesProperties.defaultStartIndex","8603620hsexyU","max","setFootnoteFormatter","position","63fNlWPK","_formatFootnoteListValue","hasAttribute","differ","requires","pluginName","for","decimal-leading-zero","from","toLowerCase","consume","9276824qblmMZ","setAttribute","180xyaAzN","728814qfUPlB","_defineFormatter","getChanges","lower-alpha","_getDefaultStartIndex","get","toUpperCase","parseInt","modelCursor","getChildren","footnotesListStart","item","document","model","isPremiumPlugin","1257687EpGQDE","downcast","lower-roman","isNaN","parent","init","fromCharCode","checkAttribute","getItems","getAttribute","footnotesStyle","insert","footnotes.footnotesProperties.defaultListStyle","upcast","footnotes-list","viewItem","removeStyle","add","upper-alpha","element:ol","getStyle","name","registerPostFixer","lower-latin","start","_updateFootnotesCounters","FootnotesPropertiesEditing","attribute:footnotesListStart:footnotesDefinitions","hasClass","footnotesListStyle","setStyle","list-style-type","editor","removeAttribute","type","config","$text","element","attribute:footnotesListStyle:footnotesDefinitions","footnotesDefinitions","nodeAfter","_defineConverters","padStart"];return(yt=function(){return t})()}function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(323)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=St();return(Ft=function(t,e){return o[t-=177]})(t,e)}var Et=Ft;!function(t){for(var e=Ft,o=t();;)try{if(592601===-parseInt(e(178))/1+-parseInt(e(188))/2*(-parseInt(e(187))/3)+parseInt(e(189))/4*(-parseInt(e(181))/5)+-parseInt(e(182))/6*(parseInt(e(191))/7)+parseInt(e(184))/8*(parseInt(e(183))/9)+-parseInt(e(186))/10+parseInt(e(180))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class xt extends t.Plugin{static get[Et(179)](){return Et(185)}static get[Et(190)](){return[ht,Ct]}static get[Et(177)](){return!0}static get[Et(192)](){return!0}}function St(){var t=["8286GhPavw","254xSODzy","12PLhpRY","requires","7hcHHiV","isPremiumPlugin","isOfficialPlugin","295373tkaQZz","pluginName","10572001kYtkYL","1618795MLoiHe","1885578SVjKqo","198sEnOrJ","316456bwFSZd","FootnotesProperties","86050uxJfKM"];return(St=function(){return t})()}function Pt(){var t=["1130776aPkOxA","5HyuYVF","1494828tVuhse","12ehGoiu","2113556WjoTDS","40UVzXuc","24EcLDCq","1EboHQj","6153896IexeMu","4746170bAAXnM","3783357qiTuNP","9211380pdzpVT"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=482]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(994125===parseInt(e(489))/1*(parseInt(e(482))/2)+-parseInt(e(484))/3+-parseInt(e(486))/4*(parseInt(e(483))/5)+-parseInt(e(485))/6*(-parseInt(e(490))/7)+parseInt(e(488))/8*(-parseInt(e(492))/9)+parseInt(e(487))/10*(parseInt(e(491))/11)+-parseInt(e(493))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|