@ckeditor/ckeditor5-footnotes 47.7.0 → 47.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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={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})();
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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},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:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=177]})(t,e)}function c(){const t=["4079IeNNfx","210776uNFVlc","insert","set","_model","rootName","remove","_getElementKey","slice","6CfDJxL","142NiMtyg","_trackedElements","getElementKey","$text","length","nodeAfter","type","get","elementName","flat","getItems","_elementName","from","add","97375ZkquOF","createRangeOn","delete","reset","getChanges","1304103XMHUHd","213458LECQZQ","root","values","position","name","element","2203752DmVCSE","clear","5862807orGFHe","attributes","push","has","$graveyard"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(306681===parseInt(e(218))/1*(parseInt(e(185))/2)+parseInt(e(204))/3+-parseInt(e(219))/4+parseInt(e(199))/5*(-parseInt(e(184))/6)+parseInt(e(205))/7+parseInt(e(211))/8+-parseInt(e(213))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(179)];[r(196)];[r(182)];[r(186)]=new Map;constructor(t,e){const o=r;this[o(179)]=t,this[o(196)]=e[o(193)],this[o(182)]=e[o(187)]}[r(202)](){const t=r;this[t(186)][t(212)]()}[r(203)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(177)===i[e(191)]&&e(188)!==i[e(209)]&&i[e(208)][e(190)]){const t=this[e(179)][e(200)](i[e(208)][e(190)]);for(const o of t[e(195)]()){if(!o.is(e(210),this[e(196)]))continue;const t=this[e(182)](o);n[e(216)](t)||n[e(178)](t,[]),n[e(192)](t)[e(215)](o)}}if(e(181)===i[e(191)]&&i[e(209)]===this[e(196)]){const t=this[e(182)]({getAttribute:t=>i[e(214)][e(192)](t)});o[e(198)](t)}}for(const[t,n]of this[e(186)])e(217)===n[e(206)][e(180)]&&o[e(198)](t);for(const t of o)this[e(186)][e(201)](t);for(const[t,o]of n)this[e(186)][e(178)](t,o[o[e(189)]-1]);const i=new Set;for(const[t,s]of n)o[e(216)](t)&&(i[e(198)](s[0]),s[e(189)]>1?n[e(178)](t,s[e(183)](1)):n[e(201)](t),o[e(201)](t));return{removed:Array[e(197)](o),inserted:Array[e(197)](n[e(207)]())[e(194)](),moved:Array[e(197)](i)}}}function f(t,e){const o=d();return(f=function(t,e){return o[t-=128]})(t,e)}const u=f;function d(){const t=["childCount","_handleMovedFootnoteReference","_handleFootnoteDefinitionsChanges","footnotes.multiBlock","model","indexOf","min","change:data","reference","compareWith","definition","5337LOpxdM","add","18740810nOnKQX","getAttribute","_updateFootnoteRefCounter","_updateFootnotesCounters","_handleFootnoteReferencesChanges","push","singleton","193958rybZRI","getChanges","isEqual","_footnotesDefinitions","reset","differ","high","after","getChildren","rootName","_handleFootnotesDefinitionsObjectSync","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteCounter","_footnotes","footnotesDefinitions","getFootnotesDefinitionsObjectElement","238olDNuq","_footnoteDefsTracker","4092540wiafWy","unshift","_handleInsertedFootnoteReference","11rkSsUq","8hcMpYk","end","init","pluginName","set","setAttribute","insert","footnoteDefinition","_sortFootnoteDefinitions","from","_ensureFootnotesReferencesHaveProperOrder","listenTo","576090NuXyKu","length","FootnotesTracker","createRangeOn","isPremiumPlugin","document","getRootNames","createPositionAt","28qvUKJQ","enqueueChange","find","setFootnoteFormatter","config","createPositionBefore","_handleRemoveFootnoteReferenceById","some","splice","get","move","17148756elngkc","getFootnote","parent","has","createRangeIn","footnoteInlineContent","findIndex","_footnoteRefsTracker","footnoteRef","remove","getFootnotes","registerPostFixer","77028TKrrlX","_footnoteDefsContainerTracker","before","$graveyard","append","paragraph","footnoteId","root","map","_handleFootnotesDefinitionsObjectChanges","editor","getFootnotesFormatter","isOfficialPlugin","low","_ensureFootnotesDefinitionsContainerExists","_footnoteFormatter","17576SERAKd"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(973563===-parseInt(e(174))/1*(parseInt(e(151))/2)+parseInt(e(170))/3+-parseInt(e(194))/4*(-parseInt(e(186))/5)+parseInt(e(217))/6*(parseInt(e(168))/7)+-parseInt(e(130))/8*(parseInt(e(142))/9)+parseInt(e(144))/10+parseInt(e(173))/11*(-parseInt(e(205))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(165)]=[];[u(154)]=null;[u(129)]=null;[u(218)];[u(212)];[u(169)];static get[u(177)](){return u(188)}static get[u(229)](){return!0}static get[u(190)](){return!0}constructor(t){const e=u;super(t),this[e(218)]=new l(this[e(227)][e(135)],{elementName:e(166),getElementKey:()=>e(150)}),this[e(212)]=new l(this[e(227)][e(135)],{elementName:e(213),getElementKey:t=>t[e(145)](e(223))}),this[e(169)]=new l(this[e(227)][e(135)],{elementName:e(181),getElementKey:t=>t[e(145)](e(223))})}[u(176)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(191)][t(216)](e=>{const n=t,i=o[n(191)][n(156)][n(152)]();let s=!1;return this[n(226)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(148)](e,i)&&(s=!0),this[n(184)](e)&&(s=!0),this[n(161)](e)&&(s=!0),this[n(182)](e)&&(s=!0),s}),this[t(185)](o[t(191)],t(138),()=>{const e=t;o[e(195)]({isUndoable:!1},t=>{this[e(128)](t)})},{priority:t(230)}),this[t(185)](n,t(178),()=>{const e=t;this[e(165)]=[],this[e(218)][e(155)](),this[e(212)][e(155)](),this[e(169)][e(155)]()},{priority:t(157)})}[u(167)](){return this[u(154)]}[u(206)](t){const e=u;return this[e(165)][e(196)](e=>e.id===t)||null}[u(215)](){const t=u;return Array[t(183)](this[t(165)])}[u(228)](){return this[u(129)]}[u(197)](t){this[u(129)]=t}[u(147)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(165)][o(187)];i++)this[o(146)](t,i)&&(n=!0);return n}[u(163)](t,e){const o=u,n=t[o(162)](o(166),{});return t[o(221)](n,e),this[o(154)]=n,n}[u(128)](t){const e=u;if(!this[e(165)][e(187)]||this[e(154)])return;const o=this[e(165)][0][e(139)][e(224)],n=this[e(163)](t,o);for(const o of this[e(165)])o[e(141)][e(207)]||t[e(180)](o[e(141)],n,e(175));this[e(147)](t)}[u(226)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(218)][o(152)](e);if(r[o(187)]&&(this[o(154)]=r[0]),i[o(187)])if(i[o(187)]>1||this[o(154)]&&i[o(201)](t=>t!==this[o(154)])){const e=t[o(162)](o(166),{}),s=[];this[o(154)]&&s[o(149)](this[o(154)]),s[o(149)](...i),t[o(180)](e,s[0],o(219));for(const n of s)t[o(204)](t[o(209)](n),t[o(193)](e,o(175))),t[o(214)](n);this[o(154)]=e,this[o(147)](t),n=!0}else this[o(154)]=i[0];if(s[o(187)]&&o(220)===this[o(154)]?.[o(224)][o(160)]){for(const e of this[o(165)])t[o(214)](e[o(139)]),n=!0;this[o(165)]=[],this[o(154)]=null}return n}[u(133)](t,e){const o=u;let n=!1;const i=this[o(227)][o(198)][o(203)](o(134)),{inserted:s,moved:r}=this[o(169)][o(152)](e);for(const e of[...r,...s]){const s=e[o(145)](o(223)),r=this[o(206)](s);r&&(r[o(141)]=e),p(t,i,e)&&(n=!0)}return n}[u(148)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(212)][o(152)](e);for(const e of i)this[o(200)](t,e)&&(n=!0);for(const e of s)this[o(172)](t,e)&&(n=!0);for(const e of r)this[o(132)](t,e)&&(n=!0);return n}[u(161)](t){const e=u;if(!this[e(154)])return!1;let o=!1;if(this[e(154)][e(131)]!==this[e(165)][e(187)]){const n=[];for(const t of this[e(154)][e(159)]()){const i=t[e(145)](e(223));this[e(206)](i)||(n[e(171)](t),o=!0)}for(const o of n)t[e(214)](o)}const n=new Set,i=[];for(const t of this[e(154)][e(159)]()){const s=t[e(145)](e(223));n[e(208)](s)?(i[e(171)](t),o=!0):n[e(143)](s)}for(const o of i)t[e(214)](o);return this[e(154)][e(131)]||(t[e(214)](this[e(154)]),this[e(154)]=null,o=!0),o}[u(172)](t,e){const o=u;if(this[o(165)][o(196)](t=>t[o(139)]===e))return!1;let n=!1;const i=e[o(145)](o(223)),s=this[o(165)][o(211)](t=>t.id===i);-1!==s&&(t[o(214)](this[o(165)][s][o(139)]),this[o(165)][o(202)](s,1),n=!0);let r=this[o(154)]?function(t,e){const n=o;for(const o of t[n(159)]())if(o[n(145)](n(223))===e)return o;return null}(this[o(154)],i):null;r||(r=t[o(162)](o(181),{footnoteId:i}),this[o(154)]&&(t[o(180)](r,this[o(154)],o(175)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(227)][o(135)],this[o(165)],e);this[o(165)][o(202)](c,0,a);let l=c;return-1!==s&&(l=Math[o(137)](c,s)),this[o(147)](t,l)&&(n=!0),n}[u(200)](t,e){const o=u,n=this[o(165)][o(211)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(165)][n];return o(220)!==s[o(141)][o(224)][o(160)]&&(t[o(214)](s[o(141)]),i=!0),this[o(165)][o(202)](n,1),this[o(147)](t,n)&&(i=!0),i}[u(132)](t,e){const o=u,n=e[o(145)](o(223)),i=this[o(165)][o(211)](t=>t.id===n),s=this[o(165)][i];let r=!1;s[o(139)]=e,this[o(165)][o(202)](i,1);const a=m(this[o(227)][o(135)],this[o(165)],e);return this[o(165)][o(202)](a,0,s),this[o(147)](t,Math[o(137)](i,a))&&(r=!0),r}[u(146)](t,e){const o=u;if(!this[o(154)])return!1;const n=this[o(165)][e];let i;return i=this[o(129)]?this[o(129)]({footnote:n,container:this[o(154)],digits:String(this[o(165)][o(187)])[o(187)],value:e+1}):String(e+1),n[o(139)][o(145)](o(164))!=i&&(t[o(179)](o(164),i,n[o(139)]),!0)}[u(182)](t){const e=u;if(!this[e(154)]||this[e(165)][e(187)]<2)return!1;if(function(t,o){const n=e;if(t[n(187)]!==o[n(187)])return!1;for(let e=0;e<t[n(187)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(165)][e(225)](t=>t.id),Array[e(183)](this[e(154)][e(159)]())[e(225)](t=>t[e(145)](e(223)))))return!1;let o=!1;for(let n=0;n<this[e(165)][e(187)];n++){const i=this[e(165)][n],s=t[e(199)](i[e(141)]),r=t[e(193)](this[e(154)],n);s[e(153)](r)||(t[e(204)](t[e(189)](i[e(141)]),r),o=!0)}return o}[u(184)](t){const e=u;if(!this[e(165)][e(187)])return!1;const{model:o}=this[e(227)];let n=!1;for(let i=0;i<this[e(165)][e(187)]-1;i++){const s=this[e(165)][i],r=this[e(165)][i+1],a=o[e(199)](s[e(139)]),c=o[e(199)](r[e(139)]);e(158)===a[e(140)](c)&&(this[e(132)](t,s[e(139)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(131)])return!1;const i=n(e?222:210);return t[n(180)](t[n(162)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(187)])return 0;const i=t[n(199)](o);for(let o=0;o<e[n(187)];o++){const s=e[o],r=t[n(199)](s[n(139)]);if(n(219)===i[n(140)](r))return o}const s=o[n(224)];let r=-1;for(let t=e[n(187)]-1;t>=0;t--)if(e[t][n(139)][n(224)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(191)][n(192)](),c=a[n(136)](s[n(160)]),l=a[c+1];if(l)for(let t=0;t<e[n(187)];t++)if(e[t][n(139)][n(224)][n(160)]===l)return t;return e[n(187)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=333]})(t,e)}const w=g;function y(){const t=["1614432KEwBVH","7KjcYTd","346941NLCdKf","FootnotesEditing","footnoteId","checkChild","footnoteRef","1040iHUhGK","_moveSelectionToFootnoteDefinition","2820975mgLCFQ","isBlock","get","insert-footnote-command-executed-with-invalid-id","608926TPxKnl","document","test","change","3250215IrUfoI","plugins","createElement","_getPositionToInsertFootnote","6515838MkfDNN","isEnabled","getFirstRange","end","393560ViVopy","editor","isObject","1fbyDnn","execute","getItems","string","refresh","length","model","selection","insertObject"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(728098===-parseInt(e(334))/1*(parseInt(e(356))/2)+-parseInt(e(352))/3+-parseInt(e(368))/4+-parseInt(e(360))/5+parseInt(e(364))/6*(-parseInt(e(344))/7)+-parseInt(e(343))/8+-parseInt(e(345))/9*(-parseInt(e(350))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(338)](){const t=w,e=this[t(369)][t(340)][t(357)][t(341)],o=this[t(363)](e);this[t(365)]=!!o}[w(335)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(357)],r=this[e(363)](s);if(!r)return;const a=o[e(361)][e(354)](e(346)),c=t?.[e(347)]??(0,i.uid)();!function(t){const o=e;return o(337)==typeof t&&t[o(339)]>0&&!/\s/[o(358)](t)&&!/^\d/[o(358)](t)}(c)?(0,i.logWarning)(e(355)):(n[e(359)](t=>{const o=e,i=t[o(362)](o(349),{footnoteId:c});n[o(342)](i,r,null)}),a[e(351)](c))}[w(363)](t){const e=w,{model:o}=this[e(369)],{schema:n}=o,i=t[e(366)]();for(const t of i[e(336)]())if(n[e(353)](t)||n[e(333)](t))return null;const s=i[e(367)];return n[e(348)](s,e(349))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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 f(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 u(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])],f(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])?u(f(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])+u(f(t)),n=d(u(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])+u(f(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:1776902400;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:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=333]})(t,e)}function A(){const t=["setAttribute","getFootnote","cloneElement","content","getData","createElement","document","hasAttribute","5620aLFsNO","append","selection","keys","from","push","editing","definition","config","element","getFirstRange","createRangeIn","application/ckeditor5-footnotes","outputTransformation","570iyyUSk","sourceEditorId","requires","insert","find","flatMap","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","footnoteInlineContent","stringify","contentInsertion","listenTo","footnoteId","add","footnoteRef","editor","get","662RltPls","getRanges","remove","2732515bpNXYL","FootnotesClipboard","toData","isPremiumPlugin","string","_handleCopyFootnotesDefinitions","create","getFootnotesDefinitionsObjectElement","drop","root","reduce","28437FZNiUn","footnoteDefinition","data","getFootnotes","entries","5805117iWOHLp","setData","length","toView","toModel","init","end","includes","getSelectedBlocks","pluginName","getAttribute","footnotes.multiBlock","parse","4603304hxiYqO","htmlProcessor","clipboardInput","getChildren","_defineClipboardIntegration","footnotesDefinitions","_handlePasteFootnotesDefinitions","change","method","16639OpQVlg","100wZWSDW","2251KuUQrM","28336QUibbV","dataTransfer"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(414704===parseInt(e(349))/1*(parseInt(e(391))/2)+parseInt(e(405))/3*(-parseInt(e(348))/4)+-parseInt(e(394))/5+-parseInt(e(374))/6*(-parseInt(e(347))/7)+-parseInt(e(338))/8+-parseInt(e(410))/9+parseInt(e(360))/10*(parseInt(e(350))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(334)](){return T(395)}static get[T(376)](){return[v,P.ClipboardPipeline]}static get[T(381)](){return!0}static get[T(397)](){return!0}[T(415)](){this[T(342)]()}[T(342)](){const t=T;this[t(399)](),this[t(344)]()}[T(399)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(390)](P.ClipboardPipeline),s=o[t(390)](h);this[t(385)](i,t(373),(o,i)=>{const r=t,a=N(n[r(371)](i[r(355)]));if(!a[r(412)])return;const c=s[r(408)](),l=a[r(404)]((t,o)=>{const n=r,i=c[n(378)](t=>t.id===o);if(i){const o=e[n(407)][n(413)](i[n(367)],{isClipboardPipeline:!0}),s=e[n(407)][n(339)][n(396)](o);t[i.id]=s}return t},Object[r(400)](null));i[r(351)][r(411)](r(372),JSON[r(383)](l))})}[T(344)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(366)],r=n[t(390)](P.ClipboardPipeline),a=n[t(390)](h),c=e[t(368)][t(390)](t(336));let l=null;this[t(385)](s[t(358)],t(340),(e,o)=>{const n=t,i=o[n(351)][n(356)](n(372));l=i?JSON[n(337)](i):null}),this[t(385)](r,t(384),(n,s)=>{const r=t,f=s[r(375)]===this[r(389)].id;f&&r(402)===s[r(346)]||o[r(345)](t=>{const n=r;let u=a[n(401)]();const d=!!u&&Array[n(364)](o[n(358)][n(362)][n(333)]())[n(417)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(369),e(388)))return!0;return!1}(o[n(371)](s[n(355)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(400)](null);for(const e of i[o(341)]())e.is(o(369),o(406))&&e[o(359)](o(386))&&(s[e[o(335)](o(386))]=t[o(354)](e,!0));return Object[o(363)](s)[o(412)]?s:null}(t,s[n(355)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(369),o(343))&&i[o(365)](n);for(const e of i)t[o(393)](e)}(t,s[n(355)]),!l)return;const{selection:h}=o[n(358)],p=h[n(370)]()[n(403)];u&&!d||(u=L(t,s[n(355)]),u||=a[n(380)](t,p));const m=Array[n(364)](h[n(392)]())[n(379)](N),g=function(t,e,o){const s=n,r=Object[s(400)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(369),s(388))){const e=n[s(335)](s(386));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(352)](s(386),r[e],n)}return r}(t,s[n(355)],t=>{const e=n;return!f||!!a[e(353)](t)&&!m[e(417)](t)});for(const[o,i]of Object[n(409)](l)){const s=g[o]||o;let r;if(n(398)!=typeof i)r=i,s!==o&&t[n(352)](n(386),s,r);else{r=t[n(357)](n(406),{footnoteId:s});const o=e[n(407)][n(339)][n(413)](i);let a;if(c)a=e[n(407)][n(414)](o,r);else{a=t[n(357)](n(382));const i=e[n(407)][n(414)](o,a);t[n(377)](i,a)}t[n(361)](a,r)}t[n(377)](r,u,n(416))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(369),o(343)))return n;return null}function N(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(369),e(388))&&o[e(387)](n[e(335)](e(386)));return Array[e(364)](o)}var V=o(311),O=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),U=o(298),B=o.n(U),H=o(207),q=o.n(H),W=o(825),z=o.n(W),Y=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=B().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=z();K()(Y.A,Q);Y.A&&Y.A.locals&&Y.A.locals;class Z 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,V.ButtonView)),e.add("menuBar:insertFootnote",X(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=263]})(t,e)}function $(){var t=["Footnotes","1479210efDXld","2dZLbXz","5FGlber","1984239iPhIpg","78883ryprYZ","961848xppOrN","requires","48uRimTn","75924UpmukD","75009rOPEHA","isOfficialPlugin","pluginName","2553770TmeyjH","isPremiumPlugin"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(128464===-parseInt(e(272))/1*(-parseInt(e(264))/2)+-parseInt(e(271))/3+parseInt(e(268))/4+-parseInt(e(265))/5*(-parseInt(e(263))/6)+parseInt(e(267))/7*(parseInt(e(270))/8)+-parseInt(e(266))/9+-parseInt(e(275))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(274)](){return G(277)}static get[G(269)](){return[v,_,Z]}static get[G(273)](){return!0}static get[G(276)](){return!0}}function et(){const t=["decimal","3288PAAPdY","upper-roman","lower-alpha","upper-alpha","lower-latin","1000590QxqSou","6051429YJTjRj","239183jaUNFI","8aEriyP","decimal-leading-zero","lower-roman","3314637twrumi","1169418tNxRNQ","3302648beblhH","11445HgEOYG","upper-latin"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=110]})(t,e)}const nt=ot;!function(t){const e=ot,o=t();for(;;)try{if(808650===-parseInt(e(118))/1+-parseInt(e(111))/2+parseInt(e(117))/3+parseInt(e(119))/4+-parseInt(e(120))/5*(-parseInt(e(123))/6)+parseInt(e(113))/7*(-parseInt(e(114))/8)+-parseInt(e(112))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[nt(122),nt(115),nt(110),nt(121),nt(125),nt(126),nt(116),nt(124)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=380]})(t,e)}function at(){const t=["23178903NGBVmi","isEnabled","value","refresh","2169870KqavAI","11440264YFKjgZ","change","includes","setAttribute","2963968ROGVGW","plugins","10yKBazV","model","getFootnotesDefinitionsObjectElement","execute","9SqAhQy","_updateFootnotesCounters","9012858hUQlLS","490290YZQKIW","8HxBxZK","5BIwNaI","getAttribute","27008BwRARb","get","footnotesListStyle"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(937990===parseInt(e(385))/1+-parseInt(e(381))/2+-parseInt(e(392))/3*(parseInt(e(382))/4)+-parseInt(e(383))/5*(-parseInt(e(380))/6)+parseInt(e(397))/7+-parseInt(e(393))/8*(parseInt(e(403))/9)+-parseInt(e(399))/10*(-parseInt(e(388))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(391)](){const t=st,{editor:e}=this,o=e[t(398)][t(386)](h)[t(401)]();this[t(389)]=!!o,this[t(390)]=o?.[t(384)](t(387))??null}[st(402)]({value:t}){const e=st,{editor:o}=this,n=o[e(398)][e(386)](h),i=n[e(401)]();i&&it[e(395)](t)&&o[e(400)][e(394)](o=>{const s=e;o[s(396)](s(387),t,i),n[s(404)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=334]})(t,e)}function ut(){const t=["40092YULwqf","execute","44JFFwVS","setAttribute","2094633uiBiNI","1093548ymdMql","_updateFootnotesCounters","1136710cqCJjZ","15512VTQZdx","getFootnotesDefinitionsObjectElement","1488DTUVTy","footnotesListStart","6lRUcxS","model","isInteger","89919XHiEjK","getAttribute","value","10344970LhMofx","change","get","isEnabled","plugins","refresh"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(311915===parseInt(e(342))/1*(-parseInt(e(339))/2)+-parseInt(e(351))/3*(-parseInt(e(353))/4)+parseInt(e(334))/5+-parseInt(e(356))/6+-parseInt(e(335))/7*(parseInt(e(337))/8)+-parseInt(e(355))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(350)](){const t=lt,{editor:e}=this,o=e[t(349)][t(347)](h)[t(336)]();this[t(348)]=!!o,this[t(344)]=o?.[t(343)](t(338))??null}[lt(352)]({value:t}){const e=lt,{editor:o}=this,n=o[e(349)][e(347)](h),i=n[e(336)]();i&&Number[e(341)](t)&&o[e(340)][e(346)](o=>{const s=e;o[s(354)](s(338),t,i),n[s(357)](o)})}}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(507627===parseInt(e(148))/1+parseInt(e(149))/2+parseInt(e(150))/3+parseInt(e(206))/4+-parseInt(e(198))/5*(parseInt(e(173))/6)+parseInt(e(217))/7*(-parseInt(e(163))/8)+-parseInt(e(214))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(vt);class pt extends t.Plugin{static get[ht(141)](){return ht(219)}static get[ht(174)](){return[v,h]}static get[ht(157)](){return!0}static get[ht(192)](){return!0}[ht(197)](){const t=ht,{editor:e}=this;e[t(179)][t(134)](t(227),t(218)),e[t(179)][t(134)](t(207),1),e[t(137)][t(215)](t(226),new ct(e)),e[t(137)][t(215)](t(175),new dt(e)),this[t(193)](),this[t(216)](),this[t(164)](),this[t(220)]()}[ht(193)](){const t=ht,{editor:e}=this,{schema:o}=e[t(201)];o[t(205)](t(184),{allowAttributes:[t(188),t(185)]})}[ht(216)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(176)](t(167))[t(215)](e=>{const o=t;e.on(o(165),(t,e,n)=>{const s=o,r=e[s(133)],a=e[s(181)]?.[s(139)];r[s(222)](s(131))&&a?.is(s(211),s(184))&&(function(t,e,o,n){const i=s;if(!n[i(183)](e,i(185)))return;let r=1;const a=o[i(152)][i(154)](t,{attributes:i(132)});if(a){const e=Number[i(136)](t[i(138)](i(132)),10);Number[i(221)](e)||(r=e)}!a&&e[i(208)](i(185))||o[i(162)][i(171)](i(185),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(183)](e,i(188)))return;let r=i(218),a=!1;if(o[i(152)][i(154)](t,{attributes:i(153)})){const e={1:i(218),a:i(151),A:i(195),i:i(172),I:i(143)}[t[i(138)](i(153))];e&&(r=e),a=!0}o[i(152)][i(154)](t,{styles:i(212)})&&(r=function(t){const e=i;switch(t){case e(151):return e(159);case e(195):return e(223);default:return t}}(t[i(180)](i(212))),a=!0),!a&&e[i(208)](i(188))||o[i(162)][i(171)](i(188),r,e)}(r,a,n,i))})}),o[t(176)](t(202))[t(215)](e=>{const o=t;e.on(o(200),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;null==r||1===r?n[i(162)][i(194)](i(132),s):n[i(162)][i(171)](i(132),String(r),s)}),e.on(o(177),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;r&&i(218)!==r?n[i(162)][i(146)](i(212),r,s):n[i(162)][i(187)](i(212),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(161)][t(204)](h),i=this[t(199)](),s=this[t(178)]();o[t(147)][t(140)](e=>{const r=t,a=o[r(147)][r(213)][r(156)]();let c=!1;for(const t of a){if(r(191)!==t[r(153)]||r(130)===t[r(186)])continue;const n=o[r(158)](t[r(142)][r(170)]);for(const t of n[r(189)]())t.is(r(211),r(184))&&(!t[r(208)](r(185))&&o[r(155)][r(183)](t,r(185))&&(e[r(171)](r(185),s,t),c=!0),!t[r(208)](r(188))&&o[r(155)][r(183)](t,r(188))&&(e[r(171)](r(188),i,t),c=!0))}return c&&n[r(144)](e),c})}[ht(164)](){const t=ht,{editor:e}=this;e[t(161)][t(204)](h)[t(190)](e=>this[t(182)](e))}[ht(199)](){const t=ht;return this[t(224)][t(179)][t(204)](t(227))}[ht(178)](){const t=ht;return this[t(224)][t(179)][t(204)](t(207))}[ht(182)]({container:t,value:e,digits:o}){const n=ht,i=t[n(138)](n(188)),s=t[n(138)](n(185)),r=Math[n(166)](e)+(s??1)-1;switch(i){case n(160):return function(t,e){const o=n;return String(t)[o(209)](e,"0")}(r,Math[n(203)](2,o));case n(151):case n(159):return gt(r,!1);case n(195):case n(223):return gt(r,!0);case n(172):return bt(r,!1);case n(143):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=ht,n=e[o(225)](t);return Array[o(229)](n[o(210)]())[o(168)](t=>t.is(o(211),"ol")&&t[o(222)](o(131)))}function gt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(228)](97+t)+n,i=Math[o(166)]((i-1)/26)}return e?n[o(145)]():n}function wt(t,e){const o=vt();return(wt=function(t,e){return o[t-=130]})(t,e)}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=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(169)]()}function vt(){const t=["isPremiumPlugin","_defineSchema","removeAttribute","upper-alpha","mapper","init","5hcKKVW","_getDefaultListStyle","attribute:footnotesListStart:footnotesDefinitions","model","downcast","max","get","extend","3241288uzUEhi","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","padStart","getChildren","element","list-style-type","differ","12220848HlhPpF","add","_defineConverters","49YpOotE","decimal","FootnotesPropertiesEditing","_definePostfixer","isNaN","hasClass","upper-latin","editor","toViewElement","footnotesStyle","footnotes.footnotesProperties.defaultListStyle","fromCharCode","from","$text","footnotes-list","start","viewItem","define","item","parseInt","commands","getAttribute","parent","registerPostFixer","pluginName","position","upper-roman","_updateFootnotesCounters","toUpperCase","setStyle","document","90711qLnxot","1743030KLOAmD","2291085DqcfVJ","lower-alpha","consumable","type","consume","schema","getChanges","isOfficialPlugin","createRangeOn","lower-latin","decimal-leading-zero","plugins","writer","729488fdYysR","_defineFormatter","element:ol","floor","upcast","find","toLowerCase","nodeAfter","setAttribute","lower-roman","194652ozSUCk","requires","footnotesStart","for","attribute:footnotesListStyle:footnotesDefinitions","_getDefaultStartIndex","config","getStyle","modelCursor","_formatFootnoteListValue","checkAttribute","footnotesDefinitions","footnotesListStart","name","removeStyle","footnotesListStyle","getItems","setFootnoteFormatter","insert"];return(vt=function(){return t})()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=B().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=z();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[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=270]})(t,e)}function St(){var t=["5960qRULmV","isPremiumPlugin","253880btZeLN","952035ujKZgH","573201jSifEL","138zMqLKd","171RUYMHo","12scNyRy","1870275VQmfTy","5862zltmYT","2bQqmbh","isOfficialPlugin","pluginName","2993280MRrvDO","1710mnCGtx","requires","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(379612===parseInt(e(279))/1*(parseInt(e(285))/2)+-parseInt(e(280))/3*(-parseInt(e(275))/4)+parseInt(e(272))/5*(parseInt(e(284))/6)+parseInt(e(278))/7+-parseInt(e(277))/8*(parseInt(e(281))/9)+-parseInt(e(271))/10+parseInt(e(283))/11*(parseInt(e(282))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(270)](){return xt(274)}static get[xt(273)](){return[pt,Ft]}static get[xt(286)](){return!0}static get[xt(276)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=346]})(t,e)}function Dt(){var t=["9794568SckUfB","9098313JWhmNX","1164885JnUZiw","9tgfaaw","1468559fajgwU","2LUkYND","1349044FXfYxS","32994135BxKOdU","528684dBMiUN"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(830022===-parseInt(e(348))/1*(parseInt(e(349))/2)+-parseInt(e(347))/3*(-parseInt(e(350))/4)+parseInt(e(346))/5+-parseInt(e(352))/6+-parseInt(e(354))/7+-parseInt(e(353))/8+parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();