@ckeditor/ckeditor5-footnotes 47.2.0-alpha.2 → 47.2.0-alpha.4

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-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Y,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>u,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["flat","$graveyard","487256evnhHm","_getElementKey","values","getItems","6fVXNOV","nodeAfter","delete","name","push","_model","reset","root","clear","24ZAXemC","position","add","attributes","3953990cGRguc","1058BEvknq","insert","from","rootName","set","length","remove","type","createRangeOn","$text","_trackedElements","_elementName","90123JCOAQv","1740DgvuUa","3309BVVStk","has","elementName","getChanges","element","get","684817vebPLj","slice","1789088oCDKiJ","getElementKey","276579xObsLU"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(723063===parseInt(e(477))/1+parseInt(e(495))/2*(-parseInt(e(509))/3)+parseInt(e(517))/4+parseInt(e(494))/5*(-parseInt(e(481))/6)+parseInt(e(515))/7*(-parseInt(e(490))/8)+parseInt(e(519))/9+parseInt(e(508))/10*(parseInt(e(507))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(486)];[a(506)];[a(478)];[a(505)]=new Map;constructor(t,e){const o=a;this[o(486)]=t,this[o(506)]=e[o(511)],this[o(478)]=e[o(518)]}[a(487)](){const t=a;this[t(505)][t(489)]()}[a(512)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(496)===i[e(502)]&&e(504)!==i[e(484)]&&i[e(491)][e(482)]){const t=this[e(486)][e(503)](i[e(491)][e(482)]);for(const o of t[e(480)]()){if(!o.is(e(513),this[e(506)]))continue;const t=this[e(478)](o);n[e(510)](t)||n[e(499)](t,[]),n[e(514)](t)[e(485)](o)}}if(e(501)===i[e(502)]&&i[e(484)]===this[e(506)]){const t=this[e(478)]({getAttribute:t=>i[e(493)][e(514)](t)});o[e(492)](t)}}for(const[t,n]of this[e(505)])e(476)===n[e(488)][e(498)]&&o[e(492)](t);for(const t of o)this[e(505)][e(483)](t);for(const[t,o]of n)this[e(505)][e(499)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(510)](t)&&(i[e(492)](s[0]),s[e(500)]>1?n[e(499)](t,s[e(516)](1)):n[e(483)](t),o[e(483)](t));return{removed:Array[e(497)](o),inserted:Array[e(497)](n[e(479)]())[e(520)](),moved:Array[e(497)](i)}}}const f=h;!function(t){const e=h,o=t();for(;;)try{if(535849===-parseInt(e(237))/1*(-parseInt(e(234))/2)+parseInt(e(308))/3*(-parseInt(e(298))/4)+-parseInt(e(217))/5*(-parseInt(e(240))/6)+-parseInt(e(293))/7+parseInt(e(219))/8*(parseInt(e(277))/9)+parseInt(e(220))/10+-parseInt(e(229))/11*(parseInt(e(273))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class u extends t.Plugin{[f(312)]=[];[f(223)]=null;[f(265)]=null;[f(283)];[f(310)];[f(279)];static get[f(297)](){return f(302)}static get[f(272)](){return!0}static get[f(290)](){return!0}constructor(t){const e=f;super(t),this[e(283)]=new l(this[e(250)][e(243)],{elementName:e(249),getElementKey:()=>e(301)}),this[e(310)]=new l(this[e(250)][e(243)],{elementName:e(242),getElementKey:t=>t[e(275)](e(276))}),this[e(279)]=new l(this[e(250)][e(243)],{elementName:e(274),getElementKey:t=>t[e(275)](e(276))})}[f(264)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(313)][t(213)](e=>{const n=t,i=o[n(313)][n(280)][n(286)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(291)](e,i)&&(s=!0),this[n(233)](e,i)&&(s=!0),this[n(307)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(282)](e)&&(s=!0),s}),this[t(238)](o[t(313)],t(269),()=>{const e=t;o[e(248)]({isUndoable:!1},t=>{this[e(285)](t)})},{priority:t(260)}),this[t(238)](n,t(303),()=>{const e=t;this[e(312)]=[],this[e(283)][e(299)](),this[e(310)][e(299)](),this[e(279)][e(299)]()},{priority:t(216)})}[f(232)](){return this[f(223)]}[f(287)](t){const e=f;return this[e(312)][e(224)](e=>e.id===t)||null}[f(214)](){const t=f;return Array[t(311)](this[t(312)])}[f(259)](){return this[f(265)]}[f(231)](t){this[f(265)]=t}[f(267)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(312)][o(247)];i++)this[o(211)](t,i)&&(n=!0);return n}[f(244)](t,e){const o=f,n=t[o(241)](o(249),{});return t[o(296)](n,e),this[o(223)]=n,n}[f(285)](t){const e=f;if(!this[e(312)][e(247)]||this[e(223)])return;const o=this[e(312)][0][e(252)][e(256)],n=this[e(244)](t,o);for(const o of this[e(312)])o[e(228)][e(281)]||t[e(258)](o[e(228)],n,e(288));this[e(267)](t)}[f(212)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(283)][o(286)](e);if(r[o(247)]&&(this[o(223)]=r[0]),i[o(247)])if(i[o(247)]>1||this[o(223)]&&i[o(251)](t=>t!==this[o(223)])){const e=t[o(241)](o(249),{}),s=[];this[o(223)]&&s[o(215)](this[o(223)]),s[o(215)](...i),t[o(258)](e,s[0],o(300));for(const n of s)t[o(292)](t[o(218)](n),t[o(227)](e,o(288))),t[o(254)](n);this[o(223)]=e,this[o(267)](t),n=!0}else this[o(223)]=i[0];if(s[o(247)]&&o(309)===this[o(223)]?.[o(256)][o(236)]){for(const e of this[o(312)])t[o(254)](e[o(252)]),n=!0;this[o(312)]=[],this[o(223)]=null}return n}[f(291)](t,e){const o=f;let n=!1;const i=this[o(250)][o(246)][o(230)](o(226)),{inserted:s,moved:r}=this[o(279)][o(286)](e);for(const e of[...r,...s]){const s=e[o(275)](o(276)),r=this[o(287)](s);r&&(r[o(228)]=e),d(t,i,e)&&(n=!0)}return n}[f(233)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(310)][o(286)](e);for(const e of i)this[o(306)](t,e)&&(n=!0);for(const e of s)this[o(225)](t,e)&&(n=!0);for(const e of r)this[o(266)](t,e)&&(n=!0);return n}[f(235)](t){const e=f;if(!this[e(223)])return!1;let o=!1;if(this[e(223)][e(245)]!==this[e(312)][e(247)]){const n=[];for(const t of this[e(223)][e(221)]()){const i=t[e(275)](e(276));this[e(287)](i)||(n[e(268)](t),o=!0)}for(const o of n)t[e(254)](o)}const n=new Set,i=[];for(const t of this[e(223)][e(221)]()){const s=t[e(275)](e(276));n[e(262)](s)?(i[e(268)](t),o=!0):n[e(270)](s)}for(const o of i)t[e(254)](o);return this[e(223)][e(245)]||(t[e(254)](this[e(223)]),this[e(223)]=null,o=!0),o}[f(225)](t,e){const o=f;if(this[o(312)][o(224)](t=>t[o(252)]===e))return!1;let n=!1;const i=e[o(275)](o(276)),s=this[o(312)][o(261)](t=>t.id===i);-1!==s&&(t[o(254)](this[o(312)][s][o(252)]),this[o(312)][o(271)](s,1),n=!0);let r=this[o(223)]?function(t,e){const n=o;for(const o of t[n(221)]())if(o[n(275)](n(276))===e)return o;return null}(this[o(223)],i):null;r||(r=t[o(241)](o(274),{footnoteId:i}),this[o(223)]&&(t[o(258)](r,this[o(223)],o(288)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(250)][o(243)],this[o(312)],e);this[o(312)][o(271)](c,0,a);let l=c;return-1!==s&&(l=Math[o(253)](c,s)),this[o(267)](t,l)&&(n=!0),n}[f(306)](t,e){const o=f,n=this[o(312)][o(261)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(312)][n];return o(309)!==s[o(228)][o(256)][o(236)]&&(t[o(254)](s[o(228)]),i=!0),this[o(312)][o(271)](n,1),this[o(267)](t,n)&&(i=!0),i}[f(266)](t,e){const o=f,n=e[o(275)](o(276)),i=this[o(312)][o(261)](t=>t.id===n),s=this[o(312)][i];let r=!1;s[o(252)]=e,this[o(312)][o(271)](i,1);const a=p(this[o(250)][o(243)],this[o(312)],e);return this[o(312)][o(271)](a,0,s),this[o(267)](t,Math[o(253)](i,a))&&(r=!0),r}[f(211)](t,e){const o=f;if(!this[o(223)])return!1;const n=this[o(312)][e];let i;return i=this[o(265)]?this[o(265)]({footnote:n,container:this[o(223)],digits:String(this[o(312)][o(247)])[o(247)],value:e+1}):String(e+1),n[o(252)][o(275)](o(278))!=i&&(t[o(257)](o(278),i,n[o(252)]),!0)}[f(282)](t){const e=f;if(!this[e(223)]||this[e(312)][e(247)]<2)return!1;if(function(t,o){const n=e;if(t[n(247)]!==o[n(247)])return!1;for(let e=0;e<t[n(247)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(312)][e(305)](t=>t.id),Array[e(311)](this[e(223)][e(221)]())[e(305)](t=>t[e(275)](e(276)))))return!1;let o=!1;for(let n=0;n<this[e(312)][e(247)];n++){const i=this[e(312)][n],s=t[e(289)](i[e(228)]),r=t[e(227)](this[e(223)],n);s[e(255)](r)||(t[e(292)](t[e(222)](i[e(228)]),r),o=!0)}return o}[f(307)](t){const e=f;if(!this[e(312)][e(247)])return!1;const{model:o}=this[e(250)];let n=!1;for(let i=0;i<this[e(312)][e(247)]-1;i++){const s=this[e(312)][i],r=this[e(312)][i+1],a=o[e(289)](s[e(252)]),c=o[e(289)](r[e(252)]);e(295)===a[e(304)](c)&&(this[e(266)](t,s[e(252)]),i=-1,n=!0)}return n}}function d(t,e,o){const n=f;if(o[n(245)])return!1;const i=n(e?263:284);return t[n(258)](t[n(241)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(247)])return 0;const i=t[n(289)](o);for(let o=0;o<e[n(247)];o++){const s=e[o],r=t[n(289)](s[n(252)]);if(n(300)===i[n(304)](r))return o}const s=o[n(256)];let r=-1;for(let t=e[n(247)]-1;t>=0;t--)if(e[t][n(252)][n(256)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(313)][n(239)](),c=a[n(294)](s[n(236)]),l=a[c+1];if(l)for(let t=0;t<e[n(247)];t++)if(e[t][n(252)][n(256)][n(236)]===l)return t;return e[n(247)]}function h(t,e){const o=m();return(h=function(t,e){return o[t-=211]})(t,e)}function m(){const t=["_handleFootnoteReferencesChanges","1032556UGfjER","_handleFootnotesDefinitionsObjectSync","rootName","2HWrPpb","listenTo","getRootNames","438qvJRcz","createElement","footnoteRef","model","_insertEmptyFootnotesDefinitionsContainer","childCount","config","length","enqueueChange","footnotesDefinitions","editor","some","reference","min","remove","isEqual","root","setAttribute","insert","getFootnotesFormatter","low","findIndex","has","paragraph","init","_footnoteFormatter","_handleMovedFootnoteReference","_updateFootnotesCounters","unshift","change:data","add","splice","isOfficialPlugin","2194332orGMGE","footnoteDefinition","getAttribute","footnoteId","351oBqXWv","footnoteCounter","_footnoteDefsTracker","differ","parent","_sortFootnoteDefinitions","_footnoteDefsContainerTracker","footnoteInlineContent","_ensureFootnotesDefinitionsContainerExists","getChanges","getFootnote","end","createPositionBefore","isPremiumPlugin","_handleFootnoteDefinitionsChanges","move","2576329IbJcNb","indexOf","after","append","pluginName","1424dZJzMG","reset","before","singleton","FootnotesTracker","set","compareWith","map","_handleRemoveFootnoteReferenceById","_ensureFootnotesReferencesHaveProperOrder","3606GBspLP","$graveyard","_footnoteRefsTracker","from","_footnotes","document","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectChanges","registerPostFixer","getFootnotes","push","high","48245cGjGaR","createRangeIn","83392fjxoBL","1026440DmOxJO","getChildren","createRangeOn","_footnotesDefinitions","find","_handleInsertedFootnoteReference","footnotes.multiBlock","createPositionAt","definition","55JiIhDL","get","setFootnoteFormatter","getFootnotesDefinitionsObjectElement"];return(m=function(){return t})()}function g(t,e){const o=y();return(g=function(t,e){return o[t-=382]})(t,e)}const w=g;function y(){const t=["model","isBlock","isObject","6prIphr","627664aUWnwc","execute","createElement","get","end","insert-footnote-command-executed-with-invalid-id","string","getFirstRange","document","getItems","refresh","checkChild","_getPositionToInsertFootnote","footnoteRef","82974bpOcgK","footnoteId","985516ElIAcf","test","95zrDMgU","5357zvTQTO","length","_moveSelectionToFootnoteDefinition","plugins","editor","insertObject","21sYWaYI","3519qTxHmA","6427344wNMAuF","45590ZfLPcL","change","165860SFAbyt","isEnabled","selection","FootnotesEditing"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(664514===-parseInt(e(410))/1+-parseInt(e(394))/2*(parseInt(e(393))/3)+-parseInt(e(386))/4*(parseInt(e(412))/5)+-parseInt(e(408))/6*(-parseInt(e(419))/7)+parseInt(e(383))/8+parseInt(e(382))/9+-parseInt(e(384))/10*(-parseInt(e(413))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(404)](){const t=w,e=this[t(417)][t(390)][t(402)][t(388)],o=this[t(406)](e);this[t(387)]=!!o}[w(395)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(402)],r=this[e(406)](s);if(!r)return;const a=o[e(416)][e(397)](e(389)),c=t?.[e(409)]??(0,i.uid)();!function(t){const o=e;return o(400)==typeof t&&t[o(414)]>0&&!/\s/[o(411)](t)&&!/^\d/[o(411)](t)}(c)?(0,i.logWarning)(e(399)):(n[e(385)](t=>{const o=e,i=t[o(396)](o(407),{footnoteId:c});n[o(418)](i,r,null)}),a[e(415)](c))}[w(406)](t){const e=w,{model:o}=this[e(417)],{schema:n}=o,i=t[e(401)]();for(const t of i[e(403)]())if(n[e(391)](t)||n[e(392)](t))return null;const s=i[e(398)];return n[e(405)](s,e(407))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[u]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1761868800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(u).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(u).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function A(){const t=["setData","_handleCopyFootnotesDefinitions","contentInsertion","append","405426jGqXeX","push","entries","2ekzFYy","footnoteRef","1374moOZrO","getSelectedBlocks","_defineClipboardIntegration","document","footnoteDefinition","listenTo","method","5380448ZnzJfV","get","element","flatMap","getAttribute","find","getFirstRange","_insertEmptyFootnotesDefinitionsContainer","10854316mFVqSt","requires","FootnotesClipboard","getFootnotes","toModel","32968XjJiNi","create","dataTransfer","includes","outputTransformation","toData","420vqJtIk","createElement","clipboardInput","getFootnote","length","data","getRanges","_handlePasteFootnotesDefinitions","footnoteId","definition","application/ckeditor5-footnotes","editor","35208SIbopv","525qnHofd","setAttribute","root","isOfficialPlugin","insert","stringify","htmlProcessor","getFootnotesDefinitionsObjectElement","editing","remove","end","sourceEditorId","createRangeIn","init","getData","change","drop","add","toView","content","footnotesDefinitions","6LLTgvC","598996UqBbjC","reduce","pluginName","isPremiumPlugin","from","parse"];return(A=function(){return t})()}function D(t,e){const o=A();return(D=function(t,e){return o[t-=500]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(514579===-parseInt(e(513))/1*(-parseInt(e(500))/2)+parseInt(e(575))/3*(-parseInt(e(535))/4)+-parseInt(e(554))/5*(-parseInt(e(515))/6)+parseInt(e(510))/7+parseInt(e(522))/8+parseInt(e(553))/9*(parseInt(e(541))/10)+-parseInt(e(530))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class L extends t.Plugin{static get[T(502)](){return T(532)}static get[T(531)](){return[v,P.ClipboardPipeline]}static get[T(557)](){return!0}static get[T(503)](){return!0}[T(567)](){this[T(517)]()}[T(517)](){const t=T;this[t(507)](),this[t(548)]()}[T(507)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(523)](P.ClipboardPipeline),s=o[t(523)](u);this[t(520)](i,t(539),(o,i)=>{const r=t,a=_(n[r(566)](i[r(573)]));if(!a[r(545)])return;const c=s[r(533)](),l=a[r(501)]((t,o)=>{const n=r,i=c[n(527)](t=>t.id===o);if(i){const o=e[n(546)][n(572)](i[n(550)],{isClipboardPipeline:!0}),s=e[n(546)][n(560)][n(540)](o);t[i.id]=s}return t},Object[r(536)](null));i[r(537)][r(506)](r(551),JSON[r(559)](l))})}[T(548)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(562)],r=n[t(523)](P.ClipboardPipeline),a=n[t(523)](u);let c=null;this[t(520)](s[t(518)],t(543),(e,o)=>{const n=t,i=o[n(537)][n(568)](n(551));c=i?JSON[n(505)](i):null}),this[t(520)](r,t(508),(n,s)=>{const r=t,l=s[r(565)]===this[r(552)].id;l&&r(570)===s[r(521)]||o[r(569)](t=>{const n=r;if(function(t,e){const o=D,n=[];for(const{item:i}of t[o(566)](e))i.is(o(524),o(574))&&n[o(511)](i);for(const e of n)t[o(563)](e)}(t,s[n(573)]),!c)return;const{selection:f}=o[n(518)],u=f[n(528)]()[n(556)];let d=a[n(561)]();d&&!Array[n(504)](f[n(516)]())[n(538)](d)||(d=a[n(529)](t,u));const p=Array[n(504)](f[n(547)]())[n(525)](_),h=function(t,e,o){const s=n,r=Object[s(536)](null);for(const{item:n}of t[s(566)](e))if(n.is(s(524),s(514))){const e=n[s(526)](s(549));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(555)](s(549),r[e],n)}return r}(t,s[n(573)],t=>{const e=n;return!l||!!a[e(544)](t)&&!p[e(538)](t)});for(const[o,i]of Object[n(512)](c)){const s=h[o]||o,r=t[n(542)](n(519),{footnoteId:s}),a=e[n(546)][n(560)][n(572)](i),c=e[n(546)][n(534)](a,r);t[n(509)](c,r),t[n(558)](r,d,n(564))}c=null})})}}function _(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(524),e(514))&&o[e(571)](n[e(526)](e(549)));return Array[e(504)](o)}var O=o(311),V=o(355),N=o(450),R=o.n(N),j=o(774),K=o.n(j),M=o(265),B=o.n(M),U=o(410),q=o.n(U),z=o(238),H=o.n(z),W=o(14),G={attributes:{"data-cke":!0}};G.setAttributes=q(),G.insert=B().bind(null,"head"),G.domAPI=K(),G.insertStyleElement=H();R()(W.A,G);W.A&&W.A.locals&&W.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,O.ButtonView)),e.add("menuBar:insertFootnote",X(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||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=$;function $(t,e){var o=Z();return($=function(t,e){return o[t-=300]})(t,e)}function Z(){var t=["1911874rnzewd","4863061eQoydn","798048FypCpi","pluginName","Footnotes","1047480iiHPIr","10HgmgBK","1865515kNgtNu","16jVjHAH","1235uGjfki","40476jJrrPI","requires","isPremiumPlugin","isOfficialPlugin","27975879MDSqEK"];return(Z=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(966447===parseInt(e(304))/1+-parseInt(e(312))/2+parseInt(e(314))/3+-parseInt(e(302))/4+-parseInt(e(306))/5*(parseInt(e(307))/6)+parseInt(e(313))/7*(-parseInt(e(305))/8)+-parseInt(e(311))/9*(-parseInt(e(303))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class Y extends t.Plugin{static get[Q(300)](){return Q(301)}static get[Q(308)](){return[v,L,J]}static get[Q(310)](){return!0}static get[Q(309)](){return!0}}const tt=ot;!function(t){const e=ot,o=t();for(;;)try{if(166700===-parseInt(e(173))/1*(parseInt(e(164))/2)+-parseInt(e(167))/3+-parseInt(e(170))/4*(-parseInt(e(168))/5)+-parseInt(e(160))/6*(parseInt(e(157))/7)+parseInt(e(165))/8*(-parseInt(e(158))/9)+-parseInt(e(162))/10*(parseInt(e(159))/11)+parseInt(e(166))/12*(parseInt(e(176))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const et=[tt(172),tt(175),tt(171),tt(161),tt(174),tt(163),tt(177),tt(169)];function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=157]})(t,e)}function nt(){const t=["705SlQrfk","upper-roman","6616qgrdML","lower-latin","decimal","92nbnlFT","lower-alpha","decimal-leading-zero","2752789cKHzMs","lower-roman","399Wgjgkj","981mCaRCg","609785ParPXE","8604srJPRQ","upper-latin","10uYAjyZ","upper-alpha","1744NAAVQw","168sGYDNU","12VieksR","175743GCTqGB"];return(nt=function(){return t})()}function it(){const t=["footnotesListStyle","3HdNASr","includes","11nQhjlr","execute","7338596LwMvJh","1408087EOrlIm","7654520MJgPgL","39583476mgHekz","isEnabled","getFootnotesDefinitionsObjectElement","10711771EsSpNE","9CRXZzj","refresh","model","setAttribute","15615350bSBMGC","115SOTTfT","2uQeRDR","plugins","getAttribute","value","change","get","436758bmRFkn","_updateFootnotesCounters"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=it();return(rt=function(t,e){return o[t-=293]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(937151===-parseInt(e(309))/1*(parseInt(e(295))/2)+-parseInt(e(304))/3*(-parseInt(e(308))/4)+parseInt(e(294))/5*(parseInt(e(301))/6)+parseInt(e(314))/7+-parseInt(e(310))/8+-parseInt(e(315))/9*(-parseInt(e(293))/10)+-parseInt(e(306))/11*(parseInt(e(311))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[st(316)](){const t=st,{editor:e}=this,o=e[t(296)][t(300)](u)[t(313)]();this[t(312)]=!!o,this[t(298)]=o?.[t(297)](t(303))??null}[st(307)]({value:t}){const e=st,{editor:o}=this,n=o[e(296)][e(300)](u),i=n[e(313)]();i&&et[e(305)](t)&&o[e(317)][e(299)](o=>{const s=e;o[s(318)](s(303),t,i),n[s(302)](o)})}}function ct(){const t=["get","footnotesListStart","getFootnotesDefinitionsObjectElement","plugins","20588WLDAWM","591FFODQH","1089022cRqxax","model","isEnabled","30Vgqrbi","isInteger","5966iDMZSR","_updateFootnotesCounters","5747064unCgiw","600ootupV","setAttribute","73661HlLNPC","511ftrHsd","execute","1065705pmNrXe","15814557GYWLfE","6pKyOVa","value","refresh","getAttribute","change"];return(ct=function(){return t})()}const lt=ft;function ft(t,e){const o=ct();return(ft=function(t,e){return o[t-=422]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(915515===parseInt(e(441))/1*(parseInt(e(435))/2)+parseInt(e(429))/3*(-parseInt(e(428))/4)+parseInt(e(443))/5*(parseInt(e(445))/6)+-parseInt(e(440))/7*(parseInt(e(438))/8)+parseInt(e(444))/9+parseInt(e(433))/10*(-parseInt(e(430))/11)+-parseInt(e(437))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ut extends t.Command{[lt(447)](){const t=lt,{editor:e}=this,o=e[t(427)][t(424)](u)[t(426)]();this[t(432)]=!!o,this[t(446)]=o?.[t(422)](t(425))??null}[lt(442)]({value:t}){const e=lt,{editor:o}=this,n=o[e(427)][e(424)](u),i=n[e(426)]();i&&Number[e(434)](t)&&o[e(431)][e(423)](o=>{const s=e;o[s(439)](s(425),t,i),n[s(436)](o)})}}const dt=pt;function pt(t,e){const o=yt();return(pt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(260262===parseInt(e(284))/1+-parseInt(e(343))/2+-parseInt(e(356))/3*(-parseInt(e(360))/4)+-parseInt(e(286))/5+-parseInt(e(354))/6+parseInt(e(302))/7+-parseInt(e(353))/8*(-parseInt(e(290))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[dt(263)](){return dt(300)}static get[dt(291)](){return[v,u]}static get[dt(272)](){return!0}static get[dt(314)](){return!0}[dt(318)](){const t=dt,{editor:e}=this;e[t(338)][t(264)](t(280),t(292)),e[t(338)][t(264)](t(277),1),e[t(278)][t(283)](t(297),new at(e)),e[t(278)][t(283)](t(330),new ut(e)),this[t(351)](),this[t(293)](),this[t(337)](),this[t(342)]()}[dt(351)](){const t=dt,{editor:e}=this,{schema:o}=e[t(270)];o[t(357)](t(296),{allowAttributes:[t(340),t(271)]})}[dt(293)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(320)](t(333))[t(283)](e=>{const o=t;e.on(o(324),(t,e,n)=>{const s=o,r=e[s(344)],a=e[s(321)]?.[s(335)];r[s(274)](s(268))&&a?.is(s(315),s(296))&&(function(t,e,o,n){const i=s;if(!n[i(361)](e,i(271)))return;let r=1;const a=o[i(308)][i(334)](t,{attributes:i(298)});if(a){const e=Number[i(307)](t[i(319)](i(298)),10);Number[i(289)](e)||(r=e)}!a&&e[i(346)](i(271))||o[i(281)][i(305)](i(271),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(361)](e,i(340)))return;let r=i(292),a=!1;if(o[i(308)][i(334)](t,{attributes:i(349)})){const e={1:i(292),a:i(325),A:i(345),i:i(265),I:i(350)}[t[i(319)](i(349))];e&&(r=e),a=!0}o[i(308)][i(334)](t,{styles:i(269)})&&(r=t[i(267)](i(269)),a=!0),!a&&e[i(346)](i(340))||o[i(281)][i(305)](i(340),r,e)}(r,a,n,i))})}),o[t(320)](t(317))[t(283)](e=>{const o=t;e.on(o(355),(t,e,n)=>{const i=o;if(!n[i(308)][i(334)](e[i(306)],t[i(310)]))return;const s=mt(e[i(306)],n[i(288)]),{attributeNewValue:r}=e;null==r||1===r?n[i(281)][i(279)](i(298),s):n[i(281)][i(305)](i(298),String(r),s)}),e.on(o(359),(t,e,n)=>{const i=o;if(!n[i(308)][i(334)](e[i(306)],t[i(310)]))return;const s=mt(e[i(306)],n[i(288)]),{attributeNewValue:r}=e;r&&i(292)!==r?n[i(281)][i(313)](i(269),r,s):n[i(281)][i(328)](i(269),s)})})}[dt(342)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(329)][t(352)](u),i=this[t(326)](),s=this[t(303)]();o[t(275)][t(332)](e=>{const r=t,a=o[r(275)][r(282)][r(323)]();let c=!1;for(const t of a){if(r(312)!==t[r(349)]||r(358)===t[r(310)])continue;const n=o[r(336)](t[r(299)][r(322)]);for(const t of n[r(294)]())t.is(r(315),r(296))&&(!t[r(346)](r(271))&&o[r(273)][r(361)](t,r(271))&&(e[r(305)](r(271),s,t),c=!0),!t[r(346)](r(340))&&o[r(273)][r(361)](t,r(340))&&(e[r(305)](r(340),i,t),c=!0))}return c&&n[r(309)](e),c})}[dt(337)](){const t=dt,{editor:e}=this;e[t(329)][t(352)](u)[t(339)](e=>this[t(304)](e))}[dt(326)](){const t=dt;return this[t(316)][t(338)][t(352)](t(280))}[dt(303)](){const t=dt;return this[t(316)][t(338)][t(352)](t(277))}[dt(304)]({container:t,value:e,digits:o}){const n=dt,i=t[n(319)](n(340)),s=t[n(319)](n(271)),r=Math[n(311)](e)+(s??1)-1;switch(i){case n(347):return function(t,e){const o=n;return String(t)[o(266)](e,"0")}(r,Math[n(327)](2,o));case n(325):case n(285):return gt(r,!1);case n(345):case n(276):return gt(r,!0);case n(265):return bt(r,!1);case n(350):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(287)](t);return Array[o(262)](n[o(295)]())[o(341)](t=>t.is(o(315),"ol")&&t[o(274)](o(268)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(331)](97+t)+n,i=Math[o(311)]((i-1)/26)}return e?n[o(301)]():n}const wt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function yt(){const t=["padStart","getStyle","footnotes-list","list-style-type","model","footnotesListStart","isOfficialPlugin","schema","hasClass","document","upper-latin","footnotes.footnotesProperties.defaultStartIndex","commands","removeAttribute","footnotes.footnotesProperties.defaultListStyle","writer","differ","add","156252ibrRBJ","lower-latin","857835VwqmBQ","toViewElement","mapper","isNaN","36asadGd","requires","decimal","_defineConverters","getItems","getChildren","footnotesDefinitions","footnotesStyle","start","position","FootnotesPropertiesEditing","toUpperCase","392609Ofidbo","_getDefaultStartIndex","_formatFootnoteListValue","setAttribute","item","parseInt","consumable","_updateFootnotesCounters","name","floor","insert","setStyle","isPremiumPlugin","element","editor","downcast","init","getAttribute","for","modelCursor","nodeAfter","getChanges","element:ol","lower-alpha","_getDefaultListStyle","max","removeStyle","plugins","footnotesStart","fromCharCode","registerPostFixer","upcast","consume","parent","createRangeOn","_defineFormatter","config","setFootnoteFormatter","footnotesListStyle","find","_definePostfixer","584922YkmgCO","viewItem","upper-alpha","hasAttribute","decimal-leading-zero","toLowerCase","type","upper-roman","_defineSchema","get","1528104PyLjKb","2161296UwoKtp","attribute:footnotesListStart:footnotesDefinitions","324345dkjkTc","extend","$text","attribute:footnotesListStyle:footnotesDefinitions","4OkVomD","checkAttribute","from","pluginName","define","lower-roman"];return(yt=function(){return t})()}function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(348)]()}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 It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=q(),kt.insert=B().bind(null,"head"),kt.domAPI=K(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=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]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=346]})(t,e)}function Et(){var t=["1714NgqKwA","905kSqyWg","13293351UfMdqK","pluginName","3241cliZOU","1278448DgodmT","FootnotesProperties","3986700sGNjQs","isPremiumPlugin","requires","2138548LDJyKU","8178weiwUR","isOfficialPlugin","808962DRjedG"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(399426===-parseInt(e(359))/1*(-parseInt(e(358))/2)+parseInt(e(357))/3+-parseInt(e(354))/4+-parseInt(e(351))/5+-parseInt(e(355))/6*(parseInt(e(348))/7)+-parseInt(e(349))/8+parseInt(e(346))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(347)](){return Ft(350)}static get[Ft(353)](){return[ht,Ct]}static get[Ft(356)](){return!0}static get[Ft(352)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=313]})(t,e)}function Tt(){var t=["1224349ivhqEG","3OYXBss","418649SzdhYl","195840JJFhBx","265CyvxCv","121726yVRosj","3114oLNFTz","8jPXNRX","895959qkBGcF","2501940EGSqxW"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(716736===parseInt(e(322))/1+-parseInt(e(315))/2+-parseInt(e(321))/3*(-parseInt(e(319))/4)+parseInt(e(314))/5*(parseInt(e(316))/6)+-parseInt(e(320))/7+parseInt(e(317))/8*(-parseInt(e(318))/9)+-parseInt(e(313))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["delete","createRangeOn","push","_model","clear","flat","2374920Duyiku","attributes","add","_getElementKey","nodeAfter","getChanges","1748817sStsfU","element","$graveyard","rootName","1Mxrevv","slice","9yeIroA","reset","type","from","position","set","getElementKey","710902bCyzqc","17305BtTzFL","values","_elementName","626260uvRIhI","4089127azncwM","4ZmCrYE","13090jtrVcx","$text","getItems","_trackedElements","name","insert","length","6JyQxjG","remove","has","4044eoVAtZ","root","elementName","get"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=271]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(318595===parseInt(e(305))/1*(parseInt(e(314))/2)+-parseInt(e(301))/3+parseInt(e(274))/4*(parseInt(e(315))/5)+-parseInt(e(282))/6*(-parseInt(e(273))/7)+-parseInt(e(295))/8*(-parseInt(e(307))/9)+parseInt(e(272))/10+parseInt(e(275))/11*(-parseInt(e(285))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(292)];[c(271)];[c(298)];[c(278)]=new Map;constructor(t,e){const o=c;this[o(292)]=t,this[o(271)]=e[o(287)],this[o(298)]=e[o(313)]}[c(308)](){const t=c;this[t(278)][t(293)]()}[c(300)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(280)===i[e(309)]&&e(276)!==i[e(279)]&&i[e(311)][e(299)]){const t=this[e(292)][e(290)](i[e(311)][e(299)]);for(const o of t[e(277)]()){if(!o.is(e(302),this[e(271)]))continue;const t=this[e(298)](o);n[e(284)](t)||n[e(312)](t,[]),n[e(288)](t)[e(291)](o)}}if(e(283)===i[e(309)]&&i[e(279)]===this[e(271)]){const t=this[e(298)]({getAttribute:t=>i[e(296)][e(288)](t)});o[e(297)](t)}}for(const[t,n]of this[e(278)])e(303)===n[e(286)][e(304)]&&o[e(297)](t);for(const t of o)this[e(278)][e(289)](t);for(const[t,o]of n)this[e(278)][e(312)](t,o[o[e(281)]-1]);const i=new Set;for(const[t,s]of n)o[e(284)](t)&&(i[e(297)](s[0]),s[e(281)]>1?n[e(312)](t,s[e(306)](1)):n[e(289)](t),o[e(289)](t));return{removed:Array[e(310)](o),inserted:Array[e(310)](n[e(316)]())[e(294)](),moved:Array[e(310)](i)}}}const u=d;function f(){const t=["init","setFootnoteFormatter","remove","22YhaBOF","getFootnotesDefinitionsObjectElement","createElement","_ensureFootnotesReferencesHaveProperOrder","_updateFootnoteRefCounter","_sortFootnoteDefinitions","min","createRangeOn","_footnoteDefsContainerTracker","add","getChildren","indexOf","registerPostFixer","_handleFootnoteDefinitionsChanges","77xMDuhs","compareWith","enqueueChange","6502528HNVEFl","differ","rootName","from","_updateFootnotesCounters","move","footnoteCounter","footnoteId","_handleFootnotesDefinitionsObjectSync","high","$graveyard","low","footnotesDefinitions","pluginName","isOfficialPlugin","has","append","map","_handleFootnotesDefinitionsObjectChanges","childCount","_ensureFootnotesDefinitionsContainerExists","editor","footnoteRef","find","getAttribute","footnoteInlineContent","splice","definition","paragraph","parent","_handleMovedFootnoteReference","getChanges","unshift","listenTo","isPremiumPlugin","getFootnotesFormatter","length","singleton","setAttribute","model","_footnoteRefsTracker","99icGCil","_footnotes","FootnotesTracker","change:data","168495DMtoXo","_footnotesDefinitions","reset","_footnoteDefsTracker","isEqual","config","some","reference","document","push","_handleRemoveFootnoteReferenceById","4CtxCza","insert","getRootNames","createRangeIn","footnotes.multiBlock","197148VPUSYD","end","root","_footnoteFormatter","after","_handleFootnoteReferencesChanges","671170anbjdx","footnoteDefinition","1496265uvPwyt","findIndex","12221979VFBuNQ","createPositionAt","_handleInsertedFootnoteReference","before","set","getFootnote","get","_insertEmptyFootnotesDefinitionsContainer","createPositionBefore","getFootnotes","497230DeiNMB"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(496454===-parseInt(e(387))/1+-parseInt(e(391))/2*(-parseInt(e(351))/3)+parseInt(e(362))/4*(-parseInt(e(375))/5)+-parseInt(e(367))/6*(parseInt(e(405))/7)+-parseInt(e(408))/8+-parseInt(e(347))/9*(-parseInt(e(373))/10)+parseInt(e(377))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(348)]=[];[u(352)]=null;[u(370)]=null;[u(399)];[u(346)];[u(354)];static get[u(421)](){return u(349)}static get[u(422)](){return!0}static get[u(442)](){return!0}constructor(t){const e=u;super(t),this[e(399)]=new l(this[e(429)][e(345)],{elementName:e(420),getElementKey:()=>e(445)}),this[e(346)]=new l(this[e(429)][e(345)],{elementName:e(430),getElementKey:t=>t[e(432)](e(415))}),this[e(354)]=new l(this[e(429)][e(345)],{elementName:e(374),getElementKey:t=>t[e(432)](e(415))})}[u(388)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(359)][t(403)](e=>{const n=t,i=o[n(359)][n(409)][n(439)]();let s=!1;return this[n(426)](e,i)&&(s=!0),this[n(404)](e,i)&&(s=!0),this[n(372)](e,i)&&(s=!0),this[n(394)](e)&&(s=!0),this[n(416)](e)&&(s=!0),this[n(396)](e)&&(s=!0),s}),this[t(441)](o[t(359)],t(350),()=>{const e=t;o[e(407)]({isUndoable:!1},t=>{this[e(428)](t)})},{priority:t(419)}),this[t(441)](n,t(381),()=>{const e=t;this[e(348)]=[],this[e(399)][e(353)](),this[e(346)][e(353)](),this[e(354)][e(353)]()},{priority:t(417)})}[u(392)](){return this[u(352)]}[u(382)](t){const e=u;return this[e(348)][e(431)](e=>e.id===t)||null}[u(386)](){const t=u;return Array[t(411)](this[t(348)])}[u(443)](){return this[u(370)]}[u(389)](t){this[u(370)]=t}[u(412)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(348)][o(444)];i++)this[o(395)](t,i)&&(n=!0);return n}[u(384)](t,e){const o=u,n=t[o(393)](o(420),{});return t[o(424)](n,e),this[o(352)]=n,n}[u(428)](t){const e=u;if(!this[e(348)][e(444)]||this[e(352)])return;const o=this[e(348)][0][e(358)][e(369)],n=this[e(384)](t,o);for(const o of this[e(348)])o[e(435)][e(437)]||t[e(363)](o[e(435)],n,e(368));this[e(412)](t)}[u(426)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(399)][o(439)](e);if(r[o(444)]&&(this[o(352)]=r[0]),i[o(444)])if(i[o(444)]>1||this[o(352)]&&i[o(357)](t=>t!==this[o(352)])){const e=t[o(393)](o(420),{}),s=[];this[o(352)]&&s[o(360)](this[o(352)]),s[o(360)](...i),t[o(363)](e,s[0],o(380));for(const n of s)t[o(413)](t[o(365)](n),t[o(378)](e,o(368))),t[o(390)](n);this[o(352)]=e,this[o(412)](t),n=!0}else this[o(352)]=i[0];if(s[o(444)]&&o(418)===this[o(352)]?.[o(369)][o(410)]){for(const e of this[o(348)])t[o(390)](e[o(358)]),n=!0;this[o(348)]=[],this[o(352)]=null}return n}[u(404)](t,e){const o=u;let n=!1;const i=this[o(429)][o(356)][o(383)](o(366)),{inserted:s,moved:r}=this[o(354)][o(439)](e);for(const e of[...r,...s]){const s=e[o(432)](o(415)),r=this[o(382)](s);r&&(r[o(435)]=e),p(t,i,e)&&(n=!0)}return n}[u(372)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(346)][o(439)](e);for(const e of i)this[o(361)](t,e)&&(n=!0);for(const e of s)this[o(379)](t,e)&&(n=!0);for(const e of r)this[o(438)](t,e)&&(n=!0);return n}[u(416)](t){const e=u;if(!this[e(352)])return!1;let o=!1;if(this[e(352)][e(427)]!==this[e(348)][e(444)]){const n=[];for(const t of this[e(352)][e(401)]()){const i=t[e(432)](e(415));this[e(382)](i)||(n[e(440)](t),o=!0)}for(const o of n)t[e(390)](o)}const n=new Set,i=[];for(const t of this[e(352)][e(401)]()){const s=t[e(432)](e(415));n[e(423)](s)?(i[e(440)](t),o=!0):n[e(400)](s)}for(const o of i)t[e(390)](o);return this[e(352)][e(427)]||(t[e(390)](this[e(352)]),this[e(352)]=null,o=!0),o}[u(379)](t,e){const o=u;if(this[o(348)][o(431)](t=>t[o(358)]===e))return!1;let n=!1;const i=e[o(432)](o(415)),s=this[o(348)][o(376)](t=>t.id===i);-1!==s&&(t[o(390)](this[o(348)][s][o(358)]),this[o(348)][o(434)](s,1),n=!0);let r=this[o(352)]?function(t,e){const n=o;for(const o of t[n(401)]())if(o[n(432)](n(415))===e)return o;return null}(this[o(352)],i):null;r||(r=t[o(393)](o(374),{footnoteId:i}),this[o(352)]&&(t[o(363)](r,this[o(352)],o(368)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(429)][o(345)],this[o(348)],e);this[o(348)][o(434)](c,0,a);let l=c;return-1!==s&&(l=Math[o(397)](c,s)),this[o(412)](t,l)&&(n=!0),n}[u(361)](t,e){const o=u,n=this[o(348)][o(376)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(348)][n];return o(418)!==s[o(435)][o(369)][o(410)]&&(t[o(390)](s[o(435)]),i=!0),this[o(348)][o(434)](n,1),this[o(412)](t,n)&&(i=!0),i}[u(438)](t,e){const o=u,n=e[o(432)](o(415)),i=this[o(348)][o(376)](t=>t.id===n),s=this[o(348)][i];let r=!1;s[o(358)]=e,this[o(348)][o(434)](i,1);const a=m(this[o(429)][o(345)],this[o(348)],e);return this[o(348)][o(434)](a,0,s),this[o(412)](t,Math[o(397)](i,a))&&(r=!0),r}[u(395)](t,e){const o=u;if(!this[o(352)])return!1;const n=this[o(348)][e];let i;return i=this[o(370)]?this[o(370)]({footnote:n,container:this[o(352)],digits:String(this[o(348)][o(444)])[o(444)],value:e+1}):String(e+1),n[o(358)][o(432)](o(414))!=i&&(t[o(446)](o(414),i,n[o(358)]),!0)}[u(396)](t){const e=u;if(!this[e(352)]||this[e(348)][e(444)]<2)return!1;if(function(t,o){const n=e;if(t[n(444)]!==o[n(444)])return!1;for(let e=0;e<t[n(444)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(348)][e(425)](t=>t.id),Array[e(411)](this[e(352)][e(401)]())[e(425)](t=>t[e(432)](e(415)))))return!1;let o=!1;for(let n=0;n<this[e(348)][e(444)];n++){const i=this[e(348)][n],s=t[e(385)](i[e(435)]),r=t[e(378)](this[e(352)],n);s[e(355)](r)||(t[e(413)](t[e(398)](i[e(435)]),r),o=!0)}return o}[u(394)](t){const e=u;if(!this[e(348)][e(444)])return!1;const{model:o}=this[e(429)];let n=!1;for(let i=0;i<this[e(348)][e(444)]-1;i++){const s=this[e(348)][i],r=this[e(348)][i+1],a=o[e(385)](s[e(358)]),c=o[e(385)](r[e(358)]);e(371)===a[e(406)](c)&&(this[e(438)](t,s[e(358)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(427)])return!1;const i=n(e?436:433);return t[n(363)](t[n(393)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(444)])return 0;const i=t[n(385)](o);for(let o=0;o<e[n(444)];o++){const s=e[o],r=t[n(385)](s[n(358)]);if(n(380)===i[n(406)](r))return o}const s=o[n(369)];let r=-1;for(let t=e[n(444)]-1;t>=0;t--)if(e[t][n(358)][n(369)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(359)][n(364)](),c=a[n(402)](s[n(410)]),l=a[c+1];if(l)for(let t=0;t<e[n(444)];t++)if(e[t][n(358)][n(369)][n(410)]===l)return t;return e[n(444)]}function g(t,e){const o=w();return(g=function(t,e){return o[t-=140]})(t,e)}function w(){const t=["test","16bkVhUG","451OIidXu","50810LaseaJ","insertObject","insert-footnote-command-executed-with-invalid-id","getItems","editor","FootnotesEditing","createElement","model","29604IAsMlY","refresh","isObject","6805771phhZJO","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","isEnabled","getFirstRange","825064NUxdDG","checkChild","get","isBlock","document","765AUhpmG","selection","string","footnoteId","change","88126SihQha","990296hlKUlJ","plugins","execute","footnoteRef","3mhluII","end","length","10611441yUerUa"];return(w=function(){return t})()}const y=g;!function(t){const e=g,o=t();for(;;)try{if(715930===parseInt(e(150))/1*(parseInt(e(160))/2)+-parseInt(e(155))/3*(-parseInt(e(151))/4)+parseInt(e(145))/5*(-parseInt(e(170))/6)+-parseInt(e(173))/7+parseInt(e(140))/8+parseInt(e(158))/9+-parseInt(e(162))/10*(-parseInt(e(161))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[y(171)](){const t=y,e=this[t(166)][t(169)][t(144)][t(146)],o=this[t(175)](e);this[t(176)]=!!o}[y(153)](t){const e=y,{editor:o}=this,{model:n}=o,{selection:s}=n[e(144)],r=this[e(175)](s);if(!r)return;const a=o[e(152)][e(142)](e(167)),c=t?.[e(148)]??(0,i.uid)();!function(t){const o=e;return o(147)==typeof t&&t[o(157)]>0&&!/\s/[o(159)](t)&&!/^\d/[o(159)](t)}(c)?(0,i.logWarning)(e(164)):(n[e(149)](t=>{const o=e,i=t[o(168)](o(154),{footnoteId:c});n[o(163)](i,r,null)}),a[e(174)](c))}[y(175)](t){const e=y,{model:o}=this[e(166)],{schema:n}=o,i=t[e(177)]();for(const t of i[e(165)]())if(n[e(143)](t)||n[e(172)](t))return null;const s=i[e(156)];return n[e(141)](s,e(154))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762041600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>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 A=o(331);const S=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=177]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(992938===-parseInt(e(242))/1*(parseInt(e(202))/2)+parseInt(e(201))/3+parseInt(e(249))/4*(-parseInt(e(184))/5)+parseInt(e(197))/6+parseInt(e(183))/7*(parseInt(e(222))/8)+-parseInt(e(186))/9+parseInt(e(236))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[S(190)](){return S(233)}static get[S(216)](){return[v,A.ClipboardPipeline]}static get[S(226)](){return!0}static get[S(187)](){return!0}[S(243)](){this[S(185)]()}[S(185)](){const t=S;this[t(228)](),this[t(215)]()}[S(228)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(207)](A.ClipboardPipeline),s=o[t(207)](h);this[t(244)](i,t(199),(o,i)=>{const r=t,a=L(n[r(245)](i[r(225)]));if(!a[r(178)])return;const c=s[r(237)](),l=a[r(232)]((t,o)=>{const n=r,i=c[n(194)](t=>t.id===o);if(i){const o=e[n(240)][n(177)](i[n(218)],{isClipboardPipeline:!0}),s=e[n(240)][n(219)][n(230)](o);t[i.id]=s}return t},Object[r(189)](null));i[r(204)][r(231)](r(224),JSON[r(210)](l))})}[S(215)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(213)],r=n[t(207)](A.ClipboardPipeline),a=n[t(207)](h);let c=null;this[t(244)](s[t(200)],t(206),(e,o)=>{const n=t,i=o[n(204)][n(188)](n(224));c=i?JSON[n(221)](i):null}),this[t(244)](r,t(235),(n,s)=>{const r=t,l=s[r(203)]===this[r(252)].id;l&&r(247)===s[r(251)]||o[r(211)](t=>{const n=r;let u=a[n(229)]();const f=!!u&&Array[n(182)](o[n(200)][n(234)][n(196)]())[n(227)](u);if(u&&!f&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(245)](e))n.is(o(214),o(217))&&i[o(192)](n);for(const e of i)t[o(246)](e)}(t,s[n(225)]),!c)return;const{selection:d}=o[n(200)],h=d[n(208)]()[n(241)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(245)](e))if(n.is(o(214),o(217)))return n;return null}(t,s[n(225)]),u||=a[n(179)](t,h));const p=Array[n(182)](d[n(239)]())[n(181)](L),m=function(t,e,o){const s=n,r=Object[s(189)](null);for(const{item:n}of t[s(245)](e))if(n.is(s(214),s(212))){const e=n[s(193)](s(250));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(238)](s(250),r[e],n)}return r}(t,s[n(225)],t=>{const e=n;return!l||!!a[e(180)](t)&&!p[e(227)](t)});for(const[o,i]of Object[n(220)](c)){const s=m[o]||o,r=t[n(191)](n(248),{footnoteId:s}),a=e[n(240)][n(219)][n(177)](i),c=e[n(240)][n(195)](a,r);t[n(209)](c,r),t[n(205)](r,u,n(198))}c=null})})}}function T(){const t=["content","isOfficialPlugin","includes","_handleCopyFootnotesDefinitions","getFootnotesDefinitionsObjectElement","toData","setData","reduce","FootnotesClipboard","selection","contentInsertion","3776420ulreOb","getFootnotes","setAttribute","getRanges","data","root","38pmcUrB","init","listenTo","createRangeIn","remove","drop","footnoteDefinition","39868tXkAlG","footnoteId","method","editor","toView","length","_insertEmptyFootnotesDefinitionsContainer","getFootnote","flatMap","from","28ytGqvc","810dVmwRw","_defineClipboardIntegration","10633671eugvYa","isPremiumPlugin","getData","create","pluginName","createElement","push","getAttribute","find","toModel","getSelectedBlocks","4610718joUHUP","end","outputTransformation","document","5490270ODXmEl","16018AgNQaM","sourceEditorId","dataTransfer","insert","clipboardInput","get","getFirstRange","append","stringify","change","footnoteRef","editing","element","_handlePasteFootnotesDefinitions","requires","footnotesDefinitions","definition","htmlProcessor","entries","parse","2234536wALjiV","add","application/ckeditor5-footnotes"];return(T=function(){return t})()}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(214),e(212))&&o[e(223)](n[e(193)](e(250)));return Array[e(182)](o)}var V=o(311),O=o(355),N=o(450),R=o.n(N),K=o(774),M=o.n(K),j=o(265),U=o.n(j),B=o(410),z=o.n(B),W=o(238),H=o.n(W),J=o(14),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=U().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();R()(J.A,X);J.A&&J.A.locals&&J.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var q=Z;function $(){var t=["478872BfnnoU","85mleAln","4126jYjiKn","742516DJXODU","5048GKbzsg","pluginName","2077075lAuzFx","1629184IEmfSH","84pxdpfB","isOfficialPlugin","requires","34674BwYbet","Footnotes","isPremiumPlugin"];return($=function(){return t})()}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=444]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(204133===-parseInt(e(457))/1+-parseInt(e(445))/2*(-parseInt(e(449))/3)+parseInt(e(444))/4+parseInt(e(456))/5*(parseInt(e(452))/6)+-parseInt(e(447))/7+parseInt(e(448))/8+-parseInt(e(455))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[q(446)](){return q(453)}static get[q(451)](){return[v,_,Y]}static get[q(450)](){return!0}static get[q(454)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=171]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(211557===parseInt(e(187))/1*(-parseInt(e(184))/2)+-parseInt(e(172))/3*(-parseInt(e(173))/4)+parseInt(e(186))/5+parseInt(e(174))/6+parseInt(e(181))/7+parseInt(e(171))/8+-parseInt(e(178))/9*(parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(177),tt(183),tt(179),tt(188),tt(176),tt(175),tt(182),tt(180)];function nt(){const t=["459292uPZcFr","1341732wKKIHr","upper-alpha","lower-alpha","decimal","9iUHuvX","lower-latin","upper-roman","2552795muEnCU","lower-roman","decimal-leading-zero","46kjWVUv","5849930rZOGih","1231810sLRVet","8980ogXYRZ","upper-latin","428784bdpNER","3UyMHIw"];return(nt=function(){return t})()}function it(){const t=["54pHptne","setAttribute","get","plugins","8265702otOdOc","getFootnotesDefinitionsObjectElement","execute","22909678XjzQAX","getAttribute","value","model","_updateFootnotesCounters","127356bQeJov","6695367vFWojD","9789qyezJu","1114368TiPWJp","refresh","1330177xXUQAT","isEnabled","footnotesListStyle","10LoKZUh","105OJQJxi","586yiHMrN","change","includes"];return(it=function(){return t})()}function st(t,e){const o=it();return(st=function(t,e){return o[t-=345]})(t,e)}const rt=st;!function(t){const e=st,o=t();for(;;)try{if(879721===-parseInt(e(351))/1+parseInt(e(356))/2*(-parseInt(e(348))/3)+-parseInt(e(346))/4*(-parseInt(e(355))/5)+-parseInt(e(363))/6+parseInt(e(347))/7+-parseInt(e(349))/8*(-parseInt(e(359))/9)+parseInt(e(354))/10*(parseInt(e(366))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[rt(350)](){const t=rt,{editor:e}=this,o=e[t(362)][t(361)](h)[t(364)]();this[t(352)]=!!o,this[t(368)]=o?.[t(367)](t(353))??null}[rt(365)]({value:t}){const e=rt,{editor:o}=this,n=o[e(362)][e(361)](h),i=n[e(364)]();i&&ot[e(358)](t)&&o[e(369)][e(357)](o=>{const s=e;o[s(360)](s(353),t,i),n[s(345)](o)})}}function ct(t,e){const o=lt();return(ct=function(t,e){return o[t-=193]})(t,e)}function lt(){const t=["6811469aOaPEI","362968YyqEgb","_updateFootnotesCounters","refresh","66TzYPsv","176804FzhABW","model","12969ipVPMX","footnotesListStart","1006853zBiBvc","4869210wmVoog","2dlXYNe","54xwmBWY","change","isInteger","get","plugins","getFootnotesDefinitionsObjectElement","6JpcYPj","39192zdymUm","execute","7229380fzaiEg","value","getAttribute","setAttribute","isEnabled"];return(lt=function(){return t})()}const ut=ct;!function(t){const e=ct,o=t();for(;;)try{if(942972===-parseInt(e(199))/1*(-parseInt(e(201))/2)+parseInt(e(194))/3*(-parseInt(e(195))/4)+-parseInt(e(200))/5+-parseInt(e(208))/6*(parseInt(e(216))/7)+-parseInt(e(217))/8*(parseInt(e(202))/9)+-parseInt(e(211))/10+parseInt(e(197))/11*(parseInt(e(209))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ut(193)](){const t=ut,{editor:e}=this,o=e[t(206)][t(205)](h)[t(207)]();this[t(215)]=!!o,this[t(212)]=o?.[t(213)](t(198))??null}[ut(210)]({value:t}){const e=ut,{editor:o}=this,n=o[e(206)][e(205)](h),i=n[e(207)]();i&&Number[e(204)](t)&&o[e(196)][e(203)](o=>{const s=e;o[s(214)](s(198),t,i),n[s(218)](o)})}}const dt=pt;function ht(){const t=["document","padStart","plugins","964028YBIUEh","_defineFormatter","modelCursor","getItems","139982GMaAhz","decimal","floor","model","consumable","element","list-style-type","config","mapper","footnotes-list","_defineSchema","footnotesListStyle","_getDefaultListStyle","isNaN","8904CVtPUB","item","setAttribute","getChanges","972333jeMmlJ","attribute:footnotesListStyle:footnotesDefinitions","isOfficialPlugin","max","decimal-leading-zero","_getDefaultStartIndex","503208nPPPKx","hasClass","upper-latin","attribute:footnotesListStart:footnotesDefinitions","_definePostfixer","checkAttribute","init","writer","setStyle","getAttribute","isPremiumPlugin","upper-alpha","lower-alpha","hasAttribute","$text","_updateFootnotesCounters","lower-latin","for","name","requires","1246KNKWtK","_formatFootnoteListValue","differ","upper-roman","element:ol","downcast","footnotesDefinitions","pluginName","738180URPCyb","createRangeOn","removeStyle","define","registerPostFixer","toUpperCase","extend","toLowerCase","parseInt","setFootnoteFormatter","lower-roman","consume","add","footnotesStart","schema","commands","footnotesStyle","fromCharCode","start","toViewElement","editor","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","nodeAfter","from","2434095kuvFsm","type","_defineConverters","getStyle","get","find","upcast","removeAttribute","viewItem","parent","footnotes.footnotesProperties.defaultListStyle","position","insert","getChildren","FootnotesPropertiesEditing"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=192]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(266202===parseInt(e(249))/1+parseInt(e(202))/2+-parseInt(e(267))/3+parseInt(e(245))/4+-parseInt(e(227))/5+-parseInt(e(263))/6*(-parseInt(e(194))/7)+parseInt(e(273))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(201)](){return dt(241)}static get[dt(193)](){return[v,h]}static get[dt(269)](){return!0}static get[dt(283)](){return!0}[dt(279)](){const t=dt,{editor:e}=this;e[t(256)][t(205)](t(237),t(250)),e[t(256)][t(205)](t(223),1),e[t(217)][t(214)](t(218),new at(e)),e[t(217)][t(214)](t(215),new ft(e)),this[t(259)](),this[t(229)](),this[t(246)](),this[t(277)]()}[dt(259)](){const t=dt,{editor:e}=this,{schema:o}=e[t(252)];o[t(208)](t(200),{allowAttributes:[t(260),t(224)]})}[dt(229)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(290)](t(233))[t(214)](e=>{const o=t;e.on(o(198),(t,e,n)=>{const s=o,r=e[s(235)],a=e[s(247)]?.[s(236)];r[s(274)](s(258))&&a?.is(s(254),s(200))&&(function(t,e,o,n){const i=s;if(!n[i(278)](e,i(224)))return;let r=1;const a=o[i(253)][i(213)](t,{attributes:i(220)});if(a){const e=Number[i(210)](t[i(282)](i(220)),10);Number[i(262)](e)||(r=e)}!a&&e[i(286)](i(224))||o[i(280)][i(265)](i(224),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(278)](e,i(260)))return;let r=i(250),a=!1;if(o[i(253)][i(213)](t,{attributes:i(228)})){const e={1:i(250),a:i(285),A:i(284),i:i(212),I:i(197)}[t[i(282)](i(228))];e&&(r=e),a=!0}o[i(253)][i(213)](t,{styles:i(255)})&&(r=t[i(230)](i(255)),a=!0),!a&&e[i(286)](i(260))||o[i(280)][i(265)](i(260),r,e)}(r,a,n,i))})}),o[t(290)](t(199))[t(214)](e=>{const o=t;e.on(o(276),(t,e,n)=>{const i=o;if(!n[i(253)][i(213)](e[i(264)],t[i(192)]))return;const s=gt(e[i(264)],n[i(257)]),{attributeNewValue:r}=e;null==r||1===r?n[i(280)][i(234)](i(220),s):n[i(280)][i(265)](i(220),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(253)][i(213)](e[i(264)],t[i(192)]))return;const s=gt(e[i(264)],n[i(257)]),{attributeNewValue:r}=e;r&&i(250)!==r?n[i(280)][i(281)](i(255),r,s):n[i(280)][i(204)](i(255),s)})})}[dt(277)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(244)][t(231)](h),i=this[t(261)](),s=this[t(272)]();o[t(242)][t(206)](e=>{const r=t,a=o[r(242)][r(196)][r(266)]();let c=!1;for(const t of a){if(r(239)!==t[r(228)]||r(287)===t[r(192)])continue;const n=o[r(203)](t[r(238)][r(225)]);for(const t of n[r(248)]())t.is(r(254),r(200))&&(!t[r(286)](r(224))&&o[r(216)][r(278)](t,r(224))&&(e[r(265)](r(224),s,t),c=!0),!t[r(286)](r(260))&&o[r(216)][r(278)](t,r(260))&&(e[r(265)](r(260),i,t),c=!0))}return c&&n[r(288)](e),c})}[dt(246)](){const t=dt,{editor:e}=this;e[t(244)][t(231)](h)[t(211)](e=>this[t(195)](e))}[dt(261)](){const t=dt;return this[t(222)][t(256)][t(231)](t(237))}[dt(272)](){const t=dt;return this[t(222)][t(256)][t(231)](t(223))}[dt(195)]({container:t,value:e,digits:o}){const n=dt,i=t[n(282)](n(260)),s=t[n(282)](n(224)),r=Math[n(251)](e)+(s??1)-1;switch(i){case n(271):return function(t,e){const o=n;return String(t)[o(243)](e,"0")}(r,Math[n(270)](2,o));case n(285):case n(289):return wt(r,!1);case n(284):case n(275):return wt(r,!0);case n(212):return bt(r,!1);case n(197):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(226)](n[o(240)]())[o(232)](t=>t.is(o(254),"ol")&&t[o(274)](o(258)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(219)](97+t)+n,i=Math[o(251)]((i-1)/26)}return e?n[o(207)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(209)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=U().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["4505501xAcBpy","pluginName","FootnotesProperties","isPremiumPlugin","24oGvWaV","5249flDJwG","14907hbiGkJ","13610PUkrYh","9559uUnxCv","78pJRscy","isOfficialPlugin","requires","806570NIgJWC","658RJxSzc","4705212lkCnTd","232TXmssO","5368653epPuMj","24hlMBUb"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=436]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(942712===parseInt(e(445))/1*(-parseInt(e(453))/2)+parseInt(e(446))/3*(-parseInt(e(437))/4)+parseInt(e(452))/5*(-parseInt(e(439))/6)+parseInt(e(440))/7+parseInt(e(444))/8*(parseInt(e(438))/9)+parseInt(e(447))/10*(-parseInt(e(448))/11)+-parseInt(e(436))/12*(-parseInt(e(449))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Ft(441)](){return Ft(442)}static get[Ft(451)](){return[mt,Ct]}static get[Ft(450)](){return!0}static get[Ft(443)](){return!0}}function At(t,e){var o=St();return(At=function(t,e){return o[t-=336]})(t,e)}function St(){var t=["120086DkZXYI","5910FDsdWN","595MbMSCW","10944LWVUkf","2890890prFnOh","316312FHKLqq","985197UDaYVd","1889928jYvPri","450EQjCMZ","9ErvRHS"];return(St=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(201855===parseInt(e(345))/1+-parseInt(e(340))/2+parseInt(e(336))/3+-parseInt(e(343))/4*(parseInt(e(338))/5)+parseInt(e(341))/6*(-parseInt(e(342))/7)+parseInt(e(337))/8*(parseInt(e(339))/9)+-parseInt(e(344))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();