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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],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}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["660EOwqen","has","delete","getChanges","5QZwPLf","4515016ddKEwl","_trackedElements","elementName","getItems","root","attributes","push","7yDsuVO","2929008kzklIC","add","getElementKey","name","get","_model","type","insert","clear","element","flat","_elementName","$graveyard","1281104EOPAOI","createRangeOn","30MSKgtB","$text","5685054noDsdK","5958924mNiRnJ","set","_getElementKey","reset","2goBNMm","733205kKpBZx","slice","from","4478346nbyYZE","rootName","values","remove","position","nodeAfter","length"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=274]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(761876===-parseInt(e(302))/1+-parseInt(e(311))/2*(-parseInt(e(289))/3)+-parseInt(e(307))/4+-parseInt(e(280))/5*(-parseInt(e(306))/6)+-parseInt(e(288))/7*(parseInt(e(281))/8)+-parseInt(e(315))/9*(parseInt(e(304))/10)+-parseInt(e(312))/11*(-parseInt(e(276))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(294)];[r(300)];[r(309)];[r(282)]=new Map;constructor(t,e){const o=r;this[o(294)]=t,this[o(300)]=e[o(283)],this[o(309)]=e[o(291)]}[r(310)](){const t=r;this[t(282)][t(297)]()}[r(279)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(296)===i[e(295)]&&e(305)!==i[e(292)]&&i[e(319)][e(274)]){const t=this[e(294)][e(303)](i[e(319)][e(274)]);for(const o of t[e(284)]()){if(!o.is(e(298),this[e(300)]))continue;const t=this[e(309)](o);n[e(277)](t)||n[e(308)](t,[]),n[e(293)](t)[e(287)](o)}}if(e(318)===i[e(295)]&&i[e(292)]===this[e(300)]){const t=this[e(309)]({getAttribute:t=>i[e(286)][e(293)](t)});o[e(290)](t)}}for(const[t,n]of this[e(282)])e(301)===n[e(285)][e(316)]&&o[e(290)](t);for(const t of o)this[e(282)][e(278)](t);for(const[t,o]of n)this[e(282)][e(308)](t,o[o[e(275)]-1]);const i=new Set;for(const[t,s]of n)o[e(277)](t)&&(i[e(290)](s[0]),s[e(275)]>1?n[e(308)](t,s[e(313)](1)):n[e(278)](t),o[e(278)](t));return{removed:Array[e(314)](o),inserted:Array[e(314)](n[e(317)]())[e(299)](),moved:Array[e(314)](i)}}}const f=p;function u(){const t=["push","map","indexOf","length","remove","createRangeOn","footnoteCounter","min","registerPostFixer","3399312jeRWQi","_handleMovedFootnoteReference","end","createPositionBefore","footnoteId","5477612CvDSdg","_handleFootnotesDefinitionsObjectChanges","paragraph","_footnoteRefsTracker","_footnotesDefinitions","findIndex","has","change:data","compareWith","rootName","1579581xHfkrf","append","_ensureFootnotesReferencesHaveProperOrder","isPremiumPlugin","_updateFootnoteRefCounter","setFootnoteFormatter","get","getChanges","_footnoteDefsTracker","splice","getChildren","4kzbGxF","from","_footnotes","parent","footnotesDefinitions","footnoteInlineContent","getFootnotesFormatter","FootnotesTracker","definition","2cRcqOL","editor","140728SfzaZb","before","root","footnoteRef","find","childCount","createPositionAt","476710fMUVzo","singleton","init","model","getAttribute","some","reset","getRootNames","857525IoHtTn","30LyEAdw","footnoteDefinition","pluginName","document","_footnoteDefsContainerTracker","_footnoteFormatter","low","isEqual","656499SuARdI","_handleFootnoteReferencesChanges","$graveyard","footnotes.multiBlock","move","createRangeIn","setAttribute","listenTo","_sortFootnoteDefinitions","getFootnotes","differ","getFootnote","_updateFootnotesCounters","high","enqueueChange","_handleInsertedFootnoteReference","after","set","_handleRemoveFootnoteReferenceById","config","isOfficialPlugin","createElement","_handleFootnotesDefinitionsObjectSync","unshift","getFootnotesDefinitionsObjectElement","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","add","insert","_insertEmptyFootnotesDefinitionsContainer","reference"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(486286===-parseInt(e(461))/1*(-parseInt(e(459))/2)+parseInt(e(485))/3*(parseInt(e(450))/4)+-parseInt(e(476))/5*(parseInt(e(477))/6)+parseInt(e(530))/7+parseInt(e(525))/8+-parseInt(e(439))/9+-parseInt(e(468))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(452)]=[];[f(534)]=null;[f(482)]=null;[f(481)];[f(533)];[f(447)];static get[f(479)](){return f(457)}static get[f(505)](){return!0}static get[f(442)](){return!0}constructor(t){const e=f;super(t),this[e(481)]=new l(this[e(460)][e(471)],{elementName:e(454),getElementKey:()=>e(469)}),this[e(533)]=new l(this[e(460)][e(471)],{elementName:e(464),getElementKey:t=>t[e(472)](e(529))}),this[e(447)]=new l(this[e(460)][e(471)],{elementName:e(478),getElementKey:t=>t[e(472)](e(529))})}[f(470)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(480)][t(524)](e=>{const n=t,i=o[n(480)][n(495)][n(446)]();let s=!1;return this[n(531)](e,i)&&(s=!0),this[n(511)](e,i)&&(s=!0),this[n(486)](e,i)&&(s=!0),this[n(441)](e)&&(s=!0),this[n(507)](e)&&(s=!0),this[n(493)](e)&&(s=!0),s}),this[t(492)](o[t(480)],t(436),()=>{const e=t;o[e(499)]({isUndoable:!1},t=>{this[e(510)](t)})},{priority:t(483)}),this[t(492)](n,t(502),()=>{const e=t;this[e(452)]=[],this[e(481)][e(474)](),this[e(533)][e(474)](),this[e(447)][e(474)]()},{priority:t(498)})}[f(509)](){return this[f(534)]}[f(496)](t){const e=f;return this[e(452)][e(465)](e=>e.id===t)||null}[f(494)](){const t=f;return Array[t(451)](this[t(452)])}[f(456)](){return this[f(482)]}[f(444)](t){this[f(482)]=t}[f(497)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(452)][o(519)];i++)this[o(443)](t,i)&&(n=!0);return n}[f(514)](t,e){const o=f,n=t[o(506)](o(454),{});return t[o(440)](n,e),this[o(534)]=n,n}[f(510)](t){const e=f;if(!this[e(452)][e(519)]||this[e(534)])return;const o=this[e(452)][0][e(515)][e(463)],n=this[e(514)](t,o);for(const o of this[e(452)])o[e(458)][e(453)]||t[e(513)](o[e(458)],n,e(527));this[e(497)](t)}[f(531)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(481)][o(446)](e);if(r[o(519)]&&(this[o(534)]=r[0]),i[o(519)])if(i[o(519)]>1||this[o(534)]&&i[o(473)](t=>t!==this[o(534)])){const e=t[o(506)](o(454),{}),s=[];this[o(534)]&&s[o(516)](this[o(534)]),s[o(516)](...i),t[o(513)](e,s[0],o(462));for(const n of s)t[o(489)](t[o(490)](n),t[o(467)](e,o(527))),t[o(520)](n);this[o(534)]=e,this[o(497)](t),n=!0}else this[o(534)]=i[0];if(s[o(519)]&&o(487)===this[o(534)]?.[o(463)][o(438)]){for(const e of this[o(452)])t[o(520)](e[o(515)]),n=!0;this[o(452)]=[],this[o(534)]=null}return n}[f(511)](t,e){const o=f;let n=!1;const i=this[o(460)][o(504)][o(445)](o(488)),{inserted:s,moved:r}=this[o(447)][o(446)](e);for(const e of[...r,...s]){const s=e[o(472)](o(529)),r=this[o(496)](s);r&&(r[o(458)]=e),h(t,i,e)&&(n=!0)}return n}[f(486)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(533)][o(446)](e);for(const e of i)this[o(503)](t,e)&&(n=!0);for(const e of s)this[o(500)](t,e)&&(n=!0);for(const e of r)this[o(526)](t,e)&&(n=!0);return n}[f(507)](t){const e=f;if(!this[e(534)])return!1;let o=!1;if(this[e(534)][e(466)]!==this[e(452)][e(519)]){const n=[];for(const t of this[e(534)][e(449)]()){const i=t[e(472)](e(529));this[e(496)](i)||(n[e(508)](t),o=!0)}for(const o of n)t[e(520)](o)}const n=new Set,i=[];for(const t of this[e(534)][e(449)]()){const s=t[e(472)](e(529));n[e(435)](s)?(i[e(508)](t),o=!0):n[e(512)](s)}for(const o of i)t[e(520)](o);return this[e(534)][e(466)]||(t[e(520)](this[e(534)]),this[e(534)]=null,o=!0),o}[f(500)](t,e){const o=f;if(this[o(452)][o(465)](t=>t[o(515)]===e))return!1;let n=!1;const i=e[o(472)](o(529)),s=this[o(452)][o(535)](t=>t.id===i);-1!==s&&(t[o(520)](this[o(452)][s][o(515)]),this[o(452)][o(448)](s,1),n=!0);let r=this[o(534)]?function(t,e){const n=o;for(const o of t[n(449)]())if(o[n(472)](n(529))===e)return o;return null}(this[o(534)],i):null;r||(r=t[o(506)](o(478),{footnoteId:i}),this[o(534)]&&(t[o(513)](r,this[o(534)],o(527)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(460)][o(471)],this[o(452)],e);this[o(452)][o(448)](c,0,a);let l=c;return-1!==s&&(l=Math[o(523)](c,s)),this[o(497)](t,l)&&(n=!0),n}[f(503)](t,e){const o=f,n=this[o(452)][o(535)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(452)][n];return o(487)!==s[o(458)][o(463)][o(438)]&&(t[o(520)](s[o(458)]),i=!0),this[o(452)][o(448)](n,1),this[o(497)](t,n)&&(i=!0),i}[f(526)](t,e){const o=f,n=e[o(472)](o(529)),i=this[o(452)][o(535)](t=>t.id===n),s=this[o(452)][i];let r=!1;s[o(515)]=e,this[o(452)][o(448)](i,1);const a=m(this[o(460)][o(471)],this[o(452)],e);return this[o(452)][o(448)](a,0,s),this[o(497)](t,Math[o(523)](i,a))&&(r=!0),r}[f(443)](t,e){const o=f;if(!this[o(534)])return!1;const n=this[o(452)][e];let i;return i=this[o(482)]?this[o(482)]({footnote:n,container:this[o(534)],digits:String(this[o(452)][o(519)])[o(519)],value:e+1}):String(e+1),n[o(515)][o(472)](o(522))!=i&&(t[o(491)](o(522),i,n[o(515)]),!0)}[f(493)](t){const e=f;if(!this[e(534)]||this[e(452)][e(519)]<2)return!1;if(function(t,o){const n=e;if(t[n(519)]!==o[n(519)])return!1;for(let e=0;e<t[n(519)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(452)][e(517)](t=>t.id),Array[e(451)](this[e(534)][e(449)]())[e(517)](t=>t[e(472)](e(529)))))return!1;let o=!1;for(let n=0;n<this[e(452)][e(519)];n++){const i=this[e(452)][n],s=t[e(528)](i[e(458)]),r=t[e(467)](this[e(534)],n);s[e(484)](r)||(t[e(489)](t[e(521)](i[e(458)]),r),o=!0)}return o}[f(441)](t){const e=f;if(!this[e(452)][e(519)])return!1;const{model:o}=this[e(460)];let n=!1;for(let i=0;i<this[e(452)][e(519)]-1;i++){const s=this[e(452)][i],r=this[e(452)][i+1],a=o[e(528)](s[e(515)]),c=o[e(528)](r[e(515)]);e(501)===a[e(437)](c)&&(this[e(526)](t,s[e(515)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(466)])return!1;const i=n(e?532:455);return t[n(513)](t[n(506)](i),o),!0}function p(t,e){const o=u();return(p=function(t,e){return o[t-=435]})(t,e)}function m(t,e,o){const n=f;if(0===e[n(519)])return 0;const i=t[n(528)](o);for(let o=0;o<e[n(519)];o++){const s=e[o],r=t[n(528)](s[n(515)]);if(n(462)===i[n(437)](r))return o}const s=o[n(463)];let r=-1;for(let t=e[n(519)]-1;t>=0;t--)if(e[t][n(515)][n(463)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(480)][n(475)](),c=a[n(518)](s[n(438)]),l=a[c+1];if(l)for(let t=0;t<e[n(519)];t++)if(e[t][n(515)][n(463)][n(438)]===l)return t;return e[n(519)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=159]})(t,e)}const w=g;function y(){const t=["change","getFirstRange","27217048nQNXxx","test","getItems","refresh","editor","3tVVEVA","footnoteId","footnoteRef","document","model","isObject","5052720xqzlDx","execute","string","3507060RwcrWl","createElement","2045002HetWFS","2613168Uyhjgr","plugins","selection","checkChild","_getPositionToInsertFootnote","length","insertObject","isBlock","3140662HkorCl","_moveSelectionToFootnoteDefinition","isEnabled","441283muQuRT","insert-footnote-command-executed-with-invalid-id","get","end","FootnotesEditing"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(547919===-parseInt(e(191))/1+parseInt(e(179))/2*(-parseInt(e(168))/3)+parseInt(e(180))/4+-parseInt(e(174))/5+-parseInt(e(177))/6+-parseInt(e(188))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(166)](){const t=w,e=this[t(167)][t(172)][t(171)][t(182)],o=this[t(184)](e);this[t(190)]=!!o}[w(175)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(171)],r=this[e(184)](s);if(!r)return;const a=o[e(181)][e(193)](e(160)),c=t?.[e(169)]??(0,i.uid)();!function(t){const o=e;return o(176)==typeof t&&t[o(185)]>0&&!/\s/[o(164)](t)&&!/^\d/[o(164)](t)}(c)?(0,i.logWarning)(e(192)):(n[e(161)](t=>{const o=e,i=t[o(178)](o(170),{footnoteId:c});n[o(186)](i,r,null)}),a[e(189)](c))}[w(184)](t){const e=w,{model:o}=this[e(167)],{schema:n}=o,i=t[e(162)]();for(const t of i[e(165)]())if(n[e(187)](t)||n[e(173)](t))return null;const s=i[e(159)];return n[e(183)](s,e(170))?s:null}}class I 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=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],f(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?u(f(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+u(f(t)),n=d(u(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+u(f(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776038400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const T=P;function D(){const t=["selection","create","outputTransformation","createRangeIn","getFootnote","footnoteDefinition","getFirstRange","push","hasAttribute","toView","2223970aYUatB","definition","end","append","188930fVobiw","_handlePasteFootnotesDefinitions","drop","add","isOfficialPlugin","element","30RhUxRC","1110360GBVhyJ","pluginName","getFootnotes","find","editor","from","toData","createElement","getData","isPremiumPlugin","editing","getChildren","get","footnoteRef","reduce","cloneElement","4876196OgaNUi","keys","FootnotesClipboard","stringify","footnoteInlineContent","getSelectedBlocks","content","footnotesDefinitions","2493066SVTicO","requires","config","method","change","toModel","contentInsertion","init","length","_insertEmptyFootnotesDefinitionsContainer","entries","126666fAOSWI","getAttribute","includes","getRanges","dataTransfer","string","application/ckeditor5-footnotes","data","footnoteId","parse","document","setData","htmlProcessor","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","16EGWeJZ","19999920FDvhdM","insert","clipboardInput","sourceEditorId","footnotes.multiBlock","root","flatMap","5MAlVph","_handleCopyFootnotesDefinitions","setAttribute","listenTo","remove"];return(D=function(){return t})()}function P(t,e){const o=D();return(P=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=P,o=t();for(;;)try{if(877518===-parseInt(e(242))/1*(parseInt(e(261))/2)+-parseInt(e(208))/3+-parseInt(e(200))/4+parseInt(e(267))/5*(parseInt(e(184))/6)+parseInt(e(257))/7+parseInt(e(234))/8*(-parseInt(e(219))/9)+parseInt(e(235))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(185)](){return T(202)}static get[T(209)](){return[I,A.ClipboardPipeline]}static get[T(265)](){return!0}static get[T(193)](){return!0}[T(215)](){this[T(233)]()}[T(233)](){const t=T;this[t(243)](),this[t(262)]()}[T(243)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(196)](A.ClipboardPipeline),s=o[t(196)](d);this[t(245)](i,t(249),(o,i)=>{const r=t,a=V(n[r(250)](i[r(206)]));if(!a[r(216)])return;const c=s[r(186)](),l=a[r(198)]((t,o)=>{const n=r,i=c[n(187)](t=>t.id===o);if(i){const o=e[n(226)][n(256)](i[n(258)],{isClipboardPipeline:!0}),s=e[n(226)][n(231)][n(190)](o);t[i.id]=s}return t},Object[r(248)](null));i[r(223)][r(230)](r(225),JSON[r(203)](l))})}[T(262)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(196)](A.ClipboardPipeline),a=n[t(196)](d),c=e[t(210)][t(196)](t(239));let l=null;this[t(245)](s[t(229)],t(237),(e,o)=>{const n=t,i=o[n(223)][n(192)](n(225));l=i?JSON[n(228)](i):null}),this[t(245)](r,t(214),(n,s)=>{const r=t,f=s[r(238)]===this[r(188)].id;f&&r(263)===s[r(211)]||o[r(212)](t=>{const n=r;let u=a[n(232)]();const d=!!u&&Array[n(189)](o[n(229)][n(247)][n(205)]())[n(221)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(266),e(197)))return!0;return!1}(o[n(250)](s[n(206)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(248)](null);for(const e of i[o(195)]())e.is(o(266),o(252))&&e[o(255)](o(227))&&(s[e[o(220)](o(227))]=t[o(199)](e,!0));return Object[o(201)](s)[o(216)]?s:null}(t,s[n(206)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(250)](e))n.is(o(266),o(207))&&i[o(254)](n);for(const e of i)t[o(246)](e)}(t,s[n(206)]),!l)return;const{selection:h}=o[n(229)],p=h[n(253)]()[n(240)];u&&!d||(u=L(t,s[n(206)]),u||=a[n(217)](t,p));const m=Array[n(189)](h[n(222)]())[n(241)](V),g=function(t,e,o){const s=n,r=Object[s(248)](null);for(const{item:n}of t[s(250)](e))if(n.is(s(266),s(197))){const e=n[s(220)](s(227));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(244)](s(227),r[e],n)}return r}(t,s[n(206)],t=>{const e=n;return!f||!!a[e(251)](t)&&!m[e(221)](t)});for(const[o,i]of Object[n(218)](l)){const s=g[o]||o;let r;if(n(224)!=typeof i)r=i,s!==o&&t[n(244)](n(227),s,r);else{r=t[n(191)](n(252),{footnoteId:s});const o=e[n(226)][n(231)][n(256)](i);let a;if(c)a=e[n(226)][n(213)](o,r);else{a=t[n(191)](n(204));const i=e[n(226)][n(213)](o,a);t[n(236)](i,a)}t[n(260)](a,r)}t[n(236)](r,u,n(259))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(250)](e))if(n.is(o(266),o(207)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(266),e(197))&&o[e(264)](n[e(220)](e(227)));return Array[e(189)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),M=o(297),B=o.n(M),j=o(102),z=o.n(j),W=o(123),U=o.n(W),H=o(741),q=o.n(H),J=o(728),Z={attributes:{"data-cke":!0}};Z.setAttributes=U(),Z.insert=z().bind(null,"head"),Z.domAPI=B(),Z.insertStyleElement=q();K()(J.A,Z);J.A&&J.A.locals&&J.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",G(t,O.ButtonView)),e.add("menuBar:insertFootnote",G(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=$;function Y(){var t=["isPremiumPlugin","340780WJdnVB","45BJSkgT","pluginName","14425764GHiMzR","9321907WAFvtW","Footnotes","184hpzjfT","55ebWung","209256pQzHDN","75699lVopQN","926070AswZoW","2921BCRFyx","requires","772TUSHEx","isOfficialPlugin","88wVSXka"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(679090===-parseInt(e(405))/1*(parseInt(e(407))/2)+-parseInt(e(412))/3*(parseInt(e(411))/4)+parseInt(e(418))/5*(-parseInt(e(419))/6)+parseInt(e(415))/7+parseInt(e(417))/8*(parseInt(e(420))/9)+-parseInt(e(421))/10*(-parseInt(e(409))/11)+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(413)](){return Q(416)}static get[Q(406)](){return[I,_,X]}static get[Q(408)](){return!0}static get[Q(410)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=368]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(147553===parseInt(e(380))/1+-parseInt(e(384))/2*(parseInt(e(379))/3)+parseInt(e(370))/4*(parseInt(e(386))/5)+parseInt(e(383))/6+-parseInt(e(373))/7+-parseInt(e(368))/8*(parseInt(e(369))/9)+-parseInt(e(382))/10*(parseInt(e(372))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(374),ot(378),ot(377),ot(385),ot(371),ot(376),ot(381),ot(375)];function it(){const t=["upper-latin","1215275hBdTEf","2024GEdLcW","4869zKYMbX","4DBAmeL","lower-alpha","11afDMSy","323652hbtOAg","decimal","upper-roman","upper-alpha","lower-latin","decimal-leading-zero","3120WqcrWq","195612kTlMUd","lower-roman","1111050XJwCFC","99720rhdHSW","26eVKqsK"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=257]})(t,e)}function at(){const t=["1044842xYzhId","20wAGekK","11892KZiMfJ","get","includes","7893MNhSih","getAttribute","getFootnotesDefinitionsObjectElement","change","1234524zbVdhJ","_updateFootnotesCounters","6700266nKnucJ","execute","model","value","isEnabled","14gskuDE","56688xYXPJt","190NexUTo","plugins","12354376dJECks","footnotesListStyle","refresh","setAttribute"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(822247===-parseInt(e(272))/1+parseInt(e(279))/2+parseInt(e(260))/3+-parseInt(e(257))/4*(parseInt(e(273))/5)+parseInt(e(264))/6*(parseInt(e(271))/7)+parseInt(e(275))/8+parseInt(e(266))/9*(-parseInt(e(280))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(277)](){const t=st,{editor:e}=this,o=e[t(274)][t(258)](d)[t(262)]();this[t(270)]=!!o,this[t(269)]=o?.[t(261)](t(276))??null}[st(267)]({value:t}){const e=st,{editor:o}=this,n=o[e(274)][e(258)](d),i=n[e(262)]();i&&nt[e(259)](t)&&o[e(268)][e(263)](o=>{const s=e;o[s(278)](s(276),t,i),n[s(265)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=412]})(t,e)}function ut(){const t=["223116VjhCBz","110709fqjyyC","value","get","_updateFootnotesCounters","isInteger","execute","13rZJZSl","isEnabled","8450XvIlTl","change","2494865dwXTRM","4zJYEWW","11094dkEbTb","refresh","getFootnotesDefinitionsObjectElement","getAttribute","setAttribute","351929XoqXcX","88rSiMIc","1460aLHcDM","model","4938dYGZaX","plugins","footnotesListStart","7469UbrrEz","11081fcYRtl"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(942319===-parseInt(e(425))/1*(-parseInt(e(419))/2)+-parseInt(e(420))/3*(-parseInt(e(427))/4)+-parseInt(e(418))/5+parseInt(e(429))/6*(-parseInt(e(433))/7)+parseInt(e(426))/8*(parseInt(e(435))/9)+-parseInt(e(416))/10*(-parseInt(e(432))/11)+-parseInt(e(434))/12*(parseInt(e(414))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(421)](){const t=lt,{editor:e}=this,o=e[t(430)][t(437)](d)[t(422)]();this[t(415)]=!!o,this[t(436)]=o?.[t(423)](t(431))??null}[lt(413)]({value:t}){const e=lt,{editor:o}=this,n=o[e(430)][e(437)](d),i=n[e(422)]();i&&Number[e(412)](t)&&o[e(428)][e(417)](o=>{const s=e;o[s(424)](s(431),t,i),n[s(438)](o)})}}const ht=mt;function pt(){const t=["init","decimal-leading-zero","checkAttribute","floor","name","footnotesListStart","getChildren","padStart","937000UbueuR","upcast","type","footnotesStart","upper-roman","max","document","writer","lower-latin","_updateFootnotesCounters","registerPostFixer","upper-alpha","_formatFootnoteListValue","footnotesListStyle","footnotesStyle","187zKYOnF","get","find","2325696oxYkKM","item","toViewElement","parent","position","mapper","plugins","hasAttribute","consume","FootnotesPropertiesEditing","90140BzAyGn","footnotes-list","model","decimal","isNaN","removeAttribute","viewItem","attribute:footnotesListStyle:footnotesDefinitions","element","downcast","getChanges","657979BVRLzc","_getDefaultListStyle","define","footnotes.footnotesProperties.defaultListStyle","35196ZOQrEQ","upper-latin","2EIKzxQ","4588854dfzMJE","consumable","insert","isOfficialPlugin","add","for","1843860KssBgt","setAttribute","getItems","fromCharCode","_defineConverters","hasClass","footnotesDefinitions","requires","27RqvVSU","schema","_definePostfixer","removeStyle","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","editor","start","getStyle","list-style-type","parseInt","isPremiumPlugin","7uEqxvB","lower-roman","15WrdoCA","pluginName","config","setFootnoteFormatter","setStyle","extend","_defineFormatter","differ","attribute:footnotesListStart:footnotesDefinitions","$text","commands","from","createRangeOn","toLowerCase","nodeAfter","_getDefaultStartIndex","getAttribute","_defineSchema","toUpperCase","element:ol","modelCursor"];return(pt=function(){return t})()}function mt(t,e){const o=pt();return(mt=function(t,e){return o[t-=347]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(652770===parseInt(e(413))/1*(parseInt(e(419))/2)+-parseInt(e(448))/3*(-parseInt(e(402))/4)+-parseInt(e(426))/5+-parseInt(e(420))/6*(parseInt(e(446))/7)+parseInt(e(392))/8*(parseInt(e(434))/9)+parseInt(e(374))/10+-parseInt(e(389))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class gt extends t.Plugin{static get[ht(449)](){return ht(401)}static get[ht(433)](){return[I,d]}static get[ht(423)](){return!0}static get[ht(445)](){return!0}[ht(366)](){const t=ht,{editor:e}=this;e[t(347)][t(415)](t(416),t(405)),e[t(347)][t(415)](t(438),1),e[t(355)][t(424)](t(388),new ct(e)),e[t(355)][t(424)](t(377),new dt(e)),this[t(362)](),this[t(430)](),this[t(351)](),this[t(436)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(404)];o[t(350)](t(432),{allowAttributes:[t(387),t(371)]})}[ht(430)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(425)](t(375))[t(424)](e=>{const o=t;e.on(o(364),(t,e,n)=>{const s=o,r=e[s(408)],a=e[s(365)]?.[s(395)];r[s(431)](s(403))&&a?.is(s(410),s(432))&&(function(t,e,o,n){const i=s;if(!n[i(368)](e,i(371)))return;let r=1;const a=o[i(421)][i(400)](t,{attributes:i(441)});if(a){const e=Number[i(444)](t[i(361)](i(441)),10);Number[i(406)](e)||(r=e)}!a&&e[i(399)](i(371))||o[i(381)][i(427)](i(371),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(368)](e,i(387)))return;let r=i(405),a=!1;if(o[i(421)][i(400)](t,{attributes:i(376)})){const e={1:i(405),a:i(439),A:i(385),i:i(447),I:i(378)}[t[i(361)](i(376))];e&&(r=e),a=!0}o[i(421)][i(400)](t,{styles:i(443)})&&(r=function(t){const e=i;switch(t){case e(439):return e(382);case e(385):return e(418);default:return t}}(t[i(442)](i(443))),a=!0),!a&&e[i(399)](i(387))||o[i(381)][i(427)](i(387),r,e)}(r,a,n,i))})}),o[t(425)](t(411))[t(424)](e=>{const o=t;e.on(o(353),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;null==r||1===r?n[i(381)][i(407)](i(441),s):n[i(381)][i(427)](i(441),String(r),s)}),e.on(o(409),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;r&&i(405)!==r?n[i(381)][i(349)](i(443),r,s):n[i(381)][i(437)](i(443),s)})})}[ht(436)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(398)][t(390)](d),i=this[t(414)](),s=this[t(360)]();o[t(380)][t(384)](e=>{const r=t,a=o[r(380)][r(352)][r(412)]();let c=!1;for(const t of a){if(r(422)!==t[r(376)]||r(354)===t[r(370)])continue;const n=o[r(357)](t[r(396)][r(359)]);for(const t of n[r(428)]())t.is(r(410),r(432))&&(!t[r(399)](r(371))&&o[r(435)][r(368)](t,r(371))&&(e[r(427)](r(371),s,t),c=!0),!t[r(399)](r(387))&&o[r(435)][r(368)](t,r(387))&&(e[r(427)](r(387),i,t),c=!0))}return c&&n[r(383)](e),c})}[ht(351)](){const t=ht,{editor:e}=this;e[t(398)][t(390)](d)[t(348)](e=>this[t(386)](e))}[ht(414)](){const t=ht;return this[t(440)][t(347)][t(390)](t(416))}[ht(360)](){const t=ht;return this[t(440)][t(347)][t(390)](t(438))}[ht(386)]({container:t,value:e,digits:o}){const n=ht,i=t[n(361)](n(387)),s=t[n(361)](n(371)),r=Math[n(369)](e)+(s??1)-1;switch(i){case n(367):return function(t,e){const o=n;return String(t)[o(373)](e,"0")}(r,Math[n(379)](2,o));case n(439):case n(382):return yt(r,!1);case n(385):case n(418):return yt(r,!0);case n(447):return It(r,!1);case n(378):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(394)](t);return Array[o(356)](n[o(372)]())[o(391)](t=>t.is(o(410),"ol")&&t[o(431)](o(403)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(429)](97+t)+n,i=Math[o(369)]((i-1)/26)}return e?n[o(363)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(358)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=U(),Ct.insert=z().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=418]})(t,e)}function St(){var t=["isPremiumPlugin","2378905rACMwy","requires","9712197yWQHeM","8146350hqblxa","pluginName","7UyFgNQ","10181904wnlGZQ","462766Zygeid","68QZWOiw","4032992vLKakb","95583BlKQDT","isOfficialPlugin","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(679527===-parseInt(e(418))/1+-parseInt(e(419))/2*(parseInt(e(421))/3)+-parseInt(e(420))/4+-parseInt(e(425))/5+-parseInt(e(428))/6*(-parseInt(e(430))/7)+parseInt(e(431))/8+parseInt(e(427))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(429)](){return xt(423)}static get[xt(426)](){return[gt,Ft]}static get[xt(422)](){return!0}static get[xt(424)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=109]})(t,e)}function Dt(){var t=["1170326yDlcao","3230000FcBjGt","3fICqZT","3337910fFkEue","474cKpOUY","1692245UJHFrb","59157dCPVjh","3637616EroADx","115225rjgxtI","9pPmGLs"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(708003===parseInt(e(116))/1+-parseInt(e(118))/2*(parseInt(e(110))/3)+parseInt(e(115))/4+parseInt(e(113))/5+-parseInt(e(112))/6*(-parseInt(e(114))/7)+-parseInt(e(109))/8+parseInt(e(117))/9*(-parseInt(e(111))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>G,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=174]})(t,e)}const a=r;function c(){const t=["reset","root","1001979lTKmPW","_model","delete","_trackedElements","push","length","$text","265368Icbdwz","clear","4224SRXCTH","8VqUBzI","type","$graveyard","values","remove","getElementKey","_getElementKey","attributes","4MVIXbL","40DQAbAR","5050GzFJwq","217LPlWaS","6853hZjogN","_elementName","element","name","has","from","createRangeOn","slice","nodeAfter","3104VTQyeC","add","insert","getChanges","177720pagEak","get","rootName","elementName","set","position","3818844UUSSVH","getItems","flat"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(208415===parseInt(e(193))/1*(parseInt(e(214))/2)+parseInt(e(218))/3*(-parseInt(e(201))/4)+-parseInt(e(202))/5*(-parseInt(e(190))/6)+-parseInt(e(204))/7*(-parseInt(e(192))/8)+-parseInt(e(183))/9+parseInt(e(203))/10*(parseInt(e(205))/11)+-parseInt(e(178))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(184)];[a(206)];[a(199)];[a(186)]=new Map;constructor(t,e){const o=a;this[o(184)]=t,this[o(206)]=e[o(175)],this[o(199)]=e[o(198)]}[a(181)](){const t=a;this[t(186)][t(191)]()}[a(217)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(216)===i[e(194)]&&e(189)!==i[e(208)]&&i[e(177)][e(213)]){const t=this[e(184)][e(211)](i[e(177)][e(213)]);for(const o of t[e(179)]()){if(!o.is(e(207),this[e(206)]))continue;const t=this[e(199)](o);n[e(209)](t)||n[e(176)](t,[]),n[e(219)](t)[e(187)](o)}}if(e(197)===i[e(194)]&&i[e(208)]===this[e(206)]){const t=this[e(199)]({getAttribute:t=>i[e(200)][e(219)](t)});o[e(215)](t)}}for(const[t,n]of this[e(186)])e(195)===n[e(182)][e(174)]&&o[e(215)](t);for(const t of o)this[e(186)][e(185)](t);for(const[t,o]of n)this[e(186)][e(176)](t,o[o[e(188)]-1]);const i=new Set;for(const[t,s]of n)o[e(209)](t)&&(i[e(215)](s[0]),s[e(188)]>1?n[e(176)](t,s[e(212)](1)):n[e(185)](t),o[e(185)](t));return{removed:Array[e(210)](o),inserted:Array[e(210)](n[e(196)]())[e(180)](),moved:Array[e(210)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=237]})(t,e)}function d(){const t=["$graveyard","12YjbISV","_handleInsertedFootnoteReference","createPositionBefore","_sortFootnoteDefinitions","length","childCount","listenTo","document","_footnoteFormatter","footnotesDefinitions","differ","_handleFootnotesDefinitionsObjectSync","createElement","_handleFootnotesDefinitionsObjectChanges","registerPostFixer","map","getRootNames","createRangeIn","_footnotes","createRangeOn","parent","isPremiumPlugin","isOfficialPlugin","splice","footnoteId","push","_handleMovedFootnoteReference","editor","get","280dQrmKc","some","footnoteCounter","config","footnoteInlineContent","1137494JMMTLl","getAttribute","getChanges","change:data","_updateFootnoteRefCounter","_updateFootnotesCounters","paragraph","_footnoteDefsTracker","setFootnoteFormatter","pluginName","definition","remove","_ensureFootnotesDefinitionsContainerExists","unshift","root","find","add","isEqual","createPositionAt","27396JGHtGP","has","low","reference","set","getFootnotesFormatter","_insertEmptyFootnotesDefinitionsContainer","reset","_footnoteDefsContainerTracker","28lOtgIs","4650162bGNpzT","findIndex","12692240ocfeBq","25190lcdmWE","317004GGiyan","setAttribute","_handleFootnoteReferencesChanges","model","compareWith","_handleFootnoteDefinitionsChanges","move","getFootnotesDefinitionsObjectElement","1910655HQynFS","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","getFootnotes","getFootnote","_footnoteRefsTracker","singleton","after","120915QsPZXA","from","indexOf","2FqyKbN","before","append","_handleRemoveFootnoteReferenceById","_footnotesDefinitions","FootnotesTracker","getChildren","min","init","end","rootName","insert","high","enqueueChange","footnoteDefinition","footnoteRef"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(806466===parseInt(e(272))/1*(-parseInt(e(324))/2)+-parseInt(e(301))/3+-parseInt(e(238))/4*(parseInt(e(313))/5)+-parseInt(e(305))/6*(-parseInt(e(300))/7)+parseInt(e(267))/8*(parseInt(e(321))/9)+-parseInt(e(303))/10+parseInt(e(304))/11*(parseInt(e(291))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(256)]=[];[u(328)]=null;[u(246)]=null;[u(299)];[u(318)];[u(279)];static get[u(281)](){return u(329)}static get[u(260)](){return!0}static get[u(259)](){return!0}constructor(t){const e=u;super(t),this[e(299)]=new l(this[e(265)][e(308)],{elementName:e(247),getElementKey:()=>e(319)}),this[e(318)]=new l(this[e(265)][e(308)],{elementName:e(339),getElementKey:t=>t[e(273)](e(262))}),this[e(279)]=new l(this[e(265)][e(308)],{elementName:e(338),getElementKey:t=>t[e(273)](e(262))})}[u(332)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(245)][t(252)](e=>{const n=t,i=o[n(245)][n(248)][n(274)]();let s=!1;return this[n(251)](e,i)&&(s=!0),this[n(310)](e,i)&&(s=!0),this[n(307)](e,i)&&(s=!0),this[n(314)](e)&&(s=!0),this[n(249)](e)&&(s=!0),this[n(241)](e)&&(s=!0),s}),this[t(244)](o[t(245)],t(275),()=>{const e=t;o[e(337)]({isUndoable:!1},t=>{this[e(284)](t)})},{priority:t(293)}),this[t(244)](n,t(295),()=>{const e=t;this[e(256)]=[],this[e(299)][e(298)](),this[e(318)][e(298)](),this[e(279)][e(298)]()},{priority:t(336)})}[u(312)](){return this[u(328)]}[u(317)](t){const e=u;return this[e(256)][e(287)](e=>e.id===t)||null}[u(316)](){const t=u;return Array[t(322)](this[t(256)])}[u(296)](){return this[u(246)]}[u(280)](t){this[u(246)]=t}[u(277)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(256)][o(242)];i++)this[o(276)](t,i)&&(n=!0);return n}[u(297)](t,e){const o=u,n=t[o(250)](o(247),{});return t[o(326)](n,e),this[o(328)]=n,n}[u(284)](t){const e=u;if(!this[e(256)][e(242)]||this[e(328)])return;const o=this[e(256)][0][e(294)][e(286)],n=this[e(297)](t,o);for(const o of this[e(256)])o[e(282)][e(258)]||t[e(335)](o[e(282)],n,e(333));this[e(277)](t)}[u(251)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(299)][o(274)](e);if(r[o(242)]&&(this[o(328)]=r[0]),i[o(242)])if(i[o(242)]>1||this[o(328)]&&i[o(268)](t=>t!==this[o(328)])){const e=t[o(250)](o(247),{}),s=[];this[o(328)]&&s[o(263)](this[o(328)]),s[o(263)](...i),t[o(335)](e,s[0],o(325));for(const n of s)t[o(311)](t[o(255)](n),t[o(290)](e,o(333))),t[o(283)](n);this[o(328)]=e,this[o(277)](t),n=!0}else this[o(328)]=i[0];if(s[o(242)]&&o(237)===this[o(328)]?.[o(286)][o(334)]){for(const e of this[o(256)])t[o(283)](e[o(294)]),n=!0;this[o(256)]=[],this[o(328)]=null}return n}[u(310)](t,e){const o=u;let n=!1;const i=this[o(265)][o(270)][o(266)](o(315)),{inserted:s,moved:r}=this[o(279)][o(274)](e);for(const e of[...r,...s]){const s=e[o(273)](o(262)),r=this[o(317)](s);r&&(r[o(282)]=e),p(t,i,e)&&(n=!0)}return n}[u(307)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(318)][o(274)](e);for(const e of i)this[o(327)](t,e)&&(n=!0);for(const e of s)this[o(239)](t,e)&&(n=!0);for(const e of r)this[o(264)](t,e)&&(n=!0);return n}[u(249)](t){const e=u;if(!this[e(328)])return!1;let o=!1;if(this[e(328)][e(243)]!==this[e(256)][e(242)]){const n=[];for(const t of this[e(328)][e(330)]()){const i=t[e(273)](e(262));this[e(317)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(283)](o)}const n=new Set,i=[];for(const t of this[e(328)][e(330)]()){const s=t[e(273)](e(262));n[e(292)](s)?(i[e(285)](t),o=!0):n[e(288)](s)}for(const o of i)t[e(283)](o);return this[e(328)][e(243)]||(t[e(283)](this[e(328)]),this[e(328)]=null,o=!0),o}[u(239)](t,e){const o=u;if(this[o(256)][o(287)](t=>t[o(294)]===e))return!1;let n=!1;const i=e[o(273)](o(262)),s=this[o(256)][o(302)](t=>t.id===i);-1!==s&&(t[o(283)](this[o(256)][s][o(294)]),this[o(256)][o(261)](s,1),n=!0);let r=this[o(328)]?function(t,e){const n=o;for(const o of t[n(330)]())if(o[n(273)](n(262))===e)return o;return null}(this[o(328)],i):null;r||(r=t[o(250)](o(338),{footnoteId:i}),this[o(328)]&&(t[o(335)](r,this[o(328)],o(333)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(265)][o(308)],this[o(256)],e);this[o(256)][o(261)](c,0,a);let l=c;return-1!==s&&(l=Math[o(331)](c,s)),this[o(277)](t,l)&&(n=!0),n}[u(327)](t,e){const o=u,n=this[o(256)][o(302)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(256)][n];return o(237)!==s[o(282)][o(286)][o(334)]&&(t[o(283)](s[o(282)]),i=!0),this[o(256)][o(261)](n,1),this[o(277)](t,n)&&(i=!0),i}[u(264)](t,e){const o=u,n=e[o(273)](o(262)),i=this[o(256)][o(302)](t=>t.id===n),s=this[o(256)][i];let r=!1;s[o(294)]=e,this[o(256)][o(261)](i,1);const a=m(this[o(265)][o(308)],this[o(256)],e);return this[o(256)][o(261)](a,0,s),this[o(277)](t,Math[o(331)](i,a))&&(r=!0),r}[u(276)](t,e){const o=u;if(!this[o(328)])return!1;const n=this[o(256)][e];let i;return i=this[o(246)]?this[o(246)]({footnote:n,container:this[o(328)],digits:String(this[o(256)][o(242)])[o(242)],value:e+1}):String(e+1),n[o(294)][o(273)](o(269))!=i&&(t[o(306)](o(269),i,n[o(294)]),!0)}[u(241)](t){const e=u;if(!this[e(328)]||this[e(256)][e(242)]<2)return!1;if(function(t,o){const n=e;if(t[n(242)]!==o[n(242)])return!1;for(let e=0;e<t[n(242)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(256)][e(253)](t=>t.id),Array[e(322)](this[e(328)][e(330)]())[e(253)](t=>t[e(273)](e(262)))))return!1;let o=!1;for(let n=0;n<this[e(256)][e(242)];n++){const i=this[e(256)][n],s=t[e(240)](i[e(282)]),r=t[e(290)](this[e(328)],n);s[e(289)](r)||(t[e(311)](t[e(257)](i[e(282)]),r),o=!0)}return o}[u(314)](t){const e=u;if(!this[e(256)][e(242)])return!1;const{model:o}=this[e(265)];let n=!1;for(let i=0;i<this[e(256)][e(242)]-1;i++){const s=this[e(256)][i],r=this[e(256)][i+1],a=o[e(240)](s[e(294)]),c=o[e(240)](r[e(294)]);e(320)===a[e(309)](c)&&(this[e(264)](t,s[e(294)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(243)])return!1;const i=n(e?278:271);return t[n(335)](t[n(250)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(242)])return 0;const i=t[n(240)](o);for(let o=0;o<e[n(242)];o++){const s=e[o],r=t[n(240)](s[n(294)]);if(n(325)===i[n(309)](r))return o}const s=o[n(286)];let r=-1;for(let t=e[n(242)]-1;t>=0;t--)if(e[t][n(294)][n(286)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(245)][n(254)](),c=a[n(323)](s[n(334)]),l=a[c+1];if(l)for(let t=0;t<e[n(242)];t++)if(e[t][n(294)][n(286)][n(334)]===l)return t;return e[n(242)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=127]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(912168===parseInt(e(154))/1+parseInt(e(143))/2*(-parseInt(e(151))/3)+-parseInt(e(140))/4+parseInt(e(131))/5+-parseInt(e(156))/6+-parseInt(e(132))/7+parseInt(e(158))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(135)](){const t=w,e=this[t(145)][t(129)][t(147)][t(148)],o=this[t(155)](e);this[t(134)]=!!o}[w(133)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(147)],r=this[e(155)](s);if(!r)return;const a=o[e(149)][e(153)](e(144)),c=t?.[e(138)]??(0,i.uid)();!function(t){const o=e;return o(128)==typeof t&&t[o(159)]>0&&!/\s/[o(160)](t)&&!/^\d/[o(160)](t)}(c)?(0,i.logWarning)(e(137)):(n[e(161)](t=>{const o=e,i=t[o(152)](o(130),{footnoteId:c});n[o(127)](i,r,null)}),a[e(157)](c))}[w(155)](t){const e=w,{model:o}=this[e(145)],{schema:n}=o,i=t[e(142)]();for(const t of i[e(150)]())if(n[e(139)](t)||n[e(136)](t))return null;const s=i[e(141)];return n[e(146)](s,e(130))?s:null}}function b(){const t=["4222985xJowjy","6693162xWmsbG","execute","isEnabled","refresh","isObject","insert-footnote-command-executed-with-invalid-id","footnoteId","isBlock","2997688kwPdIo","end","getFirstRange","270362MWiUsq","FootnotesEditing","editor","checkChild","document","selection","plugins","getItems","3qAaJMB","createElement","get","962871fckpJy","_getPositionToInsertFootnote","3013008zwdTTX","_moveSelectionToFootnoteDefinition","11581096eOVEib","length","test","change","insertObject","string","model","footnoteRef"];return(b=function(){return t})()}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776124800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=323]})(t,e)}function A(){const t=["reduce","getAttribute","create","content","footnoteInlineContent","toView","includes","toData","root","FootnotesClipboard","stringify","835390tJJtJM","change","editor","htmlProcessor","parse","_defineClipboardIntegration","remove","push","setData","getFirstRange","getSelectedBlocks","keys","config","sourceEditorId","selection","editing","5KtLgFL","add","listenTo","pluginName","flatMap","716644dricag","end","getFootnotes","setAttribute","17288apHiwu","init","document","dataTransfer","footnotesDefinitions","outputTransformation","getChildren","drop","insert","footnotes.multiBlock","entries","footnoteRef","8539VzHEXm","string","3014469JXIRDI","2485185nsEKGe","isPremiumPlugin","getFootnotesDefinitionsObjectElement","hasAttribute","_handleCopyFootnotesDefinitions","contentInsertion","data","_insertEmptyFootnotesDefinitionsContainer","getFootnote","clipboardInput","_handlePasteFootnotesDefinitions","method","cloneElement","getData","append","4169202gELdke","length","element","footnoteId","102pQmQIH","2597RIdOEQ","requires","from","createElement","110VoRIZE","toModel","application/ckeditor5-footnotes","get","definition","footnoteDefinition","createRangeIn","getRanges","find","isOfficialPlugin"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(446896===-parseInt(e(338))/1*(-parseInt(e(360))/2)+parseInt(e(341))/3+parseInt(e(407))/4*(parseInt(e(402))/5)+-parseInt(e(356))/6+-parseInt(e(361))/7*(parseInt(e(326))/8)+-parseInt(e(340))/9+-parseInt(e(386))/10*(-parseInt(e(365))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(405)](){return T(384)}static get[T(362)](){return[I,P.ClipboardPipeline]}static get[T(374)](){return!0}static get[T(342)](){return!0}[T(327)](){this[T(391)]()}[T(391)](){const t=T;this[t(345)](),this[t(351)]()}[T(345)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(368)](P.ClipboardPipeline),s=o[t(368)](h);this[t(404)](i,t(331),(o,i)=>{const r=t,a=V(n[r(371)](i[r(378)]));if(!a[r(357)])return;const c=s[r(324)](),l=a[r(375)]((t,o)=>{const n=r,i=c[n(373)](t=>t.id===o);if(i){const o=e[n(347)][n(380)](i[n(369)],{isClipboardPipeline:!0}),s=e[n(347)][n(389)][n(382)](o);t[i.id]=s}return t},Object[r(377)](null));i[r(329)][r(394)](r(367),JSON[r(385)](l))})}[T(351)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(401)],r=n[t(368)](P.ClipboardPipeline),a=n[t(368)](h),c=e[t(398)][t(368)](t(335));let l=null;this[t(404)](s[t(328)],t(350),(e,o)=>{const n=t,i=o[n(329)][n(354)](n(367));l=i?JSON[n(390)](i):null}),this[t(404)](r,t(346),(n,s)=>{const r=t,u=s[r(399)]===this[r(388)].id;u&&r(333)===s[r(352)]||o[r(387)](t=>{const n=r;let f=a[n(343)]();const d=!!f&&Array[n(363)](o[n(328)][n(400)][n(396)]())[n(381)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(358),e(337)))return!0;return!1}(o[n(371)](s[n(378)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(377)](null);for(const e of i[o(332)]())e.is(o(358),o(370))&&e[o(344)](o(359))&&(s[e[o(376)](o(359))]=t[o(353)](e,!0));return Object[o(397)](s)[o(357)]?s:null}(t,s[n(378)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(358),o(330))&&i[o(393)](n);for(const e of i)t[o(392)](e)}(t,s[n(378)]),!l)return;const{selection:h}=o[n(328)],p=h[n(395)]()[n(383)];f&&!d||(f=L(t,s[n(378)]),f||=a[n(348)](t,p));const m=Array[n(363)](h[n(372)]())[n(406)](V),g=function(t,e,o){const s=n,r=Object[s(377)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(358),s(337))){const e=n[s(376)](s(359));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(325)](s(359),r[e],n)}return r}(t,s[n(378)],t=>{const e=n;return!u||!!a[e(349)](t)&&!m[e(381)](t)});for(const[o,i]of Object[n(336)](l)){const s=g[o]||o;let r;if(n(339)!=typeof i)r=i,s!==o&&t[n(325)](n(359),s,r);else{r=t[n(364)](n(370),{footnoteId:s});const o=e[n(347)][n(389)][n(380)](i);let a;if(c)a=e[n(347)][n(366)](o,r);else{a=t[n(364)](n(379));const i=e[n(347)][n(366)](o,a);t[n(334)](i,a)}t[n(355)](a,r)}t[n(334)](r,f,n(323))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(358),o(330)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(358),e(337))&&o[e(403)](n[e(376)](e(359)));return Array[e(363)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),W=o.n(B),U=o(123),q=o.n(U),z=o(741),H=o.n(z),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=W().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=H();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var $=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=342]})(t,e)}function Z(){var t=["isOfficialPlugin","5441139ZibBSv","9195RshQCq","8yVsbhK","3764048wksUMN","Footnotes","3471650ayKdhu","pluginName","requires","1200234RdTpyX","464127lGIiqU","421631LtrWxD","isPremiumPlugin","60UnUeWt"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(582906===parseInt(e(345))/1+-parseInt(e(351))/2*(-parseInt(e(344))/3)+-parseInt(e(347))/4*(parseInt(e(350))/5)+parseInt(e(343))/6+-parseInt(e(354))/7+parseInt(e(352))/8+-parseInt(e(349))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[$(355)](){return $(353)}static get[$(342)](){return[I,_,G]}static get[$(348)](){return!0}static get[$(346)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(749226===-parseInt(e(199))/1+parseInt(e(204))/2+-parseInt(e(206))/3+parseInt(e(202))/4*(-parseInt(e(197))/5)+-parseInt(e(203))/6*(-parseInt(e(195))/7)+-parseInt(e(191))/8+parseInt(e(196))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(193),et(200),et(194),et(205),et(190),et(201),et(192),et(198)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=190]})(t,e)}function it(){const t=["lower-roman","decimal","lower-latin","777WxxfYU","11093688clDTIS","87475oovfTj","upper-roman","429191FBqkXk","decimal-leading-zero","upper-alpha","8KYkjLe","50586NOUbFx","2903056SXDaJB","upper-latin","2798784EBpunD","lower-alpha","11789328uQvcuJ"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(555752===parseInt(e(116))/1+parseInt(e(121))/2+-parseInt(e(130))/3*(parseInt(e(127))/4)+-parseInt(e(126))/5*(-parseInt(e(122))/6)+-parseInt(e(132))/7+-parseInt(e(124))/8+parseInt(e(120))/9*(-parseInt(e(128))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(113)](){const t=st,{editor:e}=this,o=e[t(135)][t(112)](h)[t(117)]();this[t(131)]=!!o,this[t(134)]=o?.[t(129)](t(119))??null}[st(133)]({value:t}){const e=st,{editor:o}=this,n=o[e(135)][e(112)](h),i=n[e(117)]();i&&ot[e(125)](t)&&o[e(123)][e(114)](o=>{const s=e;o[s(115)](s(119),t,i),n[s(118)](o)})}}function ct(){const t=["1851864BnXFaQ","execute","value","plugins","get","refresh","change","setAttribute","656248lMOFkd","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","footnotesListStyle","25101wxBmsV","881030QUALhP","4138734hsBWUO","model","1320712cpIxeW","includes","5jWDgUv","63124iTqsDB","100McknJg","getAttribute","147eBkJuT","isEnabled"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=174]})(t,e)}function ft(){const t=["1QyHzLL","100GkhHPe","4002471cfGaMf","getFootnotesDefinitionsObjectElement","value","isEnabled","_updateFootnotesCounters","11138679EeNTcx","footnotesListStart","change","setAttribute","execute","plugins","model","1143394TIECrT","get","1428724PvLJwf","refresh","10lFldQN","getAttribute","5274ehmqBH","isInteger","1444000lBRRFD","597179MIyybc","917OKdNsG"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(677488===parseInt(e(187))/1*(-parseInt(e(176))/2)+parseInt(e(189))/3+-parseInt(e(178))/4*(parseInt(e(180))/5)+-parseInt(e(182))/6*(-parseInt(e(186))/7)+-parseInt(e(184))/8+parseInt(e(194))/9+parseInt(e(188))/10*(-parseInt(e(185))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(179)](){const t=lt,{editor:e}=this,o=e[t(174)][t(177)](h)[t(190)]();this[t(192)]=!!o,this[t(191)]=o?.[t(181)](t(195))??null}[lt(198)]({value:t}){const e=lt,{editor:o}=this,n=o[e(174)][e(177)](h),i=n[e(190)]();i&&Number[e(183)](t)&&o[e(175)][e(196)](o=>{const s=e;o[s(197)](s(195),t,i),n[s(193)](o)})}}const ht=bt;function pt(){const t=["schema","max","_getDefaultStartIndex","lower-alpha","9060858PSMWqu","insert","footnotesListStyle","type","consume","removeAttribute","decimal","from","consumable","_updateFootnotesCounters","attribute:footnotesListStart:footnotesDefinitions","element","isNaN","4765aDKQSu","for","645272zMOLWq","upcast","517130VYYswS","position","_formatFootnoteListValue","1208231vKxnOo","hasAttribute","removeStyle","isOfficialPlugin","2365FqtYXv","hasClass","getChanges","name","footnotes-list","upper-latin","toUpperCase","_definePostfixer","editor","getItems","pluginName","_defineFormatter","setAttribute","parent","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","getChildren","registerPostFixer","setFootnoteFormatter","item","footnotesStyle","find","154imSfJY","mapper","differ","$text","toLowerCase","downcast","isPremiumPlugin","lower-latin","footnotesDefinitions","modelCursor","viewItem","padStart","decimal-leading-zero","list-style-type","_getDefaultListStyle","getStyle","footnotes.footnotesProperties.defaultStartIndex","writer","define","18aaPPDj","add","get","plugins","_defineConverters","5286VBHAlV","init","fromCharCode","3528648RWxCub","nodeAfter","commands","footnotes.footnotesProperties.defaultListStyle","config","checkAttribute","parseInt","start","toViewElement","_defineSchema","upper-alpha","document","36230KpNHhD","upper-roman","getAttribute","createRangeOn","lower-roman","extend","requires","FootnotesPropertiesEditing","model","setStyle","footnotesStart","floor","element:ol"];return(pt=function(){return t})()}!function(t){const e=bt,o=t();for(;;)try{if(964449===-parseInt(e(170))/1+parseInt(e(167))/2*(-parseInt(e(215))/3)+parseInt(e(223))/4+parseInt(e(163))/5*(parseInt(e(220))/6)+parseInt(e(196))/7*(parseInt(e(165))/8)+parseInt(e(150))/9+parseInt(e(133))/10*(-parseInt(e(174))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(184)](){return ht(140)}static get[ht(139)](){return[I,h]}static get[ht(173)](){return!0}static get[ht(202)](){return!0}[ht(221)](){const t=ht,{editor:e}=this;e[t(227)][t(214)](t(226),t(156)),e[t(227)][t(214)](t(212),1),e[t(225)][t(216)](t(194),new at(e)),e[t(225)][t(216)](t(143),new dt(e)),this[t(130)](),this[t(219)](),this[t(185)](),this[t(181)]()}[ht(130)](){const t=ht,{editor:e}=this,{schema:o}=e[t(141)];o[t(138)](t(204),{allowAttributes:[t(152),t(189)]})}[ht(219)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(164)](t(166))[t(216)](e=>{const o=t;e.on(o(145),(t,e,n)=>{const s=o,r=e[s(206)],a=e[s(205)]?.[s(187)];r[s(175)](s(178))&&a?.is(s(161),s(204))&&(function(t,e,o,n){const i=s;if(!n[i(228)](e,i(189)))return;let r=1;const a=o[i(158)][i(154)](t,{attributes:i(128)});if(a){const e=Number[i(229)](t[i(135)](i(128)),10);Number[i(162)](e)||(r=e)}!a&&e[i(171)](i(189))||o[i(213)][i(186)](i(189),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(228)](e,i(152)))return;let r=i(156),a=!1;if(o[i(158)][i(154)](t,{attributes:i(153)})){const e={1:i(156),a:i(149),A:i(131),i:i(137),I:i(134)}[t[i(135)](i(153))];e&&(r=e),a=!0}o[i(158)][i(154)](t,{styles:i(209)})&&(r=function(t){const e=i;switch(t){case e(149):return e(203);case e(131):return e(179);default:return t}}(t[i(211)](i(209))),a=!0),!a&&e[i(171)](i(152))||o[i(213)][i(186)](i(152),r,e)}(r,a,n,i))})}),o[t(164)](t(201))[t(216)](e=>{const o=t;e.on(o(160),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;null==r||1===r?n[i(213)][i(155)](i(128),s):n[i(213)][i(186)](i(128),String(r),s)}),e.on(o(188),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;r&&i(156)!==r?n[i(213)][i(142)](i(209),r,s):n[i(213)][i(172)](i(209),s)})})}[ht(181)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(218)][t(217)](h),i=this[t(210)](),s=this[t(148)]();o[t(132)][t(191)](e=>{const r=t,a=o[r(132)][r(198)][r(176)]();let c=!1;for(const t of a){if(r(151)!==t[r(153)]||r(199)===t[r(177)])continue;const n=o[r(136)](t[r(168)][r(224)]);for(const t of n[r(183)]())t.is(r(161),r(204))&&(!t[r(171)](r(189))&&o[r(146)][r(228)](t,r(189))&&(e[r(186)](r(189),s,t),c=!0),!t[r(171)](r(152))&&o[r(146)][r(228)](t,r(152))&&(e[r(186)](r(152),i,t),c=!0))}return c&&n[r(159)](e),c})}[ht(185)](){const t=ht,{editor:e}=this;e[t(218)][t(217)](h)[t(192)](e=>this[t(169)](e))}[ht(210)](){const t=ht;return this[t(182)][t(227)][t(217)](t(226))}[ht(148)](){const t=ht;return this[t(182)][t(227)][t(217)](t(212))}[ht(169)]({container:t,value:e,digits:o}){const n=ht,i=t[n(135)](n(152)),s=t[n(135)](n(189)),r=Math[n(144)](e)+(s??1)-1;switch(i){case n(208):return function(t,e){const o=n;return String(t)[o(207)](e,"0")}(r,Math[n(147)](2,o));case n(149):case n(203):return wt(r,!1);case n(131):case n(179):return wt(r,!0);case n(137):return It(r,!1);case n(134):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(129)](t);return Array[o(157)](n[o(190)]())[o(195)](t=>t.is(o(161),"ol")&&t[o(175)](o(178)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(222)](97+t)+n,i=Math[o(144)]((i-1)/26)}return e?n[o(180)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt();return(bt=function(t,e){return o[t-=128]})(t,e)}function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(200)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=W().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=401]})(t,e)}function St(){var t=["isPremiumPlugin","FootnotesProperties","2234810qDLvgg","615465vLQomt","pluginName","2641pFHdUd","605416WBSyyh","20645350kKmCkA","309365YnPdee","4dijsEH","42CscUfT","122aQeNGJ","2224315WqdKux","requires","63vtIqSZ","isOfficialPlugin"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(325348===-parseInt(e(415))/1*(-parseInt(e(405))/2)+-parseInt(e(413))/3+-parseInt(e(403))/4*(parseInt(e(406))/5)+-parseInt(e(404))/6*(parseInt(e(402))/7)+parseInt(e(416))/8*(-parseInt(e(408))/9)+-parseInt(e(412))/10+parseInt(e(401))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(414)](){return xt(411)}static get[xt(407)](){return[mt,Ft]}static get[xt(409)](){return!0}static get[xt(410)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=206]})(t,e)}function Dt(){var t=["9mAjDIz","257390cjWWoy","408584NMNJlw","1069408hczqDY","2862dtFdwm","156078EFHSSl","30wQjYfG","279687vMqqIs","8620IRlPCp","182762sbzvRh"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(140555===parseInt(e(211))/1+parseInt(e(213))/2*(-parseInt(e(214))/3)+parseInt(e(207))/4+parseInt(e(210))/5*(parseInt(e(209))/6)+parseInt(e(215))/7+-parseInt(e(206))/8+-parseInt(e(208))/9*(parseInt(e(212))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();