@ckeditor/ckeditor5-footnotes 47.7.2-alpha.0 → 47.7.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},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:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["root","reset","getItems","nodeAfter","createRangeOn","has","44WtIqrA","_getElementKey","name","218gnrlHV","5779dSIlik","_elementName","$graveyard","type","12215256hGKLDV","7Cukbbn","position","flat","clear","elementName","1843770UtkrvX","attributes","set","6354378muhHVo","slice","rootName","remove","values","element","_model","779283JXEWHK","4493769XyOZrQ","get","delete","length","insert","getElementKey","from","add","getChanges","3118230nPpEqp","_trackedElements","push","12CaKSjI","$text"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(780151===-parseInt(e(146))/1*(parseInt(e(145))/2)+-parseInt(e(167))/3+-parseInt(e(134))/4*(-parseInt(e(156))/5)+-parseInt(e(159))/6+parseInt(e(151))/7*(parseInt(e(150))/8)+parseInt(e(166))/9+parseInt(e(131))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(165)];[r(147)];[r(143)];[r(132)]=new Map;constructor(t,e){const o=r;this[o(165)]=t,this[o(147)]=e[o(155)],this[o(143)]=e[o(127)]}[r(137)](){const t=r;this[t(132)][t(154)]()}[r(130)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(171)===i[e(149)]&&e(135)!==i[e(144)]&&i[e(152)][e(139)]){const t=this[e(165)][e(140)](i[e(152)][e(139)]);for(const o of t[e(138)]()){if(!o.is(e(164),this[e(147)]))continue;const t=this[e(143)](o);n[e(141)](t)||n[e(158)](t,[]),n[e(168)](t)[e(133)](o)}}if(e(162)===i[e(149)]&&i[e(144)]===this[e(147)]){const t=this[e(143)]({getAttribute:t=>i[e(157)][e(168)](t)});o[e(129)](t)}}for(const[t,n]of this[e(132)])e(148)===n[e(136)][e(161)]&&o[e(129)](t);for(const t of o)this[e(132)][e(169)](t);for(const[t,o]of n)this[e(132)][e(158)](t,o[o[e(170)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(129)](s[0]),s[e(170)]>1?n[e(158)](t,s[e(160)](1)):n[e(169)](t),o[e(169)](t));return{removed:Array[e(128)](o),inserted:Array[e(128)](n[e(163)]())[e(153)](),moved:Array[e(128)](i)}}}function f(){const t=["listenTo","isPremiumPlugin","pluginName","createPositionAt","append","getFootnotesFormatter","_updateFootnotesCounters","7299CYCnSk","getFootnotes","_footnoteFormatter","10292440ACVwTd","editor","_handleFootnotesDefinitionsObjectChanges","move","min","_footnotes","_insertEmptyFootnotesDefinitionsContainer","138zWDYyW","_handleFootnotesDefinitionsObjectSync","footnoteDefinition","setFootnoteFormatter","enqueueChange","_handleFootnoteReferencesChanges","find","indexOf","paragraph","footnoteRef","add","getRootNames","_footnoteDefsTracker","_footnoteDefsContainerTracker","low","387506fChEUB","findIndex","FootnotesTracker","footnoteId","reset","root","footnotes.multiBlock","registerPostFixer","length","singleton","23668623HRDUVQ","reference","set","6820450XCDnom","rootName","_handleInsertedFootnoteReference","definition","insert","unshift","push","27884mrdVDO","_sortFootnoteDefinitions","_handleFootnoteDefinitionsChanges","from","getChanges","document","_handleMovedFootnoteReference","createElement","_updateFootnoteRefCounter","footnoteInlineContent","splice","model","getFootnotesDefinitionsObjectElement","some","parent","$graveyard","compareWith","createRangeIn","high","footnotesDefinitions","config","createPositionBefore","map","footnoteCounter","_ensureFootnotesReferencesHaveProperOrder","differ","959006WCRMit","init","has","end","get","_footnotesDefinitions","childCount","isOfficialPlugin","12360mBdxRh","getChildren","_ensureFootnotesDefinitionsContainerExists","_handleRemoveFootnoteReferenceById","setAttribute","getFootnote","getAttribute","change:data","before","_footnoteRefsTracker","after","remove","2bcVEjx","363CFvkFx","createRangeOn","isEqual"];return(f=function(){return t})()}const u=p;!function(t){const e=p,o=t();for(;;)try{if(824897===-parseInt(e(220))/1*(-parseInt(e(302))/2)+-parseInt(e(221))/3*(parseInt(e(276))/4)+parseInt(e(269))/5+parseInt(e(241))/6*(parseInt(e(256))/7)+parseInt(e(310))/8*(parseInt(e(231))/9)+-parseInt(e(234))/10+-parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(239)]=[];[u(307)]=null;[u(233)]=null;[u(254)];[u(217)];[u(253)];static get[u(226)](){return u(258)}static get[u(309)](){return!0}static get[u(225)](){return!0}constructor(t){const e=u;super(t),this[e(254)]=new l(this[e(235)][e(287)],{elementName:e(295),getElementKey:()=>e(265)}),this[e(217)]=new l(this[e(235)][e(287)],{elementName:e(250),getElementKey:t=>t[e(316)](e(259))}),this[e(253)]=new l(this[e(235)][e(287)],{elementName:e(243),getElementKey:t=>t[e(316)](e(259))})}[u(303)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(281)][t(263)](e=>{const n=t,i=o[n(281)][n(301)][n(280)]();let s=!1;return this[n(236)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(246)](e,i)&&(s=!0),this[n(300)](e)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(277)](e)&&(s=!0),s}),this[t(224)](o[t(281)],t(317),()=>{const e=t;o[e(245)]({isUndoable:!1},t=>{this[e(312)](t)})},{priority:t(255)}),this[t(224)](n,t(268),()=>{const e=t;this[e(239)]=[],this[e(254)][e(260)](),this[e(217)][e(260)](),this[e(253)][e(260)]()},{priority:t(294)})}[u(288)](){return this[u(307)]}[u(315)](t){const e=u;return this[e(239)][e(247)](e=>e.id===t)||null}[u(232)](){const t=u;return Array[t(279)](this[t(239)])}[u(229)](){return this[u(233)]}[u(244)](t){this[u(233)]=t}[u(230)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(239)][o(264)];i++)this[o(284)](t,i)&&(n=!0);return n}[u(240)](t,e){const o=u,n=t[o(283)](o(295),{});return t[o(228)](n,e),this[o(307)]=n,n}[u(312)](t){const e=u;if(!this[e(239)][e(264)]||this[e(307)])return;const o=this[e(239)][0][e(267)][e(261)],n=this[e(240)](t,o);for(const o of this[e(239)])o[e(272)][e(290)]||t[e(273)](o[e(272)],n,e(305));this[e(230)](t)}[u(236)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(254)][o(280)](e);if(r[o(264)]&&(this[o(307)]=r[0]),i[o(264)])if(i[o(264)]>1||this[o(307)]&&i[o(289)](t=>t!==this[o(307)])){const e=t[o(283)](o(295),{}),s=[];this[o(307)]&&s[o(275)](this[o(307)]),s[o(275)](...i),t[o(273)](e,s[0],o(216));for(const n of s)t[o(237)](t[o(293)](n),t[o(227)](e,o(305))),t[o(219)](n);this[o(307)]=e,this[o(230)](t),n=!0}else this[o(307)]=i[0];if(s[o(264)]&&o(291)===this[o(307)]?.[o(261)][o(270)]){for(const e of this[o(239)])t[o(219)](e[o(267)]),n=!0;this[o(239)]=[],this[o(307)]=null}return n}[u(278)](t,e){const o=u;let n=!1;const i=this[o(235)][o(296)][o(306)](o(262)),{inserted:s,moved:r}=this[o(253)][o(280)](e);for(const e of[...r,...s]){const s=e[o(316)](o(259)),r=this[o(315)](s);r&&(r[o(272)]=e),h(t,i,e)&&(n=!0)}return n}[u(246)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(217)][o(280)](e);for(const e of i)this[o(313)](t,e)&&(n=!0);for(const e of s)this[o(271)](t,e)&&(n=!0);for(const e of r)this[o(282)](t,e)&&(n=!0);return n}[u(242)](t){const e=u;if(!this[e(307)])return!1;let o=!1;if(this[e(307)][e(308)]!==this[e(239)][e(264)]){const n=[];for(const t of this[e(307)][e(311)]()){const i=t[e(316)](e(259));this[e(315)](i)||(n[e(274)](t),o=!0)}for(const o of n)t[e(219)](o)}const n=new Set,i=[];for(const t of this[e(307)][e(311)]()){const s=t[e(316)](e(259));n[e(304)](s)?(i[e(274)](t),o=!0):n[e(251)](s)}for(const o of i)t[e(219)](o);return this[e(307)][e(308)]||(t[e(219)](this[e(307)]),this[e(307)]=null,o=!0),o}[u(271)](t,e){const o=u;if(this[o(239)][o(247)](t=>t[o(267)]===e))return!1;let n=!1;const i=e[o(316)](o(259)),s=this[o(239)][o(257)](t=>t.id===i);-1!==s&&(t[o(219)](this[o(239)][s][o(267)]),this[o(239)][o(286)](s,1),n=!0);let r=this[o(307)]?function(t,e){const n=o;for(const o of t[n(311)]())if(o[n(316)](n(259))===e)return o;return null}(this[o(307)],i):null;r||(r=t[o(283)](o(243),{footnoteId:i}),this[o(307)]&&(t[o(273)](r,this[o(307)],o(305)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(235)][o(287)],this[o(239)],e);this[o(239)][o(286)](c,0,a);let l=c;return-1!==s&&(l=Math[o(238)](c,s)),this[o(230)](t,l)&&(n=!0),n}[u(313)](t,e){const o=u,n=this[o(239)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(239)][n];return o(291)!==s[o(272)][o(261)][o(270)]&&(t[o(219)](s[o(272)]),i=!0),this[o(239)][o(286)](n,1),this[o(230)](t,n)&&(i=!0),i}[u(282)](t,e){const o=u,n=e[o(316)](o(259)),i=this[o(239)][o(257)](t=>t.id===n),s=this[o(239)][i];let r=!1;s[o(267)]=e,this[o(239)][o(286)](i,1);const a=m(this[o(235)][o(287)],this[o(239)],e);return this[o(239)][o(286)](a,0,s),this[o(230)](t,Math[o(238)](i,a))&&(r=!0),r}[u(284)](t,e){const o=u;if(!this[o(307)])return!1;const n=this[o(239)][e];let i;return i=this[o(233)]?this[o(233)]({footnote:n,container:this[o(307)],digits:String(this[o(239)][o(264)])[o(264)],value:e+1}):String(e+1),n[o(267)][o(316)](o(299))!=i&&(t[o(314)](o(299),i,n[o(267)]),!0)}[u(277)](t){const e=u;if(!this[e(307)]||this[e(239)][e(264)]<2)return!1;if(function(t,o){const n=e;if(t[n(264)]!==o[n(264)])return!1;for(let e=0;e<t[n(264)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(239)][e(298)](t=>t.id),Array[e(279)](this[e(307)][e(311)]())[e(298)](t=>t[e(316)](e(259)))))return!1;let o=!1;for(let n=0;n<this[e(239)][e(264)];n++){const i=this[e(239)][n],s=t[e(297)](i[e(272)]),r=t[e(227)](this[e(307)],n);s[e(223)](r)||(t[e(237)](t[e(222)](i[e(272)]),r),o=!0)}return o}[u(300)](t){const e=u;if(!this[e(239)][e(264)])return!1;const{model:o}=this[e(235)];let n=!1;for(let i=0;i<this[e(239)][e(264)]-1;i++){const s=this[e(239)][i],r=this[e(239)][i+1],a=o[e(297)](s[e(267)]),c=o[e(297)](r[e(267)]);e(218)===a[e(292)](c)&&(this[e(282)](t,s[e(267)]),i=-1,n=!0)}return n}}function p(t,e){const o=f();return(p=function(t,e){return o[t-=216]})(t,e)}function h(t,e,o){const n=u;if(o[n(308)])return!1;const i=n(e?249:285);return t[n(273)](t[n(283)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(264)])return 0;const i=t[n(297)](o);for(let o=0;o<e[n(264)];o++){const s=e[o],r=t[n(297)](s[n(267)]);if(n(216)===i[n(292)](r))return o}const s=o[n(261)];let r=-1;for(let t=e[n(264)]-1;t>=0;t--)if(e[t][n(267)][n(261)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(281)][n(252)](),c=a[n(248)](s[n(270)]),l=a[c+1];if(l)for(let t=0;t<e[n(264)];t++)if(e[t][n(267)][n(261)][n(270)]===l)return t;return e[n(264)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=147]})(t,e)}function y(){const t=["9WmBNlH","change","429664gwfXhG","insertObject","length","getFirstRange","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","refresh","196wusgBB","editor","createElement","isObject","40wHRAJC","model","87732gvNtvD","FootnotesEditing","1680841ucXfaH","getItems","footnoteRef","test","6824anuZhr","6772104pxFvfi","execute","footnoteId","12786653OcuFxg","insert-footnote-command-executed-with-invalid-id","document","3880EkiOYf","end","checkChild","selection","get","isBlock","string","214252bSzZyk","isEnabled","plugins"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(938729===-parseInt(e(160))/1+-parseInt(e(178))/2*(parseInt(e(181))/3)+parseInt(e(164))/4*(-parseInt(e(171))/5)+parseInt(e(165))/6+-parseInt(e(152))/7*(parseInt(e(183))/8)+-parseInt(e(158))/9+-parseInt(e(156))/10*(-parseInt(e(168))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(151)](){const t=g,e=this[t(153)][t(157)][t(170)][t(174)],o=this[t(150)](e);this[t(179)]=!!o}[g(166)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(170)],r=this[e(150)](s);if(!r)return;const a=o[e(180)][e(175)](e(159)),c=t?.[e(167)]??(0,i.uid)();!function(t){const o=e;return o(177)==typeof t&&t[o(147)]>0&&!/\s/[o(163)](t)&&!/^\d/[o(163)](t)}(c)?(0,i.logWarning)(e(169)):(n[e(182)](t=>{const o=e,i=t[o(154)](o(162),{footnoteId:c});n[o(184)](i,r,null)}),a[e(149)](c))}[g(150)](t){const e=g,{model:o}=this[e(153)],{schema:n}=o,i=t[e(148)]();for(const t of i[e(161)]())if(n[e(176)](t)||n[e(155)](t))return null;const s=i[e(172)];return n[e(173)](s,e(162))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(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 u(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])],f(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])?u(f(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])+u(f(t)),n=d(u(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])+u(f(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:1778803200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 A=o(331);const P=T;function D(){const t=["selection","getAttribute","element","toData","1276101cDFzrY","string","createElement","hasAttribute","getData","sourceEditorId","reduce","toModel","1863060WXUGof","init","content","getFirstRange","toView","getFootnotesDefinitionsObjectElement","22zQArtQ","length","footnotesDefinitions","document","includes","_defineClipboardIntegration","getFootnote","end","getRanges","find","_handlePasteFootnotesDefinitions","htmlProcessor","root","9peHTpZ","_handleCopyFootnotesDefinitions","pluginName","keys","dataTransfer","getChildren","createRangeIn","getSelectedBlocks","listenTo","isPremiumPlugin","stringify","requires","flatMap","footnoteId","application/ckeditor5-footnotes","drop","241832rsrTqP","103744QFNTTL","41184KFLInw","contentInsertion","setAttribute","cloneElement","method","append","change","footnoteRef","definition","226500IOoCAM","editing","14FYdGPg","insert","create","remove","push","outputTransformation","FootnotesClipboard","footnoteDefinition","footnoteInlineContent","entries","footnotes.multiBlock","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","parse","data","editor","50Vsetez","config","getFootnotes","add","from","setData","clipboardInput","get","148994cYaEHA"];return(D=function(){return t})()}function T(t,e){const o=D();return(T=function(t,e){return o[t-=232]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(230219===parseInt(e(259))/1+parseInt(e(309))/2+parseInt(e(291))/3*(parseInt(e(307))/4)+parseInt(e(251))/5*(-parseInt(e(233))/6)+-parseInt(e(235))/7*(-parseInt(e(308))/8)+-parseInt(e(264))/9+parseInt(e(272))/10*(parseInt(e(278))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[P(293)](){return P(241)}static get[P(302)](){return[v,A.ClipboardPipeline]}static get[P(246)](){return!0}static get[P(300)](){return!0}[P(273)](){this[P(283)]()}[P(283)](){const t=P;this[t(292)](),this[t(288)]()}[P(292)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(258)](A.ClipboardPipeline),s=o[t(258)](d);this[t(299)](i,t(240),(o,i)=>{const r=t,a=V(n[r(297)](i[r(274)]));if(!a[r(279)])return;const c=s[r(253)](),l=a[r(270)]((t,o)=>{const n=r,i=c[n(287)](t=>t.id===o);if(i){const o=e[n(249)][n(276)](i[n(232)],{isClipboardPipeline:!0}),s=e[n(249)][n(289)][n(263)](o);t[i.id]=s}return t},Object[r(237)](null));i[r(295)][r(256)](r(305),JSON[r(301)](l))})}[P(288)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(234)],r=n[t(258)](A.ClipboardPipeline),a=n[t(258)](d),c=e[t(252)][t(258)](t(245));let l=null;this[t(299)](s[t(281)],t(257),(e,o)=>{const n=t,i=o[n(295)][n(268)](n(305));l=i?JSON[n(248)](i):null}),this[t(299)](r,t(310),(n,s)=>{const r=t,f=s[r(269)]===this[r(250)].id;f&&r(306)===s[r(313)]||o[r(315)](t=>{const n=r;let u=a[n(277)]();const d=!!u&&Array[n(255)](o[n(281)][n(260)][n(298)]())[n(282)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(262),e(316)))return!0;return!1}(o[n(297)](s[n(274)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(237)](null);for(const e of i[o(296)]())e.is(o(262),o(242))&&e[o(267)](o(304))&&(s[e[o(261)](o(304))]=t[o(312)](e,!0));return Object[o(294)](s)[o(279)]?s:null}(t,s[n(274)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(297)](e))n.is(o(262),o(280))&&i[o(239)](n);for(const e of i)t[o(238)](e)}(t,s[n(274)]),!l)return;const{selection:p}=o[n(281)],h=p[n(275)]()[n(290)];u&&!d||(u=L(t,s[n(274)]),u||=a[n(247)](t,h));const m=Array[n(255)](p[n(286)]())[n(303)](V),g=function(t,e,o){const s=n,r=Object[s(237)](null);for(const{item:n}of t[s(297)](e))if(n.is(s(262),s(316))){const e=n[s(261)](s(304));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(304),r[e],n)}return r}(t,s[n(274)],t=>{const e=n;return!f||!!a[e(284)](t)&&!m[e(282)](t)});for(const[o,i]of Object[n(244)](l)){const s=g[o]||o;let r;if(n(265)!=typeof i)r=i,s!==o&&t[n(311)](n(304),s,r);else{r=t[n(266)](n(242),{footnoteId:s});const o=e[n(249)][n(289)][n(276)](i);let a;if(c)a=e[n(249)][n(271)](o,r);else{a=t[n(266)](n(243));const i=e[n(249)][n(271)](o,a);t[n(236)](i,a)}t[n(314)](a,r)}t[n(236)](r,u,n(285))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(297)](e))if(n.is(o(262),o(280)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(262),e(316))&&o[e(254)](n[e(261)](e(304)));return Array[e(255)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),B=o(298),z=o.n(B),W=o(207),H=o.n(W),U=o(825),q=o.n(U),X=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=H(),Q.insert=z().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=q();K()(X.A,Q);X.A&&X.A.locals&&X.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(t,e){var o=Y();return($=function(t,e){return o[t-=195]})(t,e)}var G=$;function Y(){var t=["138675hXRuzW","isOfficialPlugin","378202caFnio","1002400TJXzyN","Footnotes","1584456GkmPhn","430332QQNxTB","4EqoCkL","pluginName","2658672QxLocw","886863CRJZoD","isPremiumPlugin","1SdEvzQ","requires"];return(Y=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(160128===parseInt(e(207))/1*(-parseInt(e(197))/2)+parseInt(e(205))/3*(parseInt(e(202))/4)+parseInt(e(195))/5+parseInt(e(201))/6+-parseInt(e(198))/7+-parseInt(e(200))/8+parseInt(e(204))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[G(203)](){return G(199)}static get[G(208)](){return[v,_,J]}static get[G(196)](){return!0}static get[G(206)](){return!0}}const et=ot;function ot(t,e){const o=it();return(ot=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(814394===-parseInt(e(492))/1*(parseInt(e(491))/2)+parseInt(e(480))/3*(parseInt(e(493))/4)+parseInt(e(479))/5*(parseInt(e(494))/6)+-parseInt(e(482))/7+parseInt(e(481))/8+parseInt(e(489))/9+parseInt(e(483))/10*(-parseInt(e(487))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[et(488),et(485),et(484),et(476),et(478),et(486),et(477),et(490)];function it(){const t=["10zxxSHB","78801lvPkfk","10442136aODOKQ","10111626gMShBb","490HZspuB","lower-latin","decimal-leading-zero","upper-alpha","108922iSwjEQ","decimal","5274720FClEiZ","upper-roman","2672354WMMxhM","1kyxSza","120BguepK","4202790NRAPrE","upper-latin","lower-roman","lower-alpha"];return(it=function(){return t})()}const st=at;function rt(){const t=["get","11bWJdfc","99pibLOx","410416JFHnft","40555464ziRslC","6bDScMM","260Ylpubc","setAttribute","change","model","5CMmVUd","value","7407160OMSjZE","refresh","getAttribute","7563262CqKMUK","getFootnotesDefinitionsObjectElement","26142PbxdSn","plugins","5110470oHQzML","execute","includes","isEnabled","_updateFootnotesCounters","footnotesListStyle","813238KbLJSl"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(947585===-parseInt(e(204))/1+parseInt(e(185))/2*(parseInt(e(196))/3)+-parseInt(e(191))/4*(-parseInt(e(189))/5)+parseInt(e(184))/6*(parseInt(e(194))/7)+parseInt(e(208))/8*(parseInt(e(207))/9)+parseInt(e(198))/10*(parseInt(e(206))/11)+-parseInt(e(209))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(192)](){const t=st,{editor:e}=this,o=e[t(197)][t(205)](d)[t(195)]();this[t(201)]=!!o,this[t(190)]=o?.[t(193)](t(203))??null}[st(199)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(205)](d),i=n[e(195)]();i&&nt[e(200)](t)&&o[e(188)][e(187)](o=>{const s=e;o[s(186)](s(203),t,i),n[s(202)](o)})}}const lt=ut;function ft(){const t=["getFootnotesDefinitionsObjectElement","isEnabled","get","12221816vgyLXX","isInteger","model","1xlpNCq","getAttribute","_updateFootnotesCounters","plugins","32041207yaieZE","setAttribute","412adAukW","value","5331805FJcVzo","change","footnotesListStart","1383302DMfwcj","refresh","357txvcTX","22839IFsphH","2441790Duqyka","execute","10uoJpvO","73428UEBQxy"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=186]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(764065===-parseInt(e(194))/1*(parseInt(e(205))/2)+parseInt(e(208))/3*(parseInt(e(200))/4)+-parseInt(e(202))/5+parseInt(e(187))/6*(parseInt(e(207))/7)+-parseInt(e(191))/8+-parseInt(e(209))/9+-parseInt(e(186))/10*(-parseInt(e(198))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(206)](){const t=lt,{editor:e}=this,o=e[t(197)][t(190)](d)[t(188)]();this[t(189)]=!!o,this[t(201)]=o?.[t(195)](t(204))??null}[lt(210)]({value:t}){const e=lt,{editor:o}=this,n=o[e(197)][e(190)](d),i=n[e(188)]();i&&Number[e(192)](t)&&o[e(193)][e(203)](o=>{const s=e;o[s(199)](s(204),t,i),n[s(196)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=466]})(t,e)}function mt(){const t=["1214fXWoCp","decimal","setFootnoteFormatter","mapper","removeAttribute","from","lower-roman","2590917qgNtkE","getStyle","footnotesDefinitions","start","_defineConverters","_formatFootnoteListValue","isOfficialPlugin","parent","type","toLowerCase","padStart","checkAttribute","element","setAttribute","1702356gQsZqy","footnotes.footnotesProperties.defaultStartIndex","8QKGzOm","requires","upper-alpha","consumable","commands","footnotesListStyle","attribute:footnotesListStart:footnotesDefinitions","getChildren","footnotes-list","get","pluginName","_updateFootnotesCounters","name","setStyle","differ","schema","registerPostFixer","hasClass","toUpperCase","_definePostfixer","getChanges","FootnotesPropertiesEditing","1395600OCuHWd","floor","define","position","init","document","lower-alpha","extend","footnotesStyle","add","upcast","item","lower-latin","footnotesListStart","toViewElement","54857KHQAEb","element:ol","model","_getDefaultStartIndex","4117580fhlFjD","decimal-leading-zero","778EHGqUf","250542gnnqvP","parseInt","6kVRrfq","modelCursor","removeStyle","find","config","nodeAfter","getAttribute","downcast","upper-latin","fromCharCode","isPremiumPlugin","plugins","_getDefaultListStyle","getItems","viewItem","upper-roman","consume","footnotes.footnotesProperties.defaultListStyle","$text","createRangeOn","430fCUwlL","_defineFormatter","insert","hasAttribute","max","writer","list-style-type","footnotesStart","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","for","isNaN","editor"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(527217===parseInt(e(495))/1*(parseInt(e(561))/2)+-parseInt(e(516))/3+parseInt(e(559))/4+parseInt(e(540))/5*(-parseInt(e(564))/6)+parseInt(e(502))/7*(-parseInt(e(518))/8)+parseInt(e(562))/9+parseInt(e(482))/10*(parseInt(e(555))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(528)](){return pt(539)}static get[pt(519)](){return[v,d]}static get[pt(508)](){return!0}static get[pt(472)](){return!0}[pt(544)](){const t=pt,{editor:e}=this;e[t(466)][t(542)](t(479),t(496)),e[t(466)][t(542)](t(517),1),e[t(522)][t(549)](t(548),new ct(e)),e[t(522)][t(549)](t(489),new dt(e)),this[t(491)](),this[t(506)](),this[t(483)](),this[t(537)]()}[pt(491)](){const t=pt,{editor:e}=this,{schema:o}=e[t(557)];o[t(547)](t(504),{allowAttributes:[t(523),t(553)]})}[pt(506)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(550))[t(549)](e=>{const o=t;e.on(o(556),(t,e,n)=>{const s=o,r=e[s(476)],a=e[s(565)]?.[s(509)];r[s(535)](s(526))&&a?.is(s(514),s(504))&&(function(t,e,o,n){const i=s;if(!n[i(513)](e,i(553)))return;let r=1;const a=o[i(521)][i(478)](t,{attributes:i(505)});if(a){const e=Number[i(563)](t[i(468)](i(505)),10);Number[i(493)](e)||(r=e)}!a&&e[i(485)](i(553))||o[i(487)][i(515)](i(553),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(513)](e,i(523)))return;let r=i(496),a=!1;if(o[i(521)][i(478)](t,{attributes:i(510)})){const e={1:i(496),a:i(546),A:i(520),i:i(501),I:i(477)}[t[i(468)](i(510))];e&&(r=e),a=!0}o[i(521)][i(478)](t,{styles:i(488)})&&(r=function(t){const e=i;switch(t){case e(546):return e(552);case e(520):return e(470);default:return t}}(t[i(503)](i(488))),a=!0),!a&&e[i(485)](i(523))||o[i(487)][i(515)](i(523),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(549)](e=>{const o=t;e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;null==r||1===r?n[i(487)][i(499)](i(505),s):n[i(487)][i(515)](i(505),String(r),s)}),e.on(o(490),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;r&&i(496)!==r?n[i(487)][i(531)](i(488),r,s):n[i(487)][i(566)](i(488),s)})})}[pt(537)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(473)][t(527)](d),i=this[t(474)](),s=this[t(558)]();o[t(545)][t(534)](e=>{const r=t,a=o[r(545)][r(532)][r(538)]();let c=!1;for(const t of a){if(r(484)!==t[r(510)]||r(480)===t[r(530)])continue;const n=o[r(481)](t[r(543)][r(467)]);for(const t of n[r(475)]())t.is(r(514),r(504))&&(!t[r(485)](r(553))&&o[r(533)][r(513)](t,r(553))&&(e[r(515)](r(553),s,t),c=!0),!t[r(485)](r(523))&&o[r(533)][r(513)](t,r(523))&&(e[r(515)](r(523),i,t),c=!0))}return c&&n[r(529)](e),c})}[pt(483)](){const t=pt,{editor:e}=this;e[t(473)][t(527)](d)[t(497)](e=>this[t(507)](e))}[pt(474)](){const t=pt;return this[t(494)][t(466)][t(527)](t(479))}[pt(558)](){const t=pt;return this[t(494)][t(466)][t(527)](t(517))}[pt(507)]({container:t,value:e,digits:o}){const n=pt,i=t[n(468)](n(523)),s=t[n(468)](n(553)),r=Math[n(541)](e)+(s??1)-1;switch(i){case n(560):return function(t,e){const o=n;return String(t)[o(512)](e,"0")}(r,Math[n(486)](2,o));case n(546):case n(552):return yt(r,!1);case n(520):case n(470):return yt(r,!0);case n(501):return vt(r,!1);case n(477):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(554)](t);return Array[o(500)](n[o(525)]())[o(567)](t=>t.is(o(514),"ol")&&t[o(535)](o(526)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(471)](97+t)+n,i=Math[o(541)]((i-1)/26)}return e?n[o(536)]():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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(511)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["120ZdjxJb","7odcWyK","128460qLfmgO","requires","isOfficialPlugin","3622473nRrXfx","11232064vjLBJC","2578536BpYnpA","113277RFiWvA","pluginName","FootnotesProperties","841328OzLavA","isPremiumPlugin","72AMTVtA","2768650qWqkzE"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=180]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(891174===parseInt(e(187))/1+parseInt(e(189))/2*(-parseInt(e(184))/3)+parseInt(e(183))/4+-parseInt(e(191))/5*(parseInt(e(193))/6)+-parseInt(e(192))/7*(-parseInt(e(182))/8)+-parseInt(e(181))/9+parseInt(e(190))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class At extends t.Plugin{static get[xt(185)](){return xt(186)}static get[xt(194)](){return[gt,Ft]}static get[xt(180)](){return!0}static get[xt(188)](){return!0}}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=233]})(t,e)}function Dt(){var t=["160xLKwQL","51cQDZcR","1487034vEogxo","7803822UxwkVN","7WkyLmv","270230gxNZHe","8659696EBtpgH","1909568sXLjQx","6272815ymXJfd","60988JJdmrI"];return(Dt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(859642===-parseInt(e(237))/1+parseInt(e(241))/2*(-parseInt(e(233))/3)+parseInt(e(239))/4+-parseInt(e(240))/5+parseInt(e(235))/6*(-parseInt(e(236))/7)+parseInt(e(238))/8+parseInt(e(234))/9*(parseInt(e(242))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},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:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=l();return(a=function(t,e){return o[t-=368]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(396956===parseInt(e(402))/1*(parseInt(e(381))/2)+parseInt(e(370))/3+parseInt(e(393))/4+-parseInt(e(408))/5+-parseInt(e(369))/6*(-parseInt(e(399))/7)+parseInt(e(383))/8+-parseInt(e(371))/9*(parseInt(e(389))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(387)];[r(406)];[r(380)];[r(401)]=new Map;constructor(t,e){const o=r;this[o(387)]=t,this[o(406)]=e[o(391)],this[o(380)]=e[o(368)]}[r(396)](){const t=r;this[t(401)][t(384)]()}[r(373)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(397)===i[e(392)]&&e(382)!==i[e(376)]&&i[e(388)][e(411)]){const t=this[e(387)][e(378)](i[e(388)][e(411)]);for(const o of t[e(390)]()){if(!o.is(e(374),this[e(406)]))continue;const t=this[e(380)](o);n[e(407)](t)||n[e(409)](t,[]),n[e(395)](t)[e(403)](o)}}if(e(404)===i[e(392)]&&i[e(376)]===this[e(406)]){const t=this[e(380)]({getAttribute:t=>i[e(377)][e(395)](t)});o[e(410)](t)}}for(const[t,n]of this[e(401)])e(400)===n[e(375)][e(398)]&&o[e(410)](t);for(const t of o)this[e(401)][e(379)](t);for(const[t,o]of n)this[e(401)][e(409)](t,o[o[e(405)]-1]);const i=new Set;for(const[t,s]of n)o[e(407)](t)&&(i[e(410)](s[0]),s[e(405)]>1?n[e(409)](t,s[e(385)](1)):n[e(379)](t),o[e(379)](t));return{removed:Array[e(394)](o),inserted:Array[e(394)](n[e(372)]())[e(386)](),moved:Array[e(394)](i)}}}function l(){const t=["11597490kuiivK","getItems","elementName","type","2765100uPkLCE","from","get","reset","insert","rootName","6412kdxLUc","$graveyard","_trackedElements","354302pgliCx","push","remove","length","_elementName","has","3609125JLqVvp","set","add","nodeAfter","getElementKey","816zAGhPA","1788366veTdVa","9KSmjIi","values","getChanges","element","root","name","attributes","createRangeOn","delete","_getElementKey","4pYHTur","$text","1263624rrJqgr","clear","slice","flat","_model","position"];return(l=function(){return t})()}const u=d;function f(){const t=["isEqual","_footnoteDefsTracker","min","297ZKnmyZ","getFootnote","footnotes.multiBlock","set","createPositionAt","getFootnotesFormatter","low","createRangeIn","_ensureFootnotesDefinitionsContainerExists","getChildren","setFootnoteFormatter","_footnoteDefsContainerTracker","_insertEmptyFootnotesDefinitionsContainer","length","differ","_footnotesDefinitions","_updateFootnoteRefCounter","editor","find","has","footnoteInlineContent","FootnotesTracker","5bqPACx","setAttribute","_handleFootnotesDefinitionsObjectChanges","before","createPositionBefore","_footnotes","8MvgHdC","init","footnotesDefinitions","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","1710552gLvxmm","change:data","reset","footnoteDefinition","_handleMovedFootnoteReference","16827019rSCqyf","childCount","compareWith","parent","listenTo","rootName","getFootnotesDefinitionsObjectElement","_handleInsertedFootnoteReference","105677aUDrcw","_sortFootnoteDefinitions","splice","getFootnotes","paragraph","indexOf","move","map","reference","definition","some","footnoteRef","3370tgkuYL","add","_handleRemoveFootnoteReferenceById","_updateFootnotesCounters","475632bfToOq","getChanges","get","findIndex","remove","isOfficialPlugin","createRangeOn","isPremiumPlugin","620284GAcIlm","high","config","footnoteId","$graveyard","registerPostFixer","after","from","getAttribute","singleton","createElement","enqueueChange","insert","16MkgxcQ","push","_handleFootnotesDefinitionsObjectSync","936339kojvUZ","pluginName","document","root","append","_handleFootnoteReferencesChanges","end","model","_footnoteFormatter","footnoteCounter","_footnoteRefsTracker","getRootNames","unshift"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(322169===parseInt(e(169))/1+-parseInt(e(185))/2+-parseInt(e(209))/3*(parseInt(e(151))/4)+parseInt(e(145))/5*(-parseInt(e(156))/6)+-parseInt(e(193))/7*(parseInt(e(206))/8)+parseInt(e(123))/9*(parseInt(e(181))/10)+parseInt(e(161))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(150)]=[];[u(138)]=null;[u(115)]=null;[u(134)];[u(117)];[u(121)];static get[u(210)](){return u(144)}static get[u(190)](){return!0}static get[u(192)](){return!0}constructor(t){const e=u;super(t),this[e(134)]=new c(this[e(140)][e(114)],{elementName:e(153),getElementKey:()=>e(202)}),this[e(117)]=new c(this[e(140)][e(114)],{elementName:e(180),getElementKey:t=>t[e(201)](e(196))}),this[e(121)]=new c(this[e(140)][e(114)],{elementName:e(159),getElementKey:t=>t[e(201)](e(196))})}[u(152)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(211)][t(198)](e=>{const n=t,i=o[n(211)][n(137)][n(186)]();let s=!1;return this[n(147)](e,i)&&(s=!0),this[n(155)](e,i)&&(s=!0),this[n(112)](e,i)&&(s=!0),this[n(154)](e)&&(s=!0),this[n(208)](e)&&(s=!0),this[n(170)](e)&&(s=!0),s}),this[t(165)](o[t(211)],t(157),()=>{const e=t;o[e(204)]({isUndoable:!1},t=>{this[e(131)](t)})},{priority:t(129)}),this[t(165)](n,t(126),()=>{const e=t;this[e(150)]=[],this[e(134)][e(158)](),this[e(117)][e(158)](),this[e(121)][e(158)]()},{priority:t(194)})}[u(167)](){return this[u(138)]}[u(124)](t){const e=u;return this[e(150)][e(141)](e=>e.id===t)||null}[u(172)](){const t=u;return Array[t(200)](this[t(150)])}[u(128)](){return this[u(115)]}[u(133)](t){this[u(115)]=t}[u(184)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(150)][o(136)];i++)this[o(139)](t,i)&&(n=!0);return n}[u(135)](t,e){const o=u,n=t[o(203)](o(153),{});return t[o(213)](n,e),this[o(138)]=n,n}[u(131)](t){const e=u;if(!this[e(150)][e(136)]||this[e(138)])return;const o=this[e(150)][0][e(177)][e(212)],n=this[e(135)](t,o);for(const o of this[e(150)])o[e(178)][e(164)]||t[e(205)](o[e(178)],n,e(113));this[e(184)](t)}[u(147)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(134)][o(186)](e);if(r[o(136)]&&(this[o(138)]=r[0]),i[o(136)])if(i[o(136)]>1||this[o(138)]&&i[o(179)](t=>t!==this[o(138)])){const e=t[o(203)](o(153),{}),s=[];this[o(138)]&&s[o(207)](this[o(138)]),s[o(207)](...i),t[o(205)](e,s[0],o(148));for(const n of s)t[o(175)](t[o(130)](n),t[o(127)](e,o(113))),t[o(189)](n);this[o(138)]=e,this[o(184)](t),n=!0}else this[o(138)]=i[0];if(s[o(136)]&&o(197)===this[o(138)]?.[o(212)][o(166)]){for(const e of this[o(150)])t[o(189)](e[o(177)]),n=!0;this[o(150)]=[],this[o(138)]=null}return n}[u(155)](t,e){const o=u;let n=!1;const i=this[o(140)][o(195)][o(187)](o(125)),{inserted:s,moved:r}=this[o(121)][o(186)](e);for(const e of[...r,...s]){const s=e[o(201)](o(196)),r=this[o(124)](s);r&&(r[o(178)]=e),p(t,i,e)&&(n=!0)}return n}[u(112)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(117)][o(186)](e);for(const e of i)this[o(183)](t,e)&&(n=!0);for(const e of s)this[o(168)](t,e)&&(n=!0);for(const e of r)this[o(160)](t,e)&&(n=!0);return n}[u(208)](t){const e=u;if(!this[e(138)])return!1;let o=!1;if(this[e(138)][e(162)]!==this[e(150)][e(136)]){const n=[];for(const t of this[e(138)][e(132)]()){const i=t[e(201)](e(196));this[e(124)](i)||(n[e(119)](t),o=!0)}for(const o of n)t[e(189)](o)}const n=new Set,i=[];for(const t of this[e(138)][e(132)]()){const s=t[e(201)](e(196));n[e(142)](s)?(i[e(119)](t),o=!0):n[e(182)](s)}for(const o of i)t[e(189)](o);return this[e(138)][e(162)]||(t[e(189)](this[e(138)]),this[e(138)]=null,o=!0),o}[u(168)](t,e){const o=u;if(this[o(150)][o(141)](t=>t[o(177)]===e))return!1;let n=!1;const i=e[o(201)](o(196)),s=this[o(150)][o(188)](t=>t.id===i);-1!==s&&(t[o(189)](this[o(150)][s][o(177)]),this[o(150)][o(171)](s,1),n=!0);let r=this[o(138)]?function(t,e){const n=o;for(const o of t[n(132)]())if(o[n(201)](n(196))===e)return o;return null}(this[o(138)],i):null;r||(r=t[o(203)](o(159),{footnoteId:i}),this[o(138)]&&(t[o(205)](r,this[o(138)],o(113)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(140)][o(114)],this[o(150)],e);this[o(150)][o(171)](c,0,a);let l=c;return-1!==s&&(l=Math[o(122)](c,s)),this[o(184)](t,l)&&(n=!0),n}[u(183)](t,e){const o=u,n=this[o(150)][o(188)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(150)][n];return o(197)!==s[o(178)][o(212)][o(166)]&&(t[o(189)](s[o(178)]),i=!0),this[o(150)][o(171)](n,1),this[o(184)](t,n)&&(i=!0),i}[u(160)](t,e){const o=u,n=e[o(201)](o(196)),i=this[o(150)][o(188)](t=>t.id===n),s=this[o(150)][i];let r=!1;s[o(177)]=e,this[o(150)][o(171)](i,1);const a=m(this[o(140)][o(114)],this[o(150)],e);return this[o(150)][o(171)](a,0,s),this[o(184)](t,Math[o(122)](i,a))&&(r=!0),r}[u(139)](t,e){const o=u;if(!this[o(138)])return!1;const n=this[o(150)][e];let i;return i=this[o(115)]?this[o(115)]({footnote:n,container:this[o(138)],digits:String(this[o(150)][o(136)])[o(136)],value:e+1}):String(e+1),n[o(177)][o(201)](o(116))!=i&&(t[o(146)](o(116),i,n[o(177)]),!0)}[u(170)](t){const e=u;if(!this[e(138)]||this[e(150)][e(136)]<2)return!1;if(function(t,o){const n=e;if(t[n(136)]!==o[n(136)])return!1;for(let e=0;e<t[n(136)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(150)][e(176)](t=>t.id),Array[e(200)](this[e(138)][e(132)]())[e(176)](t=>t[e(201)](e(196)))))return!1;let o=!1;for(let n=0;n<this[e(150)][e(136)];n++){const i=this[e(150)][n],s=t[e(149)](i[e(178)]),r=t[e(127)](this[e(138)],n);s[e(120)](r)||(t[e(175)](t[e(191)](i[e(178)]),r),o=!0)}return o}[u(154)](t){const e=u;if(!this[e(150)][e(136)])return!1;const{model:o}=this[e(140)];let n=!1;for(let i=0;i<this[e(150)][e(136)]-1;i++){const s=this[e(150)][i],r=this[e(150)][i+1],a=o[e(149)](s[e(177)]),c=o[e(149)](r[e(177)]);e(199)===a[e(163)](c)&&(this[e(160)](t,s[e(177)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(162)])return!1;const i=n(e?173:143);return t[n(205)](t[n(203)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(136)])return 0;const i=t[n(149)](o);for(let o=0;o<e[n(136)];o++){const s=e[o],r=t[n(149)](s[n(177)]);if(n(148)===i[n(163)](r))return o}const s=o[n(212)];let r=-1;for(let t=e[n(136)]-1;t>=0;t--)if(e[t][n(177)][n(212)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(211)][n(118)](),c=a[n(174)](s[n(166)]),l=a[c+1];if(l)for(let t=0;t<e[n(136)];t++)if(e[t][n(177)][n(212)][n(166)]===l)return t;return e[n(136)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=371]})(t,e)}const w=g;function y(){const t=["model","selection","getItems","insertObject","51028227jFqdHe","getFirstRange","1567046CHhOmx","18qGksja","length","361816wABPJu","isObject","test","execute","end","createElement","isEnabled","footnoteRef","isBlock","get","refresh","plugins","250952tEMagu","135eFIxKf","insert-footnote-command-executed-with-invalid-id","editor","document","checkChild","string","_getPositionToInsertFootnote","6607128WpHEdT","footnoteId","13480768xNUqkQ","1391103LFEbiV","change","_moveSelectionToFootnoteDefinition","FootnotesEditing"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(906724===-parseInt(e(373))/1+parseInt(e(376))/2*(parseInt(e(374))/3)+-parseInt(e(388))/4*(parseInt(e(389))/5)+-parseInt(e(396))/6+parseInt(e(399))/7+-parseInt(e(398))/8+parseInt(e(371))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(386)](){const t=w,e=this[t(391)][t(403)][t(392)][t(404)],o=this[t(395)](e);this[t(382)]=!!o}[w(379)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(392)],r=this[e(395)](s);if(!r)return;const a=o[e(387)][e(385)](e(402)),c=t?.[e(397)]??(0,i.uid)();!function(t){const o=e;return o(394)==typeof t&&t[o(375)]>0&&!/\s/[o(378)](t)&&!/^\d/[o(378)](t)}(c)?(0,i.logWarning)(e(390)):(n[e(400)](t=>{const o=e,i=t[o(381)](o(383),{footnoteId:c});n[o(406)](i,r,null)}),a[e(401)](c))}[w(395)](t){const e=w,{model:o}=this[e(391)],{schema:n}=o,i=t[e(372)]();for(const t of i[e(405)]())if(n[e(384)](t)||n[e(377)](t))return null;const s=i[e(380)];return n[e(393)](s,e(383))?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 u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1783987200;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);function T(t,e){const o=_();return(T=function(t,e){return o[t-=120]})(t,e)}const A=T;function _(){const t=["parse","flatMap","selection","241078bDBmYc","push","contentInsertion","dataTransfer","FootnotesClipboard","_handlePasteFootnotesDefinitions","footnotes.multiBlock","15bPWWVl","createElement","42xEOPbn","from","sourceEditorId","insert","footnoteDefinition","definition","6776913mirwWr","pluginName","getData","setAttribute","config","entries","root","1828390hZHjrf","element","getFirstRange","keys","string","reduce","getSelectedBlocks","27AyBWSB","listenTo","outputTransformation","getRanges","toView","length","footnoteRef","method","end","add","footnotesDefinitions","append","8XtIsxT","getAttribute","setData","remove","2774457JBNqak","clipboardInput","change","hasAttribute","stringify","getFootnote","data","_insertEmptyFootnotesDefinitionsContainer","170695gaZQNG","find","isPremiumPlugin","get","getFootnotesDefinitionsObjectElement","getChildren","init","create","225008HjawMc","_defineClipboardIntegration","content","includes","31908bofmfG","cloneElement","createRangeIn","24FaSTgS","_handleCopyFootnotesDefinitions","toModel","editor","application/ckeditor5-footnotes","htmlProcessor","toData","document","editing","isOfficialPlugin","requires","getFootnotes","footnoteId","drop","footnoteInlineContent"];return(_=function(){return t})()}!function(t){const e=T,o=t();for(;;)try{if(309679===-parseInt(e(178))/1+-parseInt(e(203))/2*(parseInt(e(124))/3)+-parseInt(e(182))/4+-parseInt(e(170))/5*(parseInt(e(126))/6)+-parseInt(e(162))/7*(parseInt(e(158))/8)+-parseInt(e(146))/9*(-parseInt(e(139))/10)+parseInt(e(132))/11*(parseInt(e(185))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[A(133)](){return A(121)}static get[A(195)](){return[v,P.ClipboardPipeline]}static get[A(194)](){return!0}static get[A(172)](){return!0}[A(176)](){this[A(179)]()}[A(179)](){const t=A;this[t(186)](),this[t(122)]()}[A(186)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(173)](P.ClipboardPipeline),s=o[t(173)](h);this[t(147)](i,t(148),(o,i)=>{const r=t,a=V(n[r(184)](i[r(180)]));if(!a[r(151)])return;const c=s[r(196)](),l=a[r(144)]((t,o)=>{const n=r,i=c[n(171)](t=>t.id===o);if(i){const o=e[n(168)][n(150)](i[n(131)],{isClipboardPipeline:!0}),s=e[n(168)][n(190)][n(191)](o);t[i.id]=s}return t},Object[r(177)](null));i[r(120)][r(160)](r(189),JSON[r(166)](l))})}[A(122)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(193)],r=n[t(173)](P.ClipboardPipeline),a=n[t(173)](h),c=e[t(136)][t(173)](t(123));let l=null;this[t(147)](s[t(192)],t(163),(e,o)=>{const n=t,i=o[n(120)][n(134)](n(189));l=i?JSON[n(200)](i):null}),this[t(147)](r,t(205),(n,s)=>{const r=t,u=s[r(128)]===this[r(188)].id;u&&r(198)===s[r(153)]||o[r(164)](t=>{const n=r;let f=a[n(174)]();const d=!!f&&Array[n(127)](o[n(192)][n(202)][n(145)]())[n(181)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(140),e(152)))return!0;return!1}(o[n(184)](s[n(180)]))&&(l=function(t,e){const o=n,i=D(t,e);if(!i)return null;const s=Object[o(177)](null);for(const e of i[o(175)]())e.is(o(140),o(130))&&e[o(165)](o(197))&&(s[e[o(159)](o(197))]=t[o(183)](e,!0));return Object[o(142)](s)[o(151)]?s:null}(t,s[n(180)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(184)](e))n.is(o(140),o(156))&&i[o(204)](n);for(const e of i)t[o(161)](e)}(t,s[n(180)]),!l)return;const{selection:h}=o[n(192)],p=h[n(141)]()[n(138)];f&&!d||(f=D(t,s[n(180)]),f||=a[n(169)](t,p));const m=Array[n(127)](h[n(149)]())[n(201)](V),g=function(t,e,o){const s=n,r=Object[s(177)](null);for(const{item:n}of t[s(184)](e))if(n.is(s(140),s(152))){const e=n[s(159)](s(197));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(135)](s(197),r[e],n)}return r}(t,s[n(180)],t=>{const e=n;return!u||!!a[e(167)](t)&&!m[e(181)](t)});for(const[o,i]of Object[n(137)](l)){const s=g[o]||o;let r;if(n(143)!=typeof i)r=i,s!==o&&t[n(135)](n(197),s,r);else{r=t[n(125)](n(130),{footnoteId:s});const o=e[n(168)][n(190)][n(150)](i);let a;if(c)a=e[n(168)][n(187)](o,r);else{a=t[n(125)](n(199));const i=e[n(168)][n(187)](o,a);t[n(129)](i,a)}t[n(157)](a,r)}t[n(129)](r,f,n(154))}l=null})})}}function D(t,e){const o=A;for(const{item:n}of t[o(184)](e))if(n.is(o(140),o(156)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(140),e(152))&&o[e(155)](n[e(159)](e(197)));return Array[e(127)](o)}var N=o(311),O=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),B=o(298),z=o.n(B),U=o(207),W=o.n(U),q=o(825),H=o.n(q),G=o(264),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(G.A,X);G.A&&G.A.locals&&G.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=271]})(t,e)}function $(){var t=["2829075OtlkNZ","Footnotes","3011436iFppIB","27sNYjMB","isOfficialPlugin","pluginName","72540vOQSUh","requires","isPremiumPlugin","31100040fHXBor","1517721SyULwY","5123321AktoRu","4983060YQINLZ"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(652851===parseInt(e(281))/1*(-parseInt(e(271))/2)+-parseInt(e(275))/3+-parseInt(e(280))/4+parseInt(e(278))/5+-parseInt(e(277))/6+-parseInt(e(276))/7+parseInt(e(274))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(283)](){return Y(279)}static get[Y(272)](){return[v,L,Q]}static get[Y(282)](){return!0}static get[Y(273)](){return!0}}function et(){const t=["19266oqYzWR","upper-alpha","1071145zPWddy","691130gfqxyG","lower-alpha","3211016NvrGRQ","5315324MqSaXJ","upper-latin","decimal-leading-zero","lower-latin","upper-roman","decimal","483006GrNzTv","1228zdECtt","2073HGBDTB","lower-roman"];return(et=function(){return t})()}const ot=nt;function nt(t,e){const o=et();return(nt=function(t,e){return o[t-=211]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(475211===-parseInt(e(226))/1+parseInt(e(213))/2+parseInt(e(224))/3*(parseInt(e(223))/4)+parseInt(e(212))/5+parseInt(e(222))/6+-parseInt(e(216))/7+parseInt(e(215))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[ot(221),ot(218),ot(219),ot(217),ot(214),ot(211),ot(225),ot(220)];function st(){const t=["value","isEnabled","footnotesListStyle","8502153wcXyJh","setAttribute","_updateFootnotesCounters","62GlnllE","plugins","getFootnotesDefinitionsObjectElement","change","1557yAsOWG","execute","40pMzqKY","getAttribute","refresh","732621heEOhE","1039720wHTmTk","628572exukhe","includes","350xYSQLR","2878086nUlIHu","model","get","8JiIeWJ","47907TDvUmK"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=181]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(288582===parseInt(e(192))/1*(-parseInt(e(188))/2)+parseInt(e(197))/3*(-parseInt(e(205))/4)+parseInt(e(198))/5+parseInt(e(202))/6+-parseInt(e(199))/7*(parseInt(e(194))/8)+parseInt(e(181))/9*(-parseInt(e(201))/10)+parseInt(e(185))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(196)](){const t=rt,{editor:e}=this,o=e[t(189)][t(204)](h)[t(190)]();this[t(183)]=!!o,this[t(182)]=o?.[t(195)](t(184))??null}[rt(193)]({value:t}){const e=rt,{editor:o}=this,n=o[e(189)][e(204)](h),i=n[e(190)]();i&&it[e(200)](t)&&o[e(203)][e(191)](o=>{const s=e;o[s(186)](s(184),t,i),n[s(187)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=434]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(930257===-parseInt(e(450))/1*(-parseInt(e(441))/2)+parseInt(e(445))/3+-parseInt(e(439))/4*(-parseInt(e(434))/5)+-parseInt(e(436))/6+parseInt(e(435))/7+-parseInt(e(453))/8*(parseInt(e(449))/9)+parseInt(e(451))/10*(-parseInt(e(454))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(456)][t(443)](h)[t(438)]();this[t(448)]=!!o,this[t(458)]=o?.[t(446)](t(457))??null}[lt(442)]({value:t}){const e=lt,{editor:o}=this,n=o[e(456)][e(443)](h),i=n[e(438)]();i&&Number[e(444)](t)&&o[e(447)][e(437)](o=>{const s=e;o[s(452)](s(457),t,i),n[s(455)](o)})}}function dt(){const t=["1727012aNYGIp","3164472CGZxVK","change","getFootnotesDefinitionsObjectElement","460dzpTQV","refresh","102182iiZlxd","execute","get","isInteger","1508886KkPVXA","getAttribute","model","isEnabled","9LTzWtd","21JgUJsk","2550140WXTQtR","setAttribute","10137656mRSmNT","22vRvdbf","_updateFootnotesCounters","plugins","footnotesListStart","value","61405RGbyKe"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=395]})(t,e)}function mt(){const t=["getStyle","consume","downcast","265XQTzqd","footnotesStyle","toLowerCase","8173808RtlhnP","decimal-leading-zero","for","setFootnoteFormatter","plugins","isNaN","pluginName","26550MBqnGA","element:ol","list-style-type","define","config","lower-alpha","max","removeStyle","writer","insert","createRangeOn","find","_formatFootnoteListValue","lower-roman","from","name","extend","parseInt","schema","modelCursor","footnotes-list","413cUaMXY","document","floor","checkAttribute","getItems","3264610lNFPyx","upper-latin","nodeAfter","differ","consumable","parent","start","hasClass","mapper","toViewElement","77724zBxaQt","upcast","setStyle","upper-roman","footnotes.footnotesProperties.defaultStartIndex","viewItem","18967140PcPhYy","getChanges","footnotesListStart","9dSFPVL","getAttribute","upper-alpha","toUpperCase","_getDefaultListStyle","hasAttribute","11NLFazE","decimal","FootnotesPropertiesEditing","commands","removeAttribute","footnotesDefinitions","isOfficialPlugin","58Fwkizi","requires","get","_defineSchema","_defineConverters","position","attribute:footnotesListStart:footnotesDefinitions","footnotes.footnotesProperties.defaultListStyle","7041cmCScI","type","_definePostfixer","attribute:footnotesListStyle:footnotesDefinitions","padStart","794767LrLySu","editor","model","fromCharCode","_getDefaultStartIndex","_defineFormatter","setAttribute","getChildren","add","footnotesListStyle","element","isPremiumPlugin","footnotesStart","item","init","_updateFootnotesCounters","registerPostFixer","$text","lower-latin"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(610142===parseInt(e(474))/1+-parseInt(e(461))/2*(parseInt(e(469))/3)+-parseInt(e(439))/4*(-parseInt(e(496))/5)+-parseInt(e(403))/6*(parseInt(e(424))/7)+parseInt(e(396))/8+parseInt(e(448))/9*(-parseInt(e(429))/10)+-parseInt(e(454))/11*(parseInt(e(445))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(402)](){return ht(456)}static get[ht(462)](){return[v,h]}static get[ht(460)](){return!0}static get[ht(485)](){return!0}[ht(488)](){const t=ht,{editor:e}=this;e[t(407)][t(406)](t(468),t(455)),e[t(407)][t(406)](t(443),1),e[t(457)][t(482)](t(497),new ct(e)),e[t(457)][t(482)](t(486),new ft(e)),this[t(464)](),this[t(465)](),this[t(479)](),this[t(471)]()}[ht(464)](){const t=ht,{editor:e}=this,{schema:o}=e[t(476)];o[t(419)](t(459),{allowAttributes:[t(483),t(447)]})}[ht(465)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(398)](t(440))[t(482)](e=>{const o=t;e.on(o(404),(t,e,n)=>{const s=o,r=e[s(444)],a=e[s(422)]?.[s(434)];r[s(436)](s(423))&&a?.is(s(484),s(459))&&(function(t,e,o,n){const i=s;if(!n[i(427)](e,i(447)))return;let r=1;const a=o[i(433)][i(494)](t,{attributes:i(435)});if(a){const e=Number[i(420)](t[i(449)](i(435)),10);Number[i(401)](e)||(r=e)}!a&&e[i(453)](i(447))||o[i(411)][i(480)](i(447),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(427)](e,i(483)))return;let r=i(455),a=!1;if(o[i(433)][i(494)](t,{attributes:i(470)})){const e={1:i(455),a:i(408),A:i(450),i:i(416),I:i(442)}[t[i(449)](i(470))];e&&(r=e),a=!0}o[i(433)][i(494)](t,{styles:i(405)})&&(r=function(t){const e=i;switch(t){case e(408):return e(492);case e(450):return e(430);default:return t}}(t[i(493)](i(405))),a=!0),!a&&e[i(453)](i(483))||o[i(411)][i(480)](i(483),r,e)}(r,a,n,i))})}),o[t(398)](t(495))[t(482)](e=>{const o=t;e.on(o(467),(t,e,n)=>{const i=o;if(!n[i(433)][i(494)](e[i(487)],t[i(418)]))return;const s=wt(e[i(487)],n[i(437)]),{attributeNewValue:r}=e;null==r||1===r?n[i(411)][i(458)](i(435),s):n[i(411)][i(480)](i(435),String(r),s)}),e.on(o(472),(t,e,n)=>{const i=o;if(!n[i(433)][i(494)](e[i(487)],t[i(418)]))return;const s=wt(e[i(487)],n[i(437)]),{attributeNewValue:r}=e;r&&i(455)!==r?n[i(411)][i(441)](i(405),r,s):n[i(411)][i(410)](i(405),s)})})}[ht(471)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(400)][t(463)](h),i=this[t(452)](),s=this[t(478)]();o[t(425)][t(490)](e=>{const r=t,a=o[r(425)][r(432)][r(446)]();let c=!1;for(const t of a){if(r(412)!==t[r(470)]||r(491)===t[r(418)])continue;const n=o[r(413)](t[r(466)][r(431)]);for(const t of n[r(428)]())t.is(r(484),r(459))&&(!t[r(453)](r(447))&&o[r(421)][r(427)](t,r(447))&&(e[r(480)](r(447),s,t),c=!0),!t[r(453)](r(483))&&o[r(421)][r(427)](t,r(483))&&(e[r(480)](r(483),i,t),c=!0))}return c&&n[r(489)](e),c})}[ht(479)](){const t=ht,{editor:e}=this;e[t(400)][t(463)](h)[t(399)](e=>this[t(415)](e))}[ht(452)](){const t=ht;return this[t(475)][t(407)][t(463)](t(468))}[ht(478)](){const t=ht;return this[t(475)][t(407)][t(463)](t(443))}[ht(415)]({container:t,value:e,digits:o}){const n=ht,i=t[n(449)](n(483)),s=t[n(449)](n(447)),r=Math[n(426)](e)+(s??1)-1;switch(i){case n(397):return function(t,e){const o=n;return String(t)[o(473)](e,"0")}(r,Math[n(409)](2,o));case n(408):case n(492):return yt(r,!1);case n(450):case n(430):return yt(r,!0);case n(416):return vt(r,!1);case n(442):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(438)](t);return Array[o(417)](n[o(481)]())[o(414)](t=>t.is(o(484),"ol")&&t[o(436)](o(423)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(477)](97+t)+n,i=Math[o(426)]((i-1)/26)}return e?n[o(451)]():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 vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(395)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["891879XQxxki","5220272jjuFqM","isOfficialPlugin","626186ENOSar","883104KyzzHB","pluginName","1684895oQzRwp","isPremiumPlugin","28VhIcOc","550NsUOXg","530183lKrmcQ","4RqMVXZ","1539NfPyCh","requires","FootnotesProperties"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(380503===-parseInt(e(188))/1+parseInt(e(196))/2+-parseInt(e(193))/3*(parseInt(e(189))/4)+-parseInt(e(184))/5+parseInt(e(197))/6*(parseInt(e(186))/7)+parseInt(e(194))/8+parseInt(e(190))/9*(-parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(198)](){return xt(192)}static get[xt(191)](){return[gt,Ft]}static get[xt(195)](){return!0}static get[xt(185)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=477]})(t,e)}function At(){var t=["1879875IQagkk","2639988TPXkXV","14NOPEQL","220JzmRfv","133700eyyJwh","9777825kpXqwp","358042LXaKMG","1810768atfOpy","20295OIIyIz"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(242956===-parseInt(e(480))/1+parseInt(e(482))/2+-parseInt(e(484))/3*(parseInt(e(479))/4)+parseInt(e(485))/5+-parseInt(e(477))/6+-parseInt(e(478))/7*(parseInt(e(483))/8)+parseInt(e(481))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();