@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20260127.0 → 0.0.0-nightly-20260128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,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-=130]})(t,e)}function c(){const t=["root","add","slice","9ahYbTA","$graveyard","getItems","name","rootName","111970xgDLwR","63UYzmmJ","_trackedElements","nodeAfter","$text","306483cCkMmj","reset","length","8nztVJw","clear","150315tXoJDx","position","_model","values","flat","delete","insert","40472iJdmcj","createRangeOn","push","get","_elementName","getChanges","has","attributes","168376JPVVBH","type","905796qjfLaM","4ALVCDg","elementName","_getElementKey","remove","element","1447116GSRiSN","from","getElementKey","set"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(189030===parseInt(e(172))/1*(-parseInt(e(136))/2)+parseInt(e(169))/3*(-parseInt(e(147))/4)+-parseInt(e(174))/5+parseInt(e(146))/6+parseInt(e(165))/7*(parseInt(e(144))/8)+parseInt(e(159))/9*(parseInt(e(164))/10)+parseInt(e(152))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(131)];[r(140)];[r(149)];[r(166)]=new Map;constructor(t,e){const o=r;this[o(131)]=t,this[o(140)]=e[o(148)],this[o(149)]=e[o(154)]}[r(170)](){const t=r;this[t(166)][t(173)]()}[r(141)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(135)===i[e(145)]&&e(168)!==i[e(162)]&&i[e(130)][e(167)]){const t=this[e(131)][e(137)](i[e(130)][e(167)]);for(const o of t[e(161)]()){if(!o.is(e(151),this[e(140)]))continue;const t=this[e(149)](o);n[e(142)](t)||n[e(155)](t,[]),n[e(139)](t)[e(138)](o)}}if(e(150)===i[e(145)]&&i[e(162)]===this[e(140)]){const t=this[e(149)]({getAttribute:t=>i[e(143)][e(139)](t)});o[e(157)](t)}}for(const[t,n]of this[e(166)])e(160)===n[e(156)][e(163)]&&o[e(157)](t);for(const t of o)this[e(166)][e(134)](t);for(const[t,o]of n)this[e(166)][e(155)](t,o[o[e(171)]-1]);const i=new Set;for(const[t,s]of n)o[e(142)](t)&&(i[e(157)](s[0]),s[e(171)]>1?n[e(155)](t,s[e(158)](1)):n[e(134)](t),o[e(134)](t));return{removed:Array[e(153)](o),inserted:Array[e(153)](n[e(132)]())[e(133)](),moved:Array[e(153)](i)}}}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=373]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(527831===parseInt(e(415))/1*(-parseInt(e(428))/2)+parseInt(e(383))/3*(-parseInt(e(447))/4)+-parseInt(e(379))/5*(-parseInt(e(387))/6)+parseInt(e(400))/7*(-parseInt(e(381))/8)+-parseInt(e(452))/9*(-parseInt(e(413))/10)+-parseInt(e(446))/11+parseInt(e(425))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(461)]=[];[u(377)]=null;[u(468)]=null;[u(453)];[u(467)];[u(473)];static get[u(417)](){return u(474)}static get[u(431)](){return!0}static get[u(398)](){return!0}constructor(t){const e=u;super(t),this[e(453)]=new l(this[e(397)][e(406)],{elementName:e(458),getElementKey:()=>e(462)}),this[e(467)]=new l(this[e(397)][e(406)],{elementName:e(376),getElementKey:t=>t[e(390)](e(378))}),this[e(473)]=new l(this[e(397)][e(406)],{elementName:e(419),getElementKey:t=>t[e(390)](e(378))})}[u(460)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(385)][t(410)](e=>{const n=t,i=o[n(385)][n(412)][n(395)]();let s=!1;return this[n(382)](e,i)&&(s=!0),this[n(433)](e,i)&&(s=!0),this[n(459)](e,i)&&(s=!0),this[n(389)](e)&&(s=!0),this[n(404)](e)&&(s=!0),this[n(463)](e)&&(s=!0),s}),this[t(399)](o[t(385)],t(444),()=>{const e=t;o[e(435)]({isUndoable:!1},t=>{this[e(441)](t)})},{priority:t(405)}),this[t(399)](n,t(457),()=>{const e=t;this[e(461)]=[],this[e(453)][e(451)](),this[e(467)][e(451)](),this[e(473)][e(451)]()},{priority:t(427)})}[u(455)](){return this[u(377)]}[u(450)](t){const e=u;return this[e(461)][e(416)](e=>e.id===t)||null}[u(440)](){const t=u;return Array[t(393)](this[t(461)])}[u(374)](){return this[u(468)]}[u(411)](t){this[u(468)]=t}[u(391)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(461)][o(401)];i++)this[o(384)](t,i)&&(n=!0);return n}[u(422)](t,e){const o=u,n=t[o(464)](o(458),{});return t[o(423)](n,e),this[o(377)]=n,n}[u(441)](t){const e=u;if(!this[e(461)][e(401)]||this[e(377)])return;const o=this[e(461)][0][e(443)][e(438)],n=this[e(422)](t,o);for(const o of this[e(461)])o[e(421)][e(448)]||t[e(408)](o[e(421)],n,e(396));this[e(391)](t)}[u(382)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(453)][o(395)](e);if(r[o(401)]&&(this[o(377)]=r[0]),i[o(401)])if(i[o(401)]>1||this[o(377)]&&i[o(439)](t=>t!==this[o(377)])){const e=t[o(464)](o(458),{}),s=[];this[o(377)]&&s[o(429)](this[o(377)]),s[o(429)](...i),t[o(408)](e,s[0],o(469));for(const n of s)t[o(394)](t[o(449)](n),t[o(445)](e,o(396))),t[o(392)](n);this[o(377)]=e,this[o(391)](t),n=!0}else this[o(377)]=i[0];if(s[o(401)]&&o(418)===this[o(377)]?.[o(438)][o(409)]){for(const e of this[o(461)])t[o(392)](e[o(443)]),n=!0;this[o(461)]=[],this[o(377)]=null}return n}[u(433)](t,e){const o=u;let n=!1;const i=this[o(397)][o(466)][o(456)](o(470)),{inserted:s,moved:r}=this[o(473)][o(395)](e);for(const e of[...r,...s]){const s=e[o(390)](o(378)),r=this[o(450)](s);r&&(r[o(421)]=e),p(t,i,e)&&(n=!0)}return n}[u(459)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(395)](e);for(const e of i)this[o(373)](t,e)&&(n=!0);for(const e of s)this[o(434)](t,e)&&(n=!0);for(const e of r)this[o(465)](t,e)&&(n=!0);return n}[u(404)](t){const e=u;if(!this[e(377)])return!1;let o=!1;if(this[e(377)][e(475)]!==this[e(461)][e(401)]){const n=[];for(const t of this[e(377)][e(432)]()){const i=t[e(390)](e(378));this[e(450)](i)||(n[e(388)](t),o=!0)}for(const o of n)t[e(392)](o)}const n=new Set,i=[];for(const t of this[e(377)][e(432)]()){const s=t[e(390)](e(378));n[e(386)](s)?(i[e(388)](t),o=!0):n[e(454)](s)}for(const o of i)t[e(392)](o);return this[e(377)][e(475)]||(t[e(392)](this[e(377)]),this[e(377)]=null,o=!0),o}[u(434)](t,e){const o=u;if(this[o(461)][o(416)](t=>t[o(443)]===e))return!1;let n=!1;const i=e[o(390)](o(378)),s=this[o(461)][o(402)](t=>t.id===i);-1!==s&&(t[o(392)](this[o(461)][s][o(443)]),this[o(461)][o(424)](s,1),n=!0);let r=this[o(377)]?function(t,e){const n=o;for(const o of t[n(432)]())if(o[n(390)](n(378))===e)return o;return null}(this[o(377)],i):null;r||(r=t[o(464)](o(419),{footnoteId:i}),this[o(377)]&&(t[o(408)](r,this[o(377)],o(396)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(397)][o(406)],this[o(461)],e);this[o(461)][o(424)](c,0,a);let l=c;return-1!==s&&(l=Math[o(430)](c,s)),this[o(391)](t,l)&&(n=!0),n}[u(373)](t,e){const o=u,n=this[o(461)][o(402)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(461)][n];return o(418)!==s[o(421)][o(438)][o(409)]&&(t[o(392)](s[o(421)]),i=!0),this[o(461)][o(424)](n,1),this[o(391)](t,n)&&(i=!0),i}[u(465)](t,e){const o=u,n=e[o(390)](o(378)),i=this[o(461)][o(402)](t=>t.id===n),s=this[o(461)][i];let r=!1;s[o(443)]=e,this[o(461)][o(424)](i,1);const a=m(this[o(397)][o(406)],this[o(461)],e);return this[o(461)][o(424)](a,0,s),this[o(391)](t,Math[o(430)](i,a))&&(r=!0),r}[u(384)](t,e){const o=u;if(!this[o(377)])return!1;const n=this[o(461)][e];let i;return i=this[o(468)]?this[o(468)]({footnote:n,container:this[o(377)],digits:String(this[o(461)][o(401)])[o(401)],value:e+1}):String(e+1),n[o(443)][o(390)](o(420))!=i&&(t[o(471)](o(420),i,n[o(443)]),!0)}[u(463)](t){const e=u;if(!this[e(377)]||this[e(461)][e(401)]<2)return!1;if(function(t,o){const n=e;if(t[n(401)]!==o[n(401)])return!1;for(let e=0;e<t[n(401)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(461)][e(375)](t=>t.id),Array[e(393)](this[e(377)][e(432)]())[e(375)](t=>t[e(390)](e(378)))))return!1;let o=!1;for(let n=0;n<this[e(461)][e(401)];n++){const i=this[e(461)][n],s=t[e(426)](i[e(421)]),r=t[e(445)](this[e(377)],n);s[e(403)](r)||(t[e(394)](t[e(414)](i[e(421)]),r),o=!0)}return o}[u(389)](t){const e=u;if(!this[e(461)][e(401)])return!1;const{model:o}=this[e(397)];let n=!1;for(let i=0;i<this[e(461)][e(401)]-1;i++){const s=this[e(461)][i],r=this[e(461)][i+1],a=o[e(426)](s[e(443)]),c=o[e(426)](r[e(443)]);e(407)===a[e(442)](c)&&(this[e(465)](t,s[e(443)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(475)])return!1;const i=n(e?472:436);return t[n(408)](t[n(464)](i),o),!0}function h(){const t=["_footnoteDefsTracker","FootnotesTracker","childCount","_handleRemoveFootnoteReferenceById","getFootnotesFormatter","map","footnoteRef","_footnotesDefinitions","footnoteId","25DkVUla","getRootNames","1965416VUGqpn","_handleFootnotesDefinitionsObjectChanges","33MYLsMF","_updateFootnoteRefCounter","document","has","1202484wPmfLu","unshift","_ensureFootnotesReferencesHaveProperOrder","getAttribute","_updateFootnotesCounters","remove","from","move","getChanges","end","editor","isPremiumPlugin","listenTo","21cIWhVL","length","findIndex","isEqual","_handleFootnotesDefinitionsObjectSync","low","model","after","insert","rootName","registerPostFixer","setFootnoteFormatter","differ","4586090pVeMJR","createRangeOn","22086WHtlDB","find","pluginName","$graveyard","footnoteDefinition","footnoteCounter","definition","_insertEmptyFootnotesDefinitionsContainer","append","splice","19046148AFcDLE","createPositionBefore","high","50lBzLDg","push","min","isOfficialPlugin","getChildren","_handleFootnoteDefinitionsChanges","_handleInsertedFootnoteReference","enqueueChange","footnoteInlineContent","indexOf","root","some","getFootnotes","_ensureFootnotesDefinitionsContainerExists","compareWith","reference","change:data","createPositionAt","4650888GOjRYz","293832LVclru","parent","createRangeIn","getFootnote","reset","9ameHlY","_footnoteDefsContainerTracker","add","getFootnotesDefinitionsObjectElement","get","set","footnotesDefinitions","_handleFootnoteReferencesChanges","init","_footnotes","singleton","_sortFootnoteDefinitions","createElement","_handleMovedFootnoteReference","config","_footnoteRefsTracker","_footnoteFormatter","before","footnotes.multiBlock","setAttribute","paragraph"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(401)])return 0;const i=t[n(426)](o);for(let o=0;o<e[n(401)];o++){const s=e[o],r=t[n(426)](s[n(443)]);if(n(469)===i[n(442)](r))return o}const s=o[n(438)];let r=-1;for(let t=e[n(401)]-1;t>=0;t--)if(e[t][n(443)][n(438)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(385)][n(380)](),c=a[n(437)](s[n(409)]),l=a[c+1];if(l)for(let t=0;t<e[n(401)];t++)if(e[t][n(443)][n(438)][n(409)]===l)return t;return e[n(401)]}function g(t,e){const o=w();return(g=function(t,e){return o[t-=199]})(t,e)}function w(){const t=["getFirstRange","_moveSelectionToFootnoteDefinition","1687819FNQSeQ","3SpSTxy","get","model","createElement","plugins","180736UPCIKm","insert-footnote-command-executed-with-invalid-id","195292DGDMXW","_getPositionToInsertFootnote","1945384rdhBfR","checkChild","2ZzsSrC","isEnabled","test","FootnotesEditing","end","editor","document","isObject","insertObject","selection","footnoteId","length","1202940kOqnDE","change","5422554ttQkcW","footnoteRef","execute","getItems","refresh","346805LyUsnQ","isBlock","string"];return(w=function(){return t})()}const y=g;!function(t){const e=g,o=t();for(;;)try{if(137195===parseInt(e(217))/1*(parseInt(e(221))/2)+parseInt(e(210))/3*(-parseInt(e(215))/4)+parseInt(e(204))/5+-parseInt(e(233))/6+-parseInt(e(209))/7+-parseInt(e(219))/8+parseInt(e(199))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[y(203)](){const t=y,e=this[t(226)][t(212)][t(227)][t(230)],o=this[t(218)](e);this[t(222)]=!!o}[y(201)](t){const e=y,{editor:o}=this,{model:n}=o,{selection:s}=n[e(227)],r=this[e(218)](s);if(!r)return;const a=o[e(214)][e(211)](e(224)),c=t?.[e(231)]??(0,i.uid)();!function(t){const o=e;return o(206)==typeof t&&t[o(232)]>0&&!/\s/[o(223)](t)&&!/^\d/[o(223)](t)}(c)?(0,i.logWarning)(e(216)):(n[e(234)](t=>{const o=e,i=t[o(213)](o(200),{footnoteId:c});n[o(229)](i,r,null)}),a[e(208)](c))}[y(218)](t){const e=y,{model:o}=this[e(226)],{schema:n}=o,i=t[e(207)]();for(const t of i[e(202)]())if(n[e(205)](t)||n[e(228)](t))return null;const s=i[e(225)];return n[e(220)](s,e(200))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1769472e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const D=T;function T(t,e){const o=_();return(T=function(t,e){return o[t-=148]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(770321===parseInt(e(206))/1+parseInt(e(164))/2*(-parseInt(e(157))/3)+-parseInt(e(231))/4*(parseInt(e(230))/5)+-parseInt(e(194))/6*(parseInt(e(197))/7)+-parseInt(e(193))/8*(-parseInt(e(179))/9)+parseInt(e(165))/10+-parseInt(e(200))/11*(-parseInt(e(149))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[D(163)](){return D(218)}static get[D(216)](){return[I,P.ClipboardPipeline]}static get[D(205)](){return!0}static get[D(225)](){return!0}[D(155)](){this[D(178)]()}[D(178)](){const t=D;this[t(223)](),this[t(171)]()}[D(223)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(192)](P.ClipboardPipeline),s=o[t(192)](d);this[t(210)](i,t(156),(o,i)=>{const r=t,a=V(n[r(199)](i[r(174)]));if(!a[r(158)])return;const c=s[r(226)](),l=a[r(151)]((t,o)=>{const n=r,i=c[n(189)](t=>t.id===o);if(i){const o=e[n(186)][n(190)](i[n(162)],{isClipboardPipeline:!0}),s=e[n(186)][n(152)][n(217)](o);t[i.id]=s}return t},Object[r(229)](null));i[r(166)][r(184)](r(202),JSON[r(172)](l))})}[D(171)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(192)](P.ClipboardPipeline),a=n[t(192)](d),c=e[t(232)][t(192)](t(148));let l=null;this[t(210)](s[t(208)],t(185),(e,o)=>{const n=t,i=o[n(166)][n(177)](n(202));l=i?JSON[n(173)](i):null}),this[t(210)](r,t(220),(n,s)=>{const r=t,u=s[r(195)]===this[r(203)].id;u&&r(191)===s[r(167)]||o[r(175)](t=>{const n=r;let f=a[n(196)]();const d=!!f&&Array[n(219)](o[n(208)][n(207)][n(224)]())[n(227)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(170),e(160)))return!0;return!1}(o[n(199)](s[n(174)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(229)](null);for(const e of i[o(201)]())e.is(o(170),o(233))&&e[o(211)](o(168))&&(s[e[o(221)](o(168))]=t[o(222)](e,!0));return Object[o(209)](s)[o(158)]?s:null}(t,s[n(174)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(199)](e))n.is(o(170),o(188))&&i[o(214)](n);for(const e of i)t[o(159)](e)}(t,s[n(174)]),!l)return;const{selection:p}=o[n(208)],h=p[n(169)]()[n(213)];f&&!d||(f=L(t,s[n(174)]),f||=a[n(212)](t,h));const m=Array[n(219)](p[n(176)]())[n(204)](V),g=function(t,e,o){const s=n,r=Object[s(229)](null);for(const{item:n}of t[s(199)](e))if(n.is(s(170),s(160))){const e=n[s(221)](s(168));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(215)](s(168),r[e],n)}return r}(t,s[n(174)],t=>{const e=n;return!u||!!a[e(161)](t)&&!m[e(227)](t)});for(const[o,i]of Object[n(228)](l)){const s=g[o]||o;let r;if(n(183)!=typeof i)r=i,s!==o&&t[n(215)](n(168),s,r);else{r=t[n(153)](n(233),{footnoteId:s});const o=e[n(186)][n(152)][n(190)](i);let a;if(c)a=e[n(186)][n(180)](o,r);else{a=t[n(153)](n(187));const i=e[n(186)][n(180)](o,a);t[n(154)](i,a)}t[n(198)](a,r)}t[n(154)](r,f,n(181))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(199)](e))if(n.is(o(170),o(188)))return n;return null}function _(){const t=["251669qOrEcU","getChildren","application/ckeditor5-footnotes","editor","flatMap","isOfficialPlugin","622113PFTuCi","selection","document","keys","listenTo","hasAttribute","_insertEmptyFootnotesDefinitionsContainer","root","push","setAttribute","requires","toData","FootnotesClipboard","from","contentInsertion","getAttribute","cloneElement","_handleCopyFootnotesDefinitions","getSelectedBlocks","isPremiumPlugin","getFootnotes","includes","entries","create","5YeHqQC","111832UbRloj","config","footnoteDefinition","footnotes.multiBlock","48kYKPXo","editing","reduce","htmlProcessor","createElement","insert","init","outputTransformation","340125pssKAK","length","remove","footnoteRef","getFootnote","definition","pluginName","18dKWQsu","5532620JyLWhY","dataTransfer","method","footnoteId","getFirstRange","element","_handlePasteFootnotesDefinitions","stringify","parse","content","change","getRanges","getData","_defineClipboardIntegration","9BSJXoZ","toModel","end","add","string","setData","clipboardInput","data","footnoteInlineContent","footnotesDefinitions","find","toView","drop","get","6280872rikGiB","233346kiZFDF","sourceEditorId","getFootnotesDefinitionsObjectElement","42TcIOGP","append","createRangeIn"];return(_=function(){return t})()}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(170),e(160))&&o[e(182)](n[e(221)](e(168)));return Array[e(219)](o)}var O=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),q=o(741),J=o.n(q),H=o(728),Y={attributes:{"data-cke":!0}};Y.setAttributes=W(),Y.insert=z().bind(null,"head"),Y.domAPI=M(),Y.insertStyleElement=J();K()(H.A,Y);H.A&&H.A.locals&&H.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,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=Q;function $(){var t=["2886240PMkhTq","isPremiumPlugin","Footnotes","isOfficialPlugin","2861652vyZuzj","4434579pVZbwK","5834vUurdY","requires","251xEFfjO","340jztIPB","399uwJwOn","301NiTgdD","26032DeJSsL","pluginName","3710PTcIJO","31009wTeqiw"];return($=function(){return t})()}function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=105]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(399004===-parseInt(e(107))/1*(-parseInt(e(105))/2)+parseInt(e(109))/3*(parseInt(e(108))/4)+parseInt(e(115))/5+parseInt(e(119))/6+-parseInt(e(110))/7*(-parseInt(e(111))/8)+-parseInt(e(120))/9+parseInt(e(113))/10*(-parseInt(e(114))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[X(112)](){return X(117)}static get[X(106)](){return[I,A,G]}static get[X(118)](){return!0}static get[X(116)](){return!0}}function et(t,e){const o=ot();return(et=function(t,e){return o[t-=233]})(t,e)}function ot(){const t=["1428576gkHtZc","upper-roman","120uFRdSi","lower-alpha","3793992ePMTaD","8952702CvTfqM","upper-alpha","248510PufOII","upper-latin","decimal-leading-zero","decimal","5bWqUXB","45194622TjUNLK","lower-latin","45RCJJGS","7JlxipF","lower-roman","394578AagsFH","2893268kCopVC"];return(ot=function(){return t})()}const nt=et;!function(t){const e=et,o=t();for(;;)try{if(952952===parseInt(e(239))/1+-parseInt(e(246))/2*(-parseInt(e(234))/3)+-parseInt(e(238))/4+-parseInt(e(250))/5*(-parseInt(e(244))/6)+parseInt(e(235))/7*(parseInt(e(243))/8)+parseInt(e(237))/9*(parseInt(e(241))/10)+-parseInt(e(251))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[nt(249),nt(248),nt(233),nt(247),nt(242),nt(245),nt(236),nt(240)];function st(){const t=["setAttribute","3184mOYJyB","337169nIKoJj","value","execute","11212yYjuiJ","refresh","change","1851272ShEznD","_updateFootnotesCounters","35007unkLOc","isEnabled","model","335sLHJVk","3820941MFggJt","30qZwLlG","1167410khdaQj","get","plugins","includes","getFootnotesDefinitionsObjectElement","getAttribute","footnotesListStyle","268BezIyv"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=178]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(308892===parseInt(e(188))/1*(parseInt(e(186))/2)+parseInt(e(197))/3+parseInt(e(192))/4*(parseInt(e(200))/5)+-parseInt(e(178))/6*(parseInt(e(189))/7)+parseInt(e(195))/8+-parseInt(e(201))/9+parseInt(e(179))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(193)](){const t=rt,{editor:e}=this,o=e[t(181)][t(180)](d)[t(183)]();this[t(198)]=!!o,this[t(190)]=o?.[t(184)](t(185))??null}[rt(191)]({value:t}){const e=rt,{editor:o}=this,n=o[e(181)][e(180)](d),i=n[e(183)]();i&&it[e(182)](t)&&o[e(199)][e(194)](o=>{const s=e;o[s(187)](s(185),t,i),n[s(196)](o)})}}function lt(){const t=["isEnabled","19630zilYMI","model","3057xwGcNn","149190uPDBkY","get","getAttribute","isInteger","value","plugins","563632pbMjau","change","185staKak","_updateFootnotesCounters","9rekCnz","12677gRJkkE","footnotesListStart","3027300NgVqYC","654ywEnOt","setAttribute","execute","getFootnotesDefinitionsObjectElement","refresh","14488562qDylbZ","3464LigNzg"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=381]})(t,e)}const ft=ut;!function(t){const e=ut,o=t();for(;;)try{if(525083===parseInt(e(391))/1+parseInt(e(399))/2*(parseInt(e(384))/3)+-parseInt(e(398))/4+parseInt(e(393))/5*(parseInt(e(385))/6)+parseInt(e(396))/7*(parseInt(e(405))/8)+-parseInt(e(395))/9*(parseInt(e(382))/10)+-parseInt(e(404))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class dt extends t.Command{[ft(403)](){const t=ft,{editor:e}=this,o=e[t(390)][t(386)](d)[t(402)]();this[t(381)]=!!o,this[t(389)]=o?.[t(387)](t(397))??null}[ft(401)]({value:t}){const e=ft,{editor:o}=this,n=o[e(390)][e(386)](d),i=n[e(402)]();i&&Number[e(388)](t)&&o[e(383)][e(392)](o=>{const s=e;o[s(400)](s(397),t,i),n[s(394)](o)})}}const pt=ht;function ht(t,e){const o=yt();return(ht=function(t,e){return o[t-=265]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(604003===-parseInt(e(326))/1*(-parseInt(e(366))/2)+parseInt(e(354))/3*(-parseInt(e(272))/4)+parseInt(e(314))/5*(-parseInt(e(301))/6)+-parseInt(e(365))/7*(-parseInt(e(336))/8)+-parseInt(e(353))/9*(-parseInt(e(356))/10)+parseInt(e(302))/11+-parseInt(e(287))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class mt extends t.Plugin{static get[pt(334)](){return pt(345)}static get[pt(347)](){return[I,d]}static get[pt(320)](){return!0}static get[pt(291)](){return!0}[pt(279)](){const t=pt,{editor:e}=this;e[t(318)][t(308)](t(276),t(266)),e[t(318)][t(308)](t(358),1),e[t(346)][t(278)](t(268),new ct(e)),e[t(346)][t(278)](t(341),new dt(e)),this[t(288)](),this[t(286)](),this[t(331)](),this[t(355)]()}[pt(288)](){const t=pt,{editor:e}=this,{schema:o}=e[t(295)];o[t(273)](t(332),{allowAttributes:[t(294),t(357)]})}[pt(286)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(329)](t(292))[t(278)](e=>{const o=t;e.on(o(307),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(298)]?.[s(333)];r[s(312)](s(335))&&a?.is(s(344),s(332))&&(function(t,e,o,n){const i=s;if(!n[i(309)](e,i(357)))return;let r=1;const a=o[i(349)][i(304)](t,{attributes:i(360)});if(a){const e=Number[i(285)](t[i(280)](i(360)),10);Number[i(317)](e)||(r=e)}!a&&e[i(305)](i(357))||o[i(316)][i(274)](i(357),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(309)](e,i(294)))return;let r=i(266),a=!1;if(o[i(349)][i(304)](t,{attributes:i(306)})){const e={1:i(266),a:i(290),A:i(284),i:i(325),I:i(352)}[t[i(280)](i(306))];e&&(r=e),a=!0}o[i(349)][i(304)](t,{styles:i(271)})&&(r=function(t){const e=i;switch(t){case e(290):return e(299);case e(284):return e(282);default:return t}}(t[i(321)](i(271))),a=!0),!a&&e[i(305)](i(294))||o[i(316)][i(274)](i(294),r,e)}(r,a,n,i))})}),o[t(329)](t(337))[t(278)](e=>{const o=t;e.on(o(324),(t,e,n)=>{const i=o;if(!n[i(349)][i(304)](e[i(363)],t[i(362)]))return;const s=gt(e[i(363)],n[i(330)]),{attributeNewValue:r}=e;null==r||1===r?n[i(316)][i(327)](i(360),s):n[i(316)][i(274)](i(360),String(r),s)}),e.on(o(297),(t,e,n)=>{const i=o;if(!n[i(349)][i(304)](e[i(363)],t[i(362)]))return;const s=gt(e[i(363)],n[i(330)]),{attributeNewValue:r}=e;r&&i(266)!==r?n[i(316)][i(289)](i(271),r,s):n[i(316)][i(319)](i(271),s)})})}[pt(355)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(315)][t(323)](d),i=this[t(281)](),s=this[t(343)]();o[t(364)][t(311)](e=>{const r=t,a=o[r(364)][r(351)][r(310)]();let c=!1;for(const t of a){if(r(339)!==t[r(306)]||r(283)===t[r(362)])continue;const n=o[r(300)](t[r(338)][r(361)]);for(const t of n[r(293)]())t.is(r(344),r(332))&&(!t[r(305)](r(357))&&o[r(342)][r(309)](t,r(357))&&(e[r(274)](r(357),s,t),c=!0),!t[r(305)](r(294))&&o[r(342)][r(309)](t,r(294))&&(e[r(274)](r(294),i,t),c=!0))}return c&&n[r(296)](e),c})}[pt(331)](){const t=pt,{editor:e}=this;e[t(315)][t(323)](d)[t(269)](e=>this[t(303)](e))}[pt(281)](){const t=pt;return this[t(275)][t(318)][t(323)](t(276))}[pt(343)](){const t=pt;return this[t(275)][t(318)][t(323)](t(358))}[pt(303)]({container:t,value:e,digits:o}){const n=pt,i=t[n(280)](n(294)),s=t[n(280)](n(357)),r=Math[n(359)](e)+(s??1)-1;switch(i){case n(267):return function(t,e){const o=n;return String(t)[o(322)](e,"0")}(r,Math[n(340)](2,o));case n(290):case n(299):return wt(r,!1);case n(284):case n(282):return wt(r,!0);case n(325):return It(r,!1);case n(352):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(367)](t);return Array[o(265)](n[o(277)]())[o(270)](t=>t.is(o(344),"ol")&&t[o(312)](o(335)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(350)](97+t)+n,i=Math[o(359)]((i-1)/26)}return e?n[o(313)]():n}function yt(){const t=["decimal","decimal-leading-zero","footnotesStyle","setFootnoteFormatter","find","list-style-type","316tysJGv","extend","setAttribute","editor","footnotes.footnotesProperties.defaultListStyle","getChildren","add","init","getAttribute","_getDefaultListStyle","upper-latin","$text","upper-alpha","parseInt","_defineConverters","27884532xMlsDl","_defineSchema","setStyle","lower-alpha","isPremiumPlugin","upcast","getItems","footnotesListStyle","model","_updateFootnotesCounters","attribute:footnotesListStyle:footnotesDefinitions","modelCursor","lower-latin","createRangeOn","42eQRUkW","9087771vNtYuc","_formatFootnoteListValue","consume","hasAttribute","type","element:ol","define","checkAttribute","getChanges","registerPostFixer","hasClass","toUpperCase","75780VCvZEx","plugins","writer","isNaN","config","removeStyle","isOfficialPlugin","getStyle","padStart","get","attribute:footnotesListStart:footnotesDefinitions","lower-roman","391393pMEvId","removeAttribute","toLowerCase","for","mapper","_defineFormatter","footnotesDefinitions","parent","pluginName","footnotes-list","7032WXnOVX","downcast","position","insert","max","footnotesStart","schema","_getDefaultStartIndex","element","FootnotesPropertiesEditing","commands","requires","viewItem","consumable","fromCharCode","differ","upper-roman","31860KpfqYh","7665KNLzNS","_definePostfixer","3260kGhLrA","footnotesListStart","footnotes.footnotesProperties.defaultStartIndex","floor","start","nodeAfter","name","item","document","6881ePpRRd","2NanELs","toViewElement","from"];return(yt=function(){return t})()}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(328)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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 O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=149]})(t,e)}var Et=xt;function St(){var t=["27XoNlGs","pluginName","3513220ljhfFU","FootnotesProperties","1664747MetdqJ","isPremiumPlugin","isOfficialPlugin","5130kWUwZL","644172IOfrhM","48YprQKF","1654551YVASVq","requires","3162960BAbZQk","19160ozOtaW","3719608YthyMN"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(970351===-parseInt(e(161))/1+-parseInt(e(163))/2+parseInt(e(151))/3*(parseInt(e(159))/4)+-parseInt(e(153))/5+-parseInt(e(160))/6*(-parseInt(e(155))/7)+parseInt(e(150))/8+-parseInt(e(158))/9*(-parseInt(e(149))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[Et(152)](){return Et(154)}static get[Et(162)](){return[mt,Ft]}static get[Et(157)](){return!0}static get[Et(156)](){return!0}}function Dt(){var t=["1922268nLYjTf","431262utrLRz","3624SmqJpx","81828THqiHr","2527612FctSGq","747389ynZnlw","6909JgydAh","25461252PRObRc","5bIWFYW"];return(Dt=function(){return t})()}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=241]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(392832===-parseInt(e(241))/1+-parseInt(e(248))/2+-parseInt(e(245))/3+-parseInt(e(249))/4*(parseInt(e(244))/5)+parseInt(e(246))/6+parseInt(e(242))/7*(-parseInt(e(247))/8)+parseInt(e(243))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["push","4912103kiIQFW","_elementName","attributes","get","delete","remove","flat","24xpclhp","32710bxXUKY","position","561eewxCE","172695AZQojr","$graveyard","nodeAfter","length","_model","$text","from","elementName","getItems","143457ewVHJZ","add","clear","2GhqykU","root","insert","slice","set","values","_trackedElements","32329934ainJqt","12eIYONx","createRangeOn","name","279349zNyacJ","element","type","getElementKey","has","getChanges","80lOICZq","reset","6pchNbm","2114973hXXRWV","_getElementKey","rootName"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=316]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(535449===parseInt(e(360))/1*(parseInt(e(349))/2)+-parseInt(e(346))/3*(parseInt(e(319))/4)+-parseInt(e(337))/5+parseInt(e(321))/6*(-parseInt(e(326))/7)+-parseInt(e(333))/8*(parseInt(e(322))/9)+parseInt(e(334))/10*(parseInt(e(336))/11)+-parseInt(e(357))/12*(-parseInt(e(356))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(341)];[a(327)];[a(323)];[a(355)]=new Map;constructor(t,e){const o=a;this[o(341)]=t,this[o(327)]=e[o(344)],this[o(323)]=e[o(316)]}[a(320)](){const t=a;this[t(355)][t(348)]()}[a(318)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(351)===i[e(362)]&&e(342)!==i[e(359)]&&i[e(335)][e(339)]){const t=this[e(341)][e(358)](i[e(335)][e(339)]);for(const o of t[e(345)]()){if(!o.is(e(361),this[e(327)]))continue;const t=this[e(323)](o);n[e(317)](t)||n[e(353)](t,[]),n[e(329)](t)[e(325)](o)}}if(e(331)===i[e(362)]&&i[e(359)]===this[e(327)]){const t=this[e(323)]({getAttribute:t=>i[e(328)][e(329)](t)});o[e(347)](t)}}for(const[t,n]of this[e(355)])e(338)===n[e(350)][e(324)]&&o[e(347)](t);for(const t of o)this[e(355)][e(330)](t);for(const[t,o]of n)this[e(355)][e(353)](t,o[o[e(340)]-1]);const i=new Set;for(const[t,s]of n)o[e(317)](t)&&(i[e(347)](s[0]),s[e(340)]>1?n[e(353)](t,s[e(352)](1)):n[e(330)](t),o[e(330)](t));return{removed:Array[e(343)](o),inserted:Array[e(343)](n[e(354)]())[e(332)](),moved:Array[e(343)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=286]})(t,e)}function d(){const t=["footnotes.multiBlock","parent","footnoteId","change:data","_handleFootnoteReferencesChanges","push","footnoteInlineContent","setAttribute","_handleFootnotesDefinitionsObjectSync","createRangeIn","getAttribute","model","FootnotesTracker","setFootnoteFormatter","getRootNames","isPremiumPlugin","reset","high","low","from","map","paragraph","_handleFootnoteDefinitionsChanges","insert","1659375ebnCth","set","_handleFootnotesDefinitionsObjectChanges","_handleRemoveFootnoteReferenceById","min","_ensureFootnotesReferencesHaveProperOrder","_handleInsertedFootnoteReference","getFootnotesFormatter","enqueueChange","_ensureFootnotesDefinitionsContainerExists","length","has","after","getChanges","unshift","13099420wzxjCa","createPositionBefore","isOfficialPlugin","5046108fMIeDW","5nQXvuE","listenTo","footnoteCounter","footnotesDefinitions","_handleMovedFootnoteReference","getFootnote","childCount","getFootnotes","508387duYytI","singleton","definition","_footnotesDefinitions","32TFSNWq","$graveyard","pluginName","footnoteRef","editor","some","_footnoteFormatter","get","remove","_footnoteDefsContainerTracker","_footnoteDefsTracker","end","compareWith","_updateFootnoteRefCounter","add","isEqual","config","createElement","footnoteDefinition","getChildren","_footnoteRefsTracker","splice","4hJOrdH","_footnotes","_updateFootnotesCounters","registerPostFixer","indexOf","before","rootName","getFootnotesDefinitionsObjectElement","append","differ","reference","2376456RrYwYt","document","_insertEmptyFootnotesDefinitionsContainer","root","move","createRangeOn","_sortFootnoteDefinitions","find","111018CGnyuN","findIndex","2528232jUvkaB","createPositionAt","init"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(921736===-parseInt(e(333))/1*(parseInt(e(359))/2)+parseInt(e(324))/3+parseInt(e(370))/4+-parseInt(e(325))/5*(parseInt(e(378))/6)+-parseInt(e(380))/7*(parseInt(e(337))/8)+-parseInt(e(306))/9+parseInt(e(321))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(360)]=[];[u(336)]=null;[u(343)]=null;[u(346)];[u(357)];[u(347)];static get[u(339)](){return u(294)}static get[u(323)](){return!0}static get[u(297)](){return!0}constructor(t){const e=u;super(t),this[e(346)]=new l(this[e(341)][e(293)],{elementName:e(328),getElementKey:()=>e(334)}),this[e(357)]=new l(this[e(341)][e(293)],{elementName:e(340),getElementKey:t=>t[e(292)](e(385))}),this[e(347)]=new l(this[e(341)][e(293)],{elementName:e(355),getElementKey:t=>t[e(292)](e(385))})}[u(382)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(371)][t(362)](e=>{const n=t,i=o[n(371)][n(368)][n(319)]();let s=!1;return this[n(308)](e,i)&&(s=!0),this[n(304)](e,i)&&(s=!0),this[n(286)](e,i)&&(s=!0),this[n(311)](e)&&(s=!0),this[n(290)](e)&&(s=!0),this[n(376)](e)&&(s=!0),s}),this[t(326)](o[t(371)],t(386),()=>{const e=t;o[e(314)]({isUndoable:!1},t=>{this[e(315)](t)})},{priority:t(300)}),this[t(326)](n,t(307),()=>{const e=t;this[e(360)]=[],this[e(346)][e(298)](),this[e(357)][e(298)](),this[e(347)][e(298)]()},{priority:t(299)})}[u(366)](){return this[u(336)]}[u(330)](t){const e=u;return this[e(360)][e(377)](e=>e.id===t)||null}[u(332)](){const t=u;return Array[t(301)](this[t(360)])}[u(313)](){return this[u(343)]}[u(295)](t){this[u(343)]=t}[u(361)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(360)][o(316)];i++)this[o(350)](t,i)&&(n=!0);return n}[u(372)](t,e){const o=u,n=t[o(354)](o(328),{});return t[o(367)](n,e),this[o(336)]=n,n}[u(315)](t){const e=u;if(!this[e(360)][e(316)]||this[e(336)])return;const o=this[e(360)][0][e(369)][e(373)],n=this[e(372)](t,o);for(const o of this[e(360)])o[e(335)][e(384)]||t[e(305)](o[e(335)],n,e(348));this[e(361)](t)}[u(308)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(346)][o(319)](e);if(r[o(316)]&&(this[o(336)]=r[0]),i[o(316)])if(i[o(316)]>1||this[o(336)]&&i[o(342)](t=>t!==this[o(336)])){const e=t[o(354)](o(328),{}),s=[];this[o(336)]&&s[o(287)](this[o(336)]),s[o(287)](...i),t[o(305)](e,s[0],o(364));for(const n of s)t[o(374)](t[o(291)](n),t[o(381)](e,o(348))),t[o(345)](n);this[o(336)]=e,this[o(361)](t),n=!0}else this[o(336)]=i[0];if(s[o(316)]&&o(338)===this[o(336)]?.[o(373)][o(365)]){for(const e of this[o(360)])t[o(345)](e[o(369)]),n=!0;this[o(360)]=[],this[o(336)]=null}return n}[u(304)](t,e){const o=u;let n=!1;const i=this[o(341)][o(353)][o(344)](o(383)),{inserted:s,moved:r}=this[o(347)][o(319)](e);for(const e of[...r,...s]){const s=e[o(292)](o(385)),r=this[o(330)](s);r&&(r[o(335)]=e),h(t,i,e)&&(n=!0)}return n}[u(286)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(357)][o(319)](e);for(const e of i)this[o(309)](t,e)&&(n=!0);for(const e of s)this[o(312)](t,e)&&(n=!0);for(const e of r)this[o(329)](t,e)&&(n=!0);return n}[u(290)](t){const e=u;if(!this[e(336)])return!1;let o=!1;if(this[e(336)][e(331)]!==this[e(360)][e(316)]){const n=[];for(const t of this[e(336)][e(356)]()){const i=t[e(292)](e(385));this[e(330)](i)||(n[e(320)](t),o=!0)}for(const o of n)t[e(345)](o)}const n=new Set,i=[];for(const t of this[e(336)][e(356)]()){const s=t[e(292)](e(385));n[e(317)](s)?(i[e(320)](t),o=!0):n[e(351)](s)}for(const o of i)t[e(345)](o);return this[e(336)][e(331)]||(t[e(345)](this[e(336)]),this[e(336)]=null,o=!0),o}[u(312)](t,e){const o=u;if(this[o(360)][o(377)](t=>t[o(369)]===e))return!1;let n=!1;const i=e[o(292)](o(385)),s=this[o(360)][o(379)](t=>t.id===i);-1!==s&&(t[o(345)](this[o(360)][s][o(369)]),this[o(360)][o(358)](s,1),n=!0);let r=this[o(336)]?function(t,e){const n=o;for(const o of t[n(356)]())if(o[n(292)](n(385))===e)return o;return null}(this[o(336)],i):null;r||(r=t[o(354)](o(355),{footnoteId:i}),this[o(336)]&&(t[o(305)](r,this[o(336)],o(348)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(341)][o(293)],this[o(360)],e);this[o(360)][o(358)](c,0,a);let l=c;return-1!==s&&(l=Math[o(310)](c,s)),this[o(361)](t,l)&&(n=!0),n}[u(309)](t,e){const o=u,n=this[o(360)][o(379)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(360)][n];return o(338)!==s[o(335)][o(373)][o(365)]&&(t[o(345)](s[o(335)]),i=!0),this[o(360)][o(358)](n,1),this[o(361)](t,n)&&(i=!0),i}[u(329)](t,e){const o=u,n=e[o(292)](o(385)),i=this[o(360)][o(379)](t=>t.id===n),s=this[o(360)][i];let r=!1;s[o(369)]=e,this[o(360)][o(358)](i,1);const a=m(this[o(341)][o(293)],this[o(360)],e);return this[o(360)][o(358)](a,0,s),this[o(361)](t,Math[o(310)](i,a))&&(r=!0),r}[u(350)](t,e){const o=u;if(!this[o(336)])return!1;const n=this[o(360)][e];let i;return i=this[o(343)]?this[o(343)]({footnote:n,container:this[o(336)],digits:String(this[o(360)][o(316)])[o(316)],value:e+1}):String(e+1),n[o(369)][o(292)](o(327))!=i&&(t[o(289)](o(327),i,n[o(369)]),!0)}[u(376)](t){const e=u;if(!this[e(336)]||this[e(360)][e(316)]<2)return!1;if(function(t,o){const n=e;if(t[n(316)]!==o[n(316)])return!1;for(let e=0;e<t[n(316)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(360)][e(302)](t=>t.id),Array[e(301)](this[e(336)][e(356)]())[e(302)](t=>t[e(292)](e(385)))))return!1;let o=!1;for(let n=0;n<this[e(360)][e(316)];n++){const i=this[e(360)][n],s=t[e(322)](i[e(335)]),r=t[e(381)](this[e(336)],n);s[e(352)](r)||(t[e(374)](t[e(375)](i[e(335)]),r),o=!0)}return o}[u(311)](t){const e=u;if(!this[e(360)][e(316)])return!1;const{model:o}=this[e(341)];let n=!1;for(let i=0;i<this[e(360)][e(316)]-1;i++){const s=this[e(360)][i],r=this[e(360)][i+1],a=o[e(322)](s[e(369)]),c=o[e(322)](r[e(369)]);e(318)===a[e(349)](c)&&(this[e(329)](t,s[e(369)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(331)])return!1;const i=n(e?303:288);return t[n(305)](t[n(354)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(316)])return 0;const i=t[n(322)](o);for(let o=0;o<e[n(316)];o++){const s=e[o],r=t[n(322)](s[n(369)]);if(n(364)===i[n(349)](r))return o}const s=o[n(373)];let r=-1;for(let t=e[n(316)]-1;t>=0;t--)if(e[t][n(369)][n(373)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(371)][n(296)](),c=a[n(363)](s[n(365)]),l=a[c+1];if(l)for(let t=0;t<e[n(316)];t++)if(e[t][n(369)][n(373)][n(365)]===l)return t;return e[n(316)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(683419===parseInt(e(454))/1*(-parseInt(e(453))/2)+-parseInt(e(447))/3*(parseInt(e(460))/4)+parseInt(e(429))/5+parseInt(e(449))/6*(parseInt(e(452))/7)+parseInt(e(448))/8+parseInt(e(438))/9+parseInt(e(439))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(446)](){const t=g,e=this[t(432)][t(441)][t(462)][t(433)],o=this[t(435)](e);this[t(459)]=!!o}[g(442)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(462)],r=this[e(435)](s);if(!r)return;const a=o[e(451)][e(463)](e(443)),c=t?.[e(427)]??(0,i.uid)();!function(t){const o=e;return o(431)==typeof t&&t[o(457)]>0&&!/\s/[o(461)](t)&&!/^\d/[o(461)](t)}(c)?(0,i.logWarning)(e(458)):(n[e(440)](t=>{const o=e,i=t[o(444)](o(450),{footnoteId:c});n[o(456)](i,r,null)}),a[e(437)](c))}[g(435)](t){const e=g,{model:o}=this[e(432)],{schema:n}=o,i=t[e(455)]();for(const t of i[e(436)]())if(n[e(430)](t)||n[e(428)](t))return null;const s=i[e(445)];return n[e(434)](s,e(450))?s:null}}function b(){const t=["1065618lLZHDR","3190150ZPZjpB","change","model","execute","FootnotesEditing","createElement","end","refresh","1016151ENUxNz","2342352JEtlfy","246UAGnHX","footnoteRef","plugins","198590enBePe","1315414peciTi","2VTOqDM","getFirstRange","insertObject","length","insert-footnote-command-executed-with-invalid-id","isEnabled","4vzVADr","test","document","get","footnoteId","isObject","2220845FMErvC","isBlock","string","editor","selection","checkChild","_getPositionToInsertFootnote","getItems","_moveSelectionToFootnoteDefinition"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1769558400;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function 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 T=o(331);const S=D;function A(){const t=["application/ckeditor5-footnotes","getFootnotes","toData","drop","reduce","_handleCopyFootnotesDefinitions","init","24roPbWP","editor","outputTransformation","createElement","create","includes","getFootnotesDefinitionsObjectElement","404XdjNyo","_handlePasteFootnotesDefinitions","498582QLCDkk","setData","content","9582GcPTrl","hasAttribute","footnoteRef","length","pluginName","string","contentInsertion","listenTo","document","push","parse","dataTransfer","entries","createRangeIn","setAttribute","sourceEditorId","append","getData","_defineClipboardIntegration","element","footnotes.multiBlock","from","5943990dIbNyb","htmlProcessor","getChildren","insert","toModel","cloneElement","getFootnote","1831000PxHLTc","get","root","1830717eaQEPy","toView","102305zqIUlO","keys","isPremiumPlugin","config","FootnotesClipboard","footnoteId","6WytZpV","footnotesDefinitions","footnoteDefinition","change","_insertEmptyFootnotesDefinitionsContainer","clipboardInput","getAttribute","footnoteInlineContent","data","getRanges","getFirstRange","method","selection","editing","end","add","find","stringify","isOfficialPlugin","21921702DUTsmn","1rZRhts","remove","getSelectedBlocks","requires","definition","flatMap"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=111]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(567944===parseInt(e(186))/1*(-parseInt(e(123))/2)+parseInt(e(126))/3*(-parseInt(e(121))/4)+parseInt(e(155))/5+-parseInt(e(166))/6*(parseInt(e(160))/7)+parseInt(e(114))/8*(-parseInt(e(158))/9)+-parseInt(e(148))/10+parseInt(e(185))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[S(130)](){return S(164)}static get[S(189)](){return[v,T.ClipboardPipeline]}static get[S(184)](){return!0}static get[S(162)](){return!0}[S(113)](){this[S(144)]()}[S(144)](){const t=S;this[t(112)](),this[t(122)]()}[S(112)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(156)](T.ClipboardPipeline),s=o[t(156)](p);this[t(133)](i,t(116),(o,i)=>{const r=t,a=V(n[r(139)](i[r(125)]));if(!a[r(129)])return;const c=s[r(193)](),l=a[r(111)]((t,o)=>{const n=r,i=c[n(182)](t=>t.id===o);if(i){const o=e[n(174)][n(159)](i[n(190)],{isClipboardPipeline:!0}),s=e[n(174)][n(149)][n(194)](o);t[i.id]=s}return t},Object[r(118)](null));i[r(137)][r(124)](r(192),JSON[r(183)](l))})}[S(122)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(179)],r=n[t(156)](T.ClipboardPipeline),a=n[t(156)](p),c=e[t(163)][t(156)](t(146));let l=null;this[t(133)](s[t(134)],t(171),(e,o)=>{const n=t,i=o[n(137)][n(143)](n(192));l=i?JSON[n(136)](i):null}),this[t(133)](r,t(132),(n,s)=>{const r=t,u=s[r(141)]===this[r(115)].id;u&&r(195)===s[r(177)]||o[r(169)](t=>{const n=r;let f=a[n(120)]();const d=!!f&&Array[n(147)](o[n(134)][n(178)][n(188)]())[n(119)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(145),e(128)))return!0;return!1}(o[n(139)](s[n(125)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(118)](null);for(const e of i[o(150)]())e.is(o(145),o(168))&&e[o(127)](o(165))&&(s[e[o(172)](o(165))]=t[o(153)](e,!0));return Object[o(161)](s)[o(129)]?s:null}(t,s[n(125)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(139)](e))n.is(o(145),o(167))&&i[o(135)](n);for(const e of i)t[o(187)](e)}(t,s[n(125)]),!l)return;const{selection:p}=o[n(134)],h=p[n(176)]()[n(157)];f&&!d||(f=L(t,s[n(125)]),f||=a[n(170)](t,h));const m=Array[n(147)](p[n(175)]())[n(191)](V),g=function(t,e,o){const s=n,r=Object[s(118)](null);for(const{item:n}of t[s(139)](e))if(n.is(s(145),s(128))){const e=n[s(172)](s(165));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(140)](s(165),r[e],n)}return r}(t,s[n(125)],t=>{const e=n;return!u||!!a[e(154)](t)&&!m[e(119)](t)});for(const[o,i]of Object[n(138)](l)){const s=g[o]||o;let r;if(n(131)!=typeof i)r=i,s!==o&&t[n(140)](n(165),s,r);else{r=t[n(117)](n(168),{footnoteId:s});const o=e[n(174)][n(149)][n(159)](i);let a;if(c)a=e[n(174)][n(152)](o,r);else{a=t[n(117)](n(173));const i=e[n(174)][n(152)](o,a);t[n(151)](i,a)}t[n(142)](a,r)}t[n(151)](r,f,n(180))}l=null})})}}function L(t,e){const o=S;for(const{item:n}of t[o(139)](e))if(n.is(o(145),o(167)))return n;return null}function V(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(145),e(128))&&o[e(181)](n[e(172)](e(165)));return Array[e(147)](o)}var O=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),B=o.n(j),M=o(102),W=o.n(M),U=o(123),z=o.n(U),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=W().bind(null,"head"),J.domAPI=B(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,O.ButtonView)),e.add("menuBar:insertFootnote",Y(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=441]})(t,e)}function $(){var t=["670rVHJqL","354927dsEyxI","7200iQvEIU","pluginName","27128AbtiWe","requires","1670xrKQxY","64971iuvVuC","144562NTQwat","Footnotes","isPremiumPlugin","322MJDSts","1272XUHyLJ","isOfficialPlugin","76785HlKFKF"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(181338===parseInt(e(452))/1+parseInt(e(444))/2+-parseInt(e(450))/3+parseInt(e(448))/4*(parseInt(e(442))/5)+parseInt(e(453))/6+-parseInt(e(447))/7*(-parseInt(e(455))/8)+parseInt(e(443))/9*(-parseInt(e(451))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(454)](){return Q(445)}static get[Q(441)](){return[v,_,X]}static get[Q(449)](){return!0}static get[Q(446)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=102]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(186977===-parseInt(e(104))/1+parseInt(e(107))/2+-parseInt(e(115))/3*(parseInt(e(110))/4)+-parseInt(e(103))/5+-parseInt(e(118))/6*(parseInt(e(114))/7)+parseInt(e(105))/8+parseInt(e(106))/9*(parseInt(e(102))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(111),ot(113),ot(117),ot(108),ot(119),ot(109),ot(116),ot(112)];function it(){const t=["upper-latin","upper-alpha","58232dBzRex","decimal","upper-roman","decimal-leading-zero","30177KHMOER","69LCUyYQ","lower-roman","lower-latin","408YAegjR","lower-alpha","4569980xXBFyS","997600apewrf","315983kOfcRt","663456dTxLPr","18rttFmi","667068UjeBbE"];return(it=function(){return t})()}function st(){const t=["76800HeAUtG","change","4sRDuiJ","999760qPTObK","3120816byDcgj","102qywGtw","model","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","plugins","value","250804GhCWxW","isEnabled","5232642YCokWq","setAttribute","get","refresh","execute","getAttribute","footnotesListStyle","5868275zWBuvj","5nmFRcy","1913274xOEmBE"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=495]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(462466===parseInt(e(514))/1*(-parseInt(e(500))/2)+parseInt(e(517))/3*(parseInt(e(512))/4)+parseInt(e(510))/5*(parseInt(e(502))/6)+-parseInt(e(509))/7+parseInt(e(516))/8+-parseInt(e(511))/9+parseInt(e(515))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(505)](){const t=rt,{editor:e}=this,o=e[t(498)][t(504)](p)[t(495)]();this[t(501)]=!!o,this[t(499)]=o?.[t(507)](t(508))??null}[rt(506)]({value:t}){const e=rt,{editor:o}=this,n=o[e(498)][e(504)](p),i=n[e(495)]();i&&nt[e(496)](t)&&o[e(518)][e(513)](o=>{const s=e;o[s(503)](s(508),t,i),n[s(497)](o)})}}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=305]})(t,e)}const ut=lt;function ft(){const t=["308001touGsX","57916ozoNKv","753849yBiZKo","108002iXTbOL","_updateFootnotesCounters","isEnabled","model","footnotesListStart","1491276CPFCpG","plugins","isInteger","358561VuYMyt","refresh","getAttribute","setAttribute","40qHyhRp","execute","147210WwEDyt","getFootnotesDefinitionsObjectElement","change","get","value","4ItiUbW"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(247230===-parseInt(e(317))/1+parseInt(e(319))/2+parseInt(e(316))/3+parseInt(e(315))/4*(parseInt(e(310))/5)+-parseInt(e(324))/6+-parseInt(e(327))/7+-parseInt(e(308))/8*(-parseInt(e(318))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(305)](){const t=ut,{editor:e}=this,o=e[t(325)][t(313)](p)[t(311)]();this[t(321)]=!!o,this[t(314)]=o?.[t(306)](t(323))??null}[ut(309)]({value:t}){const e=ut,{editor:o}=this,n=o[e(325)][e(313)](p),i=n[e(311)]();i&&Number[e(326)](t)&&o[e(322)][e(312)](o=>{const s=e;o[s(307)](s(323),t,i),n[s(320)](o)})}}const pt=yt;!function(t){const e=yt,o=t();for(;;)try{if(311944===-parseInt(e(343))/1*(parseInt(e(397))/2)+-parseInt(e(361))/3*(parseInt(e(399))/4)+-parseInt(e(362))/5*(parseInt(e(400))/6)+parseInt(e(380))/7*(parseInt(e(403))/8)+-parseInt(e(355))/9*(-parseInt(e(398))/10)+-parseInt(e(349))/11*(parseInt(e(339))/12)+parseInt(e(381))/13*(parseInt(e(385))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(wt);class ht extends t.Plugin{static get[pt(388)](){return pt(404)}static get[pt(365)](){return[v,p]}static get[pt(364)](){return!0}static get[pt(338)](){return!0}[pt(417)](){const t=pt,{editor:e}=this;e[t(395)][t(359)](t(408),t(420)),e[t(395)][t(359)](t(428),1),e[t(391)][t(411)](t(414),new ct(e)),e[t(391)][t(411)](t(431),new dt(e)),this[t(368)](),this[t(345)](),this[t(430)](),this[t(369)]()}[pt(368)](){const t=pt,{editor:e}=this,{schema:o}=e[t(376)];o[t(390)](t(353),{allowAttributes:[t(378),t(435)]})}[pt(345)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(372)](t(406))[t(411)](e=>{const o=t;e.on(o(341),(t,e,n)=>{const s=o,r=e[s(383)],a=e[s(363)]?.[s(412)];r[s(379)](s(357))&&a?.is(s(394),s(353))&&(function(t,e,o,n){const i=s;if(!n[i(429)](e,i(435)))return;let r=1;const a=o[i(333)][i(423)](t,{attributes:i(367)});if(a){const e=Number[i(416)](t[i(409)](i(367)),10);Number[i(425)](e)||(r=e)}!a&&e[i(422)](i(435))||o[i(352)][i(334)](i(435),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(429)](e,i(378)))return;let r=i(420),a=!1;if(o[i(333)][i(423)](t,{attributes:i(337)})){const e={1:i(420),a:i(434),A:i(401),i:i(427),I:i(421)}[t[i(409)](i(337))];e&&(r=e),a=!0}o[i(333)][i(423)](t,{styles:i(344)})&&(r=function(t){const e=i;switch(t){case e(434):return e(370);case e(401):return e(336);default:return t}}(t[i(350)](i(344))),a=!0),!a&&e[i(422)](i(378))||o[i(352)][i(334)](i(378),r,e)}(r,a,n,i))})}),o[t(372)](t(348))[t(411)](e=>{const o=t;e.on(o(360),(t,e,n)=>{const i=o;if(!n[i(333)][i(423)](e[i(386)],t[i(351)]))return;const s=mt(e[i(386)],n[i(413)]),{attributeNewValue:r}=e;null==r||1===r?n[i(352)][i(371)](i(367),s):n[i(352)][i(334)](i(367),String(r),s)}),e.on(o(393),(t,e,n)=>{const i=o;if(!n[i(333)][i(423)](e[i(386)],t[i(351)]))return;const s=mt(e[i(386)],n[i(413)]),{attributeNewValue:r}=e;r&&i(420)!==r?n[i(352)][i(389)](i(344),r,s):n[i(352)][i(382)](i(344),s)})})}[pt(369)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(432)][t(436)](p),i=this[t(402)](),s=this[t(340)]();o[t(347)][t(396)](e=>{const r=t,a=o[r(347)][r(373)][r(437)]();let c=!1;for(const t of a){if(r(358)!==t[r(337)]||r(377)===t[r(351)])continue;const n=o[r(405)](t[r(418)][r(410)]);for(const t of n[r(342)]())t.is(r(394),r(353))&&(!t[r(422)](r(435))&&o[r(392)][r(429)](t,r(435))&&(e[r(334)](r(435),s,t),c=!0),!t[r(422)](r(378))&&o[r(392)][r(429)](t,r(378))&&(e[r(334)](r(378),i,t),c=!0))}return c&&n[r(356)](e),c})}[pt(430)](){const t=pt,{editor:e}=this;e[t(432)][t(436)](p)[t(346)](e=>this[t(433)](e))}[pt(402)](){const t=pt;return this[t(415)][t(395)][t(436)](t(408))}[pt(340)](){const t=pt;return this[t(415)][t(395)][t(436)](t(428))}[pt(433)]({container:t,value:e,digits:o}){const n=pt,i=t[n(409)](n(378)),s=t[n(409)](n(435)),r=Math[n(424)](e)+(s??1)-1;switch(i){case n(387):return function(t,e){const o=n;return String(t)[o(426)](e,"0")}(r,Math[n(335)](2,o));case n(434):case n(370):return gt(r,!1);case n(401):case n(336):return gt(r,!0);case n(427):return vt(r,!1);case n(421):return vt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(366)](t);return Array[o(419)](n[o(354)]())[o(374)](t=>t.is(o(394),"ol")&&t[o(379)](o(357)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(384)](97+t)+n,i=Math[o(424)]((i-1)/26)}return e?n[o(375)]():n}function wt(){const t=["setAttribute","max","upper-latin","type","isPremiumPlugin","6352332imvJNL","_getDefaultStartIndex","element:ol","getItems","36606zAVLgP","list-style-type","_defineConverters","setFootnoteFormatter","document","downcast","11OFzvdV","getStyle","name","writer","footnotesDefinitions","getChildren","76185zaAjiV","_updateFootnotesCounters","footnotes-list","insert","define","attribute:footnotesListStart:footnotesDefinitions","105537jLgqgs","12310lmPusO","modelCursor","isOfficialPlugin","requires","toViewElement","start","_defineSchema","_definePostfixer","lower-latin","removeAttribute","for","differ","find","toUpperCase","model","$text","footnotesListStyle","hasClass","7jiGDId","3775096RLbFxb","removeStyle","viewItem","fromCharCode","28jKHQLb","item","decimal-leading-zero","pluginName","setStyle","extend","commands","schema","attribute:footnotesListStyle:footnotesDefinitions","element","config","registerPostFixer","6FojpxI","470ZKvjhO","20YRiXKb","678STDWpK","upper-alpha","_getDefaultListStyle","3412680lvaLCk","FootnotesPropertiesEditing","createRangeOn","upcast","toLowerCase","footnotes.footnotesProperties.defaultListStyle","getAttribute","nodeAfter","add","parent","mapper","footnotesStyle","editor","parseInt","init","position","from","decimal","upper-roman","hasAttribute","consume","floor","isNaN","padStart","lower-roman","footnotes.footnotesProperties.defaultStartIndex","checkAttribute","_defineFormatter","footnotesStart","plugins","_formatFootnoteListValue","lower-alpha","footnotesListStart","get","getChanges","consumable"];return(wt=function(){return t})()}function yt(t,e){const o=wt();return(yt=function(t,e){return o[t-=333]})(t,e)}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(407)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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 O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(t,e){var o=Pt();return(xt=function(t,e){return o[t-=300]})(t,e)}var Et=xt;function Pt(){var t=["7465192daqzuF","pluginName","isOfficialPlugin","requires","4OvnkgM","9792387MQpkWB","209325wyABRK","2515077OTuxtY","FootnotesProperties","106csCPzy","192RVwbdn","7575600bUgoje","isPremiumPlugin","4412766LKnWmV"];return(Pt=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(680146===-parseInt(e(309))/1*(parseInt(e(310))/2)+parseInt(e(307))/3+-parseInt(e(304))/4*(-parseInt(e(306))/5)+parseInt(e(313))/6+-parseInt(e(300))/7+-parseInt(e(311))/8+parseInt(e(305))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt);class Tt extends t.Plugin{static get[Et(301)](){return Et(308)}static get[Et(303)](){return[ht,Ft]}static get[Et(302)](){return!0}static get[Et(312)](){return!0}}function St(){var t=["926dBfVkc","7207438NJplBk","3040brlpfu","4949394cgGTLF","42815pBMxWU","1124704SWkTvG","388nzCnVL","1377kwnpRA","21206390epgjkC","5979xEcJlD"];return(St=function(){return t})()}function At(t,e){var o=St();return(At=function(t,e){return o[t-=153]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(640912===-parseInt(e(157))/1+-parseInt(e(162))/2*(parseInt(e(161))/3)+parseInt(e(158))/4*(parseInt(e(156))/5)+parseInt(e(155))/6+-parseInt(e(153))/7+parseInt(e(154))/8*(-parseInt(e(159))/9)+parseInt(e(160))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();