@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251125.1 → 0.0.0-nightly-20251127.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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=l();return(r=function(t,e){return o[t-=380]})(t,e)}const a=r;!function(t){const e=r,o=t();for(;;)try{if(434153===parseInt(e(386))/1*(parseInt(e(415))/2)+-parseInt(e(400))/3*(-parseInt(e(419))/4)+parseInt(e(412))/5*(-parseInt(e(408))/6)+-parseInt(e(382))/7*(-parseInt(e(392))/8)+parseInt(e(399))/9+parseInt(e(395))/10+-parseInt(e(385))/11*(parseInt(e(393))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[a(425)];[a(396)];[a(424)];[a(411)]=new Map;constructor(t,e){const o=a;this[o(425)]=t,this[o(396)]=e[o(421)],this[o(424)]=e[o(389)]}[a(398)](){const t=a;this[t(411)][t(403)]()}[a(409)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(394)===i[e(418)]&&e(420)!==i[e(380)]&&i[e(384)][e(414)]){const t=this[e(425)][e(391)](i[e(384)][e(414)]);for(const o of t[e(406)]()){if(!o.is(e(390),this[e(396)]))continue;const t=this[e(424)](o);n[e(410)](t)||n[e(388)](t,[]),n[e(407)](t)[e(417)](o)}}if(e(404)===i[e(418)]&&i[e(380)]===this[e(396)]){const t=this[e(424)]({getAttribute:t=>i[e(422)][e(407)](t)});o[e(401)](t)}}for(const[t,n]of this[e(411)])e(381)===n[e(397)][e(405)]&&o[e(401)](t);for(const t of o)this[e(411)][e(416)](t);for(const[t,o]of n)this[e(411)][e(388)](t,o[o[e(423)]-1]);const i=new Set;for(const[t,s]of n)o[e(410)](t)&&(i[e(401)](s[0]),s[e(423)]>1?n[e(388)](t,s[e(402)](1)):n[e(416)](t),o[e(416)](t));return{removed:Array[e(387)](o),inserted:Array[e(387)](n[e(383)]())[e(413)](),moved:Array[e(387)](i)}}}function l(){const t=["name","$graveyard","7707twJoqT","values","position","187JhDERf","20PQoEyV","from","set","getElementKey","element","createRangeOn","632XRUQku","1094928hvmZDC","insert","3623280EYBhFn","_elementName","root","reset","7715052Xkrmxc","34929FfGgrn","add","slice","clear","remove","rootName","getItems","get","3822toKOdv","getChanges","has","_trackedElements","4555HvRQDO","flat","nodeAfter","43242WlGCvu","delete","push","type","284PadUAi","$text","elementName","attributes","length","_getElementKey","_model"];return(l=function(){return t})()}function u(t,e){const o=d();return(u=function(t,e){return o[t-=360]})(t,e)}const f=u;function d(){const t=["121395nesmpK","_handleRemoveFootnoteReferenceById","set","after","model","231oGUPFv","_handleInsertedFootnoteReference","185775dztzKv","FootnotesTracker","getFootnote","$graveyard","map","_footnotesDefinitions","low","rootName","config","_insertEmptyFootnotesDefinitionsContainer","194262FsFIht","getChildren","find","append","10774314OUaAtW","root","has","getRootNames","3947516BdHYPI","move","2LyeQhO","push","setFootnoteFormatter","change:data","_updateFootnoteRefCounter","footnotes.multiBlock","from","some","isEqual","insert","get","editor","unshift","add","_handleMovedFootnoteReference","createRangeOn","getFootnotesDefinitionsObjectElement","childCount","setAttribute","isPremiumPlugin","definition","_footnoteDefsTracker","createRangeIn","_ensureFootnotesDefinitionsContainerExists","registerPostFixer","document","end","_footnoteDefsContainerTracker","enqueueChange","3439264oYJSEC","createPositionBefore","compareWith","createElement","min","footnoteDefinition","_footnoteFormatter","getFootnotes","isOfficialPlugin","3550235qgyCay","before","high","footnoteInlineContent","reference","paragraph","findIndex","createPositionAt","_handleFootnoteDefinitionsChanges","_handleFootnoteReferencesChanges","reset","splice","_sortFootnoteDefinitions","_handleFootnotesDefinitionsObjectChanges","indexOf","parent","pluginName","getChanges","_footnoteRefsTracker","footnoteId","footnoteRef","footnoteCounter","_ensureFootnotesReferencesHaveProperOrder","_footnotes","listenTo","init","remove","_handleFootnotesDefinitionsObjectSync","footnotesDefinitions","getFootnotesFormatter","_updateFootnotesCounters","getAttribute","differ","length","singleton"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(772329===-parseInt(e(436))/1*(parseInt(e(456))/2)+-parseInt(e(429))/3+-parseInt(e(454))/4+-parseInt(e(394))/5+parseInt(e(446))/6*(parseInt(e(434))/7)+parseInt(e(385))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(417)]=[];[f(441)]=null;[f(391)]=null;[f(383)];[f(412)];[f(377)];static get[f(410)](){return f(437)}static get[f(393)](){return!0}static get[f(375)](){return!0}constructor(t){const e=f;super(t),this[e(383)]=new c(this[e(367)][e(433)],{elementName:e(422),getElementKey:()=>e(428)}),this[e(412)]=new c(this[e(367)][e(433)],{elementName:e(414),getElementKey:t=>t[e(425)](e(413))}),this[e(377)]=new c(this[e(367)][e(433)],{elementName:e(390),getElementKey:t=>t[e(425)](e(413))})}[f(419)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(381)][t(380)](e=>{const n=t,i=o[n(381)][n(426)][n(411)]();let s=!1;return this[n(407)](e,i)&&(s=!0),this[n(402)](e,i)&&(s=!0),this[n(403)](e,i)&&(s=!0),this[n(416)](e)&&(s=!0),this[n(421)](e)&&(s=!0),this[n(406)](e)&&(s=!0),s}),this[t(418)](o[t(381)],t(459),()=>{const e=t;o[e(384)]({isUndoable:!1},t=>{this[e(379)](t)})},{priority:t(442)}),this[t(418)](n,t(431),()=>{const e=t;this[e(417)]=[],this[e(383)][e(404)](),this[e(412)][e(404)](),this[e(377)][e(404)]()},{priority:t(396)})}[f(372)](){return this[f(441)]}[f(438)](t){const e=f;return this[e(417)][e(448)](e=>e.id===t)||null}[f(392)](){const t=f;return Array[t(362)](this[t(417)])}[f(423)](){return this[f(391)]}[f(458)](t){this[f(391)]=t}[f(424)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(417)][o(427)];i++)this[o(360)](t,i)&&(n=!0);return n}[f(445)](t,e){const o=f,n=t[o(388)](o(422),{});return t[o(449)](n,e),this[o(441)]=n,n}[f(379)](t){const e=f;if(!this[e(417)][e(427)]||this[e(441)])return;const o=this[e(417)][0][e(398)][e(451)],n=this[e(445)](t,o);for(const o of this[e(417)])o[e(376)][e(409)]||t[e(365)](o[e(376)],n,e(382));this[e(424)](t)}[f(407)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(383)][o(411)](e);if(r[o(427)]&&(this[o(441)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(441)]&&i[o(363)](t=>t!==this[o(441)])){const e=t[o(388)](o(422),{}),s=[];this[o(441)]&&s[o(457)](this[o(441)]),s[o(457)](...i),t[o(365)](e,s[0],o(395));for(const n of s)t[o(455)](t[o(378)](n),t[o(401)](e,o(382))),t[o(420)](n);this[o(441)]=e,this[o(424)](t),n=!0}else this[o(441)]=i[0];if(s[o(427)]&&o(439)===this[o(441)]?.[o(451)][o(443)]){for(const e of this[o(417)])t[o(420)](e[o(398)]),n=!0;this[o(417)]=[],this[o(441)]=null}return n}[f(402)](t,e){const o=f;let n=!1;const i=this[o(367)][o(444)][o(366)](o(361)),{inserted:s,moved:r}=this[o(377)][o(411)](e);for(const e of[...r,...s]){const s=e[o(425)](o(413)),r=this[o(438)](s);r&&(r[o(376)]=e),p(t,i,e)&&(n=!0)}return n}[f(403)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(412)][o(411)](e);for(const e of i)this[o(430)](t,e)&&(n=!0);for(const e of s)this[o(435)](t,e)&&(n=!0);for(const e of r)this[o(370)](t,e)&&(n=!0);return n}[f(421)](t){const e=f;if(!this[e(441)])return!1;let o=!1;if(this[e(441)][e(373)]!==this[e(417)][e(427)]){const n=[];for(const t of this[e(441)][e(447)]()){const i=t[e(425)](e(413));this[e(438)](i)||(n[e(368)](t),o=!0)}for(const o of n)t[e(420)](o)}const n=new Set,i=[];for(const t of this[e(441)][e(447)]()){const s=t[e(425)](e(413));n[e(452)](s)?(i[e(368)](t),o=!0):n[e(369)](s)}for(const o of i)t[e(420)](o);return this[e(441)][e(373)]||(t[e(420)](this[e(441)]),this[e(441)]=null,o=!0),o}[f(435)](t,e){const o=f;if(this[o(417)][o(448)](t=>t[o(398)]===e))return!1;let n=!1;const i=e[o(425)](o(413)),s=this[o(417)][o(400)](t=>t.id===i);-1!==s&&(t[o(420)](this[o(417)][s][o(398)]),this[o(417)][o(405)](s,1),n=!0);let r=this[o(441)]?function(t,e){const n=o;for(const o of t[n(447)]())if(o[n(425)](n(413))===e)return o;return null}(this[o(441)],i):null;r||(r=t[o(388)](o(390),{footnoteId:i}),this[o(441)]&&(t[o(365)](r,this[o(441)],o(382)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(367)][o(433)],this[o(417)],e);this[o(417)][o(405)](c,0,a);let l=c;return-1!==s&&(l=Math[o(389)](c,s)),this[o(424)](t,l)&&(n=!0),n}[f(430)](t,e){const o=f,n=this[o(417)][o(400)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(417)][n];return o(439)!==s[o(376)][o(451)][o(443)]&&(t[o(420)](s[o(376)]),i=!0),this[o(417)][o(405)](n,1),this[o(424)](t,n)&&(i=!0),i}[f(370)](t,e){const o=f,n=e[o(425)](o(413)),i=this[o(417)][o(400)](t=>t.id===n),s=this[o(417)][i];let r=!1;s[o(398)]=e,this[o(417)][o(405)](i,1);const a=m(this[o(367)][o(433)],this[o(417)],e);return this[o(417)][o(405)](a,0,s),this[o(424)](t,Math[o(389)](i,a))&&(r=!0),r}[f(360)](t,e){const o=f;if(!this[o(441)])return!1;const n=this[o(417)][e];let i;return i=this[o(391)]?this[o(391)]({footnote:n,container:this[o(441)],digits:String(this[o(417)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(398)][o(425)](o(415))!=i&&(t[o(374)](o(415),i,n[o(398)]),!0)}[f(406)](t){const e=f;if(!this[e(441)]||this[e(417)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(417)][e(440)](t=>t.id),Array[e(362)](this[e(441)][e(447)]())[e(440)](t=>t[e(425)](e(413)))))return!1;let o=!1;for(let n=0;n<this[e(417)][e(427)];n++){const i=this[e(417)][n],s=t[e(386)](i[e(376)]),r=t[e(401)](this[e(441)],n);s[e(364)](r)||(t[e(455)](t[e(371)](i[e(376)]),r),o=!0)}return o}[f(416)](t){const e=f;if(!this[e(417)][e(427)])return!1;const{model:o}=this[e(367)];let n=!1;for(let i=0;i<this[e(417)][e(427)]-1;i++){const s=this[e(417)][i],r=this[e(417)][i+1],a=o[e(386)](s[e(398)]),c=o[e(386)](r[e(398)]);e(432)===a[e(387)](c)&&(this[e(370)](t,s[e(398)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(373)])return!1;const i=n(e?399:397);return t[n(365)](t[n(388)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(427)])return 0;const i=t[n(386)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(386)](s[n(398)]);if(n(395)===i[n(387)](r))return o}const s=o[n(451)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(398)][n(451)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(381)][n(453)](),c=a[n(408)](s[n(443)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(398)][n(451)][n(443)]===l)return t;return e[n(427)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=279]})(t,e)}function y(){const t=["6897BQYDYI","refresh","3820524dJyRiU","3745460WRDTLd","length","document","isObject","selection","_getPositionToInsertFootnote","360GidImy","insert-footnote-command-executed-with-invalid-id","model","isBlock","execute","4eOGQJm","8PvsDRQ","end","footnoteRef","plugins","editor","_moveSelectionToFootnoteDefinition","getFirstRange","change","629277zlPCEH","57916EqOKqw","FootnotesEditing","100JJdboe","isEnabled","get","string","createElement","1162049TYEHrD","checkChild","insertObject","getItems","test","footnoteId","2424537YhNimB"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(397354===-parseInt(e(300))/1+parseInt(e(302))/2*(-parseInt(e(314))/3)+parseInt(e(290))/4*(-parseInt(e(279))/5)+-parseInt(e(316))/6+-parseInt(e(307))/7*(-parseInt(e(291))/8)+-parseInt(e(313))/9+-parseInt(e(285))/10*(-parseInt(e(299))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(315)](){const t=g,e=this[t(295)][t(287)][t(281)][t(283)],o=this[t(284)](e);this[t(303)]=!!o}[g(289)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(281)],r=this[e(284)](s);if(!r)return;const a=o[e(294)][e(304)](e(301)),c=t?.[e(312)]??(0,i.uid)();!function(t){const o=e;return o(305)==typeof t&&t[o(280)]>0&&!/\s/[o(311)](t)&&!/^\d/[o(311)](t)}(c)?(0,i.logWarning)(e(286)):(n[e(298)](t=>{const o=e,i=t[o(306)](o(293),{footnoteId:c});n[o(309)](i,r,null)}),a[e(296)](c))}[g(284)](t){const e=g,{model:o}=this[e(295)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(310)]())if(n[e(288)](t)||n[e(282)](t))return null;const s=i[e(292)];return n[e(308)](s,e(293))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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 h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}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])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,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,p=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])]&&(p=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 p(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=h(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])](h(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=>{p(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:1764028800;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&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||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(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(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 T(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 S=D;!function(t){const e=D,o=t();for(;;)try{if(245086===-parseInt(e(173))/1*(parseInt(e(182))/2)+-parseInt(e(156))/3*(parseInt(e(153))/4)+parseInt(e(184))/5*(parseInt(e(161))/6)+parseInt(e(148))/7+-parseInt(e(196))/8+parseInt(e(175))/9+parseInt(e(163))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[S(159)](){return S(178)}static get[S(204)](){return[v,P.ClipboardPipeline]}static get[S(160)](){return!0}static get[S(209)](){return!0}[S(185)](){this[S(191)]()}[S(191)](){const t=S;this[t(210)](),this[t(187)]()}[S(210)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(152)](P.ClipboardPipeline),s=o[t(152)](h);this[t(217)](i,t(164),(o,i)=>{const r=t,a=L(n[r(216)](i[r(215)]));if(!a[r(193)])return;const c=s[r(189)](),l=a[r(149)]((t,o)=>{const n=r,i=c[n(208)](t=>t.id===o);if(i){const o=e[n(207)][n(195)](i[n(147)],{isClipboardPipeline:!0}),s=e[n(207)][n(170)][n(168)](o);t[i.id]=s}return t},Object[r(190)](null));i[r(144)][r(177)](r(213),JSON[r(199)](l))})}[S(187)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(176)],r=n[t(152)](P.ClipboardPipeline),a=n[t(152)](h);let c=null;this[t(217)](s[t(203)],t(206),(e,o)=>{const n=t,i=o[n(144)][n(205)](n(213));c=i?JSON[n(162)](i):null}),this[t(217)](r,t(194),(n,s)=>{const r=t,l=s[r(151)]===this[r(181)].id;l&&r(197)===s[r(146)]||o[r(188)](t=>{const n=r;let u=a[n(192)]();const f=!!u&&Array[n(145)](o[n(203)][n(171)][n(202)]())[n(158)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(216)](e))n.is(o(179),o(157))&&i[o(198)](n);for(const e of i)t[o(165)](e)}(t,s[n(215)]),!c)return;const{selection:d}=o[n(203)],h=d[n(166)]()[n(150)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(216)](e))if(n.is(o(179),o(157)))return n;return null}(t,s[n(215)]),u||=a[n(201)](t,h));const p=Array[n(145)](d[n(218)]())[n(219)](L),m=function(t,e,o){const s=n,r=Object[s(190)](null);for(const{item:n}of t[s(216)](e))if(n.is(s(179),s(211))){const e=n[s(180)](s(155));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(186)](s(155),r[e],n)}return r}(t,s[n(215)],t=>{const e=n;return!l||!!a[e(183)](t)&&!p[e(158)](t)});for(const[o,i]of Object[n(200)](c)){const s=m[o]||o,r=t[n(154)](n(169),{footnoteId:s}),a=e[n(207)][n(170)][n(195)](i),c=e[n(207)][n(214)](a,r);t[n(172)](c,r),t[n(167)](r,u,n(174))}c=null})})}}function _(){const t=["_defineClipboardIntegration","getFootnotesDefinitionsObjectElement","length","contentInsertion","toView","1852048ebNPYg","drop","push","stringify","entries","_insertEmptyFootnotesDefinitionsContainer","getSelectedBlocks","document","requires","getData","clipboardInput","data","find","isPremiumPlugin","_handleCopyFootnotesDefinitions","footnoteRef","add","application/ckeditor5-footnotes","toModel","content","createRangeIn","listenTo","getRanges","flatMap","dataTransfer","from","method","definition","609504WqIRpC","reduce","root","sourceEditorId","get","4tPWnXH","createElement","footnoteId","1078005OIGERV","footnotesDefinitions","includes","pluginName","isOfficialPlugin","1349472TgwQKv","parse","3872830tHmhxC","outputTransformation","remove","getFirstRange","insert","toData","footnoteDefinition","htmlProcessor","selection","append","57IPyBjs","end","4262283YyTupc","editing","setData","FootnotesClipboard","element","getAttribute","editor","11822yhIrWa","getFootnote","5SYZmNs","init","setAttribute","_handlePasteFootnotesDefinitions","change","getFootnotes","create"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=144]})(t,e)}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(179),e(211))&&o[e(212)](n[e(180)](e(155)));return Array[e(145)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),z=o.n(U),q=o(741),H=o.n(q),W=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();V()(W.A,G);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",Y(t,N.ButtonView)),e.add("menuBar:insertFootnote",Y(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function J(t,e){var o=Z();return(J=function(t,e){return o[t-=199]})(t,e)}var Q=J;function Z(){var t=["Footnotes","pluginName","6886206mviNXK","125892iqXWIG","1791503pOBYUn","788300XkkFMH","1786650MxPjwX","104064SreJwh","isPremiumPlugin","requires","155105fFbFgT","isOfficialPlugin","8AoXTkT","6YIaHTZ"];return(Z=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(207539===parseInt(e(210))/1+parseInt(e(203))/2+parseInt(e(207))/3+-parseInt(e(205))/4+-parseInt(e(206))/5+-parseInt(e(199))/6*(parseInt(e(204))/7)+parseInt(e(212))/8*(parseInt(e(202))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Q(201)](){return Q(200)}static get[Q(209)](){return[v,A,X]}static get[Q(211)](){return!0}static get[Q(208)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=237]})(t,e)}function ot(){const t=["3057614ocdZjJ","8531433euAtbP","lower-alpha","lower-roman","2023880qZIviw","333034wkdTJo","2087448rFkMAi","upper-alpha","77GCMvoA","610WMxZjr","decimal","upper-roman","14500AzvSbK","lower-latin","12252BsaixN","decimal-leading-zero","upper-latin","1227qMsmHy","2NFOvvb"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(790067===-parseInt(e(244))/1*(-parseInt(e(250))/2)+-parseInt(e(243))/3*(parseInt(e(238))/4)+-parseInt(e(254))/5*(parseInt(e(240))/6)+-parseInt(e(245))/7+parseInt(e(251))/8+parseInt(e(246))/9+parseInt(e(249))/10*(parseInt(e(253))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(255),tt(241),tt(239),tt(242),tt(247),tt(252),tt(248),tt(237)];function it(){const t=["footnotesListStyle","3129960leGkvs","getFootnotesDefinitionsObjectElement","plugins","getAttribute","refresh","isEnabled","execute","includes","3897504GqCGOI","2359628EiUUSn","value","change","3362022ypckhx","1186215TNsQcz","26246752xGWTEA","model","get","_updateFootnotesCounters","406767eABSiP","setAttribute"];return(it=function(){return t})()}function st(t,e){const o=it();return(st=function(t,e){return o[t-=203]})(t,e)}const rt=st;!function(t){const e=st,o=t();for(;;)try{if(641609===parseInt(e(208))/1+parseInt(e(204))/2+-parseInt(e(213))/3+parseInt(e(203))/4+parseInt(e(216))/5+parseInt(e(207))/6+-parseInt(e(209))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[rt(220)](){const t=rt,{editor:e}=this,o=e[t(218)][t(211)](h)[t(217)]();this[t(221)]=!!o,this[t(205)]=o?.[t(219)](t(215))??null}[rt(222)]({value:t}){const e=rt,{editor:o}=this,n=o[e(218)][e(211)](h),i=n[e(217)]();i&&nt[e(223)](t)&&o[e(210)][e(206)](o=>{const s=e;o[s(214)](s(215),t,i),n[s(212)](o)})}}function ct(){const t=["50QqKbNz","46036MiglOT","_updateFootnotesCounters","execute","change","setAttribute","model","4146507uBwcOh","6738yuTeYZ","1519708pXblkY","getAttribute","footnotesListStart","2453883aqkSBw","8IgqvDU","1391535cmPqcU","value","isEnabled","getFootnotesDefinitionsObjectElement","4670GoBIkc","4442949ZfDItC","plugins","get","isInteger","refresh"];return(ct=function(){return t})()}function lt(t,e){const o=ct();return(lt=function(t,e){return o[t-=291]})(t,e)}const ut=lt;!function(t){const e=lt,o=t();for(;;)try{if(724911===parseInt(e(295))/1+parseInt(e(314))/2+-parseInt(e(293))/3+parseInt(e(306))/4+parseInt(e(299))/5*(parseInt(e(313))/6)+parseInt(e(300))/7*(parseInt(e(294))/8)+parseInt(e(312))/9*(-parseInt(e(305))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[ut(304)](){const t=ut,{editor:e}=this,o=e[t(301)][t(302)](h)[t(298)]();this[t(297)]=!!o,this[t(296)]=o?.[t(291)](t(292))??null}[ut(308)]({value:t}){const e=ut,{editor:o}=this,n=o[e(301)][e(302)](h),i=n[e(298)]();i&&Number[e(303)](t)&&o[e(311)][e(309)](o=>{const s=e;o[s(310)](s(292),t,i),n[s(307)](o)})}}const dt=pt;function ht(){const t=["element:ol","footnotesListStart","getChildren","footnotesDefinitions","isNaN","start","footnotesListStyle","getStyle","getChanges","registerPostFixer","createRangeOn","commands","footnotes.footnotesProperties.defaultStartIndex","requires","1989802Nhqvfu","element","fromCharCode","max","checkAttribute","downcast","extend","removeStyle","add","type","hasAttribute","plugins","_getDefaultStartIndex","_formatFootnoteListValue","get","mapper","setAttribute","differ","5GQbqod","footnotesStart","upper-latin","upcast","_getDefaultListStyle","341UvPbNH","insert","_defineConverters","decimal-leading-zero","attribute:footnotesListStart:footnotesDefinitions","lower-alpha","list-style-type","decimal","attribute:footnotesListStyle:footnotesDefinitions","348562zvBkcj","8vecDXN","getAttribute","upper-alpha","name","define","upper-roman","nodeAfter","footnotes-list","document","$text","footnotes.footnotesProperties.defaultListStyle","_defineFormatter","schema","_updateFootnotesCounters","init","item","hasClass","floor","parent","setFootnoteFormatter","toViewElement","_defineSchema","find","pluginName","consume","_definePostfixer","config","8123211zFaxAG","modelCursor","from","2196pcXxTm","position","toUpperCase","2335781SmeXQm","viewItem","isPremiumPlugin","447890IRwVMU","model","setStyle","writer","toLowerCase","for","editor","lower-roman","1206LpBtil","removeAttribute","isOfficialPlugin","parseInt","getItems","padStart","lower-latin","consumable","FootnotesPropertiesEditing","footnotesStyle","1875618eqPmvS"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=444]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(706631===-parseInt(e(521))/1+parseInt(e(489))/2+-parseInt(e(464))/3*(-parseInt(e(450))/4)+parseInt(e(507))/5*(-parseInt(e(474))/6)+-parseInt(e(453))/7+parseInt(e(522))/8*(-parseInt(e(447))/9)+-parseInt(e(456))/10*(-parseInt(e(512))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(545)](){return dt(472)}static get[dt(488)](){return[v,h]}static get[dt(466)](){return!0}static get[dt(455)](){return!0}[dt(536)](){const t=dt,{editor:e}=this;e[t(446)][t(526)](t(532),t(519)),e[t(446)][t(526)](t(487),1),e[t(486)][t(497)](t(473),new at(e)),e[t(486)][t(497)](t(508),new ft(e)),this[t(543)](),this[t(514)](),this[t(533)](),this[t(445)]()}[dt(543)](){const t=dt,{editor:e}=this,{schema:o}=e[t(457)];o[t(495)](t(478),{allowAttributes:[t(481),t(476)]})}[dt(514)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(461)](t(510))[t(497)](e=>{const o=t;e.on(o(475),(t,e,n)=>{const s=o,r=e[s(454)],a=e[s(448)]?.[s(540)];r[s(538)](s(529))&&a?.is(s(490),s(478))&&(function(t,e,o,n){const i=s;if(!n[i(493)](e,i(476)))return;let r=1;const a=o[i(471)][i(444)](t,{attributes:i(480)});if(a){const e=Number[i(467)](t[i(523)](i(480)),10);Number[i(479)](e)||(r=e)}!a&&e[i(499)](i(476))||o[i(459)][i(505)](i(476),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(493)](e,i(481)))return;let r=i(519),a=!1;if(o[i(471)][i(444)](t,{attributes:i(498)})){const e={1:i(519),a:i(517),A:i(524),i:i(463),I:i(527)}[t[i(523)](i(498))];e&&(r=e),a=!0}o[i(471)][i(444)](t,{styles:i(518)})&&(r=t[i(482)](i(518)),a=!0),!a&&e[i(499)](i(481))||o[i(459)][i(505)](i(481),r,e)}(r,a,n,i))})}),o[t(461)](t(494))[t(497)](e=>{const o=t;e.on(o(516),(t,e,n)=>{const i=o;if(!n[i(471)][i(444)](e[i(537)],t[i(525)]))return;const s=gt(e[i(537)],n[i(504)]),{attributeNewValue:r}=e;null==r||1===r?n[i(459)][i(465)](i(480),s):n[i(459)][i(505)](i(480),String(r),s)}),e.on(o(520),(t,e,n)=>{const i=o;if(!n[i(471)][i(444)](e[i(537)],t[i(525)]))return;const s=gt(e[i(537)],n[i(504)]),{attributeNewValue:r}=e;r&&i(519)!==r?n[i(459)][i(458)](i(518),r,s):n[i(459)][i(496)](i(518),s)})})}[dt(445)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(500)][t(503)](h),i=this[t(511)](),s=this[t(501)]();o[t(530)][t(484)](e=>{const r=t,a=o[r(530)][r(506)][r(483)]();let c=!1;for(const t of a){if(r(513)!==t[r(498)]||r(531)===t[r(525)])continue;const n=o[r(485)](t[r(451)][r(528)]);for(const t of n[r(468)]())t.is(r(490),r(478))&&(!t[r(499)](r(476))&&o[r(534)][r(493)](t,r(476))&&(e[r(505)](r(476),s,t),c=!0),!t[r(499)](r(481))&&o[r(534)][r(493)](t,r(481))&&(e[r(505)](r(481),i,t),c=!0))}return c&&n[r(535)](e),c})}[dt(533)](){const t=dt,{editor:e}=this;e[t(500)][t(503)](h)[t(541)](e=>this[t(502)](e))}[dt(511)](){const t=dt;return this[t(462)][t(446)][t(503)](t(532))}[dt(501)](){const t=dt;return this[t(462)][t(446)][t(503)](t(487))}[dt(502)]({container:t,value:e,digits:o}){const n=dt,i=t[n(523)](n(481)),s=t[n(523)](n(476)),r=Math[n(539)](e)+(s??1)-1;switch(i){case n(515):return function(t,e){const o=n;return String(t)[o(469)](e,"0")}(r,Math[n(492)](2,o));case n(517):case n(470):return wt(r,!1);case n(524):case n(509):return wt(r,!0);case n(463):return bt(r,!1);case n(527):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(542)](t);return Array[o(449)](n[o(477)]())[o(544)](t=>t.is(o(490),"ol")&&t[o(538)](o(529)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(491)](97+t)+n,i=Math[o(539)]((i-1)/26)}return e?n[o(452)]():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(460)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();V()(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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["isOfficialPlugin","9196HcWEAv","8100sHBGbM","requires","5320574PKtzRJ","isPremiumPlugin","8453540irlsmC","2438824gIATJZ","615ojFzIg","pluginName","10288yHoUBN","FootnotesProperties","181788AlTqbZ","25OScTtp","686639rkmQDx"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=170]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(707522===-parseInt(e(178))/1+parseInt(e(171))/2+-parseInt(e(172))/3*(-parseInt(e(180))/4)+parseInt(e(177))/5*(parseInt(e(176))/6)+-parseInt(e(183))/7+parseInt(e(174))/8*(parseInt(e(181))/9)+-parseInt(e(170))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(173)](){return Ft(175)}static get[Ft(182)](){return[mt,Ct]}static get[Ft(179)](){return!0}static get[Ft(184)](){return!0}}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=173]})(t,e)}function St(){var t=["2972151GbLqjX","4DfIQTZ","4294194Csikxf","4818604HkCLct","121125YmKYSc","4056576MPYjGp","8ACXYCN","50918LwZCAA","10844574ocmCMl"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(918635===-parseInt(e(175))/1*(parseInt(e(178))/2)+parseInt(e(179))/3+parseInt(e(173))/4+parseInt(e(181))/5+-parseInt(e(176))/6+-parseInt(e(180))/7*(-parseInt(e(174))/8)+-parseInt(e(177))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>G,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(989130===-parseInt(e(146))/1+-parseInt(e(135))/2+-parseInt(e(132))/3+-parseInt(e(123))/4*(parseInt(e(141))/5)+parseInt(e(155))/6+parseInt(e(144))/7*(parseInt(e(148))/8)+parseInt(e(125))/9*(parseInt(e(139))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(138)];[r(127)];[r(128)];[r(140)]=new Map;constructor(t,e){const o=r;this[o(138)]=t,this[o(127)]=e[o(120)],this[o(128)]=e[o(149)]}[r(156)](){const t=r;this[t(140)][t(130)]()}[r(160)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(154)===i[e(151)]&&e(119)!==i[e(159)]&&i[e(134)][e(147)]){const t=this[e(138)][e(118)](i[e(134)][e(147)]);for(const o of t[e(122)]()){if(!o.is(e(133),this[e(127)]))continue;const t=this[e(128)](o);n[e(137)](t)||n[e(136)](t,[]),n[e(145)](t)[e(161)](o)}}if(e(143)===i[e(151)]&&i[e(159)]===this[e(127)]){const t=this[e(128)]({getAttribute:t=>i[e(153)][e(145)](t)});o[e(126)](t)}}for(const[t,n]of this[e(140)])e(152)===n[e(131)][e(157)]&&o[e(126)](t);for(const t of o)this[e(140)][e(142)](t);for(const[t,o]of n)this[e(140)][e(136)](t,o[o[e(158)]-1]);const i=new Set;for(const[t,s]of n)o[e(137)](t)&&(i[e(126)](s[0]),s[e(158)]>1?n[e(136)](t,s[e(150)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(129)]())[e(121)](),moved:Array[e(124)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=118]})(t,e)}function l(){const t=["_trackedElements","160NGnIEz","delete","remove","21xnWEYG","get","1227960JvEqRD","nodeAfter","3098816FerbDC","getElementKey","slice","type","$graveyard","attributes","insert","7577910GNLqyf","reset","rootName","length","name","getChanges","push","createRangeOn","$text","elementName","flat","getItems","201124ARxWXN","from","275841pTPHHX","add","_elementName","_getElementKey","values","clear","root","5390679tRcCVu","element","position","3473110LdBOAy","set","has","_model","1610IhNNOQ"];return(l=function(){return t})()}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543304===parseInt(e(297))/1*(-parseInt(e(262))/2)+parseInt(e(286))/3+parseInt(e(328))/4*(parseInt(e(251))/5)+parseInt(e(304))/6*(parseInt(e(312))/7)+parseInt(e(311))/8*(-parseInt(e(258))/9)+-parseInt(e(299))/10*(-parseInt(e(261))/11)+parseInt(e(331))/12*(-parseInt(e(254))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(281)]=[];[u(249)]=null;[u(283)]=null;[u(260)];[u(315)];[u(244)];static get[u(246)](){return u(259)}static get[u(308)](){return!0}static get[u(275)](){return!0}constructor(t){const e=u;super(t),this[e(260)]=new a(this[e(255)][e(288)],{elementName:e(313),getElementKey:()=>e(314)}),this[e(315)]=new a(this[e(255)][e(288)],{elementName:e(267),getElementKey:t=>t[e(333)](e(332))}),this[e(244)]=new a(this[e(255)][e(288)],{elementName:e(248),getElementKey:t=>t[e(333)](e(332))})}[u(296)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(271)][t(238)](e=>{const n=t,i=o[n(271)][n(264)][n(265)]();let s=!1;return this[n(316)](e,i)&&(s=!0),this[n(274)](e,i)&&(s=!0),this[n(234)](e,i)&&(s=!0),this[n(326)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(236)](e)&&(s=!0),s}),this[t(319)](o[t(271)],t(231),()=>{const e=t;o[e(322)]({isUndoable:!1},t=>{this[e(290)](t)})},{priority:t(232)}),this[t(319)](n,t(309),()=>{const e=t;this[e(281)]=[],this[e(260)][e(273)](),this[e(315)][e(273)](),this[e(244)][e(273)]()},{priority:t(243)})}[u(266)](){return this[u(249)]}[u(327)](t){const e=u;return this[e(281)][e(321)](e=>e.id===t)||null}[u(256)](){const t=u;return Array[t(233)](this[t(281)])}[u(300)](){return this[u(283)]}[u(285)](t){this[u(283)]=t}[u(307)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(281)][o(334)];i++)this[o(241)](t,i)&&(n=!0);return n}[u(330)](t,e){const o=u,n=t[o(294)](o(313),{});return t[o(253)](n,e),this[o(249)]=n,n}[u(290)](t){const e=u;if(!this[e(281)][e(334)]||this[e(249)])return;const o=this[e(281)][0][e(277)][e(301)],n=this[e(330)](t,o);for(const o of this[e(281)])o[e(269)][e(242)]||t[e(280)](o[e(269)],n,e(270));this[e(307)](t)}[u(316)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(260)][o(265)](e);if(r[o(334)]&&(this[o(249)]=r[0]),i[o(334)])if(i[o(334)]>1||this[o(249)]&&i[o(284)](t=>t!==this[o(249)])){const e=t[o(294)](o(313),{}),s=[];this[o(249)]&&s[o(287)](this[o(249)]),s[o(287)](...i),t[o(280)](e,s[0],o(306));for(const n of s)t[o(268)](t[o(276)](n),t[o(320)](e,o(270))),t[o(247)](n);this[o(249)]=e,this[o(307)](t),n=!0}else this[o(249)]=i[0];if(s[o(334)]&&o(298)===this[o(249)]?.[o(301)][o(302)]){for(const e of this[o(281)])t[o(247)](e[o(277)]),n=!0;this[o(281)]=[],this[o(249)]=null}return n}[u(274)](t,e){const o=u;let n=!1;const i=this[o(255)][o(310)][o(292)](o(318)),{inserted:s,moved:r}=this[o(244)][o(265)](e);for(const e of[...r,...s]){const s=e[o(333)](o(332)),r=this[o(327)](s);r&&(r[o(269)]=e),p(t,i,e)&&(n=!0)}return n}[u(234)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(315)][o(265)](e);for(const e of i)this[o(257)](t,e)&&(n=!0);for(const e of s)this[o(240)](t,e)&&(n=!0);for(const e of r)this[o(317)](t,e)&&(n=!0);return n}[u(235)](t){const e=u;if(!this[e(249)])return!1;let o=!1;if(this[e(249)][e(279)]!==this[e(281)][e(334)]){const n=[];for(const t of this[e(249)][e(252)]()){const i=t[e(333)](e(332));this[e(327)](i)||(n[e(282)](t),o=!0)}for(const o of n)t[e(247)](o)}const n=new Set,i=[];for(const t of this[e(249)][e(252)]()){const s=t[e(333)](e(332));n[e(239)](s)?(i[e(282)](t),o=!0):n[e(245)](s)}for(const o of i)t[e(247)](o);return this[e(249)][e(279)]||(t[e(247)](this[e(249)]),this[e(249)]=null,o=!0),o}[u(240)](t,e){const o=u;if(this[o(281)][o(321)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(333)](o(332)),s=this[o(281)][o(324)](t=>t.id===i);-1!==s&&(t[o(247)](this[o(281)][s][o(277)]),this[o(281)][o(303)](s,1),n=!0);let r=this[o(249)]?function(t,e){const n=o;for(const o of t[n(252)]())if(o[n(333)](n(332))===e)return o;return null}(this[o(249)],i):null;r||(r=t[o(294)](o(248),{footnoteId:i}),this[o(249)]&&(t[o(280)](r,this[o(249)],o(270)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(255)][o(288)],this[o(281)],e);this[o(281)][o(303)](c,0,a);let l=c;return-1!==s&&(l=Math[o(293)](c,s)),this[o(307)](t,l)&&(n=!0),n}[u(257)](t,e){const o=u,n=this[o(281)][o(324)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(281)][n];return o(298)!==s[o(269)][o(301)][o(302)]&&(t[o(247)](s[o(269)]),i=!0),this[o(281)][o(303)](n,1),this[o(307)](t,n)&&(i=!0),i}[u(317)](t,e){const o=u,n=e[o(333)](o(332)),i=this[o(281)][o(324)](t=>t.id===n),s=this[o(281)][i];let r=!1;s[o(277)]=e,this[o(281)][o(303)](i,1);const a=m(this[o(255)][o(288)],this[o(281)],e);return this[o(281)][o(303)](a,0,s),this[o(307)](t,Math[o(293)](i,a))&&(r=!0),r}[u(241)](t,e){const o=u;if(!this[o(249)])return!1;const n=this[o(281)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(249)],digits:String(this[o(281)][o(334)])[o(334)],value:e+1}):String(e+1),n[o(277)][o(333)](o(291))!=i&&(t[o(329)](o(291),i,n[o(277)]),!0)}[u(236)](t){const e=u;if(!this[e(249)]||this[e(281)][e(334)]<2)return!1;if(function(t,o){const n=e;if(t[n(334)]!==o[n(334)])return!1;for(let e=0;e<t[n(334)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(281)][e(305)](t=>t.id),Array[e(233)](this[e(249)][e(252)]())[e(305)](t=>t[e(333)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(281)][e(334)];n++){const i=this[e(281)][n],s=t[e(295)](i[e(269)]),r=t[e(320)](this[e(249)],n);s[e(323)](r)||(t[e(268)](t[e(250)](i[e(269)]),r),o=!0)}return o}[u(326)](t){const e=u;if(!this[e(281)][e(334)])return!1;const{model:o}=this[e(255)];let n=!1;for(let i=0;i<this[e(281)][e(334)]-1;i++){const s=this[e(281)][i],r=this[e(281)][i+1],a=o[e(295)](s[e(277)]),c=o[e(295)](r[e(277)]);e(289)===a[e(278)](c)&&(this[e(317)](t,s[e(277)]),i=-1,n=!0)}return n}}function h(){const t=["min","createElement","createPositionBefore","init","1052957AYJDSt","$graveyard","10fFNQcl","getFootnotesFormatter","root","rootName","splice","6PRGRfz","map","before","_updateFootnotesCounters","isOfficialPlugin","set","config","8GSJcgi","3556182wtIShC","footnotesDefinitions","singleton","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","footnotes.multiBlock","listenTo","createPositionAt","find","enqueueChange","isEqual","findIndex","paragraph","_ensureFootnotesReferencesHaveProperOrder","getFootnote","4162124JOSady","setAttribute","_insertEmptyFootnotesDefinitionsContainer","12KgtFKZ","footnoteId","getAttribute","length","change:data","low","from","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectSync","_sortFootnoteDefinitions","footnoteInlineContent","registerPostFixer","has","_handleInsertedFootnoteReference","_updateFootnoteRefCounter","parent","high","_footnoteDefsTracker","add","pluginName","remove","footnoteDefinition","_footnotesDefinitions","createRangeOn","5sDtoYx","getChildren","append","21041501BkDhSI","editor","getFootnotes","_handleRemoveFootnoteReferenceById","962514ARKSIy","FootnotesTracker","_footnoteDefsContainerTracker","8451773nDCxsl","2HFHPgM","getRootNames","differ","getChanges","getFootnotesDefinitionsObjectElement","footnoteRef","move","definition","end","document","indexOf","reset","_handleFootnoteDefinitionsChanges","isPremiumPlugin","createRangeIn","reference","compareWith","childCount","insert","_footnotes","unshift","_footnoteFormatter","some","setFootnoteFormatter","3014652GOXCPQ","push","model","after","_ensureFootnotesDefinitionsContainerExists","footnoteCounter","get"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(279)])return!1;const i=n(e?325:237);return t[n(280)](t[n(294)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(334)])return 0;const i=t[n(295)](o);for(let o=0;o<e[n(334)];o++){const s=e[o],r=t[n(295)](s[n(277)]);if(n(306)===i[n(278)](r))return o}const s=o[n(301)];let r=-1;for(let t=e[n(334)]-1;t>=0;t--)if(e[t][n(277)][n(301)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(271)][n(263)](),c=a[n(272)](s[n(302)]),l=a[c+1];if(l)for(let t=0;t<e[n(334)];t++)if(e[t][n(277)][n(301)][n(302)]===l)return t;return e[n(334)]}const g=y;function w(){const t=["createElement","_getPositionToInsertFootnote","model","isObject","isBlock","end","getFirstRange","plugins","get","609JLiMsh","editor","isEnabled","change","7945592xPUbNu","footnoteRef","FootnotesEditing","5140GUlcvM","insertObject","6629035NySZOv","8972DjDXip","footnoteId","7RBJmMk","_moveSelectionToFootnoteDefinition","document","getItems","2559156kDBGHx","checkChild","38313CgvydA","length","refresh","execute","696616tUAXTC","372538iyAwXN","insert-footnote-command-executed-with-invalid-id","string","test","selection"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=171]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(755966===-parseInt(e(202))/1+-parseInt(e(203))/2+parseInt(e(180))/3*(-parseInt(e(190))/4)+parseInt(e(189))/5+-parseInt(e(196))/6+-parseInt(e(192))/7*(parseInt(e(184))/8)+parseInt(e(198))/9*(parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(200)](){const t=g,e=this[t(181)][t(173)][t(194)][t(207)],o=this[t(172)](e);this[t(182)]=!!o}[g(201)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(194)],r=this[e(172)](s);if(!r)return;const a=o[e(178)][e(179)](e(186)),c=t?.[e(191)]??(0,i.uid)();!function(t){const o=e;return o(205)==typeof t&&t[o(199)]>0&&!/\s/[o(206)](t)&&!/^\d/[o(206)](t)}(c)?(0,i.logWarning)(e(204)):(n[e(183)](t=>{const o=e,i=t[o(171)](o(185),{footnoteId:c});n[o(188)](i,r,null)}),a[e(193)](c))}[g(172)](t){const e=g,{model:o}=this[e(181)],{schema:n}=o,i=t[e(177)]();for(const t of i[e(195)]())if(n[e(175)](t)||n[e(174)](t))return null;const s=i[e(176)];return n[e(197)](s,e(185))?s:null}}class I 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 h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}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])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,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,p=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])]&&(p=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 p(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=h(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])](h(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=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764201600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=397]})(t,e)}function T(){const t=["change","dataTransfer","length","2430ujEQsy","getFootnotesDefinitionsObjectElement","toData","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","88740thieDl","get","getFootnotes","root","toView","16SFDsUD","contentInsertion","footnotesDefinitions","element","25528HYkYMY","definition","parse","method","insert","content","isOfficialPlugin","create","init","outputTransformation","data","37377DRCtfg","getAttribute","252027jcwzrz","_handlePasteFootnotesDefinitions","714rOPcJq","350645xkoeTh","setData","document","includes","footnoteRef","getFootnote","application/ckeditor5-footnotes","footnoteId","clipboardInput","htmlProcessor","stringify","setAttribute","pluginName","remove","flatMap","listenTo","editor","selection","1836258aZTdMH","391338EiqgNB","requires","reduce","end","append","getRanges","getFirstRange","createRangeIn","FootnotesClipboard","from","sourceEditorId","editing","createElement","getSelectedBlocks","getData","_handleCopyFootnotesDefinitions","entries","_defineClipboardIntegration","toModel","find","push","footnoteDefinition","drop","add"];return(T=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(231948===-parseInt(e(445))/1+-parseInt(e(467))/2+-parseInt(e(423))/3+parseInt(e(428))/4*(-parseInt(e(448))/5)+parseInt(e(466))/6+-parseInt(e(447))/7*(parseInt(e(432))/8)+-parseInt(e(443))/9*(-parseInt(e(418))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(460)](){return A(399)}static get[A(468)](){return[I,S.ClipboardPipeline]}static get[A(438)](){return!0}static get[A(422)](){return!0}[A(440)](){this[A(408)]()}[A(408)](){const t=A;this[t(406)](),this[t(446)]()}[A(406)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(424)](S.ClipboardPipeline),s=o[t(424)](d);this[t(463)](i,t(441),(o,i)=>{const r=t,a=L(n[r(398)](i[r(437)]));if(!a[r(417)])return;const c=s[r(425)](),l=a[r(469)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(442)][n(427)](i[n(433)],{isClipboardPipeline:!0}),s=e[n(442)][n(457)][n(420)](o);t[i.id]=s}return t},Object[r(439)](null));i[r(416)][r(449)](r(454),JSON[r(458)](l))})}[A(446)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(402)],r=n[t(424)](S.ClipboardPipeline),a=n[t(424)](d);let c=null;this[t(463)](s[t(450)],t(456),(e,o)=>{const n=t,i=o[n(416)][n(405)](n(454));c=i?JSON[n(434)](i):null}),this[t(463)](r,t(429),(n,s)=>{const r=t,l=s[r(401)]===this[r(464)].id;l&&r(413)===s[r(435)]||o[r(415)](t=>{const n=r;let u=a[n(419)]();const f=!!u&&Array[n(400)](o[n(450)][n(465)][n(404)]())[n(451)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(398)](e))n.is(o(431),o(430))&&i[o(411)](n);for(const e of i)t[o(461)](e)}(t,s[n(437)]),!c)return;const{selection:d}=o[n(450)],h=d[n(397)]()[n(426)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(398)](e))if(n.is(o(431),o(430)))return n;return null}(t,s[n(437)]),u||=a[n(421)](t,h));const p=Array[n(400)](d[n(472)]())[n(462)](L),m=function(t,e,o){const s=n,r=Object[s(439)](null);for(const{item:n}of t[s(398)](e))if(n.is(s(431),s(452))){const e=n[s(444)](s(455));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(459)](s(455),r[e],n)}return r}(t,s[n(437)],t=>{const e=n;return!l||!!a[e(453)](t)&&!p[e(451)](t)});for(const[o,i]of Object[n(407)](c)){const s=m[o]||o,r=t[n(403)](n(412),{footnoteId:s}),a=e[n(442)][n(457)][n(427)](i),c=e[n(442)][n(409)](a,r);t[n(471)](c,r),t[n(436)](r,u,n(470))}c=null})})}}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(431),e(452))&&o[e(414)](n[e(444)](e(455)));return Array[e(400)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),Q=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();V()(Q.A,q);Q.A&&Q.A.locals&&Q.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=487]})(t,e)}function $(){var t=["requires","744yheebv","isOfficialPlugin","147wqEmkM","72088DzordO","isPremiumPlugin","6190nNhMEB","196508mQfmiL","pluginName","Footnotes","284516nCnUck","1608030hToJFw","403668QmWaXQ","13779duNCoz","1880dTRKiQ"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(210870===-parseInt(e(491))/1+parseInt(e(494))/2+-parseInt(e(496))/3+-parseInt(e(500))/4*(-parseInt(e(490))/5)+parseInt(e(495))/6+-parseInt(e(487))/7*(-parseInt(e(488))/8)+parseInt(e(497))/9*(-parseInt(e(498))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[J(492)](){return J(493)}static get[J(499)](){return[I,_,G]}static get[J(501)](){return!0}static get[J(489)](){return!0}}const tt=ot;function et(){const t=["34786GsVCYf","upper-latin","7374ZKAqCO","1445NygWIn","1975344UsxAdA","1375590fMzkCf","lower-alpha","595071nZPeyU","upper-alpha","lower-roman","upper-roman","lower-latin","9095493HHmPuj","476fhiWWQ","decimal-leading-zero","12615CxHXZK","17loMcFh","decimal","80Azhwru"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=496]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(404545===parseInt(e(501))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3*(parseInt(e(498))/4)+-parseInt(e(507))/5*(-parseInt(e(506))/6)+parseInt(e(508))/7+parseInt(e(503))/8*(parseInt(e(511))/9)+parseInt(e(509))/10+-parseInt(e(497))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(502),tt(499),tt(496),tt(505),tt(510),tt(512),tt(513),tt(514)];function it(t,e){const o=at();return(it=function(t,e){return o[t-=147]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(559253===-parseInt(e(162))/1+parseInt(e(157))/2*(-parseInt(e(155))/3)+parseInt(e(163))/4+-parseInt(e(165))/5+parseInt(e(156))/6+-parseInt(e(148))/7+-parseInt(e(169))/8*(-parseInt(e(158))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[st(159)](){const t=st,{editor:e}=this,o=e[t(164)][t(154)](d)[t(166)]();this[t(149)]=!!o,this[t(147)]=o?.[t(167)](t(160))??null}[st(152)]({value:t}){const e=st,{editor:o}=this,n=o[e(164)][e(154)](d),i=n[e(166)]();i&&nt[e(168)](t)&&o[e(151)][e(150)](o=>{const s=e;o[s(161)](s(160),t,i),n[s(153)](o)})}}function at(){const t=["getAttribute","includes","35776retOcH","value","6956488GQLXHF","isEnabled","change","model","execute","_updateFootnotesCounters","get","1410522lUQgcz","266094mRnoUY","2fYpepD","4419nolYee","refresh","footnotesListStyle","setAttribute","965873XjbhiB","3854352TZQyWE","plugins","1073025rPKJUj","getFootnotesDefinitionsObjectElement"];return(at=function(){return t})()}function ct(){const t=["value","isInteger","change","4VYbFCt","10NjkgfO","6015690YvMCXu","getAttribute","execute","64780NapTsK","8200171UUtENo","_updateFootnotesCounters","9271493MSiFVy","model","plugins","setAttribute","6574976spWPGQ","get","footnotesListStart","refresh","1635222lWReQB","isEnabled","961513wFHdOA","85svIQyI","getFootnotesDefinitionsObjectElement","6lSFSuu"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ct();return(ut=function(t,e){return o[t-=475]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(670714===parseInt(e(490))/1+-parseInt(e(497))/2*(parseInt(e(488))/3)+-parseInt(e(477))/4*(-parseInt(e(491))/5)+-parseInt(e(493))/6*(-parseInt(e(478))/7)+-parseInt(e(484))/8+-parseInt(e(499))/9*(parseInt(e(498))/10)+parseInt(e(480))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[lt(487)](){const t=lt,{editor:e}=this,o=e[t(482)][t(485)](d)[t(492)]();this[t(489)]=!!o,this[t(494)]=o?.[t(475)](t(486))??null}[lt(476)]({value:t}){const e=lt,{editor:o}=this,n=o[e(482)][e(485)](d),i=n[e(492)]();i&&Number[e(495)](t)&&o[e(481)][e(496)](o=>{const s=e;o[s(483)](s(486),t,i),n[s(479)](o)})}}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=316]})(t,e)}function pt(){const t=["define","62652axNCON","_getDefaultStartIndex","toViewElement","1035702OuRyyy","padStart","setStyle","getChildren","max","writer","isPremiumPlugin","type","upper-roman","start","setAttribute","consume","add","model","element","footnotesListStyle","FootnotesPropertiesEditing","_defineConverters","differ","insert","commands","checkAttribute","322HesPdK","_defineSchema","plugins","downcast","19982yEKuUf","nodeAfter","pluginName","fromCharCode","getItems","1556628WPCMOL","modelCursor","434922rRCWit","consumable","editor","decimal-leading-zero","requires","lower-roman","52424LBECfC","createRangeOn","2519ehJBFY","viewItem","footnotesStyle","toLowerCase","footnotesDefinitions","schema","_updateFootnotesCounters","footnotes-list","getStyle","document","setFootnoteFormatter","parseInt","_getDefaultListStyle","for","footnotesListStart","name","item","upper-alpha","extend","toUpperCase","attribute:footnotesListStyle:footnotesDefinitions","isNaN","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","find","registerPostFixer","lower-latin","lower-alpha","10aZIwxx","2uQeXfw","_defineFormatter","from","config","hasClass","footnotesStart","$text","removeStyle","upper-latin","element:ol","get","5PJyNFe","floor","getAttribute","1568313CKjAoG","upcast","list-style-type","_definePostfixer","init","isOfficialPlugin","getChanges","attribute:footnotesListStart:footnotesDefinitions","parent","mapper","position","footnotes.footnotesProperties.defaultListStyle","_formatFootnoteListValue","decimal","hasAttribute"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(377572===parseInt(e(411))/1*(-parseInt(e(352))/2)+-parseInt(e(366))/3+-parseInt(e(416))/4+-parseInt(e(363))/5*(parseInt(e(418))/6)+parseInt(e(407))/7*(parseInt(e(321))/8)+-parseInt(e(385))/9*(parseInt(e(351))/10)+-parseInt(e(323))/11*(-parseInt(e(382))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(413)](){return dt(401)}static get[dt(319)](){return[I,d]}static get[dt(371)](){return!0}static get[dt(391)](){return!0}[dt(370)](){const t=dt,{editor:e}=this;e[t(355)][t(381)](t(377),t(379)),e[t(355)][t(381)](t(346),1),e[t(405)][t(397)](t(325),new rt(e)),e[t(405)][t(397)](t(357),new ft(e)),this[t(408)](),this[t(402)](),this[t(353)](),this[t(369)]()}[dt(408)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(341)](t(327),{allowAttributes:[t(400),t(337)]})}[dt(402)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(367))[t(397)](e=>{const o=t;e.on(o(361),(t,e,n)=>{const s=o,r=e[s(324)],a=e[s(417)]?.[s(374)];r[s(356)](s(330))&&a?.is(s(399),s(327))&&(function(t,e,o,n){const i=s;if(!n[i(406)](e,i(337)))return;let r=1;const a=o[i(316)][i(396)](t,{attributes:i(394)});if(a){const e=Number[i(334)](t[i(365)](i(394)),10);Number[i(344)](e)||(r=e)}!a&&e[i(380)](i(337))||o[i(390)][i(395)](i(337),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(406)](e,i(400)))return;let r=i(379),a=!1;if(o[i(316)][i(396)](t,{attributes:i(392)})){const e={1:i(379),a:i(350),A:i(340),i:i(320),I:i(393)}[t[i(365)](i(392))];e&&(r=e),a=!0}o[i(316)][i(396)](t,{styles:i(368)})&&(r=t[i(331)](i(368)),a=!0),!a&&e[i(380)](i(400))||o[i(390)][i(395)](i(400),r,e)}(r,a,n,i))})}),o[t(336)](t(410))[t(397)](e=>{const o=t;e.on(o(373),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;null==r||1===r?n[i(390)][i(345)](i(394),s):n[i(390)][i(395)](i(394),String(r),s)}),e.on(o(343),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;r&&i(379)!==r?n[i(390)][i(387)](i(368),r,s):n[i(390)][i(359)](i(368),s)})})}[dt(369)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(409)][t(362)](d),i=this[t(335)](),s=this[t(383)]();o[t(332)][t(348)](e=>{const r=t,a=o[r(332)][r(403)][r(372)]();let c=!1;for(const t of a){if(r(404)!==t[r(392)]||r(358)===t[r(338)])continue;const n=o[r(322)](t[r(376)][r(412)]);for(const t of n[r(415)]())t.is(r(399),r(327))&&(!t[r(380)](r(337))&&o[r(328)][r(406)](t,r(337))&&(e[r(395)](r(337),s,t),c=!0),!t[r(380)](r(400))&&o[r(328)][r(406)](t,r(400))&&(e[r(395)](r(400),i,t),c=!0))}return c&&n[r(329)](e),c})}[dt(353)](){const t=dt,{editor:e}=this;e[t(409)][t(362)](d)[t(333)](e=>this[t(378)](e))}[dt(335)](){const t=dt;return this[t(317)][t(355)][t(362)](t(377))}[dt(383)](){const t=dt;return this[t(317)][t(355)][t(362)](t(346))}[dt(378)]({container:t,value:e,digits:o}){const n=dt,i=t[n(365)](n(400)),s=t[n(365)](n(337)),r=Math[n(364)](e)+(s??1)-1;switch(i){case n(318):return function(t,e){const o=n;return String(t)[o(386)](e,"0")}(r,Math[n(389)](2,o));case n(350):case n(349):return wt(r,!1);case n(340):case n(360):return wt(r,!0);case n(320):return bt(r,!1);case n(393):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(384)](t);return Array[o(354)](n[o(388)]())[o(347)](t=>t.is(o(399),"ol")&&t[o(356)](o(330)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(414)](97+t)+n,i=Math[o(364)]((i-1)/26)}return e?n[o(342)]():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(326)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();V()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=202]})(t,e)}function Et(){var t=["687412GiWEhQ","FootnotesProperties","355851CviBxQ","337709aEprOZ","3IPqMIR","isOfficialPlugin","371304zJqKaK","258MNCxQP","587055umPXQx","32hJbEsy","13255HksAyA","70wNCJex","requires","isPremiumPlugin","484252niESUG","297OSEOIB","pluginName"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(205636===-parseInt(e(215))/1+-parseInt(e(212))/2+-parseInt(e(216))/3*(parseInt(e(209))/4)+-parseInt(e(205))/5*(-parseInt(e(202))/6)+parseInt(e(203))/7*(parseInt(e(204))/8)+-parseInt(e(214))/9*(parseInt(e(206))/10)+-parseInt(e(210))/11*(-parseInt(e(218))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(211)](){return Ft(213)}static get[Ft(207)](){return[mt,Ct]}static get[Ft(217)](){return!0}static get[Ft(208)](){return!0}}function St(t,e){var o=At();return(St=function(t,e){return o[t-=434]})(t,e)}function At(){var t=["1749786uLYNWh","22MDYaTy","10517418XYxImK","8632360McDoqQ","3265586MGjmkb","14095736eMhIVh","1gBHAom","10kkmeOl","7bqTxsO","6151516adPaFI","765477RLeezo"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(970908===parseInt(e(443))/1*(parseInt(e(441))/2)+parseInt(e(436))/3+-parseInt(e(435))/4+parseInt(e(444))/5*(-parseInt(e(437))/6)+-parseInt(e(434))/7*(-parseInt(e(442))/8)+parseInt(e(439))/9+-parseInt(e(440))/10*(parseInt(e(438))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|