@ckeditor/ckeditor5-footnotes 0.0.0-internal-20251210.0 → 0.0.0-internal-20251218.0
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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>G,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,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(565892===-parseInt(e(153))/1+parseInt(e(156))/2*(-parseInt(e(137))/3)+-parseInt(e(128))/4*(-parseInt(e(142))/5)+-parseInt(e(126))/6*(parseInt(e(146))/7)+parseInt(e(151))/8+parseInt(e(130))/9*(parseInt(e(122))/10)+-parseInt(e(113))/11*(-parseInt(e(131))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(157)];[r(155)];[r(154)];[r(145)]=new Map;constructor(t,e){const o=r;this[o(157)]=t,this[o(155)]=e[o(119)],this[o(154)]=e[o(133)]}[r(135)](){const t=r;this[t(145)][t(138)]()}[r(144)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(118)===i[e(125)]&&e(112)!==i[e(147)]&&i[e(117)][e(124)]){const t=this[e(157)][e(140)](i[e(117)][e(124)]);for(const o of t[e(123)]()){if(!o.is(e(150),this[e(155)]))continue;const t=this[e(154)](o);n[e(141)](t)||n[e(114)](t,[]),n[e(143)](t)[e(149)](o)}}if(e(127)===i[e(125)]&&i[e(147)]===this[e(155)]){const t=this[e(154)]({getAttribute:t=>i[e(116)][e(143)](t)});o[e(139)](t)}}for(const[t,n]of this[e(145)])e(129)===n[e(115)][e(120)]&&o[e(139)](t);for(const t of o)this[e(145)][e(152)](t);for(const[t,o]of n)this[e(145)][e(114)](t,o[o[e(148)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(139)](s[0]),s[e(148)]>1?n[e(114)](t,s[e(136)](1)):n[e(152)](t),o[e(152)](t));return{removed:Array[e(132)](o),inserted:Array[e(132)](n[e(121)]())[e(134)](),moved:Array[e(132)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=112]})(t,e)}function l(){const t=["2090782iswEko","_model","$text","1133fAYrwA","set","root","attributes","position","insert","elementName","rootName","values","580lDprkO","getItems","nodeAfter","type","6AzbqPk","remove","956VffSAq","$graveyard","86571WvwdBL","131088XFgyuJ","from","getElementKey","flat","reset","slice","3nMjWEI","clear","add","createRangeOn","has","6680AwHTcq","get","getChanges","_trackedElements","1231363eAKqRI","name","length","push","element","5901776ekXCBT","delete","952908cJRASn","_getElementKey","_elementName"];return(l=function(){return t})()}const f=h;function u(){const t=["getRootNames","min","getFootnotesFormatter","some","document","isEqual","unshift","_footnoteDefsContainerTracker","differ","2538348EzNvuk","root","_footnoteFormatter","registerPostFixer","indexOf","setAttribute","model","getFootnotes","footnotes.multiBlock","findIndex","$graveyard","footnotesDefinitions","isPremiumPlugin","7XswcMR","move","from","footnoteDefinition","_updateFootnoteRefCounter","compareWith","reference","editor","createRangeOn","createElement","createPositionAt","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","config","_updateFootnotesCounters","childCount","createRangeIn","parent","351AKNlkM","footnoteId","reset","footnoteRef","set","high","append","9315531eMijdq","FootnotesTracker","add","10wfOCXQ","_sortFootnoteDefinitions","_insertEmptyFootnotesDefinitionsContainer","getChildren","isOfficialPlugin","get","createPositionBefore","find","low","before","_handleInsertedFootnoteReference","_ensureFootnotesReferencesHaveProperOrder","singleton","footnoteInlineContent","getAttribute","setFootnoteFormatter","_footnoteDefsTracker","_handleFootnoteReferencesChanges","change:data","262931aalmMg","has","enqueueChange","init","getFootnote","33nbcusK","length","rootName","remove","splice","after","definition","32268OuKvqJ","pluginName","paragraph","getFootnotesDefinitionsObjectElement","13621136yUlgfD","push","insert","_handleMovedFootnoteReference","_footnotesDefinitions","footnoteCounter","172130jnaijg","_handleRemoveFootnoteReferenceById","map","end","6896190NtQrMt","getChanges","listenTo","_handleFootnotesDefinitionsObjectChanges","_handleFootnotesDefinitionsObjectSync","_footnotes","_footnoteRefsTracker"];return(u=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(866578===-parseInt(e(301))/1*(parseInt(e(282))/2)+-parseInt(e(272))/3*(parseInt(e(313))/4)+-parseInt(e(323))/5+parseInt(e(241))/6+parseInt(e(254))/7*(parseInt(e(317))/8)+-parseInt(e(279))/9+parseInt(e(327))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(332)]=[];[f(321)]=null;[f(243)]=null;[f(239)];[f(333)];[f(298)];static get[f(314)](){return f(280)}static get[f(286)](){return!0}static get[f(253)](){return!0}constructor(t){const e=f;super(t),this[e(239)]=new a(this[e(261)][e(247)],{elementName:e(252),getElementKey:()=>e(294)}),this[e(333)]=new a(this[e(261)][e(247)],{elementName:e(275),getElementKey:t=>t[e(296)](e(273))}),this[e(298)]=new a(this[e(261)][e(247)],{elementName:e(257),getElementKey:t=>t[e(296)](e(273))})}[f(304)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(236)][t(244)](e=>{const n=t,i=o[n(236)][n(240)][n(328)]();let s=!1;return this[n(330)](e,i)&&(s=!0),this[n(266)](e,i)&&(s=!0),this[n(299)](e,i)&&(s=!0),this[n(293)](e)&&(s=!0),this[n(331)](e)&&(s=!0),this[n(283)](e)&&(s=!0),s}),this[t(329)](o[t(236)],t(300),()=>{const e=t;o[e(303)]({isUndoable:!1},t=>{this[e(265)](t)})},{priority:t(290)}),this[t(329)](n,t(276),()=>{const e=t;this[e(332)]=[],this[e(239)][e(274)](),this[e(333)][e(274)](),this[e(298)][e(274)]()},{priority:t(277)})}[f(316)](){return this[f(321)]}[f(305)](t){const e=f;return this[e(332)][e(289)](e=>e.id===t)||null}[f(248)](){const t=f;return Array[t(256)](this[t(332)])}[f(336)](){return this[f(243)]}[f(297)](t){this[f(243)]=t}[f(268)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(332)][o(307)];i++)this[o(258)](t,i)&&(n=!0);return n}[f(284)](t,e){const o=f,n=t[o(263)](o(252),{});return t[o(278)](n,e),this[o(321)]=n,n}[f(265)](t){const e=f;if(!this[e(332)][e(307)]||this[e(321)])return;const o=this[e(332)][0][e(260)][e(242)],n=this[e(284)](t,o);for(const o of this[e(332)])o[e(312)][e(271)]||t[e(319)](o[e(312)],n,e(326));this[e(268)](t)}[f(330)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(239)][o(328)](e);if(r[o(307)]&&(this[o(321)]=r[0]),i[o(307)])if(i[o(307)]>1||this[o(321)]&&i[o(337)](t=>t!==this[o(321)])){const e=t[o(263)](o(252),{}),s=[];this[o(321)]&&s[o(318)](this[o(321)]),s[o(318)](...i),t[o(319)](e,s[0],o(291));for(const n of s)t[o(255)](t[o(270)](n),t[o(264)](e,o(326))),t[o(309)](n);this[o(321)]=e,this[o(268)](t),n=!0}else this[o(321)]=i[0];if(s[o(307)]&&o(251)===this[o(321)]?.[o(242)][o(308)]){for(const e of this[o(332)])t[o(309)](e[o(260)]),n=!0;this[o(332)]=[],this[o(321)]=null}return n}[f(266)](t,e){const o=f;let n=!1;const i=this[o(261)][o(267)][o(287)](o(249)),{inserted:s,moved:r}=this[o(298)][o(328)](e);for(const e of[...r,...s]){const s=e[o(296)](o(273)),r=this[o(305)](s);r&&(r[o(312)]=e),p(t,i,e)&&(n=!0)}return n}[f(299)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(333)][o(328)](e);for(const e of i)this[o(324)](t,e)&&(n=!0);for(const e of s)this[o(292)](t,e)&&(n=!0);for(const e of r)this[o(320)](t,e)&&(n=!0);return n}[f(331)](t){const e=f;if(!this[e(321)])return!1;let o=!1;if(this[e(321)][e(269)]!==this[e(332)][e(307)]){const n=[];for(const t of this[e(321)][e(285)]()){const i=t[e(296)](e(273));this[e(305)](i)||(n[e(238)](t),o=!0)}for(const o of n)t[e(309)](o)}const n=new Set,i=[];for(const t of this[e(321)][e(285)]()){const s=t[e(296)](e(273));n[e(302)](s)?(i[e(238)](t),o=!0):n[e(281)](s)}for(const o of i)t[e(309)](o);return this[e(321)][e(269)]||(t[e(309)](this[e(321)]),this[e(321)]=null,o=!0),o}[f(292)](t,e){const o=f;if(this[o(332)][o(289)](t=>t[o(260)]===e))return!1;let n=!1;const i=e[o(296)](o(273)),s=this[o(332)][o(250)](t=>t.id===i);-1!==s&&(t[o(309)](this[o(332)][s][o(260)]),this[o(332)][o(310)](s,1),n=!0);let r=this[o(321)]?function(t,e){const n=o;for(const o of t[n(285)]())if(o[n(296)](n(273))===e)return o;return null}(this[o(321)],i):null;r||(r=t[o(263)](o(257),{footnoteId:i}),this[o(321)]&&(t[o(319)](r,this[o(321)],o(326)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(261)][o(247)],this[o(332)],e);this[o(332)][o(310)](c,0,a);let l=c;return-1!==s&&(l=Math[o(335)](c,s)),this[o(268)](t,l)&&(n=!0),n}[f(324)](t,e){const o=f,n=this[o(332)][o(250)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(332)][n];return o(251)!==s[o(312)][o(242)][o(308)]&&(t[o(309)](s[o(312)]),i=!0),this[o(332)][o(310)](n,1),this[o(268)](t,n)&&(i=!0),i}[f(320)](t,e){const o=f,n=e[o(296)](o(273)),i=this[o(332)][o(250)](t=>t.id===n),s=this[o(332)][i];let r=!1;s[o(260)]=e,this[o(332)][o(310)](i,1);const a=m(this[o(261)][o(247)],this[o(332)],e);return this[o(332)][o(310)](a,0,s),this[o(268)](t,Math[o(335)](i,a))&&(r=!0),r}[f(258)](t,e){const o=f;if(!this[o(321)])return!1;const n=this[o(332)][e];let i;return i=this[o(243)]?this[o(243)]({footnote:n,container:this[o(321)],digits:String(this[o(332)][o(307)])[o(307)],value:e+1}):String(e+1),n[o(260)][o(296)](o(322))!=i&&(t[o(246)](o(322),i,n[o(260)]),!0)}[f(283)](t){const e=f;if(!this[e(321)]||this[e(332)][e(307)]<2)return!1;if(function(t,o){const n=e;if(t[n(307)]!==o[n(307)])return!1;for(let e=0;e<t[n(307)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(332)][e(325)](t=>t.id),Array[e(256)](this[e(321)][e(285)]())[e(325)](t=>t[e(296)](e(273)))))return!1;let o=!1;for(let n=0;n<this[e(332)][e(307)];n++){const i=this[e(332)][n],s=t[e(288)](i[e(312)]),r=t[e(264)](this[e(321)],n);s[e(237)](r)||(t[e(255)](t[e(262)](i[e(312)]),r),o=!0)}return o}[f(293)](t){const e=f;if(!this[e(332)][e(307)])return!1;const{model:o}=this[e(261)];let n=!1;for(let i=0;i<this[e(332)][e(307)]-1;i++){const s=this[e(332)][i],r=this[e(332)][i+1],a=o[e(288)](s[e(260)]),c=o[e(288)](r[e(260)]);e(311)===a[e(259)](c)&&(this[e(320)](t,s[e(260)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(269)])return!1;const i=n(e?315:295);return t[n(319)](t[n(263)](i),o),!0}function h(t,e){const o=u();return(h=function(t,e){return o[t-=236]})(t,e)}function m(t,e,o){const n=f;if(0===e[n(307)])return 0;const i=t[n(288)](o);for(let o=0;o<e[n(307)];o++){const s=e[o],r=t[n(288)](s[n(260)]);if(n(291)===i[n(259)](r))return o}const s=o[n(242)];let r=-1;for(let t=e[n(307)]-1;t>=0;t--)if(e[t][n(260)][n(242)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(236)][n(334)](),c=a[n(245)](s[n(308)]),l=a[c+1];if(l)for(let t=0;t<e[n(307)];t++)if(e[t][n(260)][n(242)][n(308)]===l)return t;return e[n(307)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=266]})(t,e)}function y(){const t=["checkChild","4219605qIpdSV","20foOJvv","insert-footnote-command-executed-with-invalid-id","footnoteRef","186672SZIhTO","5399UdgEfL","5671540lXdsiu","_getPositionToInsertFootnote","length","140493DSYgeL","insertObject","refresh","isEnabled","string","test","FootnotesEditing","48zyRuRt","isObject","560XBbpRL","34552yekHae","selection","get","createElement","983210WDSpDx","change","editor","_moveSelectionToFootnoteDefinition","execute","document","model","end","getFirstRange","plugins","getItems","footnoteId","isBlock"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(320654===-parseInt(e(279))/1*(parseInt(e(290))/2)+parseInt(e(283))/3*(parseInt(e(275))/4)+-parseInt(e(297))/5+-parseInt(e(278))/6+parseInt(e(292))/7*(parseInt(e(293))/8)+-parseInt(e(274))/9+parseInt(e(280))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(285)](){const t=g,e=this[t(299)][t(266)][t(302)][t(294)],o=this[t(281)](e);this[t(286)]=!!o}[g(301)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(302)],r=this[e(281)](s);if(!r)return;const a=o[e(269)][e(295)](e(289)),c=t?.[e(271)]??(0,i.uid)();!function(t){const o=e;return o(287)==typeof t&&t[o(282)]>0&&!/\s/[o(288)](t)&&!/^\d/[o(288)](t)}(c)?(0,i.logWarning)(e(276)):(n[e(298)](t=>{const o=e,i=t[o(296)](o(277),{footnoteId:c});n[o(284)](i,r,null)}),a[e(300)](c))}[g(281)](t){const e=g,{model:o}=this[e(299)],{schema:n}=o,i=t[e(268)]();for(const t of i[e(270)]())if(n[e(272)](t)||n[e(291)](t))return null;const s=i[e(267)];return n[e(273)](s,e(277))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765324800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>S(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)(S(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(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 S(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 E(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 P=L;function T(){const t=["editing","method","_handleCopyFootnotesDefinitions","setAttribute","footnoteInlineContent","36FoftZm","config","toView","sourceEditorId","data","footnotes.multiBlock","_insertEmptyFootnotesDefinitionsContainer","entries","toModel","21AFTDqN","append","listenTo","5YGqmIz","getRanges","stringify","87816iJXiFb","from","createElement","clipboardInput","outputTransformation","_handlePasteFootnotesDefinitions","length","end","contentInsertion","document","parse","reduce","dataTransfer","pluginName","htmlProcessor","find","footnoteId","154811NpFafQ","includes","getFirstRange","getFootnotes","isOfficialPlugin","create","getFootnote","flatMap","change","element","getData","979992iOsbcX","createRangeIn","init","add","editor","setData","selection","footnoteDefinition","requires","get","drop","395632eCyLJe","227272qXbdfh","content","_defineClipboardIntegration","application/ckeditor5-footnotes","footnoteRef","3506990ZoKqxP","definition","595962gvaOLo","getFootnotesDefinitionsObjectElement","isPremiumPlugin","push","root","footnotesDefinitions","FootnotesClipboard","remove","getSelectedBlocks","insert","getAttribute","toData"];return(T=function(){return t})()}function L(t,e){const o=T();return(L=function(t,e){return o[t-=315]})(t,e)}!function(t){const e=L,o=t();for(;;)try{if(189816===-parseInt(e(384))/1+parseInt(e(327))/2+parseInt(e(335))/3+-parseInt(e(316))/4*(parseInt(e(364))/5)+parseInt(e(367))/6*(-parseInt(e(361))/7)+parseInt(e(328))/8*(-parseInt(e(352))/9)+parseInt(e(333))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class D extends t.Plugin{static get[P(380)](){return P(341)}static get[P(324)](){return[v,A.ClipboardPipeline]}static get[P(388)](){return!0}static get[P(337)](){return!0}[P(318)](){this[P(330)]()}[P(330)](){const t=P;this[t(349)](),this[t(372)]()}[P(349)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(325)](A.ClipboardPipeline),s=o[t(325)](d);this[t(363)](i,t(371),(o,i)=>{const r=t,a=_(n[r(317)](i[r(329)]));if(!a[r(373)])return;const c=s[r(387)](),l=a[r(378)]((t,o)=>{const n=r,i=c[n(382)](t=>t.id===o);if(i){const o=e[n(356)][n(354)](i[n(334)],{isClipboardPipeline:!0}),s=e[n(356)][n(381)][n(346)](o);t[i.id]=s}return t},Object[r(389)](null));i[r(379)][r(321)](r(331),JSON[r(366)](l))})}[P(372)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(347)],r=n[t(325)](A.ClipboardPipeline),a=n[t(325)](d),c=e[t(353)][t(325)](t(357));let l=null;this[t(363)](s[t(376)],t(370),(e,o)=>{const n=t,i=o[n(379)][n(315)](n(331));l=i?JSON[n(377)](i):null}),this[t(363)](r,t(375),(n,s)=>{const r=t,f=s[r(355)]===this[r(320)].id;f&&r(326)===s[r(348)]||o[r(392)](t=>{const n=r;let u=a[n(336)]();const d=!!u&&Array[n(368)](o[n(376)][n(322)][n(343)]())[n(385)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(317)](e))n.is(o(393),o(340))&&i[o(338)](n);for(const e of i)t[o(342)](e)}(t,s[n(329)]),!l)return;const{selection:p}=o[n(376)],h=p[n(386)]()[n(339)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(317)](e))if(n.is(o(393),o(340)))return n;return null}(t,s[n(329)]),u||=a[n(358)](t,h));const m=Array[n(368)](p[n(365)]())[n(391)](_),g=function(t,e,o){const s=n,r=Object[s(389)](null);for(const{item:n}of t[s(317)](e))if(n.is(s(393),s(332))){const e=n[s(345)](s(383));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(350)](s(383),r[e],n)}return r}(t,s[n(329)],t=>{const e=n;return!f||!!a[e(390)](t)&&!m[e(385)](t)});for(const[o,i]of Object[n(359)](l)){const s=g[o]||o,r=t[n(369)](n(323),{footnoteId:s}),a=e[n(356)][n(381)][n(354)](i);let l;if(c)l=e[n(356)][n(360)](a,r);else{l=t[n(369)](n(351));const o=e[n(356)][n(360)](a,l);t[n(344)](o,l)}t[n(362)](l,r),t[n(344)](r,u,n(374))}l=null})})}}function _(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(393),e(332))&&o[e(319)](n[e(345)](e(383)));return Array[e(368)](o)}var V=o(311),R=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),z=o(123),q=o.n(z),U=o(741),W=o.n(U),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=q(),X.insert=B().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=W();O()(H.A,X);H.A&&H.A.locals&&H.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function $(t,e){var o=Y();return($=function(t,e){return o[t-=489]})(t,e)}function Y(){var t=["requires","3ZFELJw","1248540Oziilv","4044MrgXMe","5276037mjrsxb","48162HppFlz","1253169TwpSva","3FQPyNS","Footnotes","7370tGVNTx","21gTJsav","isPremiumPlugin","10yhuEbD","pluginName","isOfficialPlugin","251318PXrLqo","1082328DoKfyg","105kuHLLp"];return(Y=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(319934===-parseInt(e(500))/1*(-parseInt(e(490))/2)+-parseInt(e(494))/3*(parseInt(e(495))/4)+-parseInt(e(492))/5*(-parseInt(e(498))/6)+-parseInt(e(503))/7*(parseInt(e(491))/8)+parseInt(e(499))/9*(-parseInt(e(505))/10)+-parseInt(e(502))/11*(-parseInt(e(496))/12)+parseInt(e(497))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class G extends t.Plugin{static get[Z(506)](){return Z(501)}static get[Z(493)](){return[v,D,J]}static get[Z(489)](){return!0}static get[Z(504)](){return!0}}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=124]})(t,e)}const et=tt;function ot(){const t=["3117846XPuzpB","116846VpRzrc","17gVSgbb","701688jiwKNW","decimal-leading-zero","lower-latin","upper-alpha","30sYBIcs","upper-latin","upper-roman","2103068XkHLUY","decimal","lower-alpha","7461349kggndL","628IAQtVs","1305rBdVMS","8wOtYPn","lower-roman","1721097hozQqx"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(592745===-parseInt(e(136))/1*(parseInt(e(135))/2)+parseInt(e(137))/3+parseInt(e(129))/4*(parseInt(e(130))/5)+-parseInt(e(134))/6+parseInt(e(128))/7*(parseInt(e(131))/8)+parseInt(e(133))/9+-parseInt(e(141))/10*(-parseInt(e(125))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(126),et(138),et(139),et(142),et(127),et(140),et(132),et(124)],it=rt;function st(){const t=["value","20748XpNpXA","get","198swKagT","change","7zTCcmV","374152DfWFNv","_updateFootnotesCounters","setAttribute","execute","plugins","getAttribute","model","544kOwTSm","getFootnotesDefinitionsObjectElement","isEnabled","4630BHcmAq","564670mRjKBR","5184BfajrX","footnotesListStyle","21154474cfnfCR","1548242Pcjvdj","includes","882105rbRUpB","refresh"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(643215===parseInt(e(164))/1+parseInt(e(162))/2+-parseInt(e(167))/3*(parseInt(e(179))/4)+parseInt(e(182))/5*(-parseInt(e(184))/6)+-parseInt(e(171))/7*(-parseInt(e(172))/8)+parseInt(e(169))/9*(-parseInt(e(183))/10)+parseInt(e(186))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(165)](){const t=it,{editor:e}=this,o=e[t(176)][t(168)](d)[t(180)]();this[t(181)]=!!o,this[t(166)]=o?.[t(177)](t(185))??null}[it(175)]({value:t}){const e=it,{editor:o}=this,n=o[e(176)][e(168)](d),i=n[e(180)]();i&&nt[e(163)](t)&&o[e(178)][e(170)](o=>{const s=e;o[s(174)](s(185),t,i),n[s(173)](o)})}}function ct(){const t=["753464oELtrd","isInteger","getAttribute","model","plugins","36kYOVVK","setAttribute","11XaHsal","35PezPlX","footnotesListStart","get","38010DmEhmo","4808676dCnBUL","value","63iSCRcR","196254RDjFZC","change","72vHsJkg","refresh","execute","_updateFootnotesCounters","2114571RMCgcS","1236260ATdnoC","getFootnotesDefinitionsObjectElement","isEnabled","14754VhLArV"];return(ct=function(){return t})()}const lt=ft;function ft(t,e){const o=ct();return(ft=function(t,e){return o[t-=183]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(384218===-parseInt(e(194))/1*(-parseInt(e(185))/2)+parseInt(e(207))/3+parseInt(e(203))/4*(-parseInt(e(197))/5)+-parseInt(e(201))/6*(parseInt(e(200))/7)+parseInt(e(186))/8*(parseInt(e(191))/9)+-parseInt(e(208))/10*(parseInt(e(193))/11)+-parseInt(e(198))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ut extends t.Command{[lt(204)](){const t=lt,{editor:e}=this,o=e[t(190)][t(196)](d)[t(183)]();this[t(184)]=!!o,this[t(199)]=o?.[t(188)](t(195))??null}[lt(205)]({value:t}){const e=lt,{editor:o}=this,n=o[e(190)][e(196)](d),i=n[e(183)]();i&&Number[e(187)](t)&&o[e(189)][e(202)](o=>{const s=e;o[s(192)](s(195),t,i),n[s(206)](o)})}}const dt=ht;function pt(){const t=["1781356fViWVK","attribute:footnotesListStyle:footnotesDefinitions","padStart","parent","toUpperCase","define","isOfficialPlugin","setStyle","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","from","plugins","find","parseInt","toLowerCase","FootnotesPropertiesEditing","footnotesDefinitions","nodeAfter","document","897599QoWZHR","downcast","decimal","insert","model","lower-roman","item","decimal-leading-zero","removeStyle","element:ol","modelCursor","244605YRvjUV","isPremiumPlugin","upcast","writer","editor","floor","schema","createRangeOn","footnotesListStart","for","_defineConverters","max","getStyle","position","toViewElement","2287665KqIrMg","setFootnoteFormatter","requires","isNaN","list-style-type","mapper","_formatFootnoteListValue","start","_updateFootnotesCounters","_getDefaultStartIndex","commands","getChildren","8501528VztcUF","footnotesListStyle","consume","hasClass","upper-roman","189301AblzLP","extend","getAttribute","registerPostFixer","checkAttribute","consumable","type","_defineSchema","_definePostfixer","$text","setAttribute","get","hasAttribute","footnotesStart","footnotes.footnotesProperties.defaultListStyle","element","14xbsmPw","lower-alpha","20446320ynImDT","lower-latin","pluginName","add","getItems","_defineFormatter","footnotes-list","viewItem","init","upper-alpha","config","footnotes.footnotesProperties.defaultStartIndex","getChanges","fromCharCode","footnotesStyle","name","differ","5luSgvc","_getDefaultListStyle","276fkekvi","upper-latin"];return(pt=function(){return t})()}function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=245]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(780045===parseInt(e(335))/1+-parseInt(e(293))/2*(parseInt(e(245))/3)+parseInt(e(316))/4*(parseInt(e(312))/5)+parseInt(e(314))/6*(parseInt(e(277))/7)+parseInt(e(272))/8+-parseInt(e(260))/9+-parseInt(e(295))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(297)](){return dt(331)}static get[dt(262)](){return[v,d]}static get[dt(322)](){return!0}static get[dt(246)](){return!0}[dt(303)](){const t=dt,{editor:e}=this;e[t(305)][t(321)](t(291),t(337)),e[t(305)][t(321)](t(306),1),e[t(270)][t(298)](t(309),new at(e)),e[t(270)][t(298)](t(290),new ut(e)),this[t(284)](),this[t(255)](),this[t(300)](),this[t(285)]()}[dt(284)](){const t=dt,{editor:e}=this,{schema:o}=e[t(339)];o[t(278)](t(332),{allowAttributes:[t(273),t(253)]})}[dt(255)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(254)](t(247))[t(298)](e=>{const o=t;e.on(o(344),(t,e,n)=>{const s=o,r=e[s(302)],a=e[s(345)]?.[s(319)];r[s(275)](s(301))&&a?.is(s(292),s(332))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(253)))return;let r=1;const a=o[i(282)][i(274)](t,{attributes:i(267)});if(a){const e=Number[i(329)](t[i(279)](i(267)),10);Number[i(263)](e)||(r=e)}!a&&e[i(289)](i(253))||o[i(248)][i(287)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(273)))return;let r=i(337),a=!1;if(o[i(282)][i(274)](t,{attributes:i(283)})){const e={1:i(337),a:i(294),A:i(304),i:i(340),I:i(276)}[t[i(279)](i(283))];e&&(r=e),a=!0}o[i(282)][i(274)](t,{styles:i(264)})&&(r=function(t){const e=i;switch(t){case e(294):return e(296);case e(304):return e(315);default:return t}}(t[i(257)](i(264))),a=!0),!a&&e[i(289)](i(273))||o[i(248)][i(287)](i(273),r,e)}(r,a,n,i))})}),o[t(254)](t(336))[t(298)](e=>{const o=t;e.on(o(325),(t,e,n)=>{const i=o;if(!n[i(282)][i(274)](e[i(341)],t[i(310)]))return;const s=gt(e[i(341)],n[i(265)]),{attributeNewValue:r}=e;null==r||1===r?n[i(248)][i(324)](i(267),s):n[i(248)][i(287)](i(267),String(r),s)}),e.on(o(317),(t,e,n)=>{const i=o;if(!n[i(282)][i(274)](e[i(341)],t[i(310)]))return;const s=gt(e[i(341)],n[i(265)]),{attributeNewValue:r}=e;r&&i(337)!==r?n[i(248)][i(323)](i(264),r,s):n[i(248)][i(343)](i(264),s)})})}[dt(285)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(327)][t(288)](d),i=this[t(313)](),s=this[t(269)]();o[t(334)][t(280)](e=>{const r=t,a=o[r(334)][r(311)][r(307)]();let c=!1;for(const t of a){if(r(338)!==t[r(283)]||r(286)===t[r(310)])continue;const n=o[r(252)](t[r(258)][r(333)]);for(const t of n[r(299)]())t.is(r(292),r(332))&&(!t[r(289)](r(253))&&o[r(251)][r(281)](t,r(253))&&(e[r(287)](r(253),s,t),c=!0),!t[r(289)](r(273))&&o[r(251)][r(281)](t,r(273))&&(e[r(287)](r(273),i,t),c=!0))}return c&&n[r(268)](e),c})}[dt(300)](){const t=dt,{editor:e}=this;e[t(327)][t(288)](d)[t(261)](e=>this[t(266)](e))}[dt(313)](){const t=dt;return this[t(249)][t(305)][t(288)](t(291))}[dt(269)](){const t=dt;return this[t(249)][t(305)][t(288)](t(306))}[dt(266)]({container:t,value:e,digits:o}){const n=dt,i=t[n(279)](n(273)),s=t[n(279)](n(253)),r=Math[n(250)](e)+(s??1)-1;switch(i){case n(342):return function(t,e){const o=n;return String(t)[o(318)](e,"0")}(r,Math[n(256)](2,o));case n(294):case n(296):return wt(r,!1);case n(304):case n(315):return wt(r,!0);case n(340):return bt(r,!1);case n(276):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(259)](t);return Array[o(326)](n[o(271)]())[o(328)](t=>t.is(o(292),"ol")&&t[o(275)](o(301)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(308)](97+t)+n,i=Math[o(250)]((i-1)/26)}return e?n[o(320)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(330)]()}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=q(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();O()(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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=St();return(Ft=function(t,e){return o[t-=100]})(t,e)}var xt=Ft;function St(){var t=["2562620bAgnLv","4cTPiGL","1pSvHmN","108aOwyDN","193035BBrDMs","6qskcLR","pluginName","3117709PnuVcZ","694133QivecY","FootnotesProperties","requires","517389iabRIA","1443006ZqBzWr","isPremiumPlugin","2055304KwHuSy","32IQXEqO","isOfficialPlugin"];return(St=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(631262===parseInt(e(106))/1*(parseInt(e(101))/2)+-parseInt(e(115))/3*(parseInt(e(105))/4)+parseInt(e(108))/5+-parseInt(e(109))/6*(parseInt(e(111))/7)+-parseInt(e(102))/8*(parseInt(e(116))/9)+parseInt(e(104))/10+-parseInt(e(112))/11*(-parseInt(e(107))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[xt(110)](){return xt(113)}static get[xt(114)](){return[mt,Ct]}static get[xt(103)](){return!0}static get[xt(100)](){return!0}}function At(){var t=["1067101UWJiQa","3557760DSvoLI","1078936WyMCiS","648542XHryxZ","5snuHaQ","44494272vQiLar","1641942boNdGi","10223064QThvGZ","18zjpNOR"];return(At=function(){return t})()}function Pt(t,e){var o=At();return(Pt=function(t,e){return o[t-=231]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(822897===-parseInt(e(233))/1+-parseInt(e(236))/2+-parseInt(e(231))/3+parseInt(e(232))/4*(parseInt(e(234))/5)+-parseInt(e(238))/6*(parseInt(e(239))/7)+-parseInt(e(237))/8+parseInt(e(235))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:()=>G,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["from","add","root","$graveyard","_getElementKey","18pUxgqB","27016ksHbMN","createRangeOn","has","type","delete","132Pqiasj","push","set","slice","attributes","nodeAfter","reset","values","insert","_trackedElements","getChanges","_model","getItems","$text","getElementKey","name","rootName","position","length","get","201828HJYKJr","clear","_elementName","element","flat","179590vOEoFt","remove","16514880hnaJIy","elementName","90218ZMXJYi","2128pNrBly","874944SRKVqr","1495536uDCiuX"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(573454===-parseInt(e(260))/1*(-parseInt(e(295))/2)+parseInt(e(286))/3+-parseInt(e(254))/4+parseInt(e(291))/5*(parseInt(e(266))/6)+parseInt(e(252))/7*(parseInt(e(261))/8)+-parseInt(e(253))/9+-parseInt(e(293))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(277)];[r(288)];[r(259)];[r(275)]=new Map;constructor(t,e){const o=r;this[o(277)]=t,this[o(288)]=e[o(294)],this[o(259)]=e[o(280)]}[r(272)](){const t=r;this[t(275)][t(287)]()}[r(276)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(274)===i[e(264)]&&e(279)!==i[e(281)]&&i[e(283)][e(271)]){const t=this[e(277)][e(262)](i[e(283)][e(271)]);for(const o of t[e(278)]()){if(!o.is(e(289),this[e(288)]))continue;const t=this[e(259)](o);n[e(263)](t)||n[e(268)](t,[]),n[e(285)](t)[e(267)](o)}}if(e(292)===i[e(264)]&&i[e(281)]===this[e(288)]){const t=this[e(259)]({getAttribute:t=>i[e(270)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(275)])e(258)===n[e(257)][e(282)]&&o[e(256)](t);for(const t of o)this[e(275)][e(265)](t);for(const[t,o]of n)this[e(275)][e(268)](t,o[o[e(284)]-1]);const i=new Set;for(const[t,s]of n)o[e(263)](t)&&(i[e(256)](s[0]),s[e(284)]>1?n[e(268)](t,s[e(269)](1)):n[e(265)](t),o[e(265)](t));return{removed:Array[e(255)](o),inserted:Array[e(255)](n[e(273)]())[e(290)](),moved:Array[e(255)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=497]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(645319===-parseInt(e(598))/1+-parseInt(e(540))/2*(parseInt(e(511))/3)+-parseInt(e(536))/4*(parseInt(e(574))/5)+parseInt(e(571))/6*(-parseInt(e(512))/7)+parseInt(e(565))/8+-parseInt(e(553))/9*(-parseInt(e(585))/10)+parseInt(e(549))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(580)]=[];[u(588)]=null;[u(501)]=null;[u(507)];[u(586)];[u(523)];static get[u(532)](){return u(577)}static get[u(582)](){return!0}static get[u(597)](){return!0}constructor(t){const e=u;super(t),this[e(507)]=new l(this[e(581)][e(517)],{elementName:e(497),getElementKey:()=>e(544)}),this[e(586)]=new l(this[e(581)][e(517)],{elementName:e(539),getElementKey:t=>t[e(578)](e(587))}),this[e(523)]=new l(this[e(581)][e(517)],{elementName:e(543),getElementKey:t=>t[e(578)](e(587))})}[u(589)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(558)][t(509)](e=>{const n=t,i=o[n(558)][n(552)][n(562)]();let s=!1;return this[n(591)](e,i)&&(s=!0),this[n(572)](e,i)&&(s=!0),this[n(500)](e,i)&&(s=!0),this[n(595)](e)&&(s=!0),this[n(548)](e)&&(s=!0),this[n(521)](e)&&(s=!0),s}),this[t(547)](o[t(558)],t(519),()=>{const e=t;o[e(527)]({isUndoable:!1},t=>{this[e(504)](t)})},{priority:t(575)}),this[t(547)](n,t(551),()=>{const e=t;this[e(580)]=[],this[e(507)][e(515)](),this[e(586)][e(515)](),this[e(523)][e(515)]()},{priority:t(545)})}[u(534)](){return this[u(588)]}[u(541)](t){const e=u;return this[e(580)][e(533)](e=>e.id===t)||null}[u(502)](){const t=u;return Array[t(554)](this[t(580)])}[u(557)](){return this[u(501)]}[u(593)](t){this[u(501)]=t}[u(570)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(580)][o(535)];i++)this[o(525)](t,i)&&(n=!0);return n}[u(514)](t,e){const o=u,n=t[o(529)](o(497),{});return t[o(518)](n,e),this[o(588)]=n,n}[u(504)](t){const e=u;if(!this[e(580)][e(535)]||this[e(588)])return;const o=this[e(580)][0][e(563)][e(546)],n=this[e(514)](t,o);for(const o of this[e(580)])o[e(531)][e(520)]||t[e(569)](o[e(531)],n,e(560));this[e(570)](t)}[u(591)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(507)][o(562)](e);if(r[o(535)]&&(this[o(588)]=r[0]),i[o(535)])if(i[o(535)]>1||this[o(588)]&&i[o(592)](t=>t!==this[o(588)])){const e=t[o(529)](o(497),{}),s=[];this[o(588)]&&s[o(538)](this[o(588)]),s[o(538)](...i),t[o(569)](e,s[0],o(530));for(const n of s)t[o(556)](t[o(583)](n),t[o(505)](e,o(560))),t[o(522)](n);this[o(588)]=e,this[o(570)](t),n=!0}else this[o(588)]=i[0];if(s[o(535)]&&o(590)===this[o(588)]?.[o(546)][o(568)]){for(const e of this[o(580)])t[o(522)](e[o(563)]),n=!0;this[o(580)]=[],this[o(588)]=null}return n}[u(572)](t,e){const o=u;let n=!1;const i=this[o(581)][o(564)][o(594)](o(596)),{inserted:s,moved:r}=this[o(523)][o(562)](e);for(const e of[...r,...s]){const s=e[o(578)](o(587)),r=this[o(541)](s);r&&(r[o(531)]=e),p(t,i,e)&&(n=!0)}return n}[u(500)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(586)][o(562)](e);for(const e of i)this[o(550)](t,e)&&(n=!0);for(const e of s)this[o(528)](t,e)&&(n=!0);for(const e of r)this[o(542)](t,e)&&(n=!0);return n}[u(548)](t){const e=u;if(!this[e(588)])return!1;let o=!1;if(this[e(588)][e(559)]!==this[e(580)][e(535)]){const n=[];for(const t of this[e(588)][e(584)]()){const i=t[e(578)](e(587));this[e(541)](i)||(n[e(510)](t),o=!0)}for(const o of n)t[e(522)](o)}const n=new Set,i=[];for(const t of this[e(588)][e(584)]()){const s=t[e(578)](e(587));n[e(567)](s)?(i[e(510)](t),o=!0):n[e(506)](s)}for(const o of i)t[e(522)](o);return this[e(588)][e(559)]||(t[e(522)](this[e(588)]),this[e(588)]=null,o=!0),o}[u(528)](t,e){const o=u;if(this[o(580)][o(533)](t=>t[o(563)]===e))return!1;let n=!1;const i=e[o(578)](o(587)),s=this[o(580)][o(555)](t=>t.id===i);-1!==s&&(t[o(522)](this[o(580)][s][o(563)]),this[o(580)][o(579)](s,1),n=!0);let r=this[o(588)]?function(t,e){const n=o;for(const o of t[n(584)]())if(o[n(578)](n(587))===e)return o;return null}(this[o(588)],i):null;r||(r=t[o(529)](o(543),{footnoteId:i}),this[o(588)]&&(t[o(569)](r,this[o(588)],o(560)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(581)][o(517)],this[o(580)],e);this[o(580)][o(579)](c,0,a);let l=c;return-1!==s&&(l=Math[o(513)](c,s)),this[o(570)](t,l)&&(n=!0),n}[u(550)](t,e){const o=u,n=this[o(580)][o(555)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(580)][n];return o(590)!==s[o(531)][o(546)][o(568)]&&(t[o(522)](s[o(531)]),i=!0),this[o(580)][o(579)](n,1),this[o(570)](t,n)&&(i=!0),i}[u(542)](t,e){const o=u,n=e[o(578)](o(587)),i=this[o(580)][o(555)](t=>t.id===n),s=this[o(580)][i];let r=!1;s[o(563)]=e,this[o(580)][o(579)](i,1);const a=h(this[o(581)][o(517)],this[o(580)],e);return this[o(580)][o(579)](a,0,s),this[o(570)](t,Math[o(513)](i,a))&&(r=!0),r}[u(525)](t,e){const o=u;if(!this[o(588)])return!1;const n=this[o(580)][e];let i;return i=this[o(501)]?this[o(501)]({footnote:n,container:this[o(588)],digits:String(this[o(580)][o(535)])[o(535)],value:e+1}):String(e+1),n[o(563)][o(578)](o(516))!=i&&(t[o(561)](o(516),i,n[o(563)]),!0)}[u(521)](t){const e=u;if(!this[e(588)]||this[e(580)][e(535)]<2)return!1;if(function(t,o){const n=e;if(t[n(535)]!==o[n(535)])return!1;for(let e=0;e<t[n(535)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(580)][e(524)](t=>t.id),Array[e(554)](this[e(588)][e(584)]())[e(524)](t=>t[e(578)](e(587)))))return!1;let o=!1;for(let n=0;n<this[e(580)][e(535)];n++){const i=this[e(580)][n],s=t[e(498)](i[e(531)]),r=t[e(505)](this[e(588)],n);s[e(573)](r)||(t[e(556)](t[e(499)](i[e(531)]),r),o=!0)}return o}[u(595)](t){const e=u;if(!this[e(580)][e(535)])return!1;const{model:o}=this[e(581)];let n=!1;for(let i=0;i<this[e(580)][e(535)]-1;i++){const s=this[e(580)][i],r=this[e(580)][i+1],a=o[e(498)](s[e(563)]),c=o[e(498)](r[e(563)]);e(566)===a[e(508)](c)&&(this[e(542)](t,s[e(563)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(559)])return!1;const i=n(e?503:576);return t[n(569)](t[n(529)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(535)])return 0;const i=t[n(498)](o);for(let o=0;o<e[n(535)];o++){const s=e[o],r=t[n(498)](s[n(563)]);if(n(530)===i[n(508)](r))return o}const s=o[n(546)];let r=-1;for(let t=e[n(535)]-1;t>=0;t--)if(e[t][n(563)][n(546)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(558)][n(537)](),c=a[n(526)](s[n(568)]),l=a[c+1];if(l)for(let t=0;t<e[n(535)];t++)if(e[t][n(563)][n(546)][n(568)]===l)return t;return e[n(535)]}function m(){const t=["22570174VVmaEY","_handleRemoveFootnoteReferenceById","set","differ","153TVzXdj","from","findIndex","move","getFootnotesFormatter","document","childCount","end","setAttribute","getChanges","reference","config","7424280KUxDee","after","has","rootName","insert","_updateFootnotesCounters","60ldLPSq","_handleFootnoteDefinitionsChanges","isEqual","3925EfNZzg","low","footnoteInlineContent","FootnotesTracker","getAttribute","splice","_footnotes","editor","isOfficialPlugin","createRangeIn","getChildren","147260JVpJIQ","_footnoteRefsTracker","footnoteId","_footnotesDefinitions","init","$graveyard","_handleFootnotesDefinitionsObjectChanges","some","setFootnoteFormatter","get","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","isPremiumPlugin","756347pJYBiu","footnotesDefinitions","createPositionBefore","createRangeOn","_handleFootnoteReferencesChanges","_footnoteFormatter","getFootnotes","paragraph","_ensureFootnotesDefinitionsContainerExists","createPositionAt","add","_footnoteDefsContainerTracker","compareWith","registerPostFixer","unshift","148647OkBeRv","184170drBnAF","min","_insertEmptyFootnotesDefinitionsContainer","reset","footnoteCounter","model","append","change:data","parent","_sortFootnoteDefinitions","remove","_footnoteDefsTracker","map","_updateFootnoteRefCounter","indexOf","enqueueChange","_handleInsertedFootnoteReference","createElement","before","definition","pluginName","find","getFootnotesDefinitionsObjectElement","length","5452gZcJlb","getRootNames","push","footnoteRef","20dmJDbA","getFootnote","_handleMovedFootnoteReference","footnoteDefinition","singleton","high","root","listenTo","_handleFootnotesDefinitionsObjectSync"];return(m=function(){return t})()}const g=y;function w(){const t=["isBlock","test","9DTFKpA","_getPositionToInsertFootnote","change","2826064rNnfrq","7xSxsVc","length","get","getItems","isEnabled","7344336rLgziS","isObject","footnoteId","model","90gHomYy","editor","389917YSEzun","refresh","_moveSelectionToFootnoteDefinition","FootnotesEditing","331172wuWaLd","2309172nbKQjL","getFirstRange","checkChild","8216660KmQvEU","4EhWoSf","footnoteRef","document","selection","plugins","insertObject","execute","createElement","string","insert-footnote-command-executed-with-invalid-id","end","698457eLFIAP"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(870446===-parseInt(e(401))/1+parseInt(e(385))/2+-parseInt(e(379))/3+parseInt(e(406))/4*(parseInt(e(405))/5)+parseInt(e(402))/6*(-parseInt(e(386))/7)+-parseInt(e(391))/8*(parseInt(e(382))/9)+parseInt(e(395))/10*(-parseInt(e(397))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(398)](){const t=g,e=this[t(396)][t(394)][t(370)][t(371)],o=this[t(383)](e);this[t(390)]=!!o}[g(374)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(370)],r=this[e(383)](s);if(!r)return;const a=o[e(372)][e(388)](e(400)),c=t?.[e(393)]??(0,i.uid)();!function(t){const o=e;return o(376)==typeof t&&t[o(387)]>0&&!/\s/[o(381)](t)&&!/^\d/[o(381)](t)}(c)?(0,i.logWarning)(e(377)):(n[e(384)](t=>{const o=e,i=t[o(375)](o(407),{footnoteId:c});n[o(373)](i,r,null)}),a[e(399)](c))}[g(383)](t){const e=g,{model:o}=this[e(396)],{schema:n}=o,i=t[e(403)]();for(const t of i[e(389)]())if(n[e(380)](t)||n[e(392)](t))return null;const s=i[e(378)];return n[e(404)](s,e(407))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](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:1766016e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function A(){const t=["document","getData","_handleCopyFootnotesDefinitions","end","init","dataTransfer","_insertEmptyFootnotesDefinitionsContainer","footnoteRef","createRangeIn","getFootnotesDefinitionsObjectElement","includes","append","getRanges","373101fUoQsK","listenTo","pluginName","flatMap","selection","1775992VheSdt","setAttribute","config","method","FootnotesClipboard","data","root","2390406XmJvIO","requires","_defineClipboardIntegration","isOfficialPlugin","1257046DmzbDK","toData","_handlePasteFootnotesDefinitions","stringify","getSelectedBlocks","createElement","application/ckeditor5-footnotes","sourceEditorId","2245065JREfuK","627416yHOLQD","246VpRhTF","contentInsertion","drop","setData","find","from","clipboardInput","toView","definition","length","footnotesDefinitions","change","htmlProcessor","13276QiyaCP","content","add","element","entries","getFootnotes","isPremiumPlugin","insert","reduce","create","footnoteInlineContent","outputTransformation","editing","editor","remove","push","toModel","footnoteDefinition","getFootnote","footnoteId","getFirstRange","footnotes.multiBlock","get","parse","getAttribute"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(323322===parseInt(e(274))/1+-parseInt(e(313))/2*(parseInt(e(300))/3)+parseInt(e(279))/4+-parseInt(e(298))/5+parseInt(e(286))/6+parseInt(e(290))/7+-parseInt(e(299))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(276)](){return T(283)}static get[T(287)](){return[v,P.ClipboardPipeline]}static get[T(289)](){return!0}static get[T(242)](){return!0}[T(265)](){this[T(288)]()}[T(288)](){const t=T;this[t(263)](),this[t(292)]()}[T(263)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(258)](P.ClipboardPipeline),s=o[t(258)](d);this[t(275)](i,t(247),(o,i)=>{const r=t,a=L(n[r(269)](i[r(314)]));if(!a[r(309)])return;const c=s[r(241)](),l=a[r(244)]((t,o)=>{const n=r,i=c[n(304)](t=>t.id===o);if(i){const o=e[n(284)][n(307)](i[n(308)],{isClipboardPipeline:!0}),s=e[n(284)][n(312)][n(291)](o);t[i.id]=s}return t},Object[r(245)](null));i[r(266)][r(303)](r(296),JSON[r(293)](l))})}[T(292)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(248)],r=n[t(258)](P.ClipboardPipeline),a=n[t(258)](d),c=e[t(281)][t(258)](t(257));let l=null;this[t(275)](s[t(261)],t(306),(e,o)=>{const n=t,i=o[n(266)][n(262)](n(296));l=i?JSON[n(259)](i):null}),this[t(275)](r,t(301),(n,s)=>{const r=t,u=s[r(297)]===this[r(249)].id;u&&r(302)===s[r(282)]||o[r(311)](t=>{const n=r;let f=a[n(270)]();const d=!!f&&Array[n(305)](o[n(261)][n(278)][n(294)]())[n(271)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(269)](e))n.is(o(316),o(310))&&i[o(251)](n);for(const e of i)t[o(250)](e)}(t,s[n(314)]),!l)return;const{selection:p}=o[n(261)],h=p[n(256)]()[n(285)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(269)](e))if(n.is(o(316),o(310)))return n;return null}(t,s[n(314)]),f||=a[n(267)](t,h));const m=Array[n(305)](p[n(273)]())[n(277)](L),g=function(t,e,o){const s=n,r=Object[s(245)](null);for(const{item:n}of t[s(269)](e))if(n.is(s(316),s(268))){const e=n[s(260)](s(255));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(280)](s(255),r[e],n)}return r}(t,s[n(314)],t=>{const e=n;return!u||!!a[e(254)](t)&&!m[e(271)](t)});for(const[o,i]of Object[n(317)](l)){const s=g[o]||o,r=t[n(295)](n(253),{footnoteId:s}),a=e[n(284)][n(312)][n(307)](i);let l;if(c)l=e[n(284)][n(252)](a,r);else{l=t[n(295)](n(246));const o=e[n(284)][n(252)](a,l);t[n(243)](o,l)}t[n(272)](l,r),t[n(243)](r,f,n(264))}l=null})})}}function D(t,e){const o=A();return(D=function(t,e){return o[t-=241]})(t,e)}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(316),e(268))&&o[e(315)](n[e(260)](e(255)));return Array[e(305)](o)}var V=o(311),O=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),B=o(102),M=o.n(B),U=o(123),q=o.n(U),z=o(741),H=o.n(z),W=o(728),Y={attributes:{"data-cke":!0}};Y.setAttributes=q(),Y.insert=M().bind(null,"head"),Y.domAPI=j(),Y.insertStyleElement=H();R()(W.A,Y);W.A&&W.A.locals&&W.A.locals;class X 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",J(t,V.ButtonView)),e.add("menuBar:insertFootnote",J(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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=239]})(t,e)}var $=Q;function Z(){var t=["539450xtEHph","6388240KPsyia","300YFTprT","7Dxvrqw","isPremiumPlugin","8NKJukf","1121466fIXYSr","13185kOvdWt","requires","isOfficialPlugin","152735KdLeXT","2559069mRKVxp","Footnotes","pluginName","167394QWgabq"];return(Z=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(182269===parseInt(e(246))/1+parseInt(e(250))/2+-parseInt(e(243))/3*(parseInt(e(253))/4)+parseInt(e(251))/5+parseInt(e(242))/6*(-parseInt(e(239))/7)+-parseInt(e(241))/8*(parseInt(e(247))/9)+parseInt(e(252))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[$(249)](){return $(248)}static get[$(244)](){return[v,_,X]}static get[$(245)](){return!0}static get[$(240)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=348]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(145003===-parseInt(e(354))/1*(parseInt(e(363))/2)+parseInt(e(365))/3+-parseInt(e(355))/4+parseInt(e(353))/5+-parseInt(e(350))/6*(-parseInt(e(352))/7)+parseInt(e(360))/8+-parseInt(e(357))/9*(-parseInt(e(358))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(348),tt(356),tt(362),tt(364),tt(349),tt(361),tt(359),tt(351)];function nt(){const t=["lower-alpha","30UmgHYt","upper-roman","184961fKVevj","833405mZCkCO","1iFoyBd","1126012NTyVfr","decimal-leading-zero","852534RNOdjB","20YUXGhU","lower-roman","940056qPOIQu","upper-alpha","lower-latin","433942bhNoxm","upper-latin","113166eCZVtl","decimal"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=273]})(t,e)}function rt(){const t=["8680860LcgUim","1200384zYBkRG","8vOoImK","plugins","includes","837730LqqGAE","footnotesListStyle","50xAzQFu","3BjsHrR","get","188756TLyRoC","_updateFootnotesCounters","change","execute","isEnabled","setAttribute","getAttribute","1775858UNReuv","value","6129063encOik","model","refresh","getFootnotesDefinitionsObjectElement","15541cMFqCq"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(372669===-parseInt(e(284))/1*(parseInt(e(292))/2)+parseInt(e(293))/3*(-parseInt(e(295))/4)+parseInt(e(290))/5+parseInt(e(286))/6+parseInt(e(278))/7*(parseInt(e(287))/8)+-parseInt(e(280))/9+parseInt(e(285))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(282)](){const t=it,{editor:e}=this,o=e[t(288)][t(294)](d)[t(283)]();this[t(275)]=!!o,this[t(279)]=o?.[t(277)](t(291))??null}[it(274)]({value:t}){const e=it,{editor:o}=this,n=o[e(288)][e(294)](d),i=n[e(283)]();i&&ot[e(289)](t)&&o[e(281)][e(273)](o=>{const s=e;o[s(276)](s(291),t,i),n[s(296)](o)})}}const ct=ut;function lt(){const t=["8DAKzjv","isInteger","change","901928pibjVI","971073jOgcpV","footnotesListStart","_updateFootnotesCounters","320054eXhNmA","setAttribute","plugins","20rBcYHe","get","model","316368YnHVit","1015818xolXWH","16518EhdSgv","execute","getAttribute","getFootnotesDefinitionsObjectElement","isEnabled","854gnrFos","5jFynpe","value","1955074wZEyfv","refresh"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=316]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(170716===parseInt(e(324))/1+-parseInt(e(318))/2+-parseInt(e(325))/3+parseInt(e(339))/4*(parseInt(e(332))/5)+-parseInt(e(326))/6*(parseInt(e(331))/7)+parseInt(e(336))/8*(parseInt(e(340))/9)+parseInt(e(321))/10*(parseInt(e(334))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(335)](){const t=ct,{editor:e}=this,o=e[t(320)][t(322)](d)[t(329)]();this[t(330)]=!!o,this[t(333)]=o?.[t(328)](t(316))??null}[ct(327)]({value:t}){const e=ct,{editor:o}=this,n=o[e(320)][e(322)](d),i=n[e(329)]();i&&Number[e(337)](t)&&o[e(323)][e(338)](o=>{const s=e;o[s(319)](s(316),t,i),n[s(317)](o)})}}const dt=pt;function pt(t,e){const o=gt();return(pt=function(t,e){return o[t-=106]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(350810===parseInt(e(159))/1*(-parseInt(e(136))/2)+-parseInt(e(110))/3*(parseInt(e(199))/4)+parseInt(e(202))/5*(-parseInt(e(164))/6)+parseInt(e(151))/7*(parseInt(e(144))/8)+-parseInt(e(138))/9+parseInt(e(122))/10+parseInt(e(187))/11*(parseInt(e(192))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(gt);class ht extends t.Plugin{static get[dt(111)](){return dt(201)}static get[dt(161)](){return[v,d]}static get[dt(142)](){return!0}static get[dt(160)](){return!0}[dt(170)](){const t=dt,{editor:e}=this;e[t(118)][t(129)](t(195),t(183)),e[t(118)][t(129)](t(176),1),e[t(178)][t(155)](t(139),new at(e)),e[t(178)][t(155)](t(115),new ft(e)),this[t(134)](),this[t(190)](),this[t(165)](),this[t(181)]()}[dt(134)](){const t=dt,{editor:e}=this,{schema:o}=e[t(143)];o[t(125)](t(146),{allowAttributes:[t(108),t(207)]})}[dt(190)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(113))[t(155)](e=>{const o=t;e.on(o(117),(t,e,n)=>{const s=o,r=e[s(147)],a=e[s(158)]?.[s(177)];r[s(137)](s(150))&&a?.is(s(154),s(146))&&(function(t,e,o,n){const i=s;if(!n[i(163)](e,i(207)))return;let r=1;const a=o[i(198)][i(145)](t,{attributes:i(140)});if(a){const e=Number[i(114)](t[i(121)](i(140)),10);Number[i(157)](e)||(r=e)}!a&&e[i(182)](i(207))||o[i(127)][i(107)](i(207),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(163)](e,i(108)))return;let r=i(183),a=!1;if(o[i(198)][i(145)](t,{attributes:i(184)})){const e={1:i(183),a:i(185),A:i(196),i:i(191),I:i(194)}[t[i(121)](i(184))];e&&(r=e),a=!0}o[i(198)][i(145)](t,{styles:i(156)})&&(r=function(t){const e=i;switch(t){case e(185):return e(169);case e(196):return e(116);default:return t}}(t[i(123)](i(156))),a=!0),!a&&e[i(182)](i(108))||o[i(127)][i(107)](i(108),r,e)}(r,a,n,i))})}),o[t(141)](t(126))[t(155)](e=>{const o=t;e.on(o(124),(t,e,n)=>{const i=o;if(!n[i(198)][i(145)](e[i(188)],t[i(168)]))return;const s=mt(e[i(188)],n[i(197)]),{attributeNewValue:r}=e;null==r||1===r?n[i(127)][i(119)](i(140),s):n[i(127)][i(107)](i(140),String(r),s)}),e.on(o(132),(t,e,n)=>{const i=o;if(!n[i(198)][i(145)](e[i(188)],t[i(168)]))return;const s=mt(e[i(188)],n[i(197)]),{attributeNewValue:r}=e;r&&i(183)!==r?n[i(127)][i(112)](i(156),r,s):n[i(127)][i(174)](i(156),s)})})}[dt(181)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(172)][t(171)](d),i=this[t(206)](),s=this[t(149)]();o[t(189)][t(204)](e=>{const r=t,a=o[r(189)][r(167)][r(131)]();let c=!1;for(const t of a){if(r(193)!==t[r(184)]||r(200)===t[r(168)])continue;const n=o[r(148)](t[r(175)][r(173)]);for(const t of n[r(153)]())t.is(r(154),r(146))&&(!t[r(182)](r(207))&&o[r(205)][r(163)](t,r(207))&&(e[r(107)](r(207),s,t),c=!0),!t[r(182)](r(108))&&o[r(205)][r(163)](t,r(108))&&(e[r(107)](r(108),i,t),c=!0))}return c&&n[r(179)](e),c})}[dt(165)](){const t=dt,{editor:e}=this;e[t(172)][t(171)](d)[t(152)](e=>this[t(130)](e))}[dt(206)](){const t=dt;return this[t(135)][t(118)][t(171)](t(195))}[dt(149)](){const t=dt;return this[t(135)][t(118)][t(171)](t(176))}[dt(130)]({container:t,value:e,digits:o}){const n=dt,i=t[n(121)](n(108)),s=t[n(121)](n(207)),r=Math[n(133)](e)+(s??1)-1;switch(i){case n(208):return function(t,e){const o=n;return String(t)[o(203)](e,"0")}(r,Math[n(162)](2,o));case n(185):case n(169):return wt(r,!1);case n(196):case n(116):return wt(r,!0);case n(191):return bt(r,!1);case n(194):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(128)](t);return Array[o(166)](n[o(109)]())[o(186)](t=>t.is(o(154),"ol")&&t[o(137)](o(150)))}function gt(){const t=["insert","upper-roman","footnotes.footnotesProperties.defaultListStyle","upper-alpha","mapper","consumable","17428gUxxdq","$text","FootnotesPropertiesEditing","11065LxIqgd","padStart","registerPostFixer","schema","_getDefaultListStyle","footnotesListStart","decimal-leading-zero","toLowerCase","setAttribute","footnotesListStyle","getChildren","387XZaYSx","pluginName","setStyle","upcast","parseInt","footnotesStart","upper-latin","element:ol","config","removeAttribute","fromCharCode","getAttribute","3771610lpXsqu","getStyle","attribute:footnotesListStart:footnotesDefinitions","extend","downcast","writer","toViewElement","define","_formatFootnoteListValue","getChanges","attribute:footnotesListStyle:footnotesDefinitions","floor","_defineSchema","editor","124kernAL","hasClass","4896153vlmYgZ","footnotesStyle","start","for","isOfficialPlugin","model","40mIsYRQ","consume","footnotesDefinitions","viewItem","createRangeOn","_getDefaultStartIndex","footnotes-list","615615YHQwlX","setFootnoteFormatter","getItems","element","add","list-style-type","isNaN","modelCursor","2803CcevYL","isPremiumPlugin","requires","max","checkAttribute","1446PaORox","_defineFormatter","from","differ","name","lower-latin","init","get","plugins","nodeAfter","removeStyle","position","footnotes.footnotesProperties.defaultStartIndex","parent","commands","_updateFootnotesCounters","toUpperCase","_definePostfixer","hasAttribute","decimal","type","lower-alpha","find","11SDPwlE","item","document","_defineConverters","lower-roman","16165356INrZQN"];return(gt=function(){return t})()}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(120)](97+t)+n,i=Math[o(133)]((i-1)/26)}return e?n[o(180)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(106)]()}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=q(),kt.insert=M().bind(null,"head"),kt.domAPI=j(),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:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;!function(t){for(var e=Et,o=t();;)try{if(494346===parseInt(e(342))/1+parseInt(e(337))/2*(-parseInt(e(346))/3)+parseInt(e(339))/4+parseInt(e(338))/5+-parseInt(e(345))/6+parseInt(e(343))/7+parseInt(e(341))/8*(-parseInt(e(336))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class xt extends t.Plugin{static get[Ft(334)](){return Ft(340)}static get[Ft(335)](){return[ht,Ct]}static get[Ft(333)](){return!0}static get[Ft(344)](){return!0}}function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=333]})(t,e)}function St(){var t=["8gMFrjd","345485aVbbyC","2319051vYenlA","isPremiumPlugin","2174862GuxOqw","392505PQOPsR","isOfficialPlugin","pluginName","requires","8869050QHhmsn","2XXtsOe","2522680KMgnrm","3167176pTVpvg","FootnotesProperties"];return(St=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=193]})(t,e)}function Tt(){var t=["1941700yTEEir","438457GVCYLB","330BYhWIv","1816076qwmMBb","104CQbptt","56VmBUSq","1170860MysPgu","6hpbhRe","2071350naXgQe","4726687EsUWlJ"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(836168===parseInt(e(195))/1+parseInt(e(197))/2+-parseInt(e(196))/3*(parseInt(e(198))/4)+parseInt(e(200))/5+parseInt(e(201))/6*(parseInt(e(193))/7)+parseInt(e(199))/8*(-parseInt(e(202))/9)+parseInt(e(194))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|