@ckeditor/ckeditor5-footnotes 47.7.0-alpha.3 → 47.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>G,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=174]})(t,e)}const a=r;function c(){const t=["reset","root","1001979lTKmPW","_model","delete","_trackedElements","push","length","$text","265368Icbdwz","clear","4224SRXCTH","8VqUBzI","type","$graveyard","values","remove","getElementKey","_getElementKey","attributes","4MVIXbL","40DQAbAR","5050GzFJwq","217LPlWaS","6853hZjogN","_elementName","element","name","has","from","createRangeOn","slice","nodeAfter","3104VTQyeC","add","insert","getChanges","177720pagEak","get","rootName","elementName","set","position","3818844UUSSVH","getItems","flat"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(208415===parseInt(e(193))/1*(parseInt(e(214))/2)+parseInt(e(218))/3*(-parseInt(e(201))/4)+-parseInt(e(202))/5*(-parseInt(e(190))/6)+-parseInt(e(204))/7*(-parseInt(e(192))/8)+-parseInt(e(183))/9+parseInt(e(203))/10*(parseInt(e(205))/11)+-parseInt(e(178))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(184)];[a(206)];[a(199)];[a(186)]=new Map;constructor(t,e){const o=a;this[o(184)]=t,this[o(206)]=e[o(175)],this[o(199)]=e[o(198)]}[a(181)](){const t=a;this[t(186)][t(191)]()}[a(217)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(216)===i[e(194)]&&e(189)!==i[e(208)]&&i[e(177)][e(213)]){const t=this[e(184)][e(211)](i[e(177)][e(213)]);for(const o of t[e(179)]()){if(!o.is(e(207),this[e(206)]))continue;const t=this[e(199)](o);n[e(209)](t)||n[e(176)](t,[]),n[e(219)](t)[e(187)](o)}}if(e(197)===i[e(194)]&&i[e(208)]===this[e(206)]){const t=this[e(199)]({getAttribute:t=>i[e(200)][e(219)](t)});o[e(215)](t)}}for(const[t,n]of this[e(186)])e(195)===n[e(182)][e(174)]&&o[e(215)](t);for(const t of o)this[e(186)][e(185)](t);for(const[t,o]of n)this[e(186)][e(176)](t,o[o[e(188)]-1]);const i=new Set;for(const[t,s]of n)o[e(209)](t)&&(i[e(215)](s[0]),s[e(188)]>1?n[e(176)](t,s[e(212)](1)):n[e(185)](t),o[e(185)](t));return{removed:Array[e(210)](o),inserted:Array[e(210)](n[e(196)]())[e(180)](),moved:Array[e(210)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=237]})(t,e)}function d(){const t=["$graveyard","12YjbISV","_handleInsertedFootnoteReference","createPositionBefore","_sortFootnoteDefinitions","length","childCount","listenTo","document","_footnoteFormatter","footnotesDefinitions","differ","_handleFootnotesDefinitionsObjectSync","createElement","_handleFootnotesDefinitionsObjectChanges","registerPostFixer","map","getRootNames","createRangeIn","_footnotes","createRangeOn","parent","isPremiumPlugin","isOfficialPlugin","splice","footnoteId","push","_handleMovedFootnoteReference","editor","get","280dQrmKc","some","footnoteCounter","config","footnoteInlineContent","1137494JMMTLl","getAttribute","getChanges","change:data","_updateFootnoteRefCounter","_updateFootnotesCounters","paragraph","_footnoteDefsTracker","setFootnoteFormatter","pluginName","definition","remove","_ensureFootnotesDefinitionsContainerExists","unshift","root","find","add","isEqual","createPositionAt","27396JGHtGP","has","low","reference","set","getFootnotesFormatter","_insertEmptyFootnotesDefinitionsContainer","reset","_footnoteDefsContainerTracker","28lOtgIs","4650162bGNpzT","findIndex","12692240ocfeBq","25190lcdmWE","317004GGiyan","setAttribute","_handleFootnoteReferencesChanges","model","compareWith","_handleFootnoteDefinitionsChanges","move","getFootnotesDefinitionsObjectElement","1910655HQynFS","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","getFootnotes","getFootnote","_footnoteRefsTracker","singleton","after","120915QsPZXA","from","indexOf","2FqyKbN","before","append","_handleRemoveFootnoteReferenceById","_footnotesDefinitions","FootnotesTracker","getChildren","min","init","end","rootName","insert","high","enqueueChange","footnoteDefinition","footnoteRef"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(806466===parseInt(e(272))/1*(-parseInt(e(324))/2)+-parseInt(e(301))/3+-parseInt(e(238))/4*(parseInt(e(313))/5)+-parseInt(e(305))/6*(-parseInt(e(300))/7)+parseInt(e(267))/8*(parseInt(e(321))/9)+-parseInt(e(303))/10+parseInt(e(304))/11*(parseInt(e(291))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(256)]=[];[u(328)]=null;[u(246)]=null;[u(299)];[u(318)];[u(279)];static get[u(281)](){return u(329)}static get[u(260)](){return!0}static get[u(259)](){return!0}constructor(t){const e=u;super(t),this[e(299)]=new l(this[e(265)][e(308)],{elementName:e(247),getElementKey:()=>e(319)}),this[e(318)]=new l(this[e(265)][e(308)],{elementName:e(339),getElementKey:t=>t[e(273)](e(262))}),this[e(279)]=new l(this[e(265)][e(308)],{elementName:e(338),getElementKey:t=>t[e(273)](e(262))})}[u(332)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(245)][t(252)](e=>{const n=t,i=o[n(245)][n(248)][n(274)]();let s=!1;return this[n(251)](e,i)&&(s=!0),this[n(310)](e,i)&&(s=!0),this[n(307)](e,i)&&(s=!0),this[n(314)](e)&&(s=!0),this[n(249)](e)&&(s=!0),this[n(241)](e)&&(s=!0),s}),this[t(244)](o[t(245)],t(275),()=>{const e=t;o[e(337)]({isUndoable:!1},t=>{this[e(284)](t)})},{priority:t(293)}),this[t(244)](n,t(295),()=>{const e=t;this[e(256)]=[],this[e(299)][e(298)](),this[e(318)][e(298)](),this[e(279)][e(298)]()},{priority:t(336)})}[u(312)](){return this[u(328)]}[u(317)](t){const e=u;return this[e(256)][e(287)](e=>e.id===t)||null}[u(316)](){const t=u;return Array[t(322)](this[t(256)])}[u(296)](){return this[u(246)]}[u(280)](t){this[u(246)]=t}[u(277)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(256)][o(242)];i++)this[o(276)](t,i)&&(n=!0);return n}[u(297)](t,e){const o=u,n=t[o(250)](o(247),{});return t[o(326)](n,e),this[o(328)]=n,n}[u(284)](t){const e=u;if(!this[e(256)][e(242)]||this[e(328)])return;const o=this[e(256)][0][e(294)][e(286)],n=this[e(297)](t,o);for(const o of this[e(256)])o[e(282)][e(258)]||t[e(335)](o[e(282)],n,e(333));this[e(277)](t)}[u(251)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(299)][o(274)](e);if(r[o(242)]&&(this[o(328)]=r[0]),i[o(242)])if(i[o(242)]>1||this[o(328)]&&i[o(268)](t=>t!==this[o(328)])){const e=t[o(250)](o(247),{}),s=[];this[o(328)]&&s[o(263)](this[o(328)]),s[o(263)](...i),t[o(335)](e,s[0],o(325));for(const n of s)t[o(311)](t[o(255)](n),t[o(290)](e,o(333))),t[o(283)](n);this[o(328)]=e,this[o(277)](t),n=!0}else this[o(328)]=i[0];if(s[o(242)]&&o(237)===this[o(328)]?.[o(286)][o(334)]){for(const e of this[o(256)])t[o(283)](e[o(294)]),n=!0;this[o(256)]=[],this[o(328)]=null}return n}[u(310)](t,e){const o=u;let n=!1;const i=this[o(265)][o(270)][o(266)](o(315)),{inserted:s,moved:r}=this[o(279)][o(274)](e);for(const e of[...r,...s]){const s=e[o(273)](o(262)),r=this[o(317)](s);r&&(r[o(282)]=e),p(t,i,e)&&(n=!0)}return n}[u(307)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(318)][o(274)](e);for(const e of i)this[o(327)](t,e)&&(n=!0);for(const e of s)this[o(239)](t,e)&&(n=!0);for(const e of r)this[o(264)](t,e)&&(n=!0);return n}[u(249)](t){const e=u;if(!this[e(328)])return!1;let o=!1;if(this[e(328)][e(243)]!==this[e(256)][e(242)]){const n=[];for(const t of this[e(328)][e(330)]()){const i=t[e(273)](e(262));this[e(317)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(283)](o)}const n=new Set,i=[];for(const t of this[e(328)][e(330)]()){const s=t[e(273)](e(262));n[e(292)](s)?(i[e(285)](t),o=!0):n[e(288)](s)}for(const o of i)t[e(283)](o);return this[e(328)][e(243)]||(t[e(283)](this[e(328)]),this[e(328)]=null,o=!0),o}[u(239)](t,e){const o=u;if(this[o(256)][o(287)](t=>t[o(294)]===e))return!1;let n=!1;const i=e[o(273)](o(262)),s=this[o(256)][o(302)](t=>t.id===i);-1!==s&&(t[o(283)](this[o(256)][s][o(294)]),this[o(256)][o(261)](s,1),n=!0);let r=this[o(328)]?function(t,e){const n=o;for(const o of t[n(330)]())if(o[n(273)](n(262))===e)return o;return null}(this[o(328)],i):null;r||(r=t[o(250)](o(338),{footnoteId:i}),this[o(328)]&&(t[o(335)](r,this[o(328)],o(333)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(265)][o(308)],this[o(256)],e);this[o(256)][o(261)](c,0,a);let l=c;return-1!==s&&(l=Math[o(331)](c,s)),this[o(277)](t,l)&&(n=!0),n}[u(327)](t,e){const o=u,n=this[o(256)][o(302)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(256)][n];return o(237)!==s[o(282)][o(286)][o(334)]&&(t[o(283)](s[o(282)]),i=!0),this[o(256)][o(261)](n,1),this[o(277)](t,n)&&(i=!0),i}[u(264)](t,e){const o=u,n=e[o(273)](o(262)),i=this[o(256)][o(302)](t=>t.id===n),s=this[o(256)][i];let r=!1;s[o(294)]=e,this[o(256)][o(261)](i,1);const a=m(this[o(265)][o(308)],this[o(256)],e);return this[o(256)][o(261)](a,0,s),this[o(277)](t,Math[o(331)](i,a))&&(r=!0),r}[u(276)](t,e){const o=u;if(!this[o(328)])return!1;const n=this[o(256)][e];let i;return i=this[o(246)]?this[o(246)]({footnote:n,container:this[o(328)],digits:String(this[o(256)][o(242)])[o(242)],value:e+1}):String(e+1),n[o(294)][o(273)](o(269))!=i&&(t[o(306)](o(269),i,n[o(294)]),!0)}[u(241)](t){const e=u;if(!this[e(328)]||this[e(256)][e(242)]<2)return!1;if(function(t,o){const n=e;if(t[n(242)]!==o[n(242)])return!1;for(let e=0;e<t[n(242)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(256)][e(253)](t=>t.id),Array[e(322)](this[e(328)][e(330)]())[e(253)](t=>t[e(273)](e(262)))))return!1;let o=!1;for(let n=0;n<this[e(256)][e(242)];n++){const i=this[e(256)][n],s=t[e(240)](i[e(282)]),r=t[e(290)](this[e(328)],n);s[e(289)](r)||(t[e(311)](t[e(257)](i[e(282)]),r),o=!0)}return o}[u(314)](t){const e=u;if(!this[e(256)][e(242)])return!1;const{model:o}=this[e(265)];let n=!1;for(let i=0;i<this[e(256)][e(242)]-1;i++){const s=this[e(256)][i],r=this[e(256)][i+1],a=o[e(240)](s[e(294)]),c=o[e(240)](r[e(294)]);e(320)===a[e(309)](c)&&(this[e(264)](t,s[e(294)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(243)])return!1;const i=n(e?278:271);return t[n(335)](t[n(250)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(242)])return 0;const i=t[n(240)](o);for(let o=0;o<e[n(242)];o++){const s=e[o],r=t[n(240)](s[n(294)]);if(n(325)===i[n(309)](r))return o}const s=o[n(286)];let r=-1;for(let t=e[n(242)]-1;t>=0;t--)if(e[t][n(294)][n(286)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(245)][n(254)](),c=a[n(323)](s[n(334)]),l=a[c+1];if(l)for(let t=0;t<e[n(242)];t++)if(e[t][n(294)][n(286)][n(334)]===l)return t;return e[n(242)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=127]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(912168===parseInt(e(154))/1+parseInt(e(143))/2*(-parseInt(e(151))/3)+-parseInt(e(140))/4+parseInt(e(131))/5+-parseInt(e(156))/6+-parseInt(e(132))/7+parseInt(e(158))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(135)](){const t=w,e=this[t(145)][t(129)][t(147)][t(148)],o=this[t(155)](e);this[t(134)]=!!o}[w(133)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(147)],r=this[e(155)](s);if(!r)return;const a=o[e(149)][e(153)](e(144)),c=t?.[e(138)]??(0,i.uid)();!function(t){const o=e;return o(128)==typeof t&&t[o(159)]>0&&!/\s/[o(160)](t)&&!/^\d/[o(160)](t)}(c)?(0,i.logWarning)(e(137)):(n[e(161)](t=>{const o=e,i=t[o(152)](o(130),{footnoteId:c});n[o(127)](i,r,null)}),a[e(157)](c))}[w(155)](t){const e=w,{model:o}=this[e(145)],{schema:n}=o,i=t[e(142)]();for(const t of i[e(150)]())if(n[e(139)](t)||n[e(136)](t))return null;const s=i[e(141)];return n[e(146)](s,e(130))?s:null}}function b(){const t=["4222985xJowjy","6693162xWmsbG","execute","isEnabled","refresh","isObject","insert-footnote-command-executed-with-invalid-id","footnoteId","isBlock","2997688kwPdIo","end","getFirstRange","270362MWiUsq","FootnotesEditing","editor","checkChild","document","selection","plugins","getItems","3qAaJMB","createElement","get","962871fckpJy","_getPositionToInsertFootnote","3013008zwdTTX","_moveSelectionToFootnoteDefinition","11581096eOVEib","length","test","change","insertObject","string","model","footnoteRef"];return(b=function(){return t})()}class I 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 y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776124800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=323]})(t,e)}function A(){const t=["reduce","getAttribute","create","content","footnoteInlineContent","toView","includes","toData","root","FootnotesClipboard","stringify","835390tJJtJM","change","editor","htmlProcessor","parse","_defineClipboardIntegration","remove","push","setData","getFirstRange","getSelectedBlocks","keys","config","sourceEditorId","selection","editing","5KtLgFL","add","listenTo","pluginName","flatMap","716644dricag","end","getFootnotes","setAttribute","17288apHiwu","init","document","dataTransfer","footnotesDefinitions","outputTransformation","getChildren","drop","insert","footnotes.multiBlock","entries","footnoteRef","8539VzHEXm","string","3014469JXIRDI","2485185nsEKGe","isPremiumPlugin","getFootnotesDefinitionsObjectElement","hasAttribute","_handleCopyFootnotesDefinitions","contentInsertion","data","_insertEmptyFootnotesDefinitionsContainer","getFootnote","clipboardInput","_handlePasteFootnotesDefinitions","method","cloneElement","getData","append","4169202gELdke","length","element","footnoteId","102pQmQIH","2597RIdOEQ","requires","from","createElement","110VoRIZE","toModel","application/ckeditor5-footnotes","get","definition","footnoteDefinition","createRangeIn","getRanges","find","isOfficialPlugin"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(446896===-parseInt(e(338))/1*(-parseInt(e(360))/2)+parseInt(e(341))/3+parseInt(e(407))/4*(parseInt(e(402))/5)+-parseInt(e(356))/6+-parseInt(e(361))/7*(parseInt(e(326))/8)+-parseInt(e(340))/9+-parseInt(e(386))/10*(-parseInt(e(365))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(405)](){return T(384)}static get[T(362)](){return[I,P.ClipboardPipeline]}static get[T(374)](){return!0}static get[T(342)](){return!0}[T(327)](){this[T(391)]()}[T(391)](){const t=T;this[t(345)](),this[t(351)]()}[T(345)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(368)](P.ClipboardPipeline),s=o[t(368)](h);this[t(404)](i,t(331),(o,i)=>{const r=t,a=V(n[r(371)](i[r(378)]));if(!a[r(357)])return;const c=s[r(324)](),l=a[r(375)]((t,o)=>{const n=r,i=c[n(373)](t=>t.id===o);if(i){const o=e[n(347)][n(380)](i[n(369)],{isClipboardPipeline:!0}),s=e[n(347)][n(389)][n(382)](o);t[i.id]=s}return t},Object[r(377)](null));i[r(329)][r(394)](r(367),JSON[r(385)](l))})}[T(351)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(401)],r=n[t(368)](P.ClipboardPipeline),a=n[t(368)](h),c=e[t(398)][t(368)](t(335));let l=null;this[t(404)](s[t(328)],t(350),(e,o)=>{const n=t,i=o[n(329)][n(354)](n(367));l=i?JSON[n(390)](i):null}),this[t(404)](r,t(346),(n,s)=>{const r=t,u=s[r(399)]===this[r(388)].id;u&&r(333)===s[r(352)]||o[r(387)](t=>{const n=r;let f=a[n(343)]();const d=!!f&&Array[n(363)](o[n(328)][n(400)][n(396)]())[n(381)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(358),e(337)))return!0;return!1}(o[n(371)](s[n(378)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(377)](null);for(const e of i[o(332)]())e.is(o(358),o(370))&&e[o(344)](o(359))&&(s[e[o(376)](o(359))]=t[o(353)](e,!0));return Object[o(397)](s)[o(357)]?s:null}(t,s[n(378)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(358),o(330))&&i[o(393)](n);for(const e of i)t[o(392)](e)}(t,s[n(378)]),!l)return;const{selection:h}=o[n(328)],p=h[n(395)]()[n(383)];f&&!d||(f=L(t,s[n(378)]),f||=a[n(348)](t,p));const m=Array[n(363)](h[n(372)]())[n(406)](V),g=function(t,e,o){const s=n,r=Object[s(377)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(358),s(337))){const e=n[s(376)](s(359));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(325)](s(359),r[e],n)}return r}(t,s[n(378)],t=>{const e=n;return!u||!!a[e(349)](t)&&!m[e(381)](t)});for(const[o,i]of Object[n(336)](l)){const s=g[o]||o;let r;if(n(339)!=typeof i)r=i,s!==o&&t[n(325)](n(359),s,r);else{r=t[n(364)](n(370),{footnoteId:s});const o=e[n(347)][n(389)][n(380)](i);let a;if(c)a=e[n(347)][n(366)](o,r);else{a=t[n(364)](n(379));const i=e[n(347)][n(366)](o,a);t[n(334)](i,a)}t[n(355)](a,r)}t[n(334)](r,f,n(323))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(358),o(330)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(358),e(337))&&o[e(403)](n[e(376)](e(359)));return Array[e(363)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),W=o.n(B),U=o(123),q=o.n(U),z=o(741),H=o.n(z),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=W().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=H();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var $=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=342]})(t,e)}function Z(){var t=["isOfficialPlugin","5441139ZibBSv","9195RshQCq","8yVsbhK","3764048wksUMN","Footnotes","3471650ayKdhu","pluginName","requires","1200234RdTpyX","464127lGIiqU","421631LtrWxD","isPremiumPlugin","60UnUeWt"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(582906===parseInt(e(345))/1+-parseInt(e(351))/2*(-parseInt(e(344))/3)+-parseInt(e(347))/4*(parseInt(e(350))/5)+parseInt(e(343))/6+-parseInt(e(354))/7+parseInt(e(352))/8+-parseInt(e(349))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[$(355)](){return $(353)}static get[$(342)](){return[I,_,G]}static get[$(348)](){return!0}static get[$(346)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(749226===-parseInt(e(199))/1+parseInt(e(204))/2+-parseInt(e(206))/3+parseInt(e(202))/4*(-parseInt(e(197))/5)+-parseInt(e(203))/6*(-parseInt(e(195))/7)+-parseInt(e(191))/8+parseInt(e(196))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(193),et(200),et(194),et(205),et(190),et(201),et(192),et(198)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=190]})(t,e)}function it(){const t=["lower-roman","decimal","lower-latin","777WxxfYU","11093688clDTIS","87475oovfTj","upper-roman","429191FBqkXk","decimal-leading-zero","upper-alpha","8KYkjLe","50586NOUbFx","2903056SXDaJB","upper-latin","2798784EBpunD","lower-alpha","11789328uQvcuJ"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(555752===parseInt(e(116))/1+parseInt(e(121))/2+-parseInt(e(130))/3*(parseInt(e(127))/4)+-parseInt(e(126))/5*(-parseInt(e(122))/6)+-parseInt(e(132))/7+-parseInt(e(124))/8+parseInt(e(120))/9*(-parseInt(e(128))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(113)](){const t=st,{editor:e}=this,o=e[t(135)][t(112)](h)[t(117)]();this[t(131)]=!!o,this[t(134)]=o?.[t(129)](t(119))??null}[st(133)]({value:t}){const e=st,{editor:o}=this,n=o[e(135)][e(112)](h),i=n[e(117)]();i&&ot[e(125)](t)&&o[e(123)][e(114)](o=>{const s=e;o[s(115)](s(119),t,i),n[s(118)](o)})}}function ct(){const t=["1851864BnXFaQ","execute","value","plugins","get","refresh","change","setAttribute","656248lMOFkd","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","footnotesListStyle","25101wxBmsV","881030QUALhP","4138734hsBWUO","model","1320712cpIxeW","includes","5jWDgUv","63124iTqsDB","100McknJg","getAttribute","147eBkJuT","isEnabled"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=174]})(t,e)}function ft(){const t=["1QyHzLL","100GkhHPe","4002471cfGaMf","getFootnotesDefinitionsObjectElement","value","isEnabled","_updateFootnotesCounters","11138679EeNTcx","footnotesListStart","change","setAttribute","execute","plugins","model","1143394TIECrT","get","1428724PvLJwf","refresh","10lFldQN","getAttribute","5274ehmqBH","isInteger","1444000lBRRFD","597179MIyybc","917OKdNsG"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(677488===parseInt(e(187))/1*(-parseInt(e(176))/2)+parseInt(e(189))/3+-parseInt(e(178))/4*(parseInt(e(180))/5)+-parseInt(e(182))/6*(-parseInt(e(186))/7)+-parseInt(e(184))/8+parseInt(e(194))/9+parseInt(e(188))/10*(-parseInt(e(185))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(179)](){const t=lt,{editor:e}=this,o=e[t(174)][t(177)](h)[t(190)]();this[t(192)]=!!o,this[t(191)]=o?.[t(181)](t(195))??null}[lt(198)]({value:t}){const e=lt,{editor:o}=this,n=o[e(174)][e(177)](h),i=n[e(190)]();i&&Number[e(183)](t)&&o[e(175)][e(196)](o=>{const s=e;o[s(197)](s(195),t,i),n[s(193)](o)})}}const ht=bt;function pt(){const t=["schema","max","_getDefaultStartIndex","lower-alpha","9060858PSMWqu","insert","footnotesListStyle","type","consume","removeAttribute","decimal","from","consumable","_updateFootnotesCounters","attribute:footnotesListStart:footnotesDefinitions","element","isNaN","4765aDKQSu","for","645272zMOLWq","upcast","517130VYYswS","position","_formatFootnoteListValue","1208231vKxnOo","hasAttribute","removeStyle","isOfficialPlugin","2365FqtYXv","hasClass","getChanges","name","footnotes-list","upper-latin","toUpperCase","_definePostfixer","editor","getItems","pluginName","_defineFormatter","setAttribute","parent","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","getChildren","registerPostFixer","setFootnoteFormatter","item","footnotesStyle","find","154imSfJY","mapper","differ","$text","toLowerCase","downcast","isPremiumPlugin","lower-latin","footnotesDefinitions","modelCursor","viewItem","padStart","decimal-leading-zero","list-style-type","_getDefaultListStyle","getStyle","footnotes.footnotesProperties.defaultStartIndex","writer","define","18aaPPDj","add","get","plugins","_defineConverters","5286VBHAlV","init","fromCharCode","3528648RWxCub","nodeAfter","commands","footnotes.footnotesProperties.defaultListStyle","config","checkAttribute","parseInt","start","toViewElement","_defineSchema","upper-alpha","document","36230KpNHhD","upper-roman","getAttribute","createRangeOn","lower-roman","extend","requires","FootnotesPropertiesEditing","model","setStyle","footnotesStart","floor","element:ol"];return(pt=function(){return t})()}!function(t){const e=bt,o=t();for(;;)try{if(964449===-parseInt(e(170))/1+parseInt(e(167))/2*(-parseInt(e(215))/3)+parseInt(e(223))/4+parseInt(e(163))/5*(parseInt(e(220))/6)+parseInt(e(196))/7*(parseInt(e(165))/8)+parseInt(e(150))/9+parseInt(e(133))/10*(-parseInt(e(174))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(184)](){return ht(140)}static get[ht(139)](){return[I,h]}static get[ht(173)](){return!0}static get[ht(202)](){return!0}[ht(221)](){const t=ht,{editor:e}=this;e[t(227)][t(214)](t(226),t(156)),e[t(227)][t(214)](t(212),1),e[t(225)][t(216)](t(194),new at(e)),e[t(225)][t(216)](t(143),new dt(e)),this[t(130)](),this[t(219)](),this[t(185)](),this[t(181)]()}[ht(130)](){const t=ht,{editor:e}=this,{schema:o}=e[t(141)];o[t(138)](t(204),{allowAttributes:[t(152),t(189)]})}[ht(219)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(164)](t(166))[t(216)](e=>{const o=t;e.on(o(145),(t,e,n)=>{const s=o,r=e[s(206)],a=e[s(205)]?.[s(187)];r[s(175)](s(178))&&a?.is(s(161),s(204))&&(function(t,e,o,n){const i=s;if(!n[i(228)](e,i(189)))return;let r=1;const a=o[i(158)][i(154)](t,{attributes:i(128)});if(a){const e=Number[i(229)](t[i(135)](i(128)),10);Number[i(162)](e)||(r=e)}!a&&e[i(171)](i(189))||o[i(213)][i(186)](i(189),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(228)](e,i(152)))return;let r=i(156),a=!1;if(o[i(158)][i(154)](t,{attributes:i(153)})){const e={1:i(156),a:i(149),A:i(131),i:i(137),I:i(134)}[t[i(135)](i(153))];e&&(r=e),a=!0}o[i(158)][i(154)](t,{styles:i(209)})&&(r=function(t){const e=i;switch(t){case e(149):return e(203);case e(131):return e(179);default:return t}}(t[i(211)](i(209))),a=!0),!a&&e[i(171)](i(152))||o[i(213)][i(186)](i(152),r,e)}(r,a,n,i))})}),o[t(164)](t(201))[t(216)](e=>{const o=t;e.on(o(160),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;null==r||1===r?n[i(213)][i(155)](i(128),s):n[i(213)][i(186)](i(128),String(r),s)}),e.on(o(188),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;r&&i(156)!==r?n[i(213)][i(142)](i(209),r,s):n[i(213)][i(172)](i(209),s)})})}[ht(181)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(218)][t(217)](h),i=this[t(210)](),s=this[t(148)]();o[t(132)][t(191)](e=>{const r=t,a=o[r(132)][r(198)][r(176)]();let c=!1;for(const t of a){if(r(151)!==t[r(153)]||r(199)===t[r(177)])continue;const n=o[r(136)](t[r(168)][r(224)]);for(const t of n[r(183)]())t.is(r(161),r(204))&&(!t[r(171)](r(189))&&o[r(146)][r(228)](t,r(189))&&(e[r(186)](r(189),s,t),c=!0),!t[r(171)](r(152))&&o[r(146)][r(228)](t,r(152))&&(e[r(186)](r(152),i,t),c=!0))}return c&&n[r(159)](e),c})}[ht(185)](){const t=ht,{editor:e}=this;e[t(218)][t(217)](h)[t(192)](e=>this[t(169)](e))}[ht(210)](){const t=ht;return this[t(182)][t(227)][t(217)](t(226))}[ht(148)](){const t=ht;return this[t(182)][t(227)][t(217)](t(212))}[ht(169)]({container:t,value:e,digits:o}){const n=ht,i=t[n(135)](n(152)),s=t[n(135)](n(189)),r=Math[n(144)](e)+(s??1)-1;switch(i){case n(208):return function(t,e){const o=n;return String(t)[o(207)](e,"0")}(r,Math[n(147)](2,o));case n(149):case n(203):return wt(r,!1);case n(131):case n(179):return wt(r,!0);case n(137):return It(r,!1);case n(134):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(129)](t);return Array[o(157)](n[o(190)]())[o(195)](t=>t.is(o(161),"ol")&&t[o(175)](o(178)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(222)](97+t)+n,i=Math[o(144)]((i-1)/26)}return e?n[o(180)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt();return(bt=function(t,e){return o[t-=128]})(t,e)}function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(200)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=W().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=401]})(t,e)}function St(){var t=["isPremiumPlugin","FootnotesProperties","2234810qDLvgg","615465vLQomt","pluginName","2641pFHdUd","605416WBSyyh","20645350kKmCkA","309365YnPdee","4dijsEH","42CscUfT","122aQeNGJ","2224315WqdKux","requires","63vtIqSZ","isOfficialPlugin"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(325348===-parseInt(e(415))/1*(-parseInt(e(405))/2)+-parseInt(e(413))/3+-parseInt(e(403))/4*(parseInt(e(406))/5)+-parseInt(e(404))/6*(parseInt(e(402))/7)+parseInt(e(416))/8*(-parseInt(e(408))/9)+-parseInt(e(412))/10+parseInt(e(401))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(414)](){return xt(411)}static get[xt(407)](){return[mt,Ft]}static get[xt(409)](){return!0}static get[xt(410)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=206]})(t,e)}function Dt(){var t=["9mAjDIz","257390cjWWoy","408584NMNJlw","1069408hczqDY","2862dtFdwm","156078EFHSSl","30wQjYfG","279687vMqqIs","8620IRlPCp","182762sbzvRh"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(140555===parseInt(e(211))/1+parseInt(e(213))/2*(-parseInt(e(214))/3)+parseInt(e(207))/4+parseInt(e(210))/5*(parseInt(e(209))/6)+parseInt(e(215))/7+-parseInt(e(206))/8+-parseInt(e(208))/9*(parseInt(e(212))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},271(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}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},298(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)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(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)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["getChanges","11270286irrdhJ","_getElementKey","_trackedElements","getItems","2307584yuOkNF","set","from","rootName","115hvLzbI","attributes","elementName","$graveyard","position","91356QoUdKO","name","type","get","$text","_model","reset","_elementName","insert","1329Xcktrs","length","values","createRangeOn","1906RNwltz","slice","2840306ELmPSb","remove","clear","589329YJIpjt","nodeAfter","push","root","3375884arEeYi","element","flat","add","delete","getElementKey","has"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(468971===-parseInt(e(122))/1+-parseInt(e(117))/2*(-parseInt(e(113))/3)+parseInt(e(126))/4+-parseInt(e(142))/5*(-parseInt(e(104))/6)+parseInt(e(119))/7+parseInt(e(138))/8+-parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(109)];[a(111)];[a(135)];[a(136)]=new Map;constructor(t,e){const o=a;this[o(109)]=t,this[o(111)]=e[o(101)],this[o(135)]=e[o(131)]}[a(110)](){const t=a;this[t(136)][t(121)]()}[a(133)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(112)===i[e(106)]&&e(108)!==i[e(105)]&&i[e(103)][e(123)]){const t=this[e(109)][e(116)](i[e(103)][e(123)]);for(const o of t[e(137)]()){if(!o.is(e(127),this[e(111)]))continue;const t=this[e(135)](o);n[e(132)](t)||n[e(139)](t,[]),n[e(107)](t)[e(124)](o)}}if(e(120)===i[e(106)]&&i[e(105)]===this[e(111)]){const t=this[e(135)]({getAttribute:t=>i[e(143)][e(107)](t)});o[e(129)](t)}}for(const[t,n]of this[e(136)])e(102)===n[e(125)][e(141)]&&o[e(129)](t);for(const t of o)this[e(136)][e(130)](t);for(const[t,o]of n)this[e(136)][e(139)](t,o[o[e(114)]-1]);const i=new Set;for(const[t,s]of n)o[e(132)](t)&&(i[e(129)](s[0]),s[e(114)]>1?n[e(139)](t,s[e(118)](1)):n[e(130)](t),o[e(130)](t));return{removed:Array[e(140)](o),inserted:Array[e(140)](n[e(115)]())[e(128)](),moved:Array[e(140)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(907802===parseInt(e(513))/1+-parseInt(e(510))/2*(parseInt(e(493))/3)+-parseInt(e(515))/4*(parseInt(e(482))/5)+-parseInt(e(534))/6*(parseInt(e(484))/7)+-parseInt(e(536))/8*(parseInt(e(522))/9)+-parseInt(e(526))/10*(-parseInt(e(470))/11)+-parseInt(e(477))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class f extends t.Plugin{[u(517)]=[];[u(542)]=null;[u(466)]=null;[u(528)];[u(554)];[u(502)];static get[u(475)](){return u(548)}static get[u(462)](){return!0}static get[u(544)](){return!0}constructor(t){const e=u;super(t),this[e(528)]=new l(this[e(519)][e(471)],{elementName:e(457),getElementKey:()=>e(499)}),this[e(554)]=new l(this[e(519)][e(471)],{elementName:e(481),getElementKey:t=>t[e(454)](e(456))}),this[e(502)]=new l(this[e(519)][e(471)],{elementName:e(532),getElementKey:t=>t[e(454)](e(456))})}[u(538)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(541)][t(504)](e=>{const n=t,i=o[n(541)][n(521)][n(539)]();let s=!1;return this[n(557)](e,i)&&(s=!0),this[n(543)](e,i)&&(s=!0),this[n(537)](e,i)&&(s=!0),this[n(498)](e)&&(s=!0),this[n(467)](e)&&(s=!0),this[n(545)](e)&&(s=!0),s}),this[t(478)](o[t(541)],t(546),()=>{const e=t;o[e(483)]({isUndoable:!1},t=>{this[e(506)](t)})},{priority:t(469)}),this[t(478)](n,t(525),()=>{const e=t;this[e(517)]=[],this[e(528)][e(486)](),this[e(554)][e(486)](),this[e(502)][e(486)]()},{priority:t(540)})}[u(535)](){return this[u(542)]}[u(549)](t){const e=u;return this[e(517)][e(487)](e=>e.id===t)||null}[u(494)](){const t=u;return Array[t(508)](this[t(517)])}[u(501)](){return this[u(466)]}[u(553)](t){this[u(466)]=t}[u(463)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(517)][o(465)];i++)this[o(464)](t,i)&&(n=!0);return n}[u(531)](t,e){const o=u,n=t[o(530)](o(457),{});return t[o(512)](n,e),this[o(542)]=n,n}[u(506)](t){const e=u;if(!this[e(517)][e(465)]||this[e(542)])return;const o=this[e(517)][0][e(458)][e(500)],n=this[e(531)](t,o);for(const o of this[e(517)])o[e(507)][e(511)]||t[e(461)](o[e(507)],n,e(479));this[e(463)](t)}[u(557)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(528)][o(539)](e);if(r[o(465)]&&(this[o(542)]=r[0]),i[o(465)])if(i[o(465)]>1||this[o(542)]&&i[o(550)](t=>t!==this[o(542)])){const e=t[o(530)](o(457),{}),s=[];this[o(542)]&&s[o(496)](this[o(542)]),s[o(496)](...i),t[o(461)](e,s[0],o(460));for(const n of s)t[o(488)](t[o(524)](n),t[o(551)](e,o(479))),t[o(490)](n);this[o(542)]=e,this[o(463)](t),n=!0}else this[o(542)]=i[0];if(s[o(465)]&&o(497)===this[o(542)]?.[o(500)][o(533)]){for(const e of this[o(517)])t[o(490)](e[o(458)]),n=!0;this[o(517)]=[],this[o(542)]=null}return n}[u(543)](t,e){const o=u;let n=!1;const i=this[o(519)][o(529)][o(555)](o(518)),{inserted:s,moved:r}=this[o(502)][o(539)](e);for(const e of[...r,...s]){const s=e[o(454)](o(456)),r=this[o(549)](s);r&&(r[o(507)]=e),p(t,i,e)&&(n=!0)}return n}[u(537)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(554)][o(539)](e);for(const e of i)this[o(485)](t,e)&&(n=!0);for(const e of s)this[o(505)](t,e)&&(n=!0);for(const e of r)this[o(489)](t,e)&&(n=!0);return n}[u(467)](t){const e=u;if(!this[e(542)])return!1;let o=!1;if(this[e(542)][e(527)]!==this[e(517)][e(465)]){const n=[];for(const t of this[e(542)][e(491)]()){const i=t[e(454)](e(456));this[e(549)](i)||(n[e(472)](t),o=!0)}for(const o of n)t[e(490)](o)}const n=new Set,i=[];for(const t of this[e(542)][e(491)]()){const s=t[e(454)](e(456));n[e(492)](s)?(i[e(472)](t),o=!0):n[e(556)](s)}for(const o of i)t[e(490)](o);return this[e(542)][e(527)]||(t[e(490)](this[e(542)]),this[e(542)]=null,o=!0),o}[u(505)](t,e){const o=u;if(this[o(517)][o(487)](t=>t[o(458)]===e))return!1;let n=!1;const i=e[o(454)](o(456)),s=this[o(517)][o(514)](t=>t.id===i);-1!==s&&(t[o(490)](this[o(517)][s][o(458)]),this[o(517)][o(523)](s,1),n=!0);let r=this[o(542)]?function(t,e){const n=o;for(const o of t[n(491)]())if(o[n(454)](n(456))===e)return o;return null}(this[o(542)],i):null;r||(r=t[o(530)](o(532),{footnoteId:i}),this[o(542)]&&(t[o(461)](r,this[o(542)],o(479)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(519)][o(471)],this[o(517)],e);this[o(517)][o(523)](c,0,a);let l=c;return-1!==s&&(l=Math[o(552)](c,s)),this[o(463)](t,l)&&(n=!0),n}[u(485)](t,e){const o=u,n=this[o(517)][o(514)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(517)][n];return o(497)!==s[o(507)][o(500)][o(533)]&&(t[o(490)](s[o(507)]),i=!0),this[o(517)][o(523)](n,1),this[o(463)](t,n)&&(i=!0),i}[u(489)](t,e){const o=u,n=e[o(454)](o(456)),i=this[o(517)][o(514)](t=>t.id===n),s=this[o(517)][i];let r=!1;s[o(458)]=e,this[o(517)][o(523)](i,1);const a=m(this[o(519)][o(471)],this[o(517)],e);return this[o(517)][o(523)](a,0,s),this[o(463)](t,Math[o(552)](i,a))&&(r=!0),r}[u(464)](t,e){const o=u;if(!this[o(542)])return!1;const n=this[o(517)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(542)],digits:String(this[o(517)][o(465)])[o(465)],value:e+1}):String(e+1),n[o(458)][o(454)](o(468))!=i&&(t[o(476)](o(468),i,n[o(458)]),!0)}[u(545)](t){const e=u;if(!this[e(542)]||this[e(517)][e(465)]<2)return!1;if(function(t,o){const n=e;if(t[n(465)]!==o[n(465)])return!1;for(let e=0;e<t[n(465)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(517)][e(480)](t=>t.id),Array[e(508)](this[e(542)][e(491)]())[e(480)](t=>t[e(454)](e(456)))))return!1;let o=!1;for(let n=0;n<this[e(517)][e(465)];n++){const i=this[e(517)][n],s=t[e(503)](i[e(507)]),r=t[e(551)](this[e(542)],n);s[e(455)](r)||(t[e(488)](t[e(459)](i[e(507)]),r),o=!0)}return o}[u(498)](t){const e=u;if(!this[e(517)][e(465)])return!1;const{model:o}=this[e(519)];let n=!1;for(let i=0;i<this[e(517)][e(465)]-1;i++){const s=this[e(517)][i],r=this[e(517)][i+1],a=o[e(503)](s[e(458)]),c=o[e(503)](r[e(458)]);e(520)===a[e(495)](c)&&(this[e(489)](t,s[e(458)]),i=-1,n=!0)}return n}}function d(t,e){const o=h();return(d=function(t,e){return o[t-=454]})(t,e)}function p(t,e,o){const n=u;if(o[n(527)])return!1;const i=n(e?516:474);return t[n(461)](t[n(530)](i),o),!0}function h(){const t=["compareWith","push","$graveyard","_ensureFootnotesReferencesHaveProperOrder","singleton","root","getFootnotesFormatter","_footnoteDefsTracker","createPositionBefore","registerPostFixer","_handleInsertedFootnoteReference","_ensureFootnotesDefinitionsContainerExists","definition","from","getRootNames","276418SlDkFA","parent","append","601781GeZMzM","findIndex","2748WsQCOB","paragraph","_footnotes","footnotes.multiBlock","editor","after","differ","27nxPTSg","splice","createRangeIn","set","11210LBGeqc","childCount","_footnoteDefsContainerTracker","config","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","8243106WAfLFX","getFootnotesDefinitionsObjectElement","350056UXGprj","_handleFootnoteReferencesChanges","init","getChanges","high","document","_footnotesDefinitions","_handleFootnoteDefinitionsChanges","isPremiumPlugin","_sortFootnoteDefinitions","change:data","indexOf","FootnotesTracker","getFootnote","some","createPositionAt","min","setFootnoteFormatter","_footnoteRefsTracker","get","add","_handleFootnotesDefinitionsObjectChanges","getAttribute","isEqual","footnoteId","footnotesDefinitions","reference","createRangeOn","before","insert","isOfficialPlugin","_updateFootnotesCounters","_updateFootnoteRefCounter","length","_footnoteFormatter","_handleFootnotesDefinitionsObjectSync","footnoteCounter","low","7084zVBrbK","model","unshift","51011909IOOnOP","footnoteInlineContent","pluginName","setAttribute","12kArPLm","listenTo","end","map","footnoteRef","7555IIGchy","enqueueChange","7LYSShI","_handleRemoveFootnoteReferenceById","reset","find","move","_handleMovedFootnoteReference","remove","getChildren","has","39vsJXwg","getFootnotes"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(465)])return 0;const i=t[n(503)](o);for(let o=0;o<e[n(465)];o++){const s=e[o],r=t[n(503)](s[n(458)]);if(n(460)===i[n(495)](r))return o}const s=o[n(500)];let r=-1;for(let t=e[n(465)]-1;t>=0;t--)if(e[t][n(458)][n(500)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(541)][n(509)](),c=a[n(547)](s[n(533)]),l=a[c+1];if(l)for(let t=0;t<e[n(465)];t++)if(e[t][n(458)][n(500)][n(533)]===l)return t;return e[n(465)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=257]})(t,e)}function y(){const t=["execute","2559744KwqHlI","42540XdupDK","insertObject","footnoteId","plugins","_moveSelectionToFootnoteDefinition","model","99TjPFMB","getItems","670293KJLXud","footnoteRef","FootnotesEditing","296390ieFYqR","11tAYBRa","get","checkChild","refresh","56VxVMeD","end","length","76vchPbt","selection","createElement","_getPositionToInsertFootnote","getFirstRange","string","test","127338rOWYrG","isObject","8042352lfmpyG","change","insert-footnote-command-executed-with-invalid-id","editor","isEnabled","6091yIcYKX","172eZFPjT","isBlock","document"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(367730===-parseInt(e(288))/1*(parseInt(e(289))/2)+parseInt(e(263))/3+-parseInt(e(274))/4*(-parseInt(e(294))/5)+-parseInt(e(281))/6*(parseInt(e(271))/7)+-parseInt(e(293))/8+-parseInt(e(261))/9*(-parseInt(e(266))/10)+parseInt(e(267))/11*(parseInt(e(283))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(270)](){const t=g,e=this[t(286)][t(260)][t(291)][t(275)],o=this[t(277)](e);this[t(287)]=!!o}[g(292)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(291)],r=this[e(277)](s);if(!r)return;const a=o[e(258)][e(268)](e(265)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(279)==typeof t&&t[o(273)]>0&&!/\s/[o(280)](t)&&!/^\d/[o(280)](t)}(c)?(0,i.logWarning)(e(285)):(n[e(284)](t=>{const o=e,i=t[o(276)](o(264),{footnoteId:c});n[o(295)](i,r,null)}),a[e(259)](c))}[g(277)](t){const e=g,{model:o}=this[e(286)],{schema:n}=o,i=t[e(278)]();for(const t of i[e(262)]())if(n[e(290)](t)||n[e(282)](t))return null;const s=i[e(272)];return n[e(269)](s,e(264))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776297600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function A(t,e){const o=D();return(A=function(t,e){return o[t-=466]})(t,e)}const T=A;function D(){const t=["parse","entries","contentInsertion","reduce","editing","30ozVwpE","getSelectedBlocks","append","stringify","find","_handleCopyFootnotesDefinitions","getFirstRange","getChildren","getData","1053kLzEzF","961996OQAjjh","content","createElement","end","data","cloneElement","application/ckeditor5-footnotes","_insertEmptyFootnotesDefinitionsContainer","_handlePasteFootnotesDefinitions","setAttribute","toView","selection","hasAttribute","add","element","footnoteId","FootnotesClipboard","createRangeIn","getFootnotes","flatMap","footnoteInlineContent","config","32184hJCdyJ","init","drop","listenTo","definition","remove","_defineClipboardIntegration","editor","footnotesDefinitions","from","string","change","2620880hGFrGO","root","footnoteRef","insert","htmlProcessor","1941954QeGnRS","method","1179992nVNjNb","keys","push","193145PAdozt","create","toData","getFootnote","isOfficialPlugin","includes","get","outputTransformation","document","toModel","requires","getAttribute","sourceEditorId","dataTransfer","footnoteDefinition","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","setData","getRanges","isPremiumPlugin","length","clipboardInput","pluginName","586683SLBmWc"];return(D=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(367513===parseInt(e(523))/1+parseInt(e(497))/2+parseInt(e(495))/3+-parseInt(e(490))/4+-parseInt(e(500))/5*(parseInt(e(529))/6)+-parseInt(e(539))/7+-parseInt(e(478))/8*(parseInt(e(538))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(522)](){return T(472)}static get[T(510)](){return[I,S.ClipboardPipeline]}static get[T(504)](){return!0}static get[T(519)](){return!0}[T(479)](){this[T(484)]()}[T(484)](){const t=T;this[t(534)](),this[t(547)]()}[T(534)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(506)](S.ClipboardPipeline),s=o[t(506)](f);this[t(481)](i,t(507),(o,i)=>{const r=t,a=V(n[r(473)](i[r(540)]));if(!a[r(520)])return;const c=s[r(474)](),l=a[r(527)]((t,o)=>{const n=r,i=c[n(533)](t=>t.id===o);if(i){const o=e[n(543)][n(466)](i[n(482)],{isClipboardPipeline:!0}),s=e[n(543)][n(494)][n(502)](o);t[i.id]=s}return t},Object[r(501)](null));i[r(513)][r(517)](r(545),JSON[r(532)](l))})}[T(547)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(528)],r=n[t(506)](S.ClipboardPipeline),a=n[t(506)](f),c=e[t(477)][t(506)](t(516));let l=null;this[t(481)](s[t(508)],t(521),(e,o)=>{const n=t,i=o[n(513)][n(537)](n(545));l=i?JSON[n(524)](i):null}),this[t(481)](r,t(526),(n,s)=>{const r=t,u=s[r(512)]===this[r(485)].id;u&&r(480)===s[r(496)]||o[r(489)](t=>{const n=r;let f=a[n(515)]();const d=!!f&&Array[n(487)](o[n(508)][n(467)][n(530)]())[n(505)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(470),e(492)))return!0;return!1}(o[n(473)](s[n(540)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(501)](null);for(const e of i[o(536)]())e.is(o(470),o(514))&&e[o(468)](o(471))&&(s[e[o(511)](o(471))]=t[o(544)](e,!0));return Object[o(498)](s)[o(520)]?s:null}(t,s[n(540)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(473)](e))n.is(o(470),o(486))&&i[o(499)](n);for(const e of i)t[o(483)](e)}(t,s[n(540)]),!l)return;const{selection:p}=o[n(508)],h=p[n(535)]()[n(491)];f&&!d||(f=L(t,s[n(540)]),f||=a[n(546)](t,h));const m=Array[n(487)](p[n(518)]())[n(475)](V),g=function(t,e,o){const s=n,r=Object[s(501)](null);for(const{item:n}of t[s(473)](e))if(n.is(s(470),s(492))){const e=n[s(511)](s(471));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(548)](s(471),r[e],n)}return r}(t,s[n(540)],t=>{const e=n;return!u||!!a[e(503)](t)&&!m[e(505)](t)});for(const[o,i]of Object[n(525)](l)){const s=g[o]||o;let r;if(n(488)!=typeof i)r=i,s!==o&&t[n(548)](n(471),s,r);else{r=t[n(541)](n(514),{footnoteId:s});const o=e[n(543)][n(494)][n(466)](i);let a;if(c)a=e[n(543)][n(509)](o,r);else{a=t[n(541)](n(476));const i=e[n(543)][n(509)](o,a);t[n(493)](i,a)}t[n(531)](a,r)}t[n(493)](r,f,n(542))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(473)](e))if(n.is(o(470),o(486)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(470),e(492))&&o[e(469)](n[e(511)](e(471)));return Array[e(487)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),B=o(298),z=o.n(B),W=o(207),H=o.n(W),J=o(825),U=o.n(J),q=o(264),G={attributes:{"data-cke":!0}};G.setAttributes=H(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=U();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",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||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function 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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=124]})(t,e)}function $(){var t=["1053786miwnCi","7MBKmJt","4258905BfxEqT","11169480gisxQV","isOfficialPlugin","1907418IJfvJC","isPremiumPlugin","pluginName","Footnotes","4069086wWkwbS","56971fUHjin","requires","2511996AmWIHG"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(542644===parseInt(e(135))/1+parseInt(e(125))/2+-parseInt(e(130))/3+-parseInt(e(124))/4+-parseInt(e(127))/5+parseInt(e(134))/6+-parseInt(e(126))/7*(-parseInt(e(128))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(132)](){return Y(133)}static get[Y(136)](){return[I,_,Q]}static get[Y(129)](){return!0}static get[Y(131)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=413]})(t,e)}function nt(){const t=["5821361DhtaaQ","128dxLlTc","decimal-leading-zero","57HviaAH","upper-roman","3741380VJkDGk","lower-latin","1438514ozIZSz","15604GbYJSF","3197330wCQZQh","upper-alpha","87150UVbDUK","decimal","74322kWQQkY","lower-roman","6VwaTYA","lower-alpha","upper-latin"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(435274===-parseInt(e(428))/1+parseInt(e(424))/2+-parseInt(e(420))/3*(-parseInt(e(425))/4)+-parseInt(e(422))/5*(-parseInt(e(414))/6)+-parseInt(e(417))/7+-parseInt(e(418))/8*(-parseInt(e(430))/9)+-parseInt(e(426))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(429),et(419),et(423),et(416),et(415),et(427),et(413),et(421)],st=at;function rt(){const t=["plugins","refresh","2Elsgrp","setAttribute","value","960krINHD","change","258WZIZYm","get","footnotesListStyle","isEnabled","27QiJYCt","143170URcHJq","model","7384JeMQap","267jIqgWN","171039nrmQrI","3071080FaEnLW","56756JdPKJN","includes","getFootnotesDefinitionsObjectElement","execute","getAttribute","974098cvOavQ","38225031eFlKcb","7357vofZDH","_updateFootnotesCounters"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=222]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(772925===parseInt(e(224))/1*(parseInt(e(245))/2)+-parseInt(e(237))/3*(parseInt(e(240))/4)+-parseInt(e(234))/5*(parseInt(e(229))/6)+-parseInt(e(247))/7*(parseInt(e(236))/8)+-parseInt(e(233))/9*(parseInt(e(239))/10)+parseInt(e(238))/11*(parseInt(e(227))/12)+parseInt(e(246))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(223)](){const t=st,{editor:e}=this,o=e[t(222)][t(230)](f)[t(242)]();this[t(232)]=!!o,this[t(226)]=o?.[t(244)](t(231))??null}[st(243)]({value:t}){const e=st,{editor:o}=this,n=o[e(222)][e(230)](f),i=n[e(242)]();i&&it[e(241)](t)&&o[e(235)][e(228)](o=>{const s=e;o[s(225)](s(231),t,i),n[s(248)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=315]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(353470===-parseInt(e(337))/1+-parseInt(e(324))/2+-parseInt(e(330))/3*(-parseInt(e(318))/4)+parseInt(e(331))/5*(-parseInt(e(335))/6)+parseInt(e(333))/7*(-parseInt(e(329))/8)+parseInt(e(320))/9+parseInt(e(316))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(323)](){const t=lt,{editor:e}=this,o=e[t(334)][t(319)](f)[t(332)]();this[t(325)]=!!o,this[t(317)]=o?.[t(326)](t(315))??null}[lt(321)]({value:t}){const e=lt,{editor:o}=this,n=o[e(334)][e(319)](f),i=n[e(332)]();i&&Number[e(322)](t)&&o[e(336)][e(338)](o=>{const s=e;o[s(328)](s(315),t,i),n[s(327)](o)})}}function dt(){const t=["footnotesListStart","18740470iPAcJn","value","164WvKPNK","get","1019799nVvTTq","execute","isInteger","refresh","909006oIdubG","isEnabled","getAttribute","_updateFootnotesCounters","setAttribute","136ppaKux","10497rPGxKu","5iwWssx","getFootnotesDefinitionsObjectElement","261191apHsEs","plugins","70302PEbaLI","model","676806zPJjKp","change"];return(dt=function(){return t})()}const pt=gt;function ht(){const t=["init","position","footnotes.footnotesProperties.defaultStartIndex","hasClass","toUpperCase","start","upcast","hasAttribute","footnotesListStyle","upper-alpha","isPremiumPlugin","_formatFootnoteListValue","mapper","attribute:footnotesListStyle:footnotesDefinitions","4866JZJHZF","getChanges","item","element:ol","removeAttribute","isOfficialPlugin","2579739fYjLVc","commands","differ","find","viewItem","lower-latin","schema","consumable","_getDefaultListStyle","for","_defineConverters","removeStyle","getAttribute","extend","74658nxXksC","model","_definePostfixer","footnotesStart","getChildren","type","setAttribute","pluginName","config","getItems","modelCursor","plugins","18328DJuATC","lower-alpha","upper-latin","parent","max","document","createRangeOn","checkAttribute","footnotesDefinitions","registerPostFixer","$text","_getDefaultStartIndex","toViewElement","decimal-leading-zero","isNaN","lower-roman","padStart","_defineFormatter","name","list-style-type","requires","upper-roman","footnotesStyle","setStyle","parseInt","1072998FbxrDf","5430tNRnQL","get","from","fromCharCode","_updateFootnotesCounters","floor","11258253JGaXvp","getStyle","8616RdAzBL","footnotes.footnotesProperties.defaultListStyle","FootnotesPropertiesEditing","consume","footnotes-list","attribute:footnotesListStart:footnotesDefinitions","add","writer","setFootnoteFormatter","nodeAfter","downcast","_defineSchema","footnotesListStart","element","1897IWmCdl","editor","insert","define","toLowerCase","decimal"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(477884===parseInt(e(202))/1+parseInt(e(239))/2+parseInt(e(188))/3+-parseInt(e(248))/4+-parseInt(e(240))/5*(-parseInt(e(182))/6)+parseInt(e(162))/7*(-parseInt(e(214))/8)+-parseInt(e(246))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(209)](){return pt(250)}static get[pt(234)](){return[I,f]}static get[pt(187)](){return!0}static get[pt(178)](){return!0}[pt(168)](){const t=pt,{editor:e}=this;e[t(210)][t(165)](t(249),t(167)),e[t(210)][t(165)](t(170),1),e[t(189)][t(254)](t(236),new ct(e)),e[t(189)][t(254)](t(205),new ft(e)),this[t(159)](),this[t(198)](),this[t(231)](),this[t(204)]()}[pt(159)](){const t=pt,{editor:e}=this,{schema:o}=e[t(203)];o[t(201)](t(222),{allowAttributes:[t(176),t(160)]})}[pt(198)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(197)](t(174))[t(254)](e=>{const o=t;e.on(o(185),(t,e,n)=>{const s=o,r=e[s(192)],a=e[s(212)]?.[s(217)];r[s(171)](s(252))&&a?.is(s(161),s(222))&&(function(t,e,o,n){const i=s;if(!n[i(221)](e,i(160)))return;let r=1;const a=o[i(195)][i(251)](t,{attributes:i(173)});if(a){const e=Number[i(238)](t[i(200)](i(173)),10);Number[i(228)](e)||(r=e)}!a&&e[i(175)](i(160))||o[i(255)][i(208)](i(160),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(221)](e,i(176)))return;let r=i(167),a=!1;if(o[i(195)][i(251)](t,{attributes:i(207)})){const e={1:i(167),a:i(215),A:i(177),i:i(229),I:i(235)}[t[i(200)](i(207))];e&&(r=e),a=!0}o[i(195)][i(251)](t,{styles:i(233)})&&(r=function(t){const e=i;switch(t){case e(215):return e(193);case e(177):return e(216);default:return t}}(t[i(247)](i(233))),a=!0),!a&&e[i(175)](i(176))||o[i(255)][i(208)](i(176),r,e)}(r,a,n,i))})}),o[t(197)](t(258))[t(254)](e=>{const o=t;e.on(o(253),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;null==r||1===r?n[i(255)][i(186)](i(173),s):n[i(255)][i(208)](i(173),String(r),s)}),e.on(o(181),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;r&&i(167)!==r?n[i(255)][i(237)](i(233),r,s):n[i(255)][i(199)](i(233),s)})})}[pt(204)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(213)][t(241)](f),i=this[t(196)](),s=this[t(225)]();o[t(219)][t(223)](e=>{const r=t,a=o[r(219)][r(190)][r(183)]();let c=!1;for(const t of a){if(r(164)!==t[r(207)]||r(224)===t[r(232)])continue;const n=o[r(220)](t[r(169)][r(257)]);for(const t of n[r(211)]())t.is(r(161),r(222))&&(!t[r(175)](r(160))&&o[r(194)][r(221)](t,r(160))&&(e[r(208)](r(160),s,t),c=!0),!t[r(175)](r(176))&&o[r(194)][r(221)](t,r(176))&&(e[r(208)](r(176),i,t),c=!0))}return c&&n[r(244)](e),c})}[pt(231)](){const t=pt,{editor:e}=this;e[t(213)][t(241)](f)[t(256)](e=>this[t(179)](e))}[pt(196)](){const t=pt;return this[t(163)][t(210)][t(241)](t(249))}[pt(225)](){const t=pt;return this[t(163)][t(210)][t(241)](t(170))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(200)](n(176)),s=t[n(200)](n(160)),r=Math[n(245)](e)+(s??1)-1;switch(i){case n(227):return function(t,e){const o=n;return String(t)[o(230)](e,"0")}(r,Math[n(218)](2,o));case n(215):case n(193):return yt(r,!1);case n(177):case n(216):return yt(r,!0);case n(229):return It(r,!1);case n(235):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=159]})(t,e)}function wt(t,e){const o=pt,n=e[o(226)](t);return Array[o(242)](n[o(206)]())[o(191)](t=>t.is(o(161),"ol")&&t[o(171)](o(252)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(243)](97+t)+n,i=Math[o(245)]((i-1)/26)}return e?n[o(172)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(166)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=U();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Pt;function Et(){var t=["4299DqwErp","isOfficialPlugin","isPremiumPlugin","13762LFXvoI","pluginName","2070306rPVBDI","1229625LureIh","requires","FootnotesProperties","1656dcYxwR","562210jrGLec","908upunxk","285675EDCtKO","93770sfFUNq"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=423]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(206087===-parseInt(e(426))/1+-parseInt(e(423))/2+parseInt(e(427))/3*(parseInt(e(424))/4)+parseInt(e(425))/5+-parseInt(e(432))/6+-parseInt(e(430))/7*(-parseInt(e(436))/8)+parseInt(e(433))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(431)](){return xt(435)}static get[xt(434)](){return[mt,Ft]}static get[xt(428)](){return!0}static get[xt(429)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=467]})(t,e)}function Tt(){var t=["486885HzqzZO","20sblgTa","5507370dmmmOH","630406ZcONcz","393281IEqJky","523728KRPpgH","2995664KrXmjc","2214420WpVsPa","184qcStoq"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(711493===parseInt(e(469))/1+-parseInt(e(468))/2+-parseInt(e(474))/3*(-parseInt(e(475))/4)+parseInt(e(467))/5+-parseInt(e(472))/6+parseInt(e(471))/7+parseInt(e(473))/8*(-parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();