@ckeditor/ckeditor5-footnotes 47.2.0-alpha.0 → 47.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index-content.css +0 -12
  3. package/dist/index.css +6 -12
  4. package/dist/index.js +1 -1
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +9 -9
  152. package/src/commands/insertfootnotecommand.js +1 -1
  153. package/src/footnotes.js +1 -1
  154. package/src/footnotesclipboard.js +1 -1
  155. package/src/footnotesediting.js +1 -1
  156. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  157. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  159. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  160. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  161. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  162. package/src/footnotesproperties.js +1 -1
  163. package/src/footnotestracker.js +1 -1
  164. package/src/footnotesui.js +1 -1
  165. package/src/index.js +1 -1
  166. package/src/modelelementtracker.js +1 -1
  167. package/theme/footnotes.css +6 -16
@@ -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={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>G,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>p,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=261]})(t,e)}const a=r;function c(){const t=["reset","$text","position","76857JujtFA","273VGeywc","get","70llLLiy","nodeAfter","250QMdlPW","length","1752318dMAtOX","_model","element","delete","309PPAiWP","216066FUirIu","flat","attributes","32XREBMM","root","push","504lSydvy","has","rootName","75512ncAkJA","values","39426iTTVFy","add","getChanges","_elementName","createRangeOn","getElementKey","set","type","remove","clear","getItems","elementName","name","from","insert","slice","$graveyard","7358592eVLlQb","_trackedElements","_getElementKey"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(266300===-parseInt(e(276))/1*(parseInt(e(283))/2)+parseInt(e(288))/3*(parseInt(e(280))/4)+-parseInt(e(268))/5*(-parseInt(e(277))/6)+parseInt(e(266))/7*(parseInt(e(286))/8)+-parseInt(e(272))/9+parseInt(e(270))/10*(parseInt(e(265))/11)+-parseInt(e(305))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(273)];[a(291)];[a(261)];[a(306)]=new Map;constructor(t,e){const o=a;this[o(273)]=t,this[o(291)]=e[o(299)],this[o(261)]=e[o(293)]}[a(262)](){const t=a;this[t(306)][t(297)]()}[a(290)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(302)===i[e(295)]&&e(263)!==i[e(300)]&&i[e(264)][e(269)]){const t=this[e(273)][e(292)](i[e(264)][e(269)]);for(const o of t[e(298)]()){if(!o.is(e(274),this[e(291)]))continue;const t=this[e(261)](o);n[e(284)](t)||n[e(294)](t,[]),n[e(267)](t)[e(282)](o)}}if(e(296)===i[e(295)]&&i[e(300)]===this[e(291)]){const t=this[e(261)]({getAttribute:t=>i[e(279)][e(267)](t)});o[e(289)](t)}}for(const[t,n]of this[e(306)])e(304)===n[e(281)][e(285)]&&o[e(289)](t);for(const t of o)this[e(306)][e(275)](t);for(const[t,o]of n)this[e(306)][e(294)](t,o[o[e(271)]-1]);const i=new Set;for(const[t,s]of n)o[e(284)](t)&&(i[e(289)](s[0]),s[e(271)]>1?n[e(294)](t,s[e(303)](1)):n[e(275)](t),o[e(275)](t));return{removed:Array[e(301)](o),inserted:Array[e(301)](n[e(287)]())[e(278)](),moved:Array[e(301)](i)}}}const u=d;function f(){const t=["from","_updateFootnotesCounters","differ","20ZpqAXD","compareWith","_handleFootnoteDefinitionsChanges","splice","has","config","$graveyard","model","_ensureFootnotesDefinitionsContainerExists","isEqual","2GmzgvA","_updateFootnoteRefCounter","createPositionBefore","listenTo","low","definition","after","745820hmlROX","getChanges","pluginName","indexOf","_footnotesDefinitions","getAttribute","2372388RZPkuw","getRootNames","_footnoteFormatter","_handleRemoveFootnoteReferenceById","high","footnoteInlineContent","footnoteRef","_handleFootnoteReferencesChanges","_footnotes","parent","end","set","getFootnote","editor","find","7oUXGUe","_footnoteRefsTracker","insert","footnoteCounter","before","root","6406992KopkGy","append","FootnotesTracker","enqueueChange","init","footnotes.multiBlock","_handleFootnotesDefinitionsObjectSync","findIndex","length","isPremiumPlugin","unshift","_insertEmptyFootnotesDefinitionsContainer","map","getFootnotesDefinitionsObjectElement","3760230eXcAcP","_handleFootnotesDefinitionsObjectChanges","_ensureFootnotesReferencesHaveProperOrder","footnotesDefinitions","reset","footnoteDefinition","_handleInsertedFootnoteReference","setAttribute","registerPostFixer","_footnoteDefsContainerTracker","_footnoteDefsTracker","4053714LziLFB","reference","rootName","_handleMovedFootnoteReference","paragraph","setFootnoteFormatter","change:data","get","remove","isOfficialPlugin","min","createRangeIn","2272936SOtZgc","createPositionAt","singleton","createElement","some","_sortFootnoteDefinitions","258168mtWVYy","add","footnoteId","push","getFootnotes","document","createRangeOn","move","getChildren","getFootnotesFormatter","childCount"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=145]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(410679===-parseInt(e(175))/1+-parseInt(e(199))/2*(-parseInt(e(212))/3)+parseInt(e(189))/4*(-parseInt(e(206))/5)+parseInt(e(157))/6*(parseInt(e(227))/7)+parseInt(e(169))/8+-parseInt(e(233))/9+parseInt(e(146))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(220)]=[];[u(210)]=null;[u(214)]=null;[u(155)];[u(228)];[u(156)];static get[u(208)](){return u(235)}static get[u(166)](){return!0}static get[u(242)](){return!0}constructor(t){const e=u;super(t),this[e(155)]=new l(this[e(225)][e(196)],{elementName:e(149),getElementKey:()=>e(171)}),this[e(228)]=new l(this[e(225)][e(196)],{elementName:e(218),getElementKey:t=>t[e(211)](e(177))}),this[e(156)]=new l(this[e(225)][e(196)],{elementName:e(151),getElementKey:t=>t[e(211)](e(177))})}[u(237)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(180)][t(154)](e=>{const n=t,i=o[n(180)][n(188)][n(207)]();let s=!1;return this[n(147)](e,i)&&(s=!0),this[n(191)](e,i)&&(s=!0),this[n(219)](e,i)&&(s=!0),this[n(148)](e)&&(s=!0),this[n(239)](e)&&(s=!0),this[n(174)](e)&&(s=!0),s}),this[t(202)](o[t(180)],t(163),()=>{const e=t;o[e(236)]({isUndoable:!1},t=>{this[e(197)](t)})},{priority:t(203)}),this[t(202)](n,t(223),()=>{const e=t;this[e(220)]=[],this[e(155)][e(150)](),this[e(228)][e(150)](),this[e(156)][e(150)]()},{priority:t(216)})}[u(145)](){return this[u(210)]}[u(224)](t){const e=u;return this[e(220)][e(226)](e=>e.id===t)||null}[u(179)](){const t=u;return Array[t(186)](this[t(220)])}[u(184)](){return this[u(214)]}[u(162)](t){this[u(214)]=t}[u(187)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(220)][o(241)];i++)this[o(200)](t,i)&&(n=!0);return n}[u(244)](t,e){const o=u,n=t[o(172)](o(149),{});return t[o(234)](n,e),this[o(210)]=n,n}[u(197)](t){const e=u;if(!this[e(220)][e(241)]||this[e(210)])return;const o=this[e(220)][0][e(158)][e(232)],n=this[e(244)](t,o);for(const o of this[e(220)])o[e(204)][e(221)]||t[e(229)](o[e(204)],n,e(222));this[e(187)](t)}[u(147)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(155)][o(207)](e);if(r[o(241)]&&(this[o(210)]=r[0]),i[o(241)])if(i[o(241)]>1||this[o(210)]&&i[o(173)](t=>t!==this[o(210)])){const e=t[o(172)](o(149),{}),s=[];this[o(210)]&&s[o(178)](this[o(210)]),s[o(178)](...i),t[o(229)](e,s[0],o(231));for(const n of s)t[o(182)](t[o(168)](n),t[o(170)](e,o(222))),t[o(165)](n);this[o(210)]=e,this[o(187)](t),n=!0}else this[o(210)]=i[0];if(s[o(241)]&&o(195)===this[o(210)]?.[o(232)][o(159)]){for(const e of this[o(220)])t[o(165)](e[o(158)]),n=!0;this[o(220)]=[],this[o(210)]=null}return n}[u(191)](t,e){const o=u;let n=!1;const i=this[o(225)][o(194)][o(164)](o(238)),{inserted:s,moved:r}=this[o(156)][o(207)](e);for(const e of[...r,...s]){const s=e[o(211)](o(177)),r=this[o(224)](s);r&&(r[o(204)]=e),h(t,i,e)&&(n=!0)}return n}[u(219)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(228)][o(207)](e);for(const e of i)this[o(215)](t,e)&&(n=!0);for(const e of s)this[o(152)](t,e)&&(n=!0);for(const e of r)this[o(160)](t,e)&&(n=!0);return n}[u(239)](t){const e=u;if(!this[e(210)])return!1;let o=!1;if(this[e(210)][e(185)]!==this[e(220)][e(241)]){const n=[];for(const t of this[e(210)][e(183)]()){const i=t[e(211)](e(177));this[e(224)](i)||(n[e(243)](t),o=!0)}for(const o of n)t[e(165)](o)}const n=new Set,i=[];for(const t of this[e(210)][e(183)]()){const s=t[e(211)](e(177));n[e(193)](s)?(i[e(243)](t),o=!0):n[e(176)](s)}for(const o of i)t[e(165)](o);return this[e(210)][e(185)]||(t[e(165)](this[e(210)]),this[e(210)]=null,o=!0),o}[u(152)](t,e){const o=u;if(this[o(220)][o(226)](t=>t[o(158)]===e))return!1;let n=!1;const i=e[o(211)](o(177)),s=this[o(220)][o(240)](t=>t.id===i);-1!==s&&(t[o(165)](this[o(220)][s][o(158)]),this[o(220)][o(192)](s,1),n=!0);let r=this[o(210)]?function(t,e){const n=o;for(const o of t[n(183)]())if(o[n(211)](n(177))===e)return o;return null}(this[o(210)],i):null;r||(r=t[o(172)](o(151),{footnoteId:i}),this[o(210)]&&(t[o(229)](r,this[o(210)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(225)][o(196)],this[o(220)],e);this[o(220)][o(192)](c,0,a);let l=c;return-1!==s&&(l=Math[o(167)](c,s)),this[o(187)](t,l)&&(n=!0),n}[u(215)](t,e){const o=u,n=this[o(220)][o(240)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(220)][n];return o(195)!==s[o(204)][o(232)][o(159)]&&(t[o(165)](s[o(204)]),i=!0),this[o(220)][o(192)](n,1),this[o(187)](t,n)&&(i=!0),i}[u(160)](t,e){const o=u,n=e[o(211)](o(177)),i=this[o(220)][o(240)](t=>t.id===n),s=this[o(220)][i];let r=!1;s[o(158)]=e,this[o(220)][o(192)](i,1);const a=m(this[o(225)][o(196)],this[o(220)],e);return this[o(220)][o(192)](a,0,s),this[o(187)](t,Math[o(167)](i,a))&&(r=!0),r}[u(200)](t,e){const o=u;if(!this[o(210)])return!1;const n=this[o(220)][e];let i;return i=this[o(214)]?this[o(214)]({footnote:n,container:this[o(210)],digits:String(this[o(220)][o(241)])[o(241)],value:e+1}):String(e+1),n[o(158)][o(211)](o(230))!=i&&(t[o(153)](o(230),i,n[o(158)]),!0)}[u(174)](t){const e=u;if(!this[e(210)]||this[e(220)][e(241)]<2)return!1;if(function(t,o){const n=e;if(t[n(241)]!==o[n(241)])return!1;for(let e=0;e<t[n(241)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(220)][e(245)](t=>t.id),Array[e(186)](this[e(210)][e(183)]())[e(245)](t=>t[e(211)](e(177)))))return!1;let o=!1;for(let n=0;n<this[e(220)][e(241)];n++){const i=this[e(220)][n],s=t[e(201)](i[e(204)]),r=t[e(170)](this[e(210)],n);s[e(198)](r)||(t[e(182)](t[e(181)](i[e(204)]),r),o=!0)}return o}[u(148)](t){const e=u;if(!this[e(220)][e(241)])return!1;const{model:o}=this[e(225)];let n=!1;for(let i=0;i<this[e(220)][e(241)]-1;i++){const s=this[e(220)][i],r=this[e(220)][i+1],a=o[e(201)](s[e(158)]),c=o[e(201)](r[e(158)]);e(205)===a[e(190)](c)&&(this[e(160)](t,s[e(158)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(185)])return!1;const i=n(e?161:217);return t[n(229)](t[n(172)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(241)])return 0;const i=t[n(201)](o);for(let o=0;o<e[n(241)];o++){const s=e[o],r=t[n(201)](s[n(158)]);if(n(231)===i[n(190)](r))return o}const s=o[n(232)];let r=-1;for(let t=e[n(241)]-1;t>=0;t--)if(e[t][n(158)][n(232)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(180)][n(213)](),c=a[n(209)](s[n(159)]),l=a[c+1];if(l)for(let t=0;t<e[n(241)];t++)if(e[t][n(158)][n(232)][n(159)]===l)return t;return e[n(241)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=351]})(t,e)}function y(){const t=["length","createElement","getFirstRange","end","isEnabled","checkChild","change","string","18468qzbigc","1224684bDnuwh","2MOkCOp","plugins","6792qiQgCZ","_moveSelectionToFootnoteDefinition","footnoteRef","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","110GZqOJp","model","insertObject","get","test","getItems","execute","refresh","298700osKAML","50290mFsvwr","selection","1981Jmawfe","footnoteId","isObject","editor","document","12kMfRIY","582000uZgVGJ","_getPositionToInsertFootnote","isBlock","11200563Jzzopb"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(220784===-parseInt(e(388))/1+parseInt(e(373))/2*(-parseInt(e(372))/3)+parseInt(e(358))/4*(parseInt(e(351))/5)+parseInt(e(359))/6+-parseInt(e(353))/7*(parseInt(e(375))/8)+-parseInt(e(371))/9*(-parseInt(e(380))/10)+parseInt(e(362))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(387)](){const t=g,e=this[t(356)][t(381)][t(357)][t(352)],o=this[t(360)](e);this[t(367)]=!!o}[g(386)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(357)],r=this[e(360)](s);if(!r)return;const a=o[e(374)][e(383)](e(378)),c=t?.[e(354)]??(0,i.uid)();!function(t){const o=e;return o(370)==typeof t&&t[o(363)]>0&&!/\s/[o(384)](t)&&!/^\d/[o(384)](t)}(c)?(0,i.logWarning)(e(379)):(n[e(369)](t=>{const o=e,i=t[o(364)](o(377),{footnoteId:c});n[o(382)](i,r,null)}),a[e(376)](c))}[g(360)](t){const e=g,{model:o}=this[e(356)],{schema:n}=o,i=t[e(365)]();for(const t of i[e(385)]())if(n[e(361)](t)||n[e(355)](t))return null;const s=i[e(366)];return n[e(368)](s,e(377))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1761696e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=D;function T(){const t=["root","847EHzWni","get","htmlProcessor","isOfficialPlugin","editor","create","183669bNhApz","getFootnote","setAttribute","footnoteRef","236030XwCfRY","entries","toView","8523606vErFgx","12ssfheB","pluginName","toModel","method","data","document","definition","toData","remove","contentInsertion","application/ckeditor5-footnotes","createRangeIn","getFootnotes","element","getFirstRange","1117620LeyFol","createElement","footnotesDefinitions","sourceEditorId","append","isPremiumPlugin","drop","selection","getFootnotesDefinitionsObjectElement","_handleCopyFootnotesDefinitions","push","parse","setData","getData","content","footnoteId","footnoteDefinition","110855kzcCQH","end","requires","add","change","7lnraHn","editing","FootnotesClipboard","init","12473082rZOVbl","stringify","insert","getAttribute","listenTo","80xdyLjL","clipboardInput","8604920VBVNvE","reduce","outputTransformation","dataTransfer","_handlePasteFootnotesDefinitions","length","from","_insertEmptyFootnotesDefinitionsContainer","find","_defineClipboardIntegration"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(958953===parseInt(e(289))/1*(parseInt(e(330))/2)+-parseInt(e(322))/3*(-parseInt(e(303))/4)+-parseInt(e(345))/5+parseInt(e(329))/6+parseInt(e(294))/7*(parseInt(e(305))/8)+-parseInt(e(298))/9+-parseInt(e(326))/10*(parseInt(e(316))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(331)](){return A(296)}static get[A(291)](){return[v,S.ClipboardPipeline]}static get[A(319)](){return!0}static get[A(350)](){return!0}[A(297)](){this[A(314)]()}[A(314)](){const t=A;this[t(354)](),this[t(309)]()}[A(354)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(317)](S.ClipboardPipeline),s=o[t(317)](p);this[t(302)](i,t(307),(o,i)=>{const r=t,a=function(t,e){const o=D,n=new Set;for(const{item:i}of t[o(341)](e))i.is(o(343),o(325))&&n[o(292)](i[o(301)](o(287)));return Array[o(311)](n)}(n,i[r(359)]);if(!a[r(310)])return;const c=s[r(342)](),l=a[r(306)]((t,o)=>{const n=r,i=c[n(313)](t=>t.id===o);if(i){const o=e[n(334)][n(328)](i[n(336)],{isClipboardPipeline:!0}),s=e[n(334)][n(318)][n(337)](o);t[i.id]=s}return t},Object[r(321)](null));i[r(308)][r(357)](r(340),JSON[r(299)](l))})}[A(309)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(295)],r=n[t(317)](S.ClipboardPipeline),a=n[t(317)](p);let c=null;this[t(302)](s[t(335)],t(304),(e,o)=>{const n=t,i=o[n(308)][n(358)](n(340));c=i?JSON[n(356)](i):null}),this[t(302)](r,t(339),(n,s)=>{const r=t;if(!c)return;const l=s[r(348)]===this[r(320)].id;l&&r(351)===s[r(333)]||o[r(293)](t=>{const n=r;!function(t,e){const o=D,n=[];for(const{item:i}of t[o(341)](e))i.is(o(343),o(347))&&n[o(355)](i);for(const e of n)t[o(338)](e)}(t,s[n(359)]);let u=a[n(353)]();if(!u){const e=o[n(335)][n(352)][n(344)]()[n(315)];u=a[n(312)](t,e)}const f=function(t,e,o){const s=n,r=Object[s(321)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(343),s(325))){const e=n[s(301)](s(287));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(324)](s(287),r[e],n)}return r}(t,s[n(359)],t=>!l||null!==a[n(323)](t));for(const[o,i]of Object[n(327)](c)){const s=f[o]||o,r=t[n(346)](n(288),{footnoteId:s}),a=e[n(334)][n(318)][n(328)](i),c=e[n(334)][n(332)](a,r);t[n(349)](c,r),t[n(300)](r,u,n(290))}c=null})})}}var L=o(311),V=o(355),O=o(450),R=o.n(O),N=o(774),K=o.n(N),j=o(265),M=o.n(j),z=o(410),B=o.n(z),U=o(238),W=o.n(U),H=o(14),X={attributes:{"data-cke":!0}};X.setAttributes=B(),X.insert=M().bind(null,"head"),X.domAPI=K(),X.insertStyleElement=W();R()(H.A,X);H.A&&H.A.locals&&H.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,L.ButtonView)),e.add("menuBar:insertFootnote",J(t,L.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof L.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=390]})(t,e)}function Z(){var t=["isPremiumPlugin","11ppIjZa","28316700LAcoDC","1903764dnzPLV","6aMEIPa","pluginName","7700Mwwhgr","210UYSliE","2552XDRAGb","Footnotes","935264zMcmZb","2bNulTB","3597765XxKsrf","329733fYCupu","814377lfXiAi","requires","isOfficialPlugin"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(461086===-parseInt(e(404))/1*(-parseInt(e(401))/2)+parseInt(e(393))/3+parseInt(e(400))/4+-parseInt(e(402))/5*(-parseInt(e(394))/6)+-parseInt(e(396))/7*(parseInt(e(398))/8)+-parseInt(e(403))/9*(-parseInt(e(397))/10)+parseInt(e(391))/11*(-parseInt(e(392))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Q(395)](){return Q(399)}static get[Q(405)](){return[v,_,q]}static get[Q(406)](){return!0}static get[Q(390)](){return!0}}function $(t,e){const o=et();return($=function(t,e){return o[t-=279]})(t,e)}const tt=$;function et(){const t=["49740HRPWEp","3YPOfcv","10JvDWTv","6878OQoOFM","376nxaiIF","632780xQPyWz","upper-roman","lower-roman","upper-latin","1758200YGEhHZ","lower-latin","76951oCpCTH","1002678CflgSK","decimal-leading-zero","8534999cFzqOr","738BdzSnR","upper-alpha","lower-alpha","decimal"];return(et=function(){return t})()}!function(t){const e=$,o=t();for(;;)try{if(416182===-parseInt(e(292))/1+parseInt(e(294))/2*(parseInt(e(290))/3)+parseInt(e(279))/4+parseInt(e(291))/5*(parseInt(e(282))/6)+parseInt(e(281))/7*(parseInt(e(293))/8)+parseInt(e(285))/9*(-parseInt(e(289))/10)+-parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const ot=[tt(288),tt(283),tt(280),tt(297),tt(287),tt(286),tt(296),tt(295)],nt=st;function it(){const t=["1992466FtqeCg","model","includes","get","isEnabled","26IeETkn","change","3252072bAiXPl","33466Ulnuwj","11IVUnaS","setAttribute","2383800HAQKdA","8yXPhvE","value","_updateFootnotesCounters","refresh","2835144QJfeUd","execute","1588340hQaUem","getAttribute","plugins","3GXkjhH","getFootnotesDefinitionsObjectElement","footnotesListStyle","20074030pFJVMx"];return(it=function(){return t})()}function st(t,e){const o=it();return(st=function(t,e){return o[t-=370]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(510354===parseInt(e(392))/1*(-parseInt(e(370))/2)+parseInt(e(383))/3*(-parseInt(e(380))/4)+parseInt(e(373))/5+-parseInt(e(394))/6+-parseInt(e(387))/7*(parseInt(e(374))/8)+-parseInt(e(378))/9+-parseInt(e(386))/10*(-parseInt(e(371))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class rt extends t.Command{[nt(377)](){const t=nt,{editor:e}=this,o=e[t(382)][t(390)](p)[t(384)]();this[t(391)]=!!o,this[t(375)]=o?.[t(381)](t(385))??null}[nt(379)]({value:t}){const e=nt,{editor:o}=this,n=o[e(382)][e(390)](p),i=n[e(384)]();i&&ot[e(389)](t)&&o[e(388)][e(393)](o=>{const s=e;o[s(372)](s(385),t,i),n[s(376)](o)})}}const at=ct;function ct(t,e){const o=lt();return(ct=function(t,e){return o[t-=446]})(t,e)}function lt(){const t=["isInteger","setAttribute","11IbTnrW","5810790KyrAFo","2287540yUNSZH","getAttribute","isEnabled","8ylNwdV","13SBQMUa","refresh","2746933xYQTYR","plugins","getFootnotesDefinitionsObjectElement","value","change","184062oZNEYs","_updateFootnotesCounters","1802523IWgDNS","get","footnotesListStart","execute","4WDzwLz","model","13366260saJJNP","8479035dNXEBb"];return(lt=function(){return t})()}!function(t){const e=ct,o=t();for(;;)try{if(600035===parseInt(e(459))/1*(-parseInt(e(466))/2)+parseInt(e(468))/3*(-parseInt(e(447))/4)+-parseInt(e(455))/5+parseInt(e(454))/6+-parseInt(e(461))/7*(parseInt(e(458))/8)+parseInt(e(450))/9+-parseInt(e(449))/10*(-parseInt(e(453))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[at(460)](){const t=at,{editor:e}=this,o=e[t(462)][t(469)](p)[t(463)]();this[t(457)]=!!o,this[t(464)]=o?.[t(456)](t(470))??null}[at(446)]({value:t}){const e=at,{editor:o}=this,n=o[e(462)][e(469)](p),i=n[e(463)]();i&&Number[e(451)](t)&&o[e(448)][e(465)](o=>{const s=e;o[s(452)](s(470),t,i),n[s(467)](o)})}}const ft=dt;function dt(t,e){const o=pt();return(dt=function(t,e){return o[t-=370]})(t,e)}function pt(){const t=["hasClass","footnotesStyle","setStyle","floor","nodeAfter","_defineSchema","config","_updateFootnotesCounters","59376rgKSjb","8530736IGOvga","fromCharCode","_getDefaultStartIndex","footnotesListStyle","$text","plugins","decimal-leading-zero","footnotesDefinitions","define","_defineConverters","footnotesListStart","viewItem","requires","type","decimal","commands","upcast","mapper","FootnotesPropertiesEditing","footnotes.footnotesProperties.defaultStartIndex","item","document","position","attribute:footnotesListStart:footnotesDefinitions","upper-latin","lower-alpha","removeStyle","model","getItems","editor","upper-roman","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","2299602lhzmkP","init","consume","parseInt","consumable","parent","find","footnotesStart","isPremiumPlugin","registerPostFixer","hasAttribute","lower-roman","insert","createRangeOn","9eBOjkY","_definePostfixer","footnotes-list","start","writer","isNaN","setAttribute","getChildren","_defineFormatter","isOfficialPlugin","21UTOaRI","from","differ","list-style-type","getAttribute","7159173QRXxDT","setFootnoteFormatter","18799500uATkRn","_getDefaultListStyle","1375182FJWjKl","toViewElement","footnotes.footnotesProperties.defaultListStyle","getChanges","5UFDjJF","name","extend","lower-latin","element","getStyle","pluginName","schema","for","get","element:ol","upper-alpha","159686jRUFEn","toUpperCase","add","_formatFootnoteListValue","padStart","toLowerCase","removeAttribute","checkAttribute","downcast","max"];return(pt=function(){return t})()}!function(t){const e=dt,o=t();for(;;)try{if(593341===parseInt(e(392))/1*(parseInt(e(427))/2)+parseInt(e(402))/3*(-parseInt(e(445))/4)+parseInt(e(415))/5*(-parseInt(e(378))/6)+parseInt(e(407))/7+parseInt(e(446))/8+parseInt(e(411))/9+-parseInt(e(409))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[ft(421)](){return ft(464)}static get[ft(458)](){return[v,p]}static get[ft(401)](){return!0}static get[ft(386)](){return!0}[ft(379)](){const t=ft,{editor:e}=this;e[t(443)][t(454)](t(413),t(460)),e[t(443)][t(454)](t(465),1),e[t(461)][t(429)](t(438),new rt(e)),e[t(461)][t(429)](t(385),new ut(e)),this[t(442)](),this[t(455)](),this[t(400)](),this[t(393)]()}[ft(442)](){const t=ft,{editor:e}=this,{schema:o}=e[t(372)];o[t(417)](t(453),{allowAttributes:[t(449),t(456)]})}[ft(455)](){const t=ft,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(423)](t(462))[t(429)](e=>{const o=t;e.on(o(425),(t,e,n)=>{const s=o,r=e[s(457)],a=e[s(377)]?.[s(383)];r[s(437)](s(394))&&a?.is(s(419),s(453))&&(function(t,e,o,n){const i=s;if(!n[i(434)](e,i(456)))return;let r=1;const a=o[i(382)][i(380)](t,{attributes:i(395)});if(a){const e=Number[i(381)](t[i(406)](i(395)),10);Number[i(397)](e)||(r=e)}!a&&e[i(388)](i(456))||o[i(396)][i(398)](i(456),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(434)](e,i(449)))return;let r=i(460),a=!1;if(o[i(382)][i(380)](t,{attributes:i(459)})){const e={1:i(460),a:i(370),A:i(426),i:i(389),I:i(375)}[t[i(406)](i(459))];e&&(r=e),a=!0}o[i(382)][i(380)](t,{styles:i(405)})&&(r=t[i(420)](i(405)),a=!0),!a&&e[i(388)](i(449))||o[i(396)][i(398)](i(449),r,e)}(r,a,n,i))})}),o[t(423)](t(435))[t(429)](e=>{const o=t;e.on(o(469),(t,e,n)=>{const i=o;if(!n[i(382)][i(380)](e[i(466)],t[i(416)]))return;const s=mt(e[i(466)],n[i(463)]),{attributeNewValue:r}=e;null==r||1===r?n[i(396)][i(433)](i(395),s):n[i(396)][i(398)](i(395),String(r),s)}),e.on(o(376),(t,e,n)=>{const i=o;if(!n[i(382)][i(380)](e[i(466)],t[i(416)]))return;const s=mt(e[i(466)],n[i(463)]),{attributeNewValue:r}=e;r&&i(460)!==r?n[i(396)][i(439)](i(405),r,s):n[i(396)][i(371)](i(405),s)})})}[ft(393)](){const t=ft,{editor:e}=this,{model:o}=e,n=e[t(451)][t(424)](p),i=this[t(410)](),s=this[t(448)]();o[t(467)][t(387)](e=>{const r=t,a=o[r(467)][r(404)][r(414)]();let c=!1;for(const t of a){if(r(390)!==t[r(459)]||r(450)===t[r(416)])continue;const n=o[r(391)](t[r(468)][r(441)]);for(const t of n[r(373)]())t.is(r(419),r(453))&&(!t[r(388)](r(456))&&o[r(422)][r(434)](t,r(456))&&(e[r(398)](r(456),s,t),c=!0),!t[r(388)](r(449))&&o[r(422)][r(434)](t,r(449))&&(e[r(398)](r(449),i,t),c=!0))}return c&&n[r(444)](e),c})}[ft(400)](){const t=ft,{editor:e}=this;e[t(451)][t(424)](p)[t(408)](e=>this[t(430)](e))}[ft(410)](){const t=ft;return this[t(374)][t(443)][t(424)](t(413))}[ft(448)](){const t=ft;return this[t(374)][t(443)][t(424)](t(465))}[ft(430)]({container:t,value:e,digits:o}){const n=ft,i=t[n(406)](n(449)),s=t[n(406)](n(456)),r=Math[n(440)](e)+(s??1)-1;switch(i){case n(452):return function(t,e){const o=n;return String(t)[o(431)](e,"0")}(r,Math[n(436)](2,o));case n(370):case n(418):return gt(r,!1);case n(426):case n(470):return gt(r,!0);case n(389):return yt(r,!1);case n(375):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ft,n=e[o(412)](t);return Array[o(403)](n[o(399)]())[o(384)](t=>t.is(o(419),"ol")&&t[o(437)](o(394)))}function gt(t,e){const o=ft;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(447)](97+t)+n,i=Math[o(440)]((i-1)/26)}return e?n[o(428)]():n}const wt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function yt(t,e){const o=ft;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(432)]()}class bt extends L.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new L.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new L.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,L.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 L.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 L.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 L.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 L.LabeledFieldView(this.locale,L.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(945),It={attributes:{"data-cke":!0}};It.setAttributes=B(),It.insert=M().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=W();R()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[L.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,L.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:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.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 L.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 bt(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}=L.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 Ct=Ft;function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=407]})(t,e)}!function(t){for(var e=Ft,o=t();;)try{if(417700===parseInt(e(409))/1*(-parseInt(e(419))/2)+-parseInt(e(408))/3+parseInt(e(407))/4*(-parseInt(e(417))/5)+-parseInt(e(415))/6+-parseInt(e(421))/7+parseInt(e(416))/8+-parseInt(e(418))/9*(-parseInt(e(420))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class xt extends t.Plugin{static get[Ct(414)](){return Ct(410)}static get[Ct(412)](){return[ht,kt]}static get[Ct(413)](){return!0}static get[Ct(411)](){return!0}}function Et(){var t=["pluginName","922500AfRjAV","3008272bFzZMf","760FrQpMR","9513UVjPLI","1376ABISpO","17740juDQUn","5412715xDzLYJ","3264WaAFif","727035pnjjDY","785ULbIif","FootnotesProperties","isPremiumPlugin","requires","isOfficialPlugin"];return(Et=function(){return t})()}function Pt(){var t=["83076ocmtYR","4wpQQZa","2095982elqeAn","1144080XYPyWd","477821orJxSF","2107090cHDRvl","18TfqWaM","12611745lHFgCG","1075839IatQND"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=497]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(637163===parseInt(e(501))/1*(parseInt(e(498))/2)+-parseInt(e(505))/3+parseInt(e(497))/4+-parseInt(e(502))/5*(-parseInt(e(503))/6)+parseInt(e(499))/7+-parseInt(e(500))/8+-parseInt(e(504))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},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:()=>Y,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>kt,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=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=113]})(t,e)}function c(){const t=["nodeAfter","4880095RZvpAQ","set","444120MEXxEh","getChanges","128648TciJRg","from","position","clear","getElementKey","rootName","element","push","slice","has","6TgHQMf","_trackedElements","length","insert","reset","values","438dzzlil","_model","attributes","270PFnAec","$text","693IrJxwr","627GEUycS","_elementName","608211ctIXLG","type","remove","getItems","name","get","add","delete","1968430kUqYDo","1288420aBgCvJ","$graveyard","root","createRangeOn","_getElementKey","elementName","28964gnfdPX","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(921710===-parseInt(e(156))/1+parseInt(e(155))/2+parseInt(e(139))/3*(-parseInt(e(116))/4)+parseInt(e(119))/5*(parseInt(e(133))/6)+-parseInt(e(144))/7*(-parseInt(e(123))/8)+-parseInt(e(147))/9*(-parseInt(e(142))/10)+-parseInt(e(145))/11*(parseInt(e(121))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(140)];[r(146)];[r(114)];[r(134)]=new Map;constructor(t,e){const o=r;this[o(140)]=t,this[o(146)]=e[o(115)],this[o(114)]=e[o(127)]}[r(137)](){const t=r;this[t(134)][t(126)]()}[r(122)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(136)===i[e(148)]&&e(143)!==i[e(151)]&&i[e(125)][e(118)]){const t=this[e(140)][e(113)](i[e(125)][e(118)]);for(const o of t[e(150)]()){if(!o.is(e(129),this[e(146)]))continue;const t=this[e(114)](o);n[e(132)](t)||n[e(120)](t,[]),n[e(152)](t)[e(130)](o)}}if(e(149)===i[e(148)]&&i[e(151)]===this[e(146)]){const t=this[e(114)]({getAttribute:t=>i[e(141)][e(152)](t)});o[e(153)](t)}}for(const[t,n]of this[e(134)])e(157)===n[e(158)][e(128)]&&o[e(153)](t);for(const t of o)this[e(134)][e(154)](t);for(const[t,o]of n)this[e(134)][e(120)](t,o[o[e(135)]-1]);const i=new Set;for(const[t,s]of n)o[e(132)](t)&&(i[e(153)](s[0]),s[e(135)]>1?n[e(120)](t,s[e(131)](1)):n[e(154)](t),o[e(154)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(138)]())[e(117)](),moved:Array[e(124)](i)}}}const f=h;function u(){const t=["footnotesDefinitions","_handleFootnoteReferencesChanges","_updateFootnotesCounters","move","_handleFootnotesDefinitionsObjectSync","10GKlxZx","length","reset","_ensureFootnotesDefinitionsContainerExists","enqueueChange","from","pluginName","after","321176wkzKYB","isOfficialPlugin","_handleRemoveFootnoteReferenceById","getFootnote","createRangeOn","2056908qkqYaE","_handleFootnotesDefinitionsObjectChanges","12002229YruRbw","definition","init","createElement","getFootnotes","parent","add","_footnoteRefsTracker","_footnotes","footnoteId","_updateFootnoteRefCounter","document","getFootnotesDefinitionsObjectElement","_footnoteDefsTracker","_insertEmptyFootnotesDefinitionsContainer","footnoteRef","before","has","unshift","getChildren","end","footnotes.multiBlock","splice","setAttribute","161hJAKFO","_footnoteDefsContainerTracker","footnoteInlineContent","indexOf","getFootnotesFormatter","getChanges","$graveyard","push","editor","setFootnoteFormatter","_footnoteFormatter","1823572rphjKU","footnoteCounter","listenTo","append","createPositionBefore","map","insert","differ","config","rootName","3BmuXEU","findIndex","1660868CpIIJV","root","some","min","paragraph","remove","isPremiumPlugin","getRootNames","getAttribute","find","childCount","_footnotesDefinitions","get","_sortFootnoteDefinitions","low","FootnotesTracker","_handleMovedFootnoteReference","_handleFootnoteDefinitionsChanges","isEqual","registerPostFixer","change:data","_ensureFootnotesReferencesHaveProperOrder","createRangeIn","17521878BLRGXu","model","1253920GMscTh","high","createPositionAt","set","compareWith","footnoteDefinition","_handleInsertedFootnoteReference","10ZFZvNR","reference","singleton"];return(u=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(671913===parseInt(e(391))/1+parseInt(e(366))/2+-parseInt(e(364))/3*(-parseInt(e(354))/4)+-parseInt(e(406))/5*(parseInt(e(317))/6)+-parseInt(e(343))/7*(parseInt(e(414))/8)+parseInt(e(319))/9*(parseInt(e(398))/10)+-parseInt(e(389))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(327)]=[];[f(377)]=null;[f(353)]=null;[f(344)];[f(326)];[f(332)];static get[f(412)](){return f(381)}static get[f(415)](){return!0}static get[f(372)](){return!0}constructor(t){const e=f;super(t),this[e(344)]=new l(this[e(351)][e(390)],{elementName:e(401),getElementKey:()=>e(400)}),this[e(326)]=new l(this[e(351)][e(390)],{elementName:e(334),getElementKey:t=>t[e(374)](e(328))}),this[e(332)]=new l(this[e(351)][e(390)],{elementName:e(396),getElementKey:t=>t[e(374)](e(328))})}[f(321)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(330)][t(385)](e=>{const n=t,i=o[n(330)][n(361)][n(348)]();let s=!1;return this[n(318)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(402)](e,i)&&(s=!0),this[n(387)](e)&&(s=!0),this[n(405)](e)&&(s=!0),this[n(379)](e)&&(s=!0),s}),this[t(356)](o[t(330)],t(386),()=>{const e=t;o[e(410)]({isUndoable:!1},t=>{this[e(409)](t)})},{priority:t(380)}),this[t(356)](n,t(394),()=>{const e=t;this[e(327)]=[],this[e(344)][e(408)](),this[e(326)][e(408)](),this[e(332)][e(408)]()},{priority:t(392)})}[f(331)](){return this[f(377)]}[f(417)](t){const e=f;return this[e(327)][e(375)](e=>e.id===t)||null}[f(323)](){const t=f;return Array[t(411)](this[t(327)])}[f(347)](){return this[f(353)]}[f(352)](t){this[f(353)]=t}[f(403)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(327)][o(407)];i++)this[o(329)](t,i)&&(n=!0);return n}[f(333)](t,e){const o=f,n=t[o(322)](o(401),{});return t[o(357)](n,e),this[o(377)]=n,n}[f(409)](t){const e=f;if(!this[e(327)][e(407)]||this[e(377)])return;const o=this[e(327)][0][e(399)][e(367)],n=this[e(333)](t,o);for(const o of this[e(327)])o[e(320)][e(324)]||t[e(360)](o[e(320)],n,e(339));this[e(403)](t)}[f(318)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(344)][o(348)](e);if(r[o(407)]&&(this[o(377)]=r[0]),i[o(407)])if(i[o(407)]>1||this[o(377)]&&i[o(368)](t=>t!==this[o(377)])){const e=t[o(322)](o(401),{}),s=[];this[o(377)]&&s[o(350)](this[o(377)]),s[o(350)](...i),t[o(360)](e,s[0],o(335));for(const n of s)t[o(404)](t[o(388)](n),t[o(393)](e,o(339))),t[o(371)](n);this[o(377)]=e,this[o(403)](t),n=!0}else this[o(377)]=i[0];if(s[o(407)]&&o(349)===this[o(377)]?.[o(367)][o(363)]){for(const e of this[o(327)])t[o(371)](e[o(399)]),n=!0;this[o(327)]=[],this[o(377)]=null}return n}[f(383)](t,e){const o=f;let n=!1;const i=this[o(351)][o(362)][o(378)](o(340)),{inserted:s,moved:r}=this[o(332)][o(348)](e);for(const e of[...r,...s]){const s=e[o(374)](o(328)),r=this[o(417)](s);r&&(r[o(320)]=e),p(t,i,e)&&(n=!0)}return n}[f(402)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(326)][o(348)](e);for(const e of i)this[o(416)](t,e)&&(n=!0);for(const e of s)this[o(397)](t,e)&&(n=!0);for(const e of r)this[o(382)](t,e)&&(n=!0);return n}[f(405)](t){const e=f;if(!this[e(377)])return!1;let o=!1;if(this[e(377)][e(376)]!==this[e(327)][e(407)]){const n=[];for(const t of this[e(377)][e(338)]()){const i=t[e(374)](e(328));this[e(417)](i)||(n[e(337)](t),o=!0)}for(const o of n)t[e(371)](o)}const n=new Set,i=[];for(const t of this[e(377)][e(338)]()){const s=t[e(374)](e(328));n[e(336)](s)?(i[e(337)](t),o=!0):n[e(325)](s)}for(const o of i)t[e(371)](o);return this[e(377)][e(376)]||(t[e(371)](this[e(377)]),this[e(377)]=null,o=!0),o}[f(397)](t,e){const o=f;if(this[o(327)][o(375)](t=>t[o(399)]===e))return!1;let n=!1;const i=e[o(374)](o(328)),s=this[o(327)][o(365)](t=>t.id===i);-1!==s&&(t[o(371)](this[o(327)][s][o(399)]),this[o(327)][o(341)](s,1),n=!0);let r=this[o(377)]?function(t,e){const n=o;for(const o of t[n(338)]())if(o[n(374)](n(328))===e)return o;return null}(this[o(377)],i):null;r||(r=t[o(322)](o(396),{footnoteId:i}),this[o(377)]&&(t[o(360)](r,this[o(377)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(351)][o(390)],this[o(327)],e);this[o(327)][o(341)](c,0,a);let l=c;return-1!==s&&(l=Math[o(369)](c,s)),this[o(403)](t,l)&&(n=!0),n}[f(416)](t,e){const o=f,n=this[o(327)][o(365)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(327)][n];return o(349)!==s[o(320)][o(367)][o(363)]&&(t[o(371)](s[o(320)]),i=!0),this[o(327)][o(341)](n,1),this[o(403)](t,n)&&(i=!0),i}[f(382)](t,e){const o=f,n=e[o(374)](o(328)),i=this[o(327)][o(365)](t=>t.id===n),s=this[o(327)][i];let r=!1;s[o(399)]=e,this[o(327)][o(341)](i,1);const a=m(this[o(351)][o(390)],this[o(327)],e);return this[o(327)][o(341)](a,0,s),this[o(403)](t,Math[o(369)](i,a))&&(r=!0),r}[f(329)](t,e){const o=f;if(!this[o(377)])return!1;const n=this[o(327)][e];let i;return i=this[o(353)]?this[o(353)]({footnote:n,container:this[o(377)],digits:String(this[o(327)][o(407)])[o(407)],value:e+1}):String(e+1),n[o(399)][o(374)](o(355))!=i&&(t[o(342)](o(355),i,n[o(399)]),!0)}[f(379)](t){const e=f;if(!this[e(377)]||this[e(327)][e(407)]<2)return!1;if(function(t,o){const n=e;if(t[n(407)]!==o[n(407)])return!1;for(let e=0;e<t[n(407)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(327)][e(359)](t=>t.id),Array[e(411)](this[e(377)][e(338)]())[e(359)](t=>t[e(374)](e(328)))))return!1;let o=!1;for(let n=0;n<this[e(327)][e(407)];n++){const i=this[e(327)][n],s=t[e(358)](i[e(320)]),r=t[e(393)](this[e(377)],n);s[e(384)](r)||(t[e(404)](t[e(418)](i[e(320)]),r),o=!0)}return o}[f(387)](t){const e=f;if(!this[e(327)][e(407)])return!1;const{model:o}=this[e(351)];let n=!1;for(let i=0;i<this[e(327)][e(407)]-1;i++){const s=this[e(327)][i],r=this[e(327)][i+1],a=o[e(358)](s[e(399)]),c=o[e(358)](r[e(399)]);e(413)===a[e(395)](c)&&(this[e(382)](t,s[e(399)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(376)])return!1;const i=n(e?370:345);return t[n(360)](t[n(322)](i),o),!0}function h(t,e){const o=u();return(h=function(t,e){return o[t-=317]})(t,e)}function m(t,e,o){const n=f;if(0===e[n(407)])return 0;const i=t[n(358)](o);for(let o=0;o<e[n(407)];o++){const s=e[o],r=t[n(358)](s[n(399)]);if(n(335)===i[n(395)](r))return o}const s=o[n(367)];let r=-1;for(let t=e[n(407)]-1;t>=0;t--)if(e[t][n(399)][n(367)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(330)][n(373)](),c=a[n(346)](s[n(363)]),l=a[c+1];if(l)for(let t=0;t<e[n(407)];t++)if(e[t][n(399)][n(367)][n(363)]===l)return t;return e[n(407)]}const g=y;function w(){const t=["isObject","checkChild","8QhErJM","insertObject","539440coRnpl","36617TNURYe","selection","plugins","592149FTYAgB","change","4eRGfgc","footnoteRef","FootnotesEditing","editor","3259WQrRUT","116ZWETbx","isBlock","string","2399148JYhTqQ","refresh","get","createElement","_getPositionToInsertFootnote","169698qoJPuT","execute","length","50ciMWZS","isEnabled","getItems","document","model","footnoteId","insert-footnote-command-executed-with-invalid-id","test","_moveSelectionToFootnoteDefinition","end","5EDjFQV","1316403HYBnVB","getFirstRange"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=144]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(126149===-parseInt(e(159))/1*(-parseInt(e(160))/2)+parseInt(e(153))/3*(-parseInt(e(155))/4)+parseInt(e(181))/5*(parseInt(e(168))/6)+parseInt(e(150))/7+-parseInt(e(147))/8*(-parseInt(e(182))/9)+parseInt(e(171))/10*(-parseInt(e(149))/11)+parseInt(e(163))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(164)](){const t=g,e=this[t(158)][t(175)][t(174)][t(151)],o=this[t(167)](e);this[t(172)]=!!o}[g(169)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(174)],r=this[e(167)](s);if(!r)return;const a=o[e(152)][e(165)](e(157)),c=t?.[e(176)]??(0,i.uid)();!function(t){const o=e;return o(162)==typeof t&&t[o(170)]>0&&!/\s/[o(178)](t)&&!/^\d/[o(178)](t)}(c)?(0,i.logWarning)(e(177)):(n[e(154)](t=>{const o=e,i=t[o(166)](o(156),{footnoteId:c});n[o(148)](i,r,null)}),a[e(179)](c))}[g(167)](t){const e=g,{model:o}=this[e(158)],{schema:n}=o,i=t[e(144)]();for(const t of i[e(173)]())if(n[e(161)](t)||n[e(145)](t))return null;const s=i[e(180)];return n[e(146)](s,e(156))?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])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1761782400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>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: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+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),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 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 S=o(331);const D=_;function P(){const t=["_defineClipboardIntegration","init","from","footnoteRef","drop","length","editor","getFootnote","push","contentInsertion","727635UEcZTf","clipboardInput","toModel","parse","definition","createRangeIn","end","footnoteDefinition","dataTransfer","sourceEditorId","1893tfqxDb","root","footnotesDefinitions","document","createElement","getFootnotes","element","7198840iZjtpm","pluginName","getData","40FWqVfH","footnoteId","FootnotesClipboard","application/ckeditor5-footnotes","isOfficialPlugin","method","_handleCopyFootnotesDefinitions","insert","stringify","isPremiumPlugin","selection","getFirstRange","change","16580jlSflc","get","toView","create","listenTo","_handlePasteFootnotesDefinitions","2694060rUKlcn","find","content","109704IdDLWQ","getAttribute","reduce","_insertEmptyFootnotesDefinitionsContainer","setAttribute","3253149GEVmyG","data","getFootnotesDefinitionsObjectElement","1774zNDlJh","append","setData","editing","remove","htmlProcessor","entries","add","toData","requires","outputTransformation"];return(P=function(){return t})()}function _(t,e){const o=P();return(_=function(t,e){return o[t-=246]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(661856===-parseInt(e(265))/1+parseInt(e(315))/2*(parseInt(e(275))/3)+parseInt(e(285))/4*(parseInt(e(298))/5)+-parseInt(e(304))/6+-parseInt(e(307))/7+parseInt(e(282))/8+parseInt(e(312))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class A extends t.Plugin{static get[D(283)](){return D(287)}static get[D(253)](){return[I,S.ClipboardPipeline]}static get[D(289)](){return!0}static get[D(294)](){return!0}[D(256)](){this[D(255)]()}[D(255)](){const t=D;this[t(291)](),this[t(303)]()}[D(291)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(299)](S.ClipboardPipeline),s=o[t(299)](d);this[t(302)](i,t(254),(o,i)=>{const r=t,a=function(t,e){const o=_,n=new Set;for(const{item:i}of t[o(270)](e))i.is(o(281),o(258))&&n[o(251)](i[o(308)](o(286)));return Array[o(257)](n)}(n,i[r(306)]);if(!a[r(260)])return;const c=s[r(280)](),l=a[r(309)]((t,o)=>{const n=r,i=c[n(305)](t=>t.id===o);if(i){const o=e[n(313)][n(300)](i[n(269)],{isClipboardPipeline:!0}),s=e[n(313)][n(249)][n(252)](o);t[i.id]=s}return t},Object[r(301)](null));i[r(273)][r(246)](r(288),JSON[r(293)](l))})}[D(303)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(247)],r=n[t(299)](S.ClipboardPipeline),a=n[t(299)](d);let c=null;this[t(302)](s[t(278)],t(266),(e,o)=>{const n=t,i=o[n(273)][n(284)](n(288));c=i?JSON[n(268)](i):null}),this[t(302)](r,t(264),(n,s)=>{const r=t;if(!c)return;const l=s[r(274)]===this[r(261)].id;l&&r(259)===s[r(290)]||o[r(297)](t=>{const n=r;!function(t,e){const o=_,n=[];for(const{item:i}of t[o(270)](e))i.is(o(281),o(277))&&n[o(263)](i);for(const e of n)t[o(248)](e)}(t,s[n(306)]);let f=a[n(314)]();if(!f){const e=o[n(278)][n(295)][n(296)]()[n(276)];f=a[n(310)](t,e)}const u=function(t,e,o){const s=n,r=Object[s(301)](null);for(const{item:n}of t[s(270)](e))if(n.is(s(281),s(258))){const e=n[s(308)](s(286));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(286),r[e],n)}return r}(t,s[n(306)],t=>!l||null!==a[n(262)](t));for(const[o,i]of Object[n(250)](c)){const s=u[o]||o,r=t[n(279)](n(272),{footnoteId:s}),a=e[n(313)][n(249)][n(300)](i),c=e[n(313)][n(267)](a,r);t[n(316)](c,r),t[n(292)](r,f,n(271))}c=null})})}}var L=o(311),N=o(355),V=o(450),R=o.n(V),O=o(774),K=o.n(O),j=o(265),M=o.n(j),B=o(410),z=o.n(B),U=o(238),W=o.n(U),q=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=M().bind(null,"head"),J.domAPI=K(),J.insertStyleElement=W();R()(q.A,J);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",Z(t,L.ButtonView)),e.add("menuBar:insertFootnote",Z(t,L.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 Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof L.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function H(t,e){var o=Q();return(H=function(t,e){return o[t-=303]})(t,e)}function Q(){var t=["278124zaLXtZ","8OkkXDZ","2375862qZDMiG","isPremiumPlugin","4338qLHbPc","9890lNiDzg","791uZGOgn","15glMNuv","Footnotes","pluginName","requires","isOfficialPlugin","31688dSanHn","50473DGqQOY","14412385rzpZhx","4860053BPvKMs","28DIbAYR","24pKQMXN"];return(Q=function(){return t})()}var X=H;!function(t){for(var e=H,o=t();;)try{if(993955===parseInt(e(319))/1*(-parseInt(e(307))/2)+-parseInt(e(306))/3*(-parseInt(e(304))/4)+-parseInt(e(313))/5*(parseInt(e(308))/6)+-parseInt(e(312))/7*(parseInt(e(318))/8)+parseInt(e(310))/9*(-parseInt(e(311))/10)+parseInt(e(303))/11+parseInt(e(305))/12*(parseInt(e(320))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class Y extends t.Plugin{static get[X(315)](){return X(314)}static get[X(316)](){return[I,A,G]}static get[X(317)](){return!0}static get[X(309)](){return!0}}const $=et;function tt(){const t=["10XkCBrH","decimal-leading-zero","lower-latin","upper-roman","644350lZxasJ","817048sYJjCq","5164093tCqNOc","6294uuofDJ","5100375njxjBq","55932eMJkMp","2iZLyml","upper-latin","15XTRLaD","8JmrNBj","lower-roman","3300QQrQaS","2719206ajiXsC","upper-alpha","decimal","lower-alpha","8203mhzjKt"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=277]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(540119===parseInt(e(287))/1*(-parseInt(e(281))/2)+parseInt(e(289))/3*(-parseInt(e(282))/4)+-parseInt(e(292))/5*(parseInt(e(284))/6)+-parseInt(e(285))/7*(-parseInt(e(290))/8)+-parseInt(e(293))/9+parseInt(e(277))/10*(-parseInt(e(283))/11)+-parseInt(e(286))/12*(-parseInt(e(297))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const ot=[$(295),$(278),$(279),$(288),$(296),$(294),$(291),$(280)],nt=st;function it(){const t=["getAttribute","35187530Kgixjg","125suRZLx","_updateFootnotesCounters","2272684KavEBt","value","133500rfSxfD","model","494044dmIUzv","161728LSPXdx","3gMFIXw","includes","isEnabled","getFootnotesDefinitionsObjectElement","plugins","change","988916GvqeYr","8572257duTfyr","footnotesListStyle","203xlTBle","get","refresh","setAttribute","execute"];return(it=function(){return t})()}function st(t,e){const o=it();return(st=function(t,e){return o[t-=182]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(732157===-parseInt(e(201))/1+-parseInt(e(193))/2+parseInt(e(195))/3*(-parseInt(e(189))/4)+parseInt(e(187))/5*(parseInt(e(191))/6)+-parseInt(e(204))/7*(parseInt(e(194))/8)+-parseInt(e(202))/9+parseInt(e(186))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class rt extends t.Command{[nt(182)](){const t=nt,{editor:e}=this,o=e[t(199)][t(205)](d)[t(198)]();this[t(197)]=!!o,this[t(190)]=o?.[t(185)](t(203))??null}[nt(184)]({value:t}){const e=nt,{editor:o}=this,n=o[e(199)][e(205)](d),i=n[e(198)]();i&&ot[e(196)](t)&&o[e(192)][e(200)](o=>{const s=e;o[s(183)](s(203),t,i),n[s(188)](o)})}}const at=lt;function ct(){const t=["footnotesListStart","change","24672YRuMyD","plugins","_updateFootnotesCounters","12746052lJNeIP","95436wikHUz","3830100ngLVWA","503001MyxZlZ","4fGPOZO","get","6CYzWQX","145lnHPhs","value","setAttribute","model","execute","5090911WxIATm","isEnabled","106411zpqOyT","isInteger","8MXGFnb","refresh","getAttribute","getFootnotesDefinitionsObjectElement"];return(ct=function(){return t})()}function lt(t,e){const o=ct();return(lt=function(t,e){return o[t-=146]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(645927===-parseInt(e(148))/1*(parseInt(e(163))/2)+-parseInt(e(156))/3+-parseInt(e(160))/4*(parseInt(e(166))/5)+-parseInt(e(165))/6*(-parseInt(e(146))/7)+parseInt(e(150))/8*(parseInt(e(162))/9)+-parseInt(e(161))/10+parseInt(e(159))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[at(151)](){const t=at,{editor:e}=this,o=e[t(157)][t(164)](d)[t(153)]();this[t(147)]=!!o,this[t(167)]=o?.[t(152)](t(154))??null}[at(170)]({value:t}){const e=at,{editor:o}=this,n=o[e(157)][e(164)](d),i=n[e(153)]();i&&Number[e(149)](t)&&o[e(169)][e(155)](o=>{const s=e;o[s(168)](s(154),t,i),n[s(158)](o)})}}const ut=pt;function dt(){const t=["lower-roman","removeAttribute","item","toUpperCase","get","plugins","find","toViewElement","list-style-type","59234200FLlSzc","decimal","removeStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","_defineFormatter","pluginName","consumable","add","requires","model","mapper","attribute:footnotesListStyle:footnotesDefinitions","name","6152556jjJQIn","setAttribute","6256870jKdTUj","element:ol","editor","footnotesStart","11WKDgPJ","define","parent","viewItem","element","_defineConverters","schema","FootnotesPropertiesEditing","lower-latin","downcast","4578633ZYShic","getChildren","getAttribute","isPremiumPlugin","position","543fxEzJz","footnotesStyle","setFootnoteFormatter","floor","upper-roman","getChanges","_getDefaultStartIndex","isOfficialPlugin","writer","upper-alpha","padStart","lower-alpha","footnotesDefinitions","getItems","getStyle","max","4456809AQpayh","isNaN","hasAttribute","4ZNUfdw","_defineSchema","1338DJrHNy","nodeAfter","10102616rflFPk","init","differ","7KLnMbX","footnotesListStyle","extend","toLowerCase","decimal-leading-zero","start","hasClass","consume","checkAttribute","type","insert","_formatFootnoteListValue","parseInt","upcast","fromCharCode","_getDefaultListStyle","upper-latin","for","config","_definePostfixer","setStyle","createRangeOn","from","footnotes.footnotesProperties.defaultListStyle","_updateFootnotesCounters","document","$text","registerPostFixer","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotes-list","commands"];return(dt=function(){return t})()}function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=466]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(752720===parseInt(e(477))/1*(parseInt(e(498))/2)+-parseInt(e(493))/3+parseInt(e(496))/4*(-parseInt(e(560))/5)+-parseInt(e(558))/6+parseInt(e(503))/7*(-parseInt(e(500))/8)+-parseInt(e(472))/9+-parseInt(e(544))/10*(-parseInt(e(564))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ht extends t.Plugin{static get[ut(550)](){return ut(469)}static get[ut(553)](){return[I,d]}static get[ut(484)](){return!0}static get[ut(475)](){return!0}[ut(501)](){const t=ut,{editor:e}=this;e[t(521)][t(565)](t(526),t(545)),e[t(521)][t(565)](t(547),1),e[t(534)][t(552)](t(478),new rt(e)),e[t(534)][t(552)](t(563),new ft(e)),this[t(497)](),this[t(467)](),this[t(549)](),this[t(522)]()}[ut(497)](){const t=ut,{editor:e}=this,{schema:o}=e[t(554)];o[t(505)](t(489),{allowAttributes:[t(504),t(548)]})}[ut(467)](){const t=ut,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(520)](t(516))[t(552)](e=>{const o=t;e.on(o(561),(t,e,n)=>{const s=o,r=e[s(567)],a=e[s(532)]?.[s(566)];r[s(509)](s(533))&&a?.is(s(466),s(489))&&(function(t,e,o,n){const i=s;if(!n[i(511)](e,i(548)))return;let r=1;const a=o[i(551)][i(510)](t,{attributes:i(508)});if(a){const e=Number[i(515)](t[i(474)](i(508)),10);Number[i(494)](e)||(r=e)}!a&&e[i(495)](i(548))||o[i(485)][i(559)](i(548),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(511)](e,i(504)))return;let r=i(545),a=!1;if(o[i(551)][i(510)](t,{attributes:i(512)})){const e={1:i(545),a:i(488),A:i(486),i:i(535),I:i(481)}[t[i(474)](i(512))];e&&(r=e),a=!0}o[i(551)][i(510)](t,{styles:i(543)})&&(r=t[i(491)](i(543)),a=!0),!a&&e[i(495)](i(504))||o[i(485)][i(559)](i(504),r,e)}(r,a,n,i))})}),o[t(520)](t(471))[t(552)](e=>{const o=t;e.on(o(531),(t,e,n)=>{const i=o;if(!n[i(551)][i(510)](e[i(537)],t[i(557)]))return;const s=mt(e[i(537)],n[i(555)]),{attributeNewValue:r}=e;null==r||1===r?n[i(485)][i(536)](i(508),s):n[i(485)][i(559)](i(508),String(r),s)}),e.on(o(556),(t,e,n)=>{const i=o;if(!n[i(551)][i(510)](e[i(537)],t[i(557)]))return;const s=mt(e[i(537)],n[i(555)]),{attributeNewValue:r}=e;r&&i(545)!==r?n[i(485)][i(523)](i(543),r,s):n[i(485)][i(546)](i(543),s)})})}[ut(522)](){const t=ut,{editor:e}=this,{model:o}=e,n=e[t(540)][t(539)](d),i=this[t(518)](),s=this[t(483)]();o[t(528)][t(530)](e=>{const r=t,a=o[r(528)][r(502)][r(482)]();let c=!1;for(const t of a){if(r(513)!==t[r(512)]||r(529)===t[r(557)])continue;const n=o[r(524)](t[r(476)][r(499)]);for(const t of n[r(490)]())t.is(r(466),r(489))&&(!t[r(495)](r(548))&&o[r(468)][r(511)](t,r(548))&&(e[r(559)](r(548),s,t),c=!0),!t[r(495)](r(504))&&o[r(468)][r(511)](t,r(504))&&(e[r(559)](r(504),i,t),c=!0))}return c&&n[r(527)](e),c})}[ut(549)](){const t=ut,{editor:e}=this;e[t(540)][t(539)](d)[t(479)](e=>this[t(514)](e))}[ut(518)](){const t=ut;return this[t(562)][t(521)][t(539)](t(526))}[ut(483)](){const t=ut;return this[t(562)][t(521)][t(539)](t(547))}[ut(514)]({container:t,value:e,digits:o}){const n=ut,i=t[n(474)](n(504)),s=t[n(474)](n(548)),r=Math[n(480)](e)+(s??1)-1;switch(i){case n(507):return function(t,e){const o=n;return String(t)[o(487)](e,"0")}(r,Math[n(492)](2,o));case n(488):case n(470):return gt(r,!1);case n(486):case n(519):return gt(r,!0);case n(535):return yt(r,!1);case n(481):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ut,n=e[o(542)](t);return Array[o(525)](n[o(473)]())[o(541)](t=>t.is(o(466),"ol")&&t[o(509)](o(533)))}function gt(t,e){const o=ut;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(517)](97+t)+n,i=Math[o(480)]((i-1)/26)}return e?n[o(538)]():n}const wt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function yt(t,e){const o=ut;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(506)]()}class bt extends L.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new L.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new L.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,L.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 L.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 L.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 L.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 L.LabeledFieldView(this.locale,L.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(945),vt={attributes:{"data-cke":!0}};vt.setAttributes=z(),vt.insert=M().bind(null,"head"),vt.domAPI=K(),vt.insertStyleElement=W();R()(It.A,vt);It.A&&It.A.locals&&It.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[L.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,L.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new L.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 bt(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}=L.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 Ct=Ft;function Ft(t,e){var o=xt();return(Ft=function(t,e){return o[t-=121]})(t,e)}function xt(){var t=["6xbtAyF","1281385tfdIhu","FootnotesProperties","132560opNGVb","429868lIsepA","pluginName","306626qdsybY","isOfficialPlugin","isPremiumPlugin","2439206QWORZi","796450sjqfGR","1670802PNWLJQ","30iBuqbp","requires","2jEjzon","9cmAtxf"];return(xt=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(175124===-parseInt(e(127))/1*(-parseInt(e(135))/2)+-parseInt(e(129))/3*(-parseInt(e(133))/4)+-parseInt(e(123))/5+parseInt(e(124))/6+parseInt(e(130))/7+parseInt(e(132))/8*(parseInt(e(128))/9)+parseInt(e(125))/10*(-parseInt(e(122))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ct(134)](){return Ct(131)}static get[Ct(126)](){return[ht,kt]}static get[Ct(136)](){return!0}static get[Ct(121)](){return!0}}function Tt(){var t=["30908Bahtru","4821492owaWzV","140hLVpDg","1873208MxcSmk","18wfiGGV","49iQrldE","44256FJKxoQ","3GJpGcr","3856130Gowfku","4EDJWmF","251277pgKSYk","923604BoQweU"];return(Tt=function(){return t})()}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=144]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(654972===parseInt(e(145))/1+parseInt(e(147))/2*(-parseInt(e(154))/3)+-parseInt(e(144))/4*(parseInt(e(155))/5)+-parseInt(e(153))/6*(parseInt(e(152))/7)+parseInt(e(150))/8*(parseInt(e(151))/9)+-parseInt(e(149))/10*(-parseInt(e(146))/11)+-parseInt(e(148))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
@@ -62,15 +62,3 @@
62
62
  .ck-content .footnote-content ol ol ol ol ol{
63
63
  list-style-type:upper-roman;
64
64
  }
65
- .ck-content .footnote-content ul{
66
- list-style-type:disc;
67
- }
68
- .ck-content .footnote-content ul ul{
69
- list-style-type:circle;
70
- }
71
- .ck-content .footnote-content ul ul ul{
72
- list-style-type:square;
73
- }
74
- .ck-content .footnote-content ul ul ul ul{
75
- list-style-type:square;
76
- }
package/dist/index.css CHANGED
@@ -68,6 +68,12 @@
68
68
  .ck-content .footnote-content > p:last-of-type {
69
69
  margin-bottom: 0;
70
70
  }
71
+ /*
72
+ * Footnotes use an ordered list to represent footnote definitions.
73
+ * The problem is that if we insert a list inside a footnote definition, the numbering of the
74
+ * nested list should have the decimal style instead of the lower-latin style. It's lower-latin
75
+ * because we place an ordered list inside another ordered list. It does not affect unordered lists.
76
+ */
71
77
  .ck-content .footnote-content ol {
72
78
  list-style-type: decimal;
73
79
  }
@@ -83,18 +89,6 @@
83
89
  .ck-content .footnote-content ol ol ol ol ol {
84
90
  list-style-type: upper-roman;
85
91
  }
86
- .ck-content .footnote-content ul {
87
- list-style-type: disc;
88
- }
89
- .ck-content .footnote-content ul ul {
90
- list-style-type: circle;
91
- }
92
- .ck-content .footnote-content ul ul ul {
93
- list-style-type: square;
94
- }
95
- .ck-content .footnote-content ul ul ul ul {
96
- list-style-type: square;
97
- }
98
92
 
99
93
  /* Editing styles */
100
94
  .ck.ck-editor__editable .footnotes.ck-widget {