@ckeditor/ckeditor5-footnotes 47.2.0-alpha.6 → 47.2.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=l();return(a=function(t,e){return o[t-=459]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(288542===parseInt(e(487))/1*(parseInt(e(486))/2)+-parseInt(e(498))/3+-parseInt(e(484))/4+-parseInt(e(468))/5+-parseInt(e(492))/6+parseInt(e(499))/7*(parseInt(e(461))/8)+parseInt(e(476))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(495)];[r(488)];[r(466)];[r(480)]=new Map;constructor(t,e){const o=r;this[o(495)]=t,this[o(488)]=e[o(483)],this[o(466)]=e[o(469)]}[r(474)](){const t=r;this[t(480)][t(490)]()}[r(497)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(477)===i[e(496)]&&e(489)!==i[e(470)]&&i[e(494)][e(472)]){const t=this[e(495)][e(467)](i[e(494)][e(472)]);for(const o of t[e(500)]()){if(!o.is(e(493),this[e(488)]))continue;const t=this[e(466)](o);n[e(471)](t)||n[e(485)](t,[]),n[e(478)](t)[e(465)](o)}}if(e(479)===i[e(496)]&&i[e(470)]===this[e(488)]){const t=this[e(466)]({getAttribute:t=>i[e(462)][e(478)](t)});o[e(460)](t)}}for(const[t,n]of this[e(480)])e(482)===n[e(491)][e(501)]&&o[e(460)](t);for(const t of o)this[e(480)][e(464)](t);for(const[t,o]of n)this[e(480)][e(485)](t,o[o[e(475)]-1]);const i=new Set;for(const[t,s]of n)o[e(471)](t)&&(i[e(460)](s[0]),s[e(475)]>1?n[e(485)](t,s[e(473)](1)):n[e(464)](t),o[e(464)](t));return{removed:Array[e(463)](o),inserted:Array[e(463)](n[e(481)]())[e(459)](),moved:Array[e(463)](i)}}}function l(){const t=["type","getChanges","1598928PKKeZG","749VhMBGy","getItems","rootName","flat","add","25744DKsHYw","attributes","from","delete","push","_getElementKey","createRangeOn","949325nOddIc","getElementKey","name","has","nodeAfter","slice","reset","length","9244584njBLAq","insert","get","remove","_trackedElements","values","$graveyard","elementName","1228932PZEfeS","set","9722ZEJxhB","45ImGSAL","_elementName","$text","clear","root","1629786GQhmnW","element","position","_model"];return(l=function(){return t})()}const f=h;function u(){const t=["enqueueChange","_handleMovedFootnoteReference","30dVkhZJ","508VgubSo","_insertEmptyFootnotesDefinitionsContainer","push","before","change:data","isEqual","document","_handleFootnoteDefinitionsChanges","_ensureFootnotesDefinitionsContainerExists","footnoteId","some","paragraph","get","getFootnotesFormatter","_footnoteDefsTracker","isOfficialPlugin","compareWith","2037966SkmtHY","reference","footnotesDefinitions","_footnoteFormatter","findIndex","min","_updateFootnoteRefCounter","isPremiumPlugin","getFootnotes","getChildren","_handleInsertedFootnoteReference","_handleRemoveFootnoteReferenceById","append","end","parent","_ensureFootnotesReferencesHaveProperOrder","footnoteInlineContent","getFootnotesDefinitionsObjectElement","low","_handleFootnoteReferencesChanges","createRangeIn","move","getFootnote","footnotes.multiBlock","320wdTJKd","splice","singleton","createElement","pluginName","model","$graveyard","init","_handleFootnotesDefinitionsObjectChanges","_footnotes","footnoteDefinition","395010UcFidh","reset","length","FootnotesTracker","rootName","4090LZkzRv","createPositionBefore","config","has","set","getChanges","definition","listenTo","getRootNames","insert","high","from","footnoteRef","after","_footnotesDefinitions","editor","122967WZvFIr","differ","setFootnoteFormatter","904548GjnpnI","createPositionAt","footnoteCounter","setAttribute","map","createRangeOn","_handleFootnotesDefinitionsObjectSync","54295GRmMhz","_updateFootnotesCounters","registerPostFixer","unshift","find","root","_sortFootnoteDefinitions","indexOf","add","remove","_footnoteDefsContainerTracker","585750OwShSJ","getAttribute","_footnoteRefsTracker","45881hBZpjo","childCount"];return(u=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(756013===-parseInt(e(341))/1+parseInt(e(359))/2+parseInt(e(317))/3+-parseInt(e(367))/4*(parseInt(e(348))/5)+-parseInt(e(366))/6*(-parseInt(e(384))/7)+-parseInt(e(306))/8*(parseInt(e(338))/9)+-parseInt(e(322))/10*(-parseInt(e(362))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(315)]=[];[f(336)]=null;[f(387)]=null;[f(358)];[f(361)];[f(381)];static get[f(310)](){return f(320)}static get[f(382)](){return!0}static get[f(391)](){return!0}constructor(t){const e=f;super(t),this[e(358)]=new c(this[e(337)][e(311)],{elementName:e(386),getElementKey:()=>e(308)}),this[e(361)]=new c(this[e(337)][e(311)],{elementName:e(334),getElementKey:t=>t[e(360)](e(376))}),this[e(381)]=new c(this[e(337)][e(311)],{elementName:e(316),getElementKey:t=>t[e(360)](e(376))})}[f(313)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(373)][t(350)](e=>{const n=t,i=o[n(373)][n(339)][n(327)]();let s=!1;return this[n(314)](e,i)&&(s=!0),this[n(374)](e,i)&&(s=!0),this[n(403)](e,i)&&(s=!0),this[n(399)](e)&&(s=!0),this[n(347)](e)&&(s=!0),this[n(354)](e)&&(s=!0),s}),this[t(329)](o[t(373)],t(371),()=>{const e=t;o[e(364)]({isUndoable:!1},t=>{this[e(375)](t)})},{priority:t(402)}),this[t(329)](n,t(326),()=>{const e=t;this[e(315)]=[],this[e(358)][e(318)](),this[e(361)][e(318)](),this[e(381)][e(318)]()},{priority:t(332)})}[f(401)](){return this[f(336)]}[f(304)](t){const e=f;return this[e(315)][e(352)](e=>e.id===t)||null}[f(392)](){const t=f;return Array[t(333)](this[t(315)])}[f(380)](){return this[f(387)]}[f(340)](t){this[f(387)]=t}[f(349)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(315)][o(319)];i++)this[o(390)](t,i)&&(n=!0);return n}[f(368)](t,e){const o=f,n=t[o(309)](o(386),{});return t[o(396)](n,e),this[o(336)]=n,n}[f(375)](t){const e=f;if(!this[e(315)][e(319)]||this[e(336)])return;const o=this[e(315)][0][e(385)][e(353)],n=this[e(368)](t,o);for(const o of this[e(315)])o[e(328)][e(398)]||t[e(331)](o[e(328)],n,e(397));this[e(349)](t)}[f(314)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(358)][o(327)](e);if(r[o(319)]&&(this[o(336)]=r[0]),i[o(319)])if(i[o(319)]>1||this[o(336)]&&i[o(377)](t=>t!==this[o(336)])){const e=t[o(309)](o(386),{}),s=[];this[o(336)]&&s[o(369)](this[o(336)]),s[o(369)](...i),t[o(331)](e,s[0],o(370));for(const n of s)t[o(303)](t[o(302)](n),t[o(342)](e,o(397))),t[o(357)](n);this[o(336)]=e,this[o(349)](t),n=!0}else this[o(336)]=i[0];if(s[o(319)]&&o(312)===this[o(336)]?.[o(353)][o(321)]){for(const e of this[o(315)])t[o(357)](e[o(385)]),n=!0;this[o(315)]=[],this[o(336)]=null}return n}[f(374)](t,e){const o=f;let n=!1;const i=this[o(337)][o(324)][o(379)](o(305)),{inserted:s,moved:r}=this[o(381)][o(327)](e);for(const e of[...r,...s]){const s=e[o(360)](o(376)),r=this[o(304)](s);r&&(r[o(328)]=e),p(t,i,e)&&(n=!0)}return n}[f(403)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(361)][o(327)](e);for(const e of i)this[o(395)](t,e)&&(n=!0);for(const e of s)this[o(394)](t,e)&&(n=!0);for(const e of r)this[o(365)](t,e)&&(n=!0);return n}[f(347)](t){const e=f;if(!this[e(336)])return!1;let o=!1;if(this[e(336)][e(363)]!==this[e(315)][e(319)]){const n=[];for(const t of this[e(336)][e(393)]()){const i=t[e(360)](e(376));this[e(304)](i)||(n[e(351)](t),o=!0)}for(const o of n)t[e(357)](o)}const n=new Set,i=[];for(const t of this[e(336)][e(393)]()){const s=t[e(360)](e(376));n[e(325)](s)?(i[e(351)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(357)](o);return this[e(336)][e(363)]||(t[e(357)](this[e(336)]),this[e(336)]=null,o=!0),o}[f(394)](t,e){const o=f;if(this[o(315)][o(352)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(360)](o(376)),s=this[o(315)][o(388)](t=>t.id===i);-1!==s&&(t[o(357)](this[o(315)][s][o(385)]),this[o(315)][o(307)](s,1),n=!0);let r=this[o(336)]?function(t,e){const n=o;for(const o of t[n(393)]())if(o[n(360)](n(376))===e)return o;return null}(this[o(336)],i):null;r||(r=t[o(309)](o(316),{footnoteId:i}),this[o(336)]&&(t[o(331)](r,this[o(336)],o(397)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(337)][o(311)],this[o(315)],e);this[o(315)][o(307)](c,0,a);let l=c;return-1!==s&&(l=Math[o(389)](c,s)),this[o(349)](t,l)&&(n=!0),n}[f(395)](t,e){const o=f,n=this[o(315)][o(388)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(315)][n];return o(312)!==s[o(328)][o(353)][o(321)]&&(t[o(357)](s[o(328)]),i=!0),this[o(315)][o(307)](n,1),this[o(349)](t,n)&&(i=!0),i}[f(365)](t,e){const o=f,n=e[o(360)](o(376)),i=this[o(315)][o(388)](t=>t.id===n),s=this[o(315)][i];let r=!1;s[o(385)]=e,this[o(315)][o(307)](i,1);const a=m(this[o(337)][o(311)],this[o(315)],e);return this[o(315)][o(307)](a,0,s),this[o(349)](t,Math[o(389)](i,a))&&(r=!0),r}[f(390)](t,e){const o=f;if(!this[o(336)])return!1;const n=this[o(315)][e];let i;return i=this[o(387)]?this[o(387)]({footnote:n,container:this[o(336)],digits:String(this[o(315)][o(319)])[o(319)],value:e+1}):String(e+1),n[o(385)][o(360)](o(343))!=i&&(t[o(344)](o(343),i,n[o(385)]),!0)}[f(354)](t){const e=f;if(!this[e(336)]||this[e(315)][e(319)]<2)return!1;if(function(t,o){const n=e;if(t[n(319)]!==o[n(319)])return!1;for(let e=0;e<t[n(319)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(315)][e(345)](t=>t.id),Array[e(333)](this[e(336)][e(393)]())[e(345)](t=>t[e(360)](e(376)))))return!1;let o=!1;for(let n=0;n<this[e(315)][e(319)];n++){const i=this[e(315)][n],s=t[e(323)](i[e(328)]),r=t[e(342)](this[e(336)],n);s[e(372)](r)||(t[e(303)](t[e(346)](i[e(328)]),r),o=!0)}return o}[f(399)](t){const e=f;if(!this[e(315)][e(319)])return!1;const{model:o}=this[e(337)];let n=!1;for(let i=0;i<this[e(315)][e(319)]-1;i++){const s=this[e(315)][i],r=this[e(315)][i+1],a=o[e(323)](s[e(385)]),c=o[e(323)](r[e(385)]);e(335)===a[e(383)](c)&&(this[e(365)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=u();return(h=function(t,e){return o[t-=302]})(t,e)}function p(t,e,o){const n=f;if(o[n(363)])return!1;const i=n(e?378:400);return t[n(331)](t[n(309)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(319)])return 0;const i=t[n(323)](o);for(let o=0;o<e[n(319)];o++){const s=e[o],r=t[n(323)](s[n(385)]);if(n(370)===i[n(383)](r))return o}const s=o[n(353)];let r=-1;for(let t=e[n(319)]-1;t>=0;t--)if(e[t][n(385)][n(353)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(373)][n(330)](),c=a[n(355)](s[n(321)]),l=a[c+1];if(l)for(let t=0;t<e[n(319)];t++)if(e[t][n(385)][n(353)][n(321)]===l)return t;return e[n(319)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=331]})(t,e)}function y(){const t=["plugins","_moveSelectionToFootnoteDefinition","end","test","498726amBNOG","refresh","footnoteRef","document","footnoteId","model","isEnabled","createElement","7974FdvSXp","checkChild","editor","_getPositionToInsertFootnote","570885MEFZrw","insert-footnote-command-executed-with-invalid-id","9968022eBRwBy","574580xjFbvu","getFirstRange","get","execute","insertObject","selection","isObject","FootnotesEditing","string","isBlock","24sEuyRn","getItems","length","change","3577938MyStXs","397HFEOmQ","1706475HNbnCB"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(860133===parseInt(e(366))/1*(parseInt(e(344))/2)+-parseInt(e(331))/3+parseInt(e(351))/4+-parseInt(e(348))/5+-parseInt(e(350))/6+-parseInt(e(365))/7*(-parseInt(e(361))/8)+-parseInt(e(336))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(337)](){const t=g,e=this[t(346)][t(341)][t(339)][t(356)],o=this[t(347)](e);this[t(342)]=!!o}[g(354)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(339)],r=this[e(347)](s);if(!r)return;const a=o[e(332)][e(353)](e(358)),c=t?.[e(340)]??(0,i.uid)();!function(t){const o=e;return o(359)==typeof t&&t[o(363)]>0&&!/\s/[o(335)](t)&&!/^\d/[o(335)](t)}(c)?(0,i.logWarning)(e(349)):(n[e(364)](t=>{const o=e,i=t[o(343)](o(338),{footnoteId:c});n[o(355)](i,r,null)}),a[e(333)](c))}[g(347)](t){const e=g,{model:o}=this[e(346)],{schema:n}=o,i=t[e(352)]();for(const t of i[e(362)]())if(n[e(360)](t)||n[e(357)](t))return null;const s=i[e(334)];return n[e(345)](s,e(338))?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=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762214400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>S(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)(S(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(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 S(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 E(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=_;function A(){const t=["setAttribute","add","selection","requires","getFirstRange","reduce","definition","277076ZLpbyD","110NGBBkq","getRanges","205473WfYMrP","_insertEmptyFootnotesDefinitionsContainer","element","footnoteDefinition","isPremiumPlugin","contentInsertion","push","createElement","6069qbsDhP","22317240vtIlTJ","_handleCopyFootnotesDefinitions","end","htmlProcessor","create","stringify","getFootnotes","getAttribute","getSelectedBlocks","append","data","footnoteId","drop","document","10662IGCHrZ","getFootnotesDefinitionsObjectElement","editor","entries","editing","content","find","clipboardInput","outputTransformation","remove","3721632BdNOkT","root","length","8EtbSjv","init","footnoteRef","FootnotesClipboard","getData","pluginName","application/ckeditor5-footnotes","toModel","toData","listenTo","get","setData","includes","parse","createRangeIn","isOfficialPlugin","insert","from","9PybhSr","toView","3575580mjvrkq","sourceEditorId","1489744pqtkTt","dataTransfer","_defineClipboardIntegration","method","getFootnote","footnotesDefinitions","_handlePasteFootnotesDefinitions","flatMap","change"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=358]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(835617===parseInt(e(423))/1+parseInt(e(401))/2*(parseInt(e(365))/3)+-parseInt(e(362))/4*(parseInt(e(363))/5)+-parseInt(e(388))/6*(parseInt(e(373))/7)+parseInt(e(398))/8*(parseInt(e(419))/9)+-parseInt(e(421))/10+parseInt(e(374))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(406)](){return T(404)}static get[T(358)](){return[v,P.ClipboardPipeline]}static get[T(416)](){return!0}static get[T(369)](){return!0}[T(402)](){this[T(425)]()}[T(425)](){const t=T;this[t(375)](),this[t(429)]()}[T(375)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(411)](P.ClipboardPipeline),s=o[t(411)](d);this[t(410)](i,t(396),(o,i)=>{const r=t,a=L(n[r(415)](i[r(393)]));if(!a[r(400)])return;const c=s[r(380)](),l=a[r(360)]((t,o)=>{const n=r,i=c[n(394)](t=>t.id===o);if(i){const o=e[n(384)][n(420)](i[n(361)],{isClipboardPipeline:!0}),s=e[n(384)][n(377)][n(409)](o);t[i.id]=s}return t},Object[r(378)](null));i[r(424)][r(412)](r(407),JSON[r(379)](l))})}[T(429)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(392)],r=n[t(411)](P.ClipboardPipeline),a=n[t(411)](d);let c=null;this[t(410)](s[t(387)],t(395),(e,o)=>{const n=t,i=o[n(424)][n(405)](n(407));c=i?JSON[n(414)](i):null}),this[t(410)](r,t(370),(n,s)=>{const r=t,l=s[r(422)]===this[r(390)].id;l&&r(386)===s[r(426)]||o[r(431)](t=>{const n=r;let f=a[n(389)]();const u=!!f&&Array[n(418)](o[n(387)][n(434)][n(382)]())[n(413)](f);if(f&&!u&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(415)](e))n.is(o(367),o(428))&&i[o(371)](n);for(const e of i)t[o(397)](e)}(t,s[n(393)]),!c)return;const{selection:d}=o[n(387)],h=d[n(359)]()[n(399)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(415)](e))if(n.is(o(367),o(428)))return n;return null}(t,s[n(393)]),f||=a[n(366)](t,h));const p=Array[n(418)](d[n(364)]())[n(430)](L),m=function(t,e,o){const s=n,r=Object[s(378)](null);for(const{item:n}of t[s(415)](e))if(n.is(s(367),s(403))){const e=n[s(381)](s(385));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(432)](s(385),r[e],n)}return r}(t,s[n(393)],t=>{const e=n;return!l||!!a[e(427)](t)&&!p[e(413)](t)});for(const[o,i]of Object[n(391)](c)){const s=m[o]||o,r=t[n(372)](n(368),{footnoteId:s}),a=e[n(384)][n(377)][n(420)](i),c=e[n(384)][n(408)](a,r);t[n(383)](c,r),t[n(417)](r,f,n(376))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(367),e(403))&&o[e(433)](n[e(381)](e(385)));return Array[e(418)](o)}var V=o(311),N=o(355),O=o(450),R=o.n(O),K=o(774),j=o.n(K),M=o(265),B=o.n(M),U=o(410),W=o.n(U),z=o(238),H=o.n(z),q=o(14),Z={attributes:{"data-cke":!0}};Z.setAttributes=W(),Z.insert=B().bind(null,"head"),Z.domAPI=j(),Z.insertStyleElement=H();R()(q.A,Z);q.A&&q.A.locals&&q.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,V.ButtonView)),e.add("menuBar:insertFootnote",J(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=Q;function Y(){var t=["14441HtbaMT","260467bQSkce","9327231QPGeAe","19626360VzKyNm","1936362NYOuJM","requires","842169hJHyMF","4pomRfQ","isOfficialPlugin","pluginName","2ahfDEc","5207460gjalFY","Footnotes","1336QWWHqY","isPremiumPlugin"];return(Y=function(){return t})()}function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=233]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(572289===-parseInt(e(247))/1*(parseInt(e(241))/2)+parseInt(e(237))/3+-parseInt(e(238))/4*(parseInt(e(242))/5)+parseInt(e(235))/6+parseInt(e(246))/7*(parseInt(e(244))/8)+-parseInt(e(233))/9+parseInt(e(234))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[X(240)](){return X(243)}static get[X(236)](){return[v,D,G]}static get[X(239)](){return!0}static get[X(245)](){return!0}}function tt(){const t=["4242582zwNofR","21518775pMgQXb","5383hTpKgp","lower-alpha","1816896yJBgBq","10BnPHnX","11636UxFrDo","decimal-leading-zero","decimal","545354fikcgH","lower-roman","88JXjeLG","lower-latin","upper-alpha","upper-roman","51YLLwZv","2849875rBpAhk","upper-latin"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=403]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(709815===parseInt(e(413))/1+-parseInt(e(408))/2+-parseInt(e(419))/3*(parseInt(e(410))/4)+-parseInt(e(420))/5+-parseInt(e(404))/6+-parseInt(e(406))/7*(-parseInt(e(415))/8)+parseInt(e(405))/9*(parseInt(e(409))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(412),ot(411),ot(416),ot(403),ot(407),ot(417),ot(414),ot(418)],it=rt;function st(){const t=["_updateFootnotesCounters","footnotesListStyle","1931005sadzuB","get","getFootnotesDefinitionsObjectElement","isEnabled","refresh","36SgbcoP","value","168OcaoIF","1260nxIxXN","47631tAAfUh","execute","37576FnYJsZ","model","setAttribute","plugins","23235660arfPjz","18655ACSVel","44sAZHzI","change","3645190coVGFw","getAttribute","2279384UViLox","includes","4huuQXp"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=337]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(785148===parseInt(e(360))/1+-parseInt(e(356))/2*(parseInt(e(358))/3)+parseInt(e(346))/4*(parseInt(e(349))/5)+-parseInt(e(357))/6*(parseInt(e(339))/7)+-parseInt(e(344))/8*(parseInt(e(354))/9)+parseInt(e(342))/10*(parseInt(e(340))/11)+parseInt(e(338))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(353)](){const t=it,{editor:e}=this,o=e[t(337)][t(350)](d)[t(351)]();this[t(352)]=!!o,this[t(355)]=o?.[t(343)](t(348))??null}[it(359)]({value:t}){const e=it,{editor:o}=this,n=o[e(337)][e(350)](d),i=n[e(351)]();i&&nt[e(345)](t)&&o[e(361)][e(341)](o=>{const s=e;o[s(362)](s(348),t,i),n[s(347)](o)})}}const ct=ft;!function(t){const e=ft,o=t();for(;;)try{if(970713===-parseInt(e(483))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(499))/4*(-parseInt(e(491))/5)+parseInt(e(477))/6+-parseInt(e(497))/7+parseInt(e(478))/8*(-parseInt(e(489))/9)+parseInt(e(484))/10*(parseInt(e(500))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class lt extends t.Command{[ct(481)](){const t=ct,{editor:e}=this,o=e[t(487)][t(482)](d)[t(494)]();this[t(480)]=!!o,this[t(479)]=o?.[t(495)](t(476))??null}[ct(490)]({value:t}){const e=ct,{editor:o}=this,n=o[e(487)][e(482)](d),i=n[e(494)]();i&&Number[e(488)](t)&&o[e(486)][e(493)](o=>{const s=e;o[s(496)](s(476),t,i),n[s(485)](o)})}}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=476]})(t,e)}function ut(){const t=["change","getFootnotesDefinitionsObjectElement","getAttribute","setAttribute","4541453aSHaqY","110792NbNjZW","1892668NobdeK","19659706AUAyJW","footnotesListStart","226806DaVTuP","143680SUaCMh","value","isEnabled","refresh","get","8GxkHxc","20KEfvdF","_updateFootnotesCounters","model","plugins","isInteger","765JYXIRU","execute","20RcqnKU","2949897BbfvlI"];return(ut=function(){return t})()}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=192]})(t,e)}function pt(){const t=["schema","consume","_defineFormatter","13629rtwSvE","lower-alpha","document","parent","upper-alpha","requires","writer","toUpperCase","hasAttribute","consumable","attribute:footnotesListStart:footnotesDefinitions","isPremiumPlugin","setStyle","position","removeAttribute","fromCharCode","extend","decimal-leading-zero","parseInt","upper-latin","setFootnoteFormatter","padStart","differ","_formatFootnoteListValue","toViewElement","footnotesDefinitions","upcast","4gwRbKH","config","element:ol","_definePostfixer","footnotesStart","getChanges","registerPostFixer","1163352bVXOgh","upper-roman","type","insert","_updateFootnotesCounters","find","get","max","name","55922WJpyNx","define","isNaN","mapper","model","viewItem","FootnotesPropertiesEditing","list-style-type","plugins","checkAttribute","lower-roman","commands","11298384OAPZch","getStyle","item","5016605TATdVQ","footnotesListStart","pluginName","setAttribute","modelCursor","start","$text","lower-latin","footnotes.footnotesProperties.defaultListStyle","1012oVcuyH","11748195pEojJV","from","getAttribute","getItems","for","hasClass","_getDefaultListStyle","element","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","_defineSchema","242jMMGDm","isOfficialPlugin","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","footnotes-list","getChildren","_defineConverters","24ddwShs","nodeAfter","editor","decimal","createRangeOn","_getDefaultStartIndex","downcast","809431hklEUk","removeStyle","footnotesStyle","floor","add","init","10SFuUnV"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(950302===-parseInt(e(226))/1*(parseInt(e(242))/2)+parseInt(e(199))/3*(-parseInt(e(266))/4)+parseInt(e(257))/5+-parseInt(e(254))/6+parseInt(e(292))/7*(-parseInt(e(285))/8)+parseInt(e(267))/9*(parseInt(e(195))/10)+-parseInt(e(278))/11*(-parseInt(e(233))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(259)](){return dt(248)}static get[dt(204)](){return[v,d]}static get[dt(279)](){return!0}static get[dt(210)](){return!0}[dt(194)](){const t=dt,{editor:e}=this;e[t(227)][t(243)](t(265),t(288)),e[t(227)][t(243)](t(280),1),e[t(253)][t(193)](t(294),new at(e)),e[t(253)][t(193)](t(230),new lt(e)),this[t(277)](),this[t(284)](),this[t(198)](),this[t(229)]()}[dt(277)](){const t=dt,{editor:e}=this,{schema:o}=e[t(246)];o[t(215)](t(224),{allowAttributes:[t(281),t(258)]})}[dt(284)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(271)](t(225))[t(193)](e=>{const o=t;e.on(o(228),(t,e,n)=>{const s=o,r=e[s(247)],a=e[s(261)]?.[s(202)];r[s(272)](s(282))&&a?.is(s(274),s(224))&&(function(t,e,o,n){const i=s;if(!n[i(251)](e,i(258)))return;let r=1;const a=o[i(208)][i(197)](t,{attributes:i(262)});if(a){const e=Number[i(217)](t[i(269)](i(262)),10);Number[i(244)](e)||(r=e)}!a&&e[i(207)](i(258))||o[i(205)][i(260)](i(258),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(251)](e,i(281)))return;let r=i(288),a=!1;if(o[i(208)][i(197)](t,{attributes:i(235)})){const e={1:i(288),a:i(200),A:i(203),i:i(252),I:i(234)}[t[i(269)](i(235))];e&&(r=e),a=!0}o[i(208)][i(197)](t,{styles:i(249)})&&(r=t[i(255)](i(249)),a=!0),!a&&e[i(207)](i(281))||o[i(205)][i(260)](i(281),r,e)}(r,a,n,i))})}),o[t(271)](t(291))[t(193)](e=>{const o=t;e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(208)][i(197)](e[i(256)],t[i(241)]))return;const s=gt(e[i(256)],n[i(245)]),{attributeNewValue:r}=e;null==r||1===r?n[i(205)][i(213)](i(262),s):n[i(205)][i(260)](i(262),String(r),s)}),e.on(o(275),(t,e,n)=>{const i=o;if(!n[i(208)][i(197)](e[i(256)],t[i(241)]))return;const s=gt(e[i(256)],n[i(245)]),{attributeNewValue:r}=e;r&&i(288)!==r?n[i(205)][i(211)](i(249),r,s):n[i(205)][i(293)](i(249),s)})})}[dt(229)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(250)][t(239)](d),i=this[t(273)](),s=this[t(290)]();o[t(201)][t(232)](e=>{const r=t,a=o[r(201)][r(221)][r(231)]();let c=!1;for(const t of a){if(r(236)!==t[r(235)]||r(263)===t[r(241)])continue;const n=o[r(289)](t[r(212)][r(286)]);for(const t of n[r(270)]())t.is(r(274),r(224))&&(!t[r(207)](r(258))&&o[r(196)][r(251)](t,r(258))&&(e[r(260)](r(258),s,t),c=!0),!t[r(207)](r(281))&&o[r(196)][r(251)](t,r(281))&&(e[r(260)](r(281),i,t),c=!0))}return c&&n[r(237)](e),c})}[dt(198)](){const t=dt,{editor:e}=this;e[t(250)][t(239)](d)[t(219)](e=>this[t(222)](e))}[dt(273)](){const t=dt;return this[t(287)][t(227)][t(239)](t(265))}[dt(290)](){const t=dt;return this[t(287)][t(227)][t(239)](t(280))}[dt(222)]({container:t,value:e,digits:o}){const n=dt,i=t[n(269)](n(281)),s=t[n(269)](n(258)),r=Math[n(192)](e)+(s??1)-1;switch(i){case n(216):return function(t,e){const o=n;return String(t)[o(220)](e,"0")}(r,Math[n(240)](2,o));case n(200):case n(264):return wt(r,!1);case n(203):case n(218):return wt(r,!0);case n(252):return bt(r,!1);case n(234):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(223)](t);return Array[o(268)](n[o(283)]())[o(238)](t=>t.is(o(274),"ol")&&t[o(272)](o(282)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(214)](97+t)+n,i=Math[o(192)]((i-1)/26)}return e?n[o(206)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(276)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=175]})(t,e)}function St(){var t=["isPremiumPlugin","pluginName","FootnotesProperties","requires","291449lfgnLC","899991JUSqqc","71350TsvWeC","1850415daJjoc","713676zxzRCi","928198AuWFKy","16540888cMmgQE","isOfficialPlugin","104ZEErcc"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(257755===-parseInt(e(186))/1+-parseInt(e(178))/2+-parseInt(e(187))/3+-parseInt(e(181))/4*(parseInt(e(175))/5)+-parseInt(e(177))/6+-parseInt(e(176))/7+parseInt(e(179))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(183)](){return Ft(184)}static get[Ft(185)](){return[mt,Ct]}static get[Ft(180)](){return!0}static get[Ft(182)](){return!0}}function Pt(){var t=["33840KODsMc","865310bRsXor","258kWZupJ","4593YCwvzb","305291SoYQCG","3987dkmGXf","1139512jfNCVm","36WZGZvm","313676SqZhkx","6498422etevIT"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=223]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(665438===-parseInt(e(226))/1+-parseInt(e(224))/2*(parseInt(e(225))/3)+-parseInt(e(230))/4+parseInt(e(223))/5*(-parseInt(e(229))/6)+parseInt(e(231))/7+-parseInt(e(228))/8+-parseInt(e(227))/9*(-parseInt(e(232))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Y,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>X,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-=439]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(529743===-parseInt(e(452))/1+-parseInt(e(462))/2+parseInt(e(457))/3*(-parseInt(e(459))/4)+-parseInt(e(466))/5+parseInt(e(474))/6*(-parseInt(e(441))/7)+parseInt(e(471))/8*(-parseInt(e(469))/9)+parseInt(e(446))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(458)];[r(476)];[r(455)];[r(444)]=new Map;constructor(t,e){const o=r;this[o(458)]=t,this[o(476)]=e[o(449)],this[o(455)]=e[o(463)]}[r(439)](){const t=r;this[t(444)][t(443)]()}[r(479)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(460)===i[e(461)]&&e(465)!==i[e(442)]&&i[e(473)][e(468)]){const t=this[e(458)][e(447)](i[e(473)][e(468)]);for(const o of t[e(464)]()){if(!o.is(e(445),this[e(476)]))continue;const t=this[e(455)](o);n[e(482)](t)||n[e(477)](t,[]),n[e(453)](t)[e(472)](o)}}if(e(470)===i[e(461)]&&i[e(442)]===this[e(476)]){const t=this[e(455)]({getAttribute:t=>i[e(478)][e(453)](t)});o[e(481)](t)}}for(const[t,n]of this[e(444)])e(448)===n[e(454)][e(475)]&&o[e(481)](t);for(const t of o)this[e(444)][e(480)](t);for(const[t,o]of n)this[e(444)][e(477)](t,o[o[e(451)]-1]);const i=new Set;for(const[t,s]of n)o[e(482)](t)&&(i[e(481)](s[0]),s[e(451)]>1?n[e(477)](t,s[e(467)](1)):n[e(480)](t),o[e(480)](t));return{removed:Array[e(450)](o),inserted:Array[e(450)](n[e(456)]())[e(440)](),moved:Array[e(450)](i)}}}function l(){const t=["21021MKfzLj","name","clear","_trackedElements","element","31518570nmPFbx","createRangeOn","$graveyard","elementName","from","length","430387bbLGGj","get","root","_getElementKey","values","3xVOXli","_model","2643448sUEnsf","insert","type","458574mmbbXd","getElementKey","getItems","$text","4764135faTphN","slice","nodeAfter","14373IHJeEw","remove","1040Mtzcti","push","position","282UHxnFa","rootName","_elementName","set","attributes","getChanges","delete","add","has","reset","flat"];return(l=function(){return t})()}const f=u;function u(t,e){const o=m();return(u=function(t,e){return o[t-=203]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(874272===parseInt(e(243))/1+parseInt(e(236))/2*(-parseInt(e(265))/3)+parseInt(e(273))/4+-parseInt(e(245))/5+parseInt(e(289))/6+parseInt(e(281))/7+-parseInt(e(222))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[f(209)]=[];[f(239)]=null;[f(282)]=null;[f(228)];[f(264)];[f(255)];static get[f(287)](){return f(229)}static get[f(221)](){return!0}static get[f(223)](){return!0}constructor(t){const e=f;super(t),this[e(228)]=new c(this[e(247)][e(215)],{elementName:e(267),getElementKey:()=>e(237)}),this[e(264)]=new c(this[e(247)][e(215)],{elementName:e(295),getElementKey:t=>t[e(274)](e(262))}),this[e(255)]=new c(this[e(247)][e(215)],{elementName:e(238),getElementKey:t=>t[e(274)](e(262))})}[f(203)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(212)][t(294)](e=>{const n=t,i=o[n(212)][n(217)][n(283)]();let s=!1;return this[n(244)](e,i)&&(s=!0),this[n(298)](e,i)&&(s=!0),this[n(270)](e,i)&&(s=!0),this[n(258)](e)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(272)](e)&&(s=!0),s}),this[t(256)](o[t(212)],t(251),()=>{const e=t;o[e(275)]({isUndoable:!1},t=>{this[e(230)](t)})},{priority:t(299)}),this[t(256)](n,t(277),()=>{const e=t;this[e(209)]=[],this[e(228)][e(220)](),this[e(264)][e(220)](),this[e(255)][e(220)]()},{priority:t(252)})}[f(226)](){return this[f(239)]}[f(257)](t){const e=f;return this[e(209)][e(291)](e=>e.id===t)||null}[f(224)](){const t=f;return Array[t(293)](this[t(209)])}[f(288)](){return this[f(282)]}[f(211)](t){this[f(282)]=t}[f(271)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(209)][o(246)];i++)this[o(276)](t,i)&&(n=!0);return n}[f(278)](t,e){const o=f,n=t[o(204)](o(267),{});return t[o(240)](n,e),this[o(239)]=n,n}[f(230)](t){const e=f;if(!this[e(209)][e(246)]||this[e(239)])return;const o=this[e(209)][0][e(279)][e(207)],n=this[e(278)](t,o);for(const o of this[e(209)])o[e(280)][e(219)]||t[e(286)](o[e(280)],n,e(285));this[e(271)](t)}[f(244)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(228)][o(283)](e);if(r[o(246)]&&(this[o(239)]=r[0]),i[o(246)])if(i[o(246)]>1||this[o(239)]&&i[o(234)](t=>t!==this[o(239)])){const e=t[o(204)](o(267),{}),s=[];this[o(239)]&&s[o(259)](this[o(239)]),s[o(259)](...i),t[o(286)](e,s[0],o(205));for(const n of s)t[o(213)](t[o(268)](n),t[o(208)](e,o(285))),t[o(214)](n);this[o(239)]=e,this[o(271)](t),n=!0}else this[o(239)]=i[0];if(s[o(246)]&&o(261)===this[o(239)]?.[o(207)][o(254)]){for(const e of this[o(209)])t[o(214)](e[o(279)]),n=!0;this[o(209)]=[],this[o(239)]=null}return n}[f(298)](t,e){const o=f;let n=!1;const i=this[o(247)][o(284)][o(235)](o(253)),{inserted:s,moved:r}=this[o(255)][o(283)](e);for(const e of[...r,...s]){const s=e[o(274)](o(262)),r=this[o(257)](s);r&&(r[o(280)]=e),h(t,i,e)&&(n=!0)}return n}[f(270)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(264)][o(283)](e);for(const e of i)this[o(210)](t,e)&&(n=!0);for(const e of s)this[o(218)](t,e)&&(n=!0);for(const e of r)this[o(225)](t,e)&&(n=!0);return n}[f(242)](t){const e=f;if(!this[e(239)])return!1;let o=!1;if(this[e(239)][e(296)]!==this[e(209)][e(246)]){const n=[];for(const t of this[e(239)][e(250)]()){const i=t[e(274)](e(262));this[e(257)](i)||(n[e(269)](t),o=!0)}for(const o of n)t[e(214)](o)}const n=new Set,i=[];for(const t of this[e(239)][e(250)]()){const s=t[e(274)](e(262));n[e(266)](s)?(i[e(269)](t),o=!0):n[e(297)](s)}for(const o of i)t[e(214)](o);return this[e(239)][e(296)]||(t[e(214)](this[e(239)]),this[e(239)]=null,o=!0),o}[f(218)](t,e){const o=f;if(this[o(209)][o(291)](t=>t[o(279)]===e))return!1;let n=!1;const i=e[o(274)](o(262)),s=this[o(209)][o(300)](t=>t.id===i);-1!==s&&(t[o(214)](this[o(209)][s][o(279)]),this[o(209)][o(263)](s,1),n=!0);let r=this[o(239)]?function(t,e){const n=o;for(const o of t[n(250)]())if(o[n(274)](n(262))===e)return o;return null}(this[o(239)],i):null;r||(r=t[o(204)](o(238),{footnoteId:i}),this[o(239)]&&(t[o(286)](r,this[o(239)],o(285)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(247)][o(215)],this[o(209)],e);this[o(209)][o(263)](c,0,a);let l=c;return-1!==s&&(l=Math[o(216)](c,s)),this[o(271)](t,l)&&(n=!0),n}[f(210)](t,e){const o=f,n=this[o(209)][o(300)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(209)][n];return o(261)!==s[o(280)][o(207)][o(254)]&&(t[o(214)](s[o(280)]),i=!0),this[o(209)][o(263)](n,1),this[o(271)](t,n)&&(i=!0),i}[f(225)](t,e){const o=f,n=e[o(274)](o(262)),i=this[o(209)][o(300)](t=>t.id===n),s=this[o(209)][i];let r=!1;s[o(279)]=e,this[o(209)][o(263)](i,1);const a=p(this[o(247)][o(215)],this[o(209)],e);return this[o(209)][o(263)](a,0,s),this[o(271)](t,Math[o(216)](i,a))&&(r=!0),r}[f(276)](t,e){const o=f;if(!this[o(239)])return!1;const n=this[o(209)][e];let i;return i=this[o(282)]?this[o(282)]({footnote:n,container:this[o(239)],digits:String(this[o(209)][o(246)])[o(246)],value:e+1}):String(e+1),n[o(279)][o(274)](o(248))!=i&&(t[o(241)](o(248),i,n[o(279)]),!0)}[f(272)](t){const e=f;if(!this[e(239)]||this[e(209)][e(246)]<2)return!1;if(function(t,o){const n=e;if(t[n(246)]!==o[n(246)])return!1;for(let e=0;e<t[n(246)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(209)][e(233)](t=>t.id),Array[e(293)](this[e(239)][e(250)]())[e(233)](t=>t[e(274)](e(262)))))return!1;let o=!1;for(let n=0;n<this[e(209)][e(246)];n++){const i=this[e(209)][n],s=t[e(292)](i[e(280)]),r=t[e(208)](this[e(239)],n);s[e(227)](r)||(t[e(213)](t[e(260)](i[e(280)]),r),o=!0)}return o}[f(258)](t){const e=f;if(!this[e(209)][e(246)])return!1;const{model:o}=this[e(247)];let n=!1;for(let i=0;i<this[e(209)][e(246)]-1;i++){const s=this[e(209)][i],r=this[e(209)][i+1],a=o[e(292)](s[e(279)]),c=o[e(292)](r[e(279)]);e(206)===a[e(290)](c)&&(this[e(225)](t,s[e(279)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(296)])return!1;const i=n(e?232:231);return t[n(286)](t[n(204)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(246)])return 0;const i=t[n(292)](o);for(let o=0;o<e[n(246)];o++){const s=e[o],r=t[n(292)](s[n(279)]);if(n(205)===i[n(290)](r))return o}const s=o[n(207)];let r=-1;for(let t=e[n(246)]-1;t>=0;t--)if(e[t][n(279)][n(207)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(212)][n(249)](),c=a[n(301)](s[n(254)]),l=a[c+1];if(l)for(let t=0;t<e[n(246)];t++)if(e[t][n(279)][n(207)][n(254)]===l)return t;return e[n(246)]}function m(){const t=["_footnoteDefsContainerTracker","FootnotesTracker","_ensureFootnotesDefinitionsContainerExists","footnoteInlineContent","paragraph","map","some","get","2819038XqSqFP","singleton","footnoteDefinition","_footnotesDefinitions","append","setAttribute","_handleFootnotesDefinitionsObjectSync","1134632kxWqLR","_handleFootnotesDefinitionsObjectChanges","1054135TDoGKK","length","editor","footnoteCounter","getRootNames","getChildren","change:data","high","footnotes.multiBlock","rootName","_footnoteDefsTracker","listenTo","getFootnote","_ensureFootnotesReferencesHaveProperOrder","push","createRangeOn","$graveyard","footnoteId","splice","_footnoteRefsTracker","3PzrpfH","has","footnotesDefinitions","createRangeIn","unshift","_handleFootnoteReferencesChanges","_updateFootnotesCounters","_sortFootnoteDefinitions","5503484niKwlA","getAttribute","enqueueChange","_updateFootnoteRefCounter","set","_insertEmptyFootnotesDefinitionsContainer","reference","definition","11986212QUxlGR","_footnoteFormatter","getChanges","config","end","insert","pluginName","getFootnotesFormatter","4134534TtVTVd","compareWith","find","createPositionBefore","from","registerPostFixer","footnoteRef","childCount","add","_handleFootnoteDefinitionsChanges","low","findIndex","indexOf","init","createElement","before","after","root","createPositionAt","_footnotes","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","document","move","remove","model","min","differ","_handleInsertedFootnoteReference","parent","reset","isOfficialPlugin","19338320RHLoWD","isPremiumPlugin","getFootnotes","_handleMovedFootnoteReference","getFootnotesDefinitionsObjectElement","isEqual"];return(m=function(){return t})()}function g(){const t=["_moveSelectionToFootnoteDefinition","editor","string","8856024yyBhPb","isBlock","isEnabled","plugins","end","FootnotesEditing","model","footnoteRef","test","get","_getPositionToInsertFootnote","selection","2589456IFoOWq","1bgeLmU","checkChild","footnoteId","execute","7OmLRDg","isObject","getFirstRange","3957111GxiEBO","35826280KUHJso","createElement","length","9qylIwK","insertObject","2469342dRhbxo","insert-footnote-command-executed-with-invalid-id","5819345KAzCCK","517516onhdJZ","document","change","getItems","refresh"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(669857===parseInt(e(140))/1*(-parseInt(e(116))/2)+-parseInt(e(147))/3+parseInt(e(119))/4+-parseInt(e(118))/5+-parseInt(e(139))/6+parseInt(e(144))/7*(parseInt(e(127))/8)+-parseInt(e(114))/9*(-parseInt(e(148))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(123)](){const t=w,e=this[t(125)][t(133)][t(120)][t(138)],o=this[t(137)](e);this[t(129)]=!!o}[w(143)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(120)],r=this[e(137)](s);if(!r)return;const a=o[e(130)][e(136)](e(132)),c=t?.[e(142)]??(0,i.uid)();!function(t){const o=e;return o(126)==typeof t&&t[o(113)]>0&&!/\s/[o(135)](t)&&!/^\d/[o(135)](t)}(c)?(0,i.logWarning)(e(117)):(n[e(121)](t=>{const o=e,i=t[o(112)](o(134),{footnoteId:c});n[o(115)](i,r,null)}),a[e(124)](c))}[w(137)](t){const e=w,{model:o}=this[e(125)],{schema:n}=o,i=t[e(146)]();for(const t of i[e(122)]())if(n[e(128)](t)||n[e(145)](t))return null;const s=i[e(131)];return n[e(141)](s,e(134))?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=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762300800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=337]})(t,e)}function _(){const t=["getAttribute","end","toView","4926020iWqfkP","_insertEmptyFootnotesDefinitionsContainer","3318dFdflk","getFirstRange","dataTransfer","contentInsertion","getFootnote","init","FootnotesClipboard","root","reduce","footnoteRef","setData","427695aTVjTx","application/ckeditor5-footnotes","780915RkIJsI","document","createRangeIn","includes","44PeGzUJ","get","pluginName","footnoteId","isOfficialPlugin","toData","toModel","setAttribute","data","getFootnotesDefinitionsObjectElement","1NYdwUF","editor","method","from","_handlePasteFootnotesDefinitions","clipboardInput","element","footnotesDefinitions","264rvTZOE","flatMap","425277rZxbhd","htmlProcessor","insert","definition","stringify","push","isPremiumPlugin","_handleCopyFootnotesDefinitions","outputTransformation","createElement","_defineClipboardIntegration","editing","getSelectedBlocks","footnoteDefinition","remove","drop","4LnXGYy","create","change","7058748zGLuVZ","length","entries","getData","getRanges","requires","3149534HKLuIy","content","add","sourceEditorId","2863hXDveo","getFootnotes","selection","parse","append","find","listenTo"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(860619===-parseInt(e(413))/1*(-parseInt(e(370))/2)+parseInt(e(399))/3+-parseInt(e(361))/4*(-parseInt(e(397))/5)+-parseInt(e(386))/6*(-parseInt(e(374))/7)+parseInt(e(343))/8*(parseInt(e(345))/9)+-parseInt(e(384))/10+parseInt(e(403))/11*(-parseInt(e(364))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[T(405)](){return T(392)}static get[T(369)](){return[v,S.ClipboardPipeline]}static get[T(407)](){return!0}static get[T(351)](){return!0}[T(391)](){this[T(355)]()}[T(355)](){const t=T;this[t(352)](),this[t(339)]()}[T(352)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](S.ClipboardPipeline),s=o[t(404)](d);this[t(380)](i,t(353),(o,i)=>{const r=t,a=D(n[r(401)](i[r(371)]));if(!a[r(365)])return;const c=s[r(375)](),l=a[r(394)]((t,o)=>{const n=r,i=c[n(379)](t=>t.id===o);if(i){const o=e[n(411)][n(383)](i[n(348)],{isClipboardPipeline:!0}),s=e[n(411)][n(346)][n(408)](o);t[i.id]=s}return t},Object[r(362)](null));i[r(388)][r(396)](r(398),JSON[r(349)](l))})}[T(339)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(356)],r=n[t(404)](S.ClipboardPipeline),a=n[t(404)](d);let c=null;this[t(380)](s[t(400)],t(340),(e,o)=>{const n=t,i=o[n(388)][n(367)](n(398));c=i?JSON[n(377)](i):null}),this[t(380)](r,t(389),(n,s)=>{const r=t,l=s[r(373)]===this[r(414)].id;l&&r(360)===s[r(337)]||o[r(363)](t=>{const n=r;let f=a[n(412)]();const u=!!f&&Array[n(338)](o[n(400)][n(376)][n(357)]())[n(402)](f);if(f&&!u&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(401)](e))n.is(o(341),o(342))&&i[o(350)](n);for(const e of i)t[o(359)](e)}(t,s[n(371)]),!c)return;const{selection:d}=o[n(400)],h=d[n(387)]()[n(393)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(401)](e))if(n.is(o(341),o(342)))return n;return null}(t,s[n(371)]),f||=a[n(385)](t,h));const p=Array[n(338)](d[n(368)]())[n(344)](D),m=function(t,e,o){const s=n,r=Object[s(362)](null);for(const{item:n}of t[s(401)](e))if(n.is(s(341),s(395))){const e=n[s(381)](s(406));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(410)](s(406),r[e],n)}return r}(t,s[n(371)],t=>{const e=n;return!l||!!a[e(390)](t)&&!p[e(402)](t)});for(const[o,i]of Object[n(366)](c)){const s=m[o]||o,r=t[n(354)](n(358),{footnoteId:s}),a=e[n(411)][n(346)][n(383)](i),c=e[n(411)][n(409)](a,r);t[n(378)](c,r),t[n(347)](r,f,n(382))}c=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(341),e(395))&&o[e(372)](n[e(381)](e(406)));return Array[e(338)](o)}var R=o(311),V=o(355),O=o(450),N=o.n(O),K=o(774),j=o.n(K),M=o(265),B=o.n(M),z=o(410),W=o.n(z),U=o(238),H=o.n(U),q=o(14),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=H();N()(q.A,G);q.A&&q.A.locals&&q.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,R.ButtonView)),e.add("menuBar:insertFootnote",J(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=366]})(t,e)}var Q=Z;function $(){var t=["isPremiumPlugin","requires","9927963SyTvLz","Footnotes","1633415WlIQXF","4894304MjkLGC","239275lZNPaJ","6FCpbLf","pluginName","isOfficialPlugin","265mPPqto","469888YwRfVl","13002dhLjso","643442CWlBxO"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(323118===parseInt(e(378))/1+parseInt(e(371))/2*(-parseInt(e(379))/3)+parseInt(e(369))/4+-parseInt(e(368))/5*(parseInt(e(370))/6)+parseInt(e(376))/7+-parseInt(e(377))/8+parseInt(e(374))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Y extends t.Plugin{static get[Q(366)](){return Q(375)}static get[Q(373)](){return[v,L,X]}static get[Q(367)](){return!0}static get[Q(372)](){return!0}}function tt(){const t=["decimal","lower-latin","331921HjcfAq","42NlJSHa","232236bGcdbo","6198400IPxqmG","9pOwHFl","upper-roman","upper-latin","lower-alpha","658056EfWbzg","upper-alpha","2091018CSEUsb","decimal-leading-zero","659024RAvDgC","12bYKIxN","696250qlfkmk","lower-roman"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=238]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(266830===parseInt(e(244))/1+parseInt(e(252))/2+parseInt(e(239))/3*(parseInt(e(246))/4)+parseInt(e(240))/5+parseInt(e(254))/6+-parseInt(e(245))/7*(parseInt(e(238))/8)+parseInt(e(248))/9*(-parseInt(e(247))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(242),et(255),et(243),et(250),et(251),et(253),et(241),et(249)],it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=289]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(399975===parseInt(e(298))/1+-parseInt(e(308))/2+parseInt(e(303))/3+-parseInt(e(307))/4+parseInt(e(301))/5+parseInt(e(293))/6+-parseInt(e(306))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(289)](){const t=it,{editor:e}=this,o=e[t(305)][t(302)](d)[t(292)]();this[t(297)]=!!o,this[t(295)]=o?.[t(294)](t(304))??null}[it(290)]({value:t}){const e=it,{editor:o}=this,n=o[e(305)][e(302)](d),i=n[e(292)]();i&&nt[e(296)](t)&&o[e(299)][e(291)](o=>{const s=e;o[s(300)](s(304),t,i),n[s(309)](o)})}}function at(){const t=["593707bRtXFz","model","setAttribute","2699300ebJLep","get","1857543tmHOwC","footnotesListStyle","plugins","4965317tQYRwC","1105272tWkydZ","1258014iogRFA","_updateFootnotesCounters","refresh","execute","change","getFootnotesDefinitionsObjectElement","1571298hQrCAe","getAttribute","value","includes","isEnabled"];return(at=function(){return t})()}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=138]})(t,e)}function ft(){const t=["124bNbaGn","getAttribute","plugins","7494qVSPkd","44AIlhyX","change","getFootnotesDefinitionsObjectElement","execute","isInteger","202516tjyIMf","6984DtYGvn","295HbPBCQ","footnotesListStart","55208fxHeaM","setAttribute","760iXuVrT","isEnabled","_updateFootnotesCounters","model","1161528gVHmms","value","7UMBLCO","12315syqjrv","refresh","get","1703332qtfShj"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(230219===-parseInt(e(139))/1+parseInt(e(156))/2*(parseInt(e(152))/3)+parseInt(e(155))/4+parseInt(e(141))/5*(parseInt(e(159))/6)+parseInt(e(151))/7*(parseInt(e(143))/8)+parseInt(e(140))/9*(parseInt(e(145))/10)+-parseInt(e(160))/11*(parseInt(e(149))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(153)](){const t=ct,{editor:e}=this,o=e[t(158)][t(154)](d)[t(162)]();this[t(146)]=!!o,this[t(150)]=o?.[t(157)](t(142))??null}[ct(163)]({value:t}){const e=ct,{editor:o}=this,n=o[e(158)][e(154)](d),i=n[e(162)]();i&&Number[e(138)](t)&&o[e(148)][e(161)](o=>{const s=e;o[s(144)](s(142),t,i),n[s(147)](o)})}}const dt=ht;function ht(t,e){const o=wt();return(ht=function(t,e){return o[t-=258]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(910310===parseInt(e(338))/1*(parseInt(e(327))/2)+parseInt(e(340))/3+-parseInt(e(305))/4+parseInt(e(321))/5*(parseInt(e(330))/6)+parseInt(e(285))/7+-parseInt(e(262))/8*(parseInt(e(283))/9)+-parseInt(e(291))/10*(parseInt(e(301))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(wt);class pt extends t.Plugin{static get[dt(303)](){return dt(295)}static get[dt(317)](){return[v,d]}static get[dt(267)](){return!0}static get[dt(356)](){return!0}[dt(281)](){const t=dt,{editor:e}=this;e[t(263)][t(319)](t(324),t(311)),e[t(263)][t(319)](t(355),1),e[t(349)][t(339)](t(325),new rt(e)),e[t(349)][t(339)](t(307),new ut(e)),this[t(348)](),this[t(312)](),this[t(315)](),this[t(265)]()}[dt(348)](){const t=dt,{editor:e}=this,{schema:o}=e[t(334)];o[t(298)](t(331),{allowAttributes:[t(347),t(343)]})}[dt(312)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(344)](t(270))[t(339)](e=>{const o=t;e.on(o(350),(t,e,n)=>{const s=o,r=e[s(332)],a=e[s(346)]?.[s(274)];r[s(289)](s(333))&&a?.is(s(272),s(331))&&(function(t,e,o,n){const i=s;if(!n[i(284)](e,i(343)))return;let r=1;const a=o[i(287)][i(316)](t,{attributes:i(300)});if(a){const e=Number[i(323)](t[i(282)](i(300)),10);Number[i(288)](e)||(r=e)}!a&&e[i(292)](i(343))||o[i(273)][i(304)](i(343),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(284)](e,i(347)))return;let r=i(311),a=!1;if(o[i(287)][i(316)](t,{attributes:i(353)})){const e={1:i(311),a:i(276),A:i(335),i:i(302),I:i(318)}[t[i(282)](i(353))];e&&(r=e),a=!0}o[i(287)][i(316)](t,{styles:i(337)})&&(r=t[i(264)](i(337)),a=!0),!a&&e[i(292)](i(347))||o[i(273)][i(304)](i(347),r,e)}(r,a,n,i))})}),o[t(344)](t(297))[t(339)](e=>{const o=t;e.on(o(279),(t,e,n)=>{const i=o;if(!n[i(287)][i(316)](e[i(352)],t[i(277)]))return;const s=mt(e[i(352)],n[i(260)]),{attributeNewValue:r}=e;null==r||1===r?n[i(273)][i(322)](i(300),s):n[i(273)][i(304)](i(300),String(r),s)}),e.on(o(308),(t,e,n)=>{const i=o;if(!n[i(287)][i(316)](e[i(352)],t[i(277)]))return;const s=mt(e[i(352)],n[i(260)]),{attributeNewValue:r}=e;r&&i(311)!==r?n[i(273)][i(271)](i(337),r,s):n[i(273)][i(280)](i(337),s)})})}[dt(265)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(341)][t(268)](d),i=this[t(358)](),s=this[t(313)]();o[t(336)][t(320)](e=>{const r=t,a=o[r(336)][r(258)][r(278)]();let c=!1;for(const t of a){if(r(261)!==t[r(353)]||r(351)===t[r(277)])continue;const n=o[r(342)](t[r(326)][r(345)]);for(const t of n[r(294)]())t.is(r(272),r(331))&&(!t[r(292)](r(343))&&o[r(329)][r(284)](t,r(343))&&(e[r(304)](r(343),s,t),c=!0),!t[r(292)](r(347))&&o[r(329)][r(284)](t,r(347))&&(e[r(304)](r(347),i,t),c=!0))}return c&&n[r(266)](e),c})}[dt(315)](){const t=dt,{editor:e}=this;e[t(341)][t(268)](d)[t(286)](e=>this[t(359)](e))}[dt(358)](){const t=dt;return this[t(354)][t(263)][t(268)](t(324))}[dt(313)](){const t=dt;return this[t(354)][t(263)][t(268)](t(355))}[dt(359)]({container:t,value:e,digits:o}){const n=dt,i=t[n(282)](n(347)),s=t[n(282)](n(343)),r=Math[n(296)](e)+(s??1)-1;switch(i){case n(299):return function(t,e){const o=n;return String(t)[o(290)](e,"0")}(r,Math[n(309)](2,o));case n(276):case n(269):return gt(r,!1);case n(335):case n(314):return gt(r,!0);case n(302):return bt(r,!1);case n(318):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(259)](t);return Array[o(328)](n[o(275)]())[o(310)](t=>t.is(o(272),"ol")&&t[o(289)](o(333)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(296)]((i-1)/26)}return e?n[o(306)]():n}function wt(){const t=["hasAttribute","fromCharCode","getItems","FootnotesPropertiesEditing","floor","downcast","extend","decimal-leading-zero","start","99XiWawQ","lower-roman","pluginName","setAttribute","5988404XxCjlg","toUpperCase","footnotesStart","attribute:footnotesListStyle:footnotesDefinitions","max","find","decimal","_defineConverters","_getDefaultStartIndex","upper-latin","_defineFormatter","consume","requires","upper-roman","define","registerPostFixer","3921850ELxVkl","removeAttribute","parseInt","footnotes.footnotesProperties.defaultListStyle","footnotesStyle","position","382meYAlP","from","schema","6CZMATH","footnotesDefinitions","viewItem","footnotes-list","model","upper-alpha","document","list-style-type","6658puvCCa","add","4775808iRpFxE","plugins","createRangeOn","footnotesListStart","for","nodeAfter","modelCursor","footnotesListStyle","_defineSchema","commands","element:ol","$text","item","type","editor","footnotes.footnotesProperties.defaultStartIndex","isPremiumPlugin","toLowerCase","_getDefaultListStyle","_formatFootnoteListValue","differ","toViewElement","mapper","insert","11128jZRcBJ","config","getStyle","_definePostfixer","_updateFootnotesCounters","isOfficialPlugin","get","lower-latin","upcast","setStyle","element","writer","parent","getChildren","lower-alpha","name","getChanges","attribute:footnotesListStart:footnotesDefinitions","removeStyle","init","getAttribute","171yUzhQM","checkAttribute","340963ZJwaCs","setFootnoteFormatter","consumable","isNaN","hasClass","padStart","1403170ZbZRxJ"];return(wt=function(){return t})()}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(357)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.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,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(){var t=["226132QFmwNp","isPremiumPlugin","300qrIpLZ","requires","pluginName","FootnotesProperties","515005tWbvxP","289420fOibGo","16FzDSsn","8577AXtjTV","1035387pOcGsX","6zjCJtK","199423TpGIec","11QOakIK","5591310WmRRJn","isOfficialPlugin"];return(Ft=function(){return t})()}var xt=Et;function Et(t,e){var o=Ft();return(Et=function(t,e){return o[t-=281]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(121530===parseInt(e(281))/1+-parseInt(e(288))/2+parseInt(e(290))/3*(-parseInt(e(283))/4)+-parseInt(e(287))/5*(parseInt(e(292))/6)+parseInt(e(293))/7+parseInt(e(289))/8*(-parseInt(e(291))/9)+-parseInt(e(295))/10*(-parseInt(e(294))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Ft);class Pt extends t.Plugin{static get[xt(285)](){return xt(286)}static get[xt(284)](){return[pt,Ct]}static get[xt(296)](){return!0}static get[xt(282)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=384]})(t,e)}function Tt(){var t=["1451385yKEhfC","172KwoWSl","70zBpxDZ","104jeQmSy","3563870QheuFq","352289DcnfzF","49614QNcnXN","6565sckXRW","22FoantE","1953246tPjbjP","6844077weRers"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(395247===-parseInt(e(390))/1*(parseInt(e(385))/2)+parseInt(e(389))/3*(parseInt(e(384))/4)+parseInt(e(394))/5+parseInt(e(392))/6+-parseInt(e(388))/7*(parseInt(e(386))/8)+-parseInt(e(393))/9+-parseInt(e(387))/10*(-parseInt(e(391))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();