@ckeditor/ckeditor5-footnotes 47.6.0-alpha.0 → 47.6.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},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:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=349]})(t,e)}function c(){const t=["type","clear","add","has","createRangeOn","$graveyard","getChanges","name","elementName","push","root","flat","position","_trackedElements","reset","nodeAfter","rootName","_model","attributes","691074PviFpU","11636wMOOUy","2411496kJrLzD","$text","get","28bPWecS","from","110SSknGL","_elementName","2248731krVloT","delete","_getElementKey","getElementKey","16BCpDwp","slice","remove","set","11632kGkIqF","getItems","length","1660AOhmvU","element","insert","96MRUxvv","154286rcJoWK","values","21876672TJsGEp"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(855014===-parseInt(e(391))/1*(-parseInt(e(367))/2)+-parseInt(e(390))/3+-parseInt(e(361))/4*(-parseInt(e(364))/5)+-parseInt(e(392))/6*(parseInt(e(349))/7)+-parseInt(e(357))/8*(parseInt(e(353))/9)+-parseInt(e(351))/10*(parseInt(e(368))/11)+parseInt(e(370))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(388)];[r(352)];[r(355)];[r(384)]=new Map;constructor(t,e){const o=r;this[o(388)]=t,this[o(352)]=e[o(379)],this[o(355)]=e[o(356)]}[r(385)](){const t=r;this[t(384)][t(372)]()}[r(377)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(366)===i[e(371)]&&e(393)!==i[e(378)]&&i[e(383)][e(386)]){const t=this[e(388)][e(375)](i[e(383)][e(386)]);for(const o of t[e(362)]()){if(!o.is(e(365),this[e(352)]))continue;const t=this[e(355)](o);n[e(374)](t)||n[e(360)](t,[]),n[e(394)](t)[e(380)](o)}}if(e(359)===i[e(371)]&&i[e(378)]===this[e(352)]){const t=this[e(355)]({getAttribute:t=>i[e(389)][e(394)](t)});o[e(373)](t)}}for(const[t,n]of this[e(384)])e(376)===n[e(381)][e(387)]&&o[e(373)](t);for(const t of o)this[e(384)][e(354)](t);for(const[t,o]of n)this[e(384)][e(360)](t,o[o[e(363)]-1]);const i=new Set;for(const[t,s]of n)o[e(374)](t)&&(i[e(373)](s[0]),s[e(363)]>1?n[e(360)](t,s[e(358)](1)):n[e(354)](t),o[e(354)](t));return{removed:Array[e(350)](o),inserted:Array[e(350)](n[e(369)]())[e(382)](),moved:Array[e(350)](i)}}}function u(){const t=["_updateFootnotesCounters","root","createRangeOn","definition","unshift","splice","isEqual","childCount","pluginName","end","indexOf","footnotes.multiBlock","FootnotesTracker","rootName","change:data","isPremiumPlugin","_updateFootnoteRefCounter","getAttribute","editor","config","isOfficialPlugin","setAttribute","some","find","133119RUZfDJ","createPositionBefore","171141pxJIcQ","_handleFootnotesDefinitionsObjectChanges","before","parent","_footnotes","findIndex","427225oRCSqT","set","after","add","_handleFootnoteDefinitionsChanges","listenTo","4YLPFqs","_handleInsertedFootnoteReference","registerPostFixer","4207379Ryxpss","append","334629kTjUmr","document","high","model","footnotesDefinitions","_handleFootnotesDefinitionsObjectSync","low","footnoteId","setFootnoteFormatter","getFootnotesDefinitionsObjectElement","4uRpcED","_footnoteDefsTracker","footnoteCounter","getChildren","reset","move","getFootnote","8TxzvDh","_insertEmptyFootnotesDefinitionsContainer","push","min","10UYLKlB","getRootNames","map","get","footnoteRef","_handleFootnoteReferencesChanges","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","footnoteDefinition","_handleRemoveFootnoteReferenceById","_footnoteRefsTracker","remove","singleton","reference","$graveyard","_footnoteDefsContainerTracker","_sortFootnoteDefinitions","insert","has","createPositionAt","from","getFootnotes","_footnoteFormatter","110312tUgBXh","paragraph","compareWith","createRangeIn","getFootnotesFormatter","footnoteInlineContent","length","_handleMovedFootnoteReference","init","_ensureFootnotesDefinitionsContainerExists","enqueueChange","createElement","getChanges","912714qDYFdp","differ"];return(u=function(){return t})()}function f(t,e){const o=u();return(f=function(t,e){return o[t-=316]})(t,e)}const d=f;!function(t){const e=f,o=t();for(;;)try{if(114582===parseInt(e(402))/1*(parseInt(e(334))/2)+parseInt(e(375))/3*(parseInt(e(387))/4)+parseInt(e(381))/5+parseInt(e(347))/6+parseInt(e(373))/7*(parseInt(e(409))/8)+parseInt(e(392))/9*(-parseInt(e(413))/10)+-parseInt(e(390))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[d(379)]=[];[d(318)]=null;[d(333)]=null;[d(326)];[d(321)];[d(403)];static get[d(357)](){return d(361)}static get[d(369)](){return!0}static get[d(364)](){return!0}constructor(t){const e=d;super(t),this[e(326)]=new l(this[e(367)][e(395)],{elementName:e(396),getElementKey:()=>e(323)}),this[e(321)]=new l(this[e(367)][e(395)],{elementName:e(417),getElementKey:t=>t[e(366)](e(399))}),this[e(403)]=new l(this[e(367)][e(395)],{elementName:e(319),getElementKey:t=>t[e(366)](e(399))})}[d(342)](){const t=d,{editor:e}=this,{model:o,data:n}=e;o[t(393)][t(389)](e=>{const n=t,i=o[n(393)][n(348)][n(346)]();let s=!1;return this[n(376)](e,i)&&(s=!0),this[n(385)](e,i)&&(s=!0),this[n(316)](e,i)&&(s=!0),this[n(317)](e)&&(s=!0),this[n(397)](e)&&(s=!0),this[n(327)](e)&&(s=!0),s}),this[t(386)](o[t(393)],t(363),()=>{const e=t;o[e(344)]({isUndoable:!1},t=>{this[e(343)](t)})},{priority:t(398)}),this[t(386)](n,t(382),()=>{const e=t;this[e(379)]=[],this[e(326)][e(406)](),this[e(321)][e(406)](),this[e(403)][e(406)]()},{priority:t(394)})}[d(401)](){return this[d(318)]}[d(408)](t){const e=d;return this[e(379)][e(372)](e=>e.id===t)||null}[d(332)](){const t=d;return Array[t(331)](this[t(379)])}[d(338)](){return this[d(333)]}[d(400)](t){this[d(333)]=t}[d(349)](t,e=0){const o=d;let n=!1;for(let i=e;i<this[o(379)][o(340)];i++)this[o(365)](t,i)&&(n=!0);return n}[d(410)](t,e){const o=d,n=t[o(345)](o(396),{});return t[o(391)](n,e),this[o(318)]=n,n}[d(343)](t){const e=d;if(!this[e(379)][e(340)]||this[e(318)])return;const o=this[e(379)][0][e(324)][e(350)],n=this[e(410)](t,o);for(const o of this[e(379)])o[e(352)][e(378)]||t[e(328)](o[e(352)],n,e(358));this[e(349)](t)}[d(376)](t,e){const o=d;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(326)][o(346)](e);if(r[o(340)]&&(this[o(318)]=r[0]),i[o(340)])if(i[o(340)]>1||this[o(318)]&&i[o(371)](t=>t!==this[o(318)])){const e=t[o(345)](o(396),{}),s=[];this[o(318)]&&s[o(411)](this[o(318)]),s[o(411)](...i),t[o(328)](e,s[0],o(377));for(const n of s)t[o(407)](t[o(337)](n),t[o(330)](e,o(358))),t[o(322)](n);this[o(318)]=e,this[o(349)](t),n=!0}else this[o(318)]=i[0];if(s[o(340)]&&o(325)===this[o(318)]?.[o(350)][o(362)]){for(const e of this[o(379)])t[o(322)](e[o(324)]),n=!0;this[o(379)]=[],this[o(318)]=null}return n}[d(385)](t,e){const o=d;let n=!1;const i=this[o(367)][o(368)][o(416)](o(360)),{inserted:s,moved:r}=this[o(403)][o(346)](e);for(const e of[...r,...s]){const s=e[o(366)](o(399)),r=this[o(408)](s);r&&(r[o(352)]=e),h(t,i,e)&&(n=!0)}return n}[d(316)](t,e){const o=d;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(321)][o(346)](e);for(const e of i)this[o(320)](t,e)&&(n=!0);for(const e of s)this[o(388)](t,e)&&(n=!0);for(const e of r)this[o(341)](t,e)&&(n=!0);return n}[d(397)](t){const e=d;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(356)]!==this[e(379)][e(340)]){const n=[];for(const t of this[e(318)][e(405)]()){const i=t[e(366)](e(399));this[e(408)](i)||(n[e(353)](t),o=!0)}for(const o of n)t[e(322)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(405)]()){const s=t[e(366)](e(399));n[e(329)](s)?(i[e(353)](t),o=!0):n[e(384)](s)}for(const o of i)t[e(322)](o);return this[e(318)][e(356)]||(t[e(322)](this[e(318)]),this[e(318)]=null,o=!0),o}[d(388)](t,e){const o=d;if(this[o(379)][o(372)](t=>t[o(324)]===e))return!1;let n=!1;const i=e[o(366)](o(399)),s=this[o(379)][o(380)](t=>t.id===i);-1!==s&&(t[o(322)](this[o(379)][s][o(324)]),this[o(379)][o(354)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(366)](n(399))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(319),{footnoteId:i}),this[o(318)]&&(t[o(328)](r,this[o(318)],o(358)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(367)][o(395)],this[o(379)],e);this[o(379)][o(354)](c,0,a);let l=c;return-1!==s&&(l=Math[o(412)](c,s)),this[o(349)](t,l)&&(n=!0),n}[d(320)](t,e){const o=d,n=this[o(379)][o(380)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(379)][n];return o(325)!==s[o(352)][o(350)][o(362)]&&(t[o(322)](s[o(352)]),i=!0),this[o(379)][o(354)](n,1),this[o(349)](t,n)&&(i=!0),i}[d(341)](t,e){const o=d,n=e[o(366)](o(399)),i=this[o(379)][o(380)](t=>t.id===n),s=this[o(379)][i];let r=!1;s[o(324)]=e,this[o(379)][o(354)](i,1);const a=m(this[o(367)][o(395)],this[o(379)],e);return this[o(379)][o(354)](a,0,s),this[o(349)](t,Math[o(412)](i,a))&&(r=!0),r}[d(365)](t,e){const o=d;if(!this[o(318)])return!1;const n=this[o(379)][e];let i;return i=this[o(333)]?this[o(333)]({footnote:n,container:this[o(318)],digits:String(this[o(379)][o(340)])[o(340)],value:e+1}):String(e+1),n[o(324)][o(366)](o(404))!=i&&(t[o(370)](o(404),i,n[o(324)]),!0)}[d(327)](t){const e=d;if(!this[e(318)]||this[e(379)][e(340)]<2)return!1;if(function(t,o){const n=e;if(t[n(340)]!==o[n(340)])return!1;for(let e=0;e<t[n(340)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(379)][e(415)](t=>t.id),Array[e(331)](this[e(318)][e(405)]())[e(415)](t=>t[e(366)](e(399)))))return!1;let o=!1;for(let n=0;n<this[e(379)][e(340)];n++){const i=this[e(379)][n],s=t[e(374)](i[e(352)]),r=t[e(330)](this[e(318)],n);s[e(355)](r)||(t[e(407)](t[e(351)](i[e(352)]),r),o=!0)}return o}[d(317)](t){const e=d;if(!this[e(379)][e(340)])return!1;const{model:o}=this[e(367)];let n=!1;for(let i=0;i<this[e(379)][e(340)]-1;i++){const s=this[e(379)][i],r=this[e(379)][i+1],a=o[e(374)](s[e(324)]),c=o[e(374)](r[e(324)]);e(383)===a[e(336)](c)&&(this[e(341)](t,s[e(324)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=d;if(o[n(356)])return!1;const i=n(e?335:339);return t[n(328)](t[n(345)](i),o),!0}function m(t,e,o){const n=d;if(0===e[n(340)])return 0;const i=t[n(374)](o);for(let o=0;o<e[n(340)];o++){const s=e[o],r=t[n(374)](s[n(324)]);if(n(377)===i[n(336)](r))return o}const s=o[n(350)];let r=-1;for(let t=e[n(340)]-1;t>=0;t--)if(e[t][n(324)][n(350)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(393)][n(414)](),c=a[n(359)](s[n(362)]),l=a[c+1];if(l)for(let t=0;t<e[n(340)];t++)if(e[t][n(324)][n(350)][n(362)]===l)return t;return e[n(340)]}const g=y;function w(){const t=["insert-footnote-command-executed-with-invalid-id","_getPositionToInsertFootnote","4XCeUvG","string","isBlock","document","isObject","641456cjVTyj","plugins","isEnabled","248231bnRXpi","FootnotesEditing","get","length","1257069YekNaz","selection","_moveSelectionToFootnoteDefinition","14rpPHiP","2mpKRlv","checkChild","change","footnoteRef","130yrHint","23973466CdThXY","test","editor","3581190bWyLqv","insertObject","footnoteId","getFirstRange","end","model","createElement","5379219ENCgWB","execute","getItems","82362oZmXme","refresh"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=230]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(359804===parseInt(e(251))/1*(-parseInt(e(259))/2)+-parseInt(e(255))/3*(parseInt(e(243))/4)+-parseInt(e(263))/5*(parseInt(e(239))/6)+parseInt(e(258))/7*(parseInt(e(248))/8)+-parseInt(e(236))/9+-parseInt(e(267))/10+parseInt(e(264))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(240)](){const t=g,e=this[t(266)][t(234)][t(246)][t(256)],o=this[t(242)](e);this[t(250)]=!!o}[g(237)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(246)],r=this[e(242)](s);if(!r)return;const a=o[e(249)][e(253)](e(252)),c=t?.[e(231)]??(0,i.uid)();!function(t){const o=e;return o(244)==typeof t&&t[o(254)]>0&&!/\s/[o(265)](t)&&!/^\d/[o(265)](t)}(c)?(0,i.logWarning)(e(241)):(n[e(261)](t=>{const o=e,i=t[o(235)](o(262),{footnoteId:c});n[o(230)](i,r,null)}),a[e(257)](c))}[g(242)](t){const e=g,{model:o}=this[e(266)],{schema:n}=o,i=t[e(232)]();for(const t of i[e(238)]())if(n[e(245)](t)||n[e(247)](t))return null;const s=i[e(233)];return n[e(260)](s,e(262))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1771977600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).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(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=_;!function(t){const e=_,o=t();for(;;)try{if(805156===parseInt(e(150))/1*(-parseInt(e(170))/2)+-parseInt(e(155))/3*(-parseInt(e(197))/4)+parseInt(e(179))/5*(-parseInt(e(137))/6)+parseInt(e(156))/7*(-parseInt(e(140))/8)+-parseInt(e(209))/9+parseInt(e(204))/10+parseInt(e(171))/11*(parseInt(e(151))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(V);class A extends t.Plugin{static get[T(176)](){return T(189)}static get[T(191)](){return[v,S.ClipboardPipeline]}static get[T(212)](){return!0}static get[T(205)](){return!0}[T(159)](){this[T(138)]()}[T(138)](){const t=T;this[t(177)](),this[t(136)]()}[T(177)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(157)](S.ClipboardPipeline),s=o[t(157)](p);this[t(208)](i,t(172),(o,i)=>{const r=t,a=L(n[r(183)](i[r(135)]));if(!a[r(184)])return;const c=s[r(134)](),l=a[r(153)]((t,o)=>{const n=r,i=c[n(160)](t=>t.id===o);if(i){const o=e[n(147)][n(174)](i[n(182)],{isClipboardPipeline:!0}),s=e[n(147)][n(193)][n(154)](o);t[i.id]=s}return t},Object[r(207)](null));i[r(152)][r(162)](r(173),JSON[r(178)](l))})}[T(136)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(180)],r=n[t(157)](S.ClipboardPipeline),a=n[t(157)](p),c=e[t(139)][t(157)](t(149));let l=null;this[t(208)](s[t(210)],t(163),(e,o)=>{const n=t,i=o[n(152)][n(166)](n(173));l=i?JSON[n(165)](i):null}),this[t(208)](r,t(188),(n,s)=>{const r=t,u=s[r(168)]===this[r(141)].id;u&&r(194)===s[r(185)]||o[r(169)](t=>{const n=r;let f=a[n(198)]();const d=!!f&&Array[n(186)](o[n(210)][n(187)][n(203)]())[n(146)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(164),e(144)))return!0;return!1}(o[n(183)](s[n(135)]))&&(l=function(t,e){const o=n,i=D(t,e);if(!i)return null;const s=Object[o(207)](null);for(const e of i[o(142)]())e.is(o(164),o(133))&&e[o(199)](o(196))&&(s[e[o(181)](o(196))]=t[o(167)](e,!0));return Object[o(192)](s)[o(184)]?s:null}(t,s[n(135)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(183)](e))n.is(o(164),o(129))&&i[o(201)](n);for(const e of i)t[o(161)](e)}(t,s[n(135)]),!l)return;const{selection:p}=o[n(210)],h=p[n(127)]()[n(200)];f&&!d||(f=D(t,s[n(135)]),f||=a[n(130)](t,h));const m=Array[n(186)](p[n(206)]())[n(158)](L),g=function(t,e,o){const s=n,r=Object[s(207)](null);for(const{item:n}of t[s(183)](e))if(n.is(s(164),s(144))){const e=n[s(181)](s(196));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(131)](s(196),r[e],n)}return r}(t,s[n(135)],t=>{const e=n;return!u||!!a[e(175)](t)&&!m[e(146)](t)});for(const[o,i]of Object[n(143)](l)){const s=g[o]||o;let r;if(n(211)!=typeof i)r=i,s!==o&&t[n(131)](n(196),s,r);else{r=t[n(148)](n(133),{footnoteId:s});const o=e[n(147)][n(193)][n(174)](i);let a;if(c)a=e[n(147)][n(128)](o,r);else{a=t[n(148)](n(145));const i=e[n(147)][n(128)](o,a);t[n(195)](i,a)}t[n(202)](a,r)}t[n(195)](r,f,n(190))}l=null})})}}function D(t,e){const o=T;for(const{item:n}of t[o(183)](e))if(n.is(o(164),o(129)))return n;return null}function _(t,e){const o=V();return(_=function(t,e){return o[t-=127]})(t,e)}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(164),e(144))&&o[e(132)](n[e(181)](e(196)));return Array[e(186)](o)}function V(){const t=["content","_handlePasteFootnotesDefinitions","16134WqDkOM","_defineClipboardIntegration","config","1678472Yihhuw","editor","getChildren","entries","footnoteRef","footnoteInlineContent","includes","data","createElement","footnotes.multiBlock","673dOiQhV","4232244TzUSWt","dataTransfer","reduce","toData","297BBimJa","14xjnUgi","get","flatMap","init","find","remove","setData","clipboardInput","element","parse","getData","cloneElement","sourceEditorId","change","1230JVNTZp","44IGfXVq","outputTransformation","application/ckeditor5-footnotes","toView","getFootnote","pluginName","_handleCopyFootnotesDefinitions","stringify","425wwLiMQ","editing","getAttribute","definition","createRangeIn","length","method","from","selection","contentInsertion","FootnotesClipboard","end","requires","keys","htmlProcessor","drop","insert","footnoteId","21628LKsfOJ","getFootnotesDefinitionsObjectElement","hasAttribute","root","push","append","getSelectedBlocks","12166100cSmkjm","isPremiumPlugin","getRanges","create","listenTo","11658753ragdPp","document","string","isOfficialPlugin","getFirstRange","toModel","footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","setAttribute","add","footnoteDefinition","getFootnotes"];return(V=function(){return t})()}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),W=o(123),z=o.n(W),q=o(741),H=o.n(q),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=U().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=H();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,O.ButtonView)),e.add("menuBar:insertFootnote",X(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=$;function Z(){var t=["isOfficialPlugin","32134421mSIvli","30560TNZTRu","requires","1623oehyNP","11388ZmsqcH","7QzZxIB","pluginName","1485lpLkUv","702282FwCcxt","2134250VWDokd","12qoCTtW","549BbHOOW","5780ZPmESA","4579880JhAYVL","Footnotes","isPremiumPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=215]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(611042===-parseInt(e(224))/1+-parseInt(e(225))/2+-parseInt(e(219))/3*(-parseInt(e(228))/4)+-parseInt(e(223))/5*(parseInt(e(220))/6)+parseInt(e(221))/7*(-parseInt(e(229))/8)+parseInt(e(227))/9*(-parseInt(e(217))/10)+parseInt(e(216))/11*(parseInt(e(226))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[Q(222)](){return Q(230)}static get[Q(218)](){return[v,A,Y]}static get[Q(215)](){return!0}static get[Q(231)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=370]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(819792===parseInt(e(376))/1*(parseInt(e(372))/2)+parseInt(e(387))/3*(-parseInt(e(383))/4)+parseInt(e(378))/5*(parseInt(e(370))/6)+-parseInt(e(371))/7+parseInt(e(381))/8+-parseInt(e(374))/9+-parseInt(e(384))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(375),ot(386),ot(379),ot(373),ot(382),ot(377),ot(385),ot(380)];function it(){const t=["upper-latin","1239597YeVDTD","decimal","4162kuRfnF","upper-alpha","955BSkzyk","lower-latin","upper-roman","2878112pIfRvA","lower-alpha","68248XVunxU","768680KahuBQ","lower-roman","decimal-leading-zero","156VWLGVR","36342MZQFEN","5730634wmhJJL","588huxPPm"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=330]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(112598===-parseInt(e(352))/1*(parseInt(e(348))/2)+-parseInt(e(347))/3+parseInt(e(335))/4*(parseInt(e(343))/5)+parseInt(e(339))/6+parseInt(e(330))/7+parseInt(e(333))/8+-parseInt(e(349))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(337)](){const t=st,{editor:e}=this,o=e[t(350)][t(332)](p)[t(341)]();this[t(344)]=!!o,this[t(342)]=o?.[t(334)](t(346))??null}[st(345)]({value:t}){const e=st,{editor:o}=this,n=o[e(350)][e(332)](p),i=n[e(341)]();i&&nt[e(340)](t)&&o[e(338)][e(336)](o=>{const s=e;o[s(351)](s(346),t,i),n[s(331)](o)})}}function ct(){const t=["_updateFootnotesCounters","get","1029216xgscMG","getAttribute","8eywYOV","change","refresh","model","348414zMPWhR","includes","getFootnotesDefinitionsObjectElement","value","441590uobflA","isEnabled","execute","footnotesListStyle","397254lfMEUt","69698jGoQcA","966861BRHIuk","plugins","setAttribute","6rpbjQv","1387274GSwrZj"];return(ct=function(){return t})()}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=483]})(t,e)}const ut=lt;function ft(){const t=["getAttribute","get","isEnabled","6619248PtCuvp","84203aAFNDm","1570253cGPUfn","refresh","248716rznSFW","plugins","78nBkodV","3433990RaluHw","footnotesListStart","isInteger","340pvsKAC","execute","872rxnubB","change","44qGPgRe","_updateFootnotesCounters","2TqkddT","value","model","setAttribute","7735548pkVNAL","getFootnotesDefinitionsObjectElement","310932tWErZq"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(888272===parseInt(e(496))/1*(parseInt(e(484))/2)+-parseInt(e(500))/3*(-parseInt(e(498))/4)+-parseInt(e(501))/5+parseInt(e(494))/6+parseInt(e(495))/7*(-parseInt(e(506))/8)+-parseInt(e(490))/9*(-parseInt(e(504))/10)+-parseInt(e(508))/11*(parseInt(e(488))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(497)](){const t=ut,{editor:e}=this,o=e[t(499)][t(492)](p)[t(489)]();this[t(493)]=!!o,this[t(485)]=o?.[t(491)](t(502))??null}[ut(505)]({value:t}){const e=ut,{editor:o}=this,n=o[e(499)][e(492)](p),i=n[e(489)]();i&&Number[e(503)](t)&&o[e(486)][e(507)](o=>{const s=e;o[s(487)](s(502),t,i),n[s(483)](o)})}}const pt=bt;function ht(){const t=["_getDefaultListStyle","position","item","FootnotesPropertiesEditing","2732545OYXoYC","$text","7991880ZKghMR","requires","_defineConverters","getItems","removeAttribute","toLowerCase","consumable","decimal-leading-zero","11LWmtDY","commands","differ","nodeAfter","footnotes-list","footnotes.footnotesProperties.defaultListStyle","249PAQNsr","element","_definePostfixer","isPremiumPlugin","getAttribute","upper-alpha","_updateFootnotesCounters","lower-alpha","_formatFootnoteListValue","upcast","max","7CXDCgx","getChildren","removeStyle","createRangeOn","type","padStart","footnotesListStyle","_defineSchema","model","add","fromCharCode","element:ol","837693kllIwj","_defineFormatter","isNaN","_getDefaultStartIndex","registerPostFixer","floor","13544312rrYLjV","isOfficialPlugin","setFootnoteFormatter","hasClass","footnotesStyle","from","8sXMgzq","for","50GpLiwP","define","upper-latin","attribute:footnotesListStyle:footnotesDefinitions","extend","getChanges","get","consume","editor","toViewElement","init","schema","toUpperCase","footnotes.footnotesProperties.defaultStartIndex","config","downcast","mapper","528366MKGBTc","footnotesDefinitions","19930548IOxlAt","plugins","insert","getStyle","start","lower-latin","viewItem","document","upper-roman","attribute:footnotesListStart:footnotesDefinitions","footnotesStart","parent","setAttribute","setStyle","38506YfjRhI","footnotesListStart","hasAttribute","writer","name","decimal","lower-roman","pluginName","list-style-type","parseInt","checkAttribute","modelCursor","find"];return(ht=function(){return t})()}!function(t){const e=bt,o=t();for(;;)try{if(857820===parseInt(e(309))/1+-parseInt(e(325))/2*(parseInt(e(358))/3)+parseInt(e(290))/4*(parseInt(e(342))/5)+parseInt(e(344))/6+parseInt(e(369))/7*(-parseInt(e(284))/8)+parseInt(e(278))/9*(-parseInt(e(292))/10)+parseInt(e(352))/11*(parseInt(e(311))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(332)](){return pt(341)}static get[pt(345)](){return[v,p]}static get[pt(285)](){return!0}static get[pt(361)](){return!0}[pt(302)](){const t=pt,{editor:e}=this;e[t(306)][t(293)](t(357),t(330)),e[t(306)][t(293)](t(305),1),e[t(353)][t(275)](t(288),new at(e)),e[t(353)][t(275)](t(321),new dt(e)),this[t(376)](),this[t(346)](),this[t(279)](),this[t(360)]()}[pt(376)](){const t=pt,{editor:e}=this,{schema:o}=e[t(274)];o[t(296)](t(310),{allowAttributes:[t(375),t(326)]})}[pt(346)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(291)](t(367))[t(275)](e=>{const o=t;e.on(o(277),(t,e,n)=>{const s=o,r=e[s(317)],a=e[s(336)]?.[s(322)];r[s(287)](s(356))&&a?.is(s(359),s(310))&&(function(t,e,o,n){const i=s;if(!n[i(335)](e,i(326)))return;let r=1;const a=o[i(350)][i(299)](t,{attributes:i(315)});if(a){const e=Number[i(334)](t[i(362)](i(315)),10);Number[i(280)](e)||(r=e)}!a&&e[i(327)](i(326))||o[i(328)][i(323)](i(326),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(335)](e,i(375)))return;let r=i(330),a=!1;if(o[i(350)][i(299)](t,{attributes:i(373)})){const e={1:i(330),a:i(365),A:i(363),i:i(331),I:i(319)}[t[i(362)](i(373))];e&&(r=e),a=!0}o[i(350)][i(299)](t,{styles:i(333)})&&(r=function(t){const e=i;switch(t){case e(365):return e(316);case e(363):return e(294);default:return t}}(t[i(314)](i(333))),a=!0),!a&&e[i(327)](i(375))||o[i(328)][i(323)](i(375),r,e)}(r,a,n,i))})}),o[t(291)](t(307))[t(275)](e=>{const o=t;e.on(o(320),(t,e,n)=>{const i=o;if(!n[i(350)][i(299)](e[i(340)],t[i(329)]))return;const s=gt(e[i(340)],n[i(308)]),{attributeNewValue:r}=e;null==r||1===r?n[i(328)][i(348)](i(315),s):n[i(328)][i(323)](i(315),String(r),s)}),e.on(o(295),(t,e,n)=>{const i=o;if(!n[i(350)][i(299)](e[i(340)],t[i(329)]))return;const s=gt(e[i(340)],n[i(308)]),{attributeNewValue:r}=e;r&&i(330)!==r?n[i(328)][i(324)](i(333),r,s):n[i(328)][i(371)](i(333),s)})})}[pt(360)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(312)][t(298)](p),i=this[t(338)](),s=this[t(281)]();o[t(318)][t(282)](e=>{const r=t,a=o[r(318)][r(354)][r(297)]();let c=!1;for(const t of a){if(r(313)!==t[r(373)]||r(343)===t[r(329)])continue;const n=o[r(372)](t[r(339)][r(355)]);for(const t of n[r(347)]())t.is(r(359),r(310))&&(!t[r(327)](r(326))&&o[r(303)][r(335)](t,r(326))&&(e[r(323)](r(326),s,t),c=!0),!t[r(327)](r(375))&&o[r(303)][r(335)](t,r(375))&&(e[r(323)](r(375),i,t),c=!0))}return c&&n[r(364)](e),c})}[pt(279)](){const t=pt,{editor:e}=this;e[t(312)][t(298)](p)[t(286)](e=>this[t(366)](e))}[pt(338)](){const t=pt;return this[t(300)][t(306)][t(298)](t(357))}[pt(281)](){const t=pt;return this[t(300)][t(306)][t(298)](t(305))}[pt(366)]({container:t,value:e,digits:o}){const n=pt,i=t[n(362)](n(375)),s=t[n(362)](n(326)),r=Math[n(283)](e)+(s??1)-1;switch(i){case n(351):return function(t,e){const o=n;return String(t)[o(374)](e,"0")}(r,Math[n(368)](2,o));case n(365):case n(316):return wt(r,!1);case n(363):case n(294):return wt(r,!0);case n(331):return vt(r,!1);case n(319):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(301)](t);return Array[o(289)](n[o(370)]())[o(337)](t=>t.is(o(359),"ol")&&t[o(287)](o(356)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(276)](97+t)+n,i=Math[o(283)]((i-1)/26)}return e?n[o(304)]():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=ht();return(bt=function(t,e){return o[t-=274]})(t,e)}function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(349)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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 It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Pt;function Et(){var t=["5261772BfNaxG","FootnotesProperties","48wbQtct","75812JhozSA","129KYcJBP","pluginName","10FzqpMy","9599777KxBLjt","10551564koIdCf","6124310uEpTuT","isPremiumPlugin","requires","isOfficialPlugin","1294209yQxTfR","555348tyEIfG","1uVOyzH"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=236]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(628738===-parseInt(e(245))/1*(-parseInt(e(244))/2)+-parseInt(e(250))/3*(parseInt(e(249))/4)+parseInt(e(239))/5+parseInt(e(246))/6+-parseInt(e(243))/7*(-parseInt(e(248))/8)+parseInt(e(238))/9*(-parseInt(e(236))/10)+-parseInt(e(237))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(251)](){return xt(247)}static get[xt(241)](){return[mt,Ft]}static get[xt(242)](){return!0}static get[xt(240)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=115]})(t,e)}function At(){var t=["16pCmuYb","1523984qccDqq","890JIkAMP","11KrOXic","6579730OHQNSU","6mNMLcu","222027LxVvvj","12jHNnAv","552622HsfEPV","299466EuExSQ","361115WGqSqn"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(134673===-parseInt(e(124))/1*(-parseInt(e(115))/2)+parseInt(e(119))/3*(-parseInt(e(120))/4)+parseInt(e(123))/5*(-parseInt(e(118))/6)+-parseInt(e(121))/7+-parseInt(e(125))/8+parseInt(e(122))/9+parseInt(e(117))/10*(parseInt(e(116))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["set","length","remove","createRangeOn","_getElementKey","223107GaDrLl","reset","has","slice","$graveyard","_elementName","10AHFZwK","type","7814024pKZjXt","element","delete","clear","root","21032721laCjoH","name","get","$text","add","_trackedElements","nodeAfter","getItems","1199884udkDri","from","attributes","16rLwqGj","7274424qPjRlz","push","position","getElementKey","1124210hLTFVs","20KWFjvx","elementName","flat","values","getChanges","rootName","_model","92581CYQKxk","insert"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=149]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(617245===parseInt(e(157))/1*(parseInt(e(188))/2)+parseInt(e(164))/3*(-parseInt(e(150))/4)+parseInt(e(149))/5+parseInt(e(189))/6+parseInt(e(185))/7+parseInt(e(172))/8+-parseInt(e(177))/9*(parseInt(e(170))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(156)];[r(169)];[r(163)];[r(182)]=new Map;constructor(t,e){const o=r;this[o(156)]=t,this[o(169)]=e[o(151)],this[o(163)]=e[o(192)]}[r(165)](){const t=r;this[t(182)][t(175)]()}[r(154)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(158)===i[e(171)]&&e(180)!==i[e(178)]&&i[e(191)][e(183)]){const t=this[e(156)][e(162)](i[e(191)][e(183)]);for(const o of t[e(184)]()){if(!o.is(e(173),this[e(169)]))continue;const t=this[e(163)](o);n[e(166)](t)||n[e(159)](t,[]),n[e(179)](t)[e(190)](o)}}if(e(161)===i[e(171)]&&i[e(178)]===this[e(169)]){const t=this[e(163)]({getAttribute:t=>i[e(187)][e(179)](t)});o[e(181)](t)}}for(const[t,n]of this[e(182)])e(168)===n[e(176)][e(155)]&&o[e(181)](t);for(const t of o)this[e(182)][e(174)](t);for(const[t,o]of n)this[e(182)][e(159)](t,o[o[e(160)]-1]);const i=new Set;for(const[t,s]of n)o[e(166)](t)&&(i[e(181)](s[0]),s[e(160)]>1?n[e(159)](t,s[e(167)](1)):n[e(174)](t),o[e(174)](t));return{removed:Array[e(186)](o),inserted:Array[e(186)](n[e(153)]())[e(152)](),moved:Array[e(186)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=272]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(762437===-parseInt(e(344))/1*(parseInt(e(333))/2)+parseInt(e(331))/3*(-parseInt(e(291))/4)+parseInt(e(336))/5+parseInt(e(358))/6*(-parseInt(e(295))/7)+parseInt(e(300))/8+-parseInt(e(293))/9*(parseInt(e(272))/10)+parseInt(e(350))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(315)]=[];[f(290)]=null;[f(305)]=null;[f(279)];[f(285)];[f(337)];static get[f(351)](){return f(275)}static get[f(325)](){return!0}static get[f(341)](){return!0}constructor(t){const e=f;super(t),this[e(279)]=new l(this[e(274)][e(317)],{elementName:e(334),getElementKey:()=>e(314)}),this[e(285)]=new l(this[e(274)][e(317)],{elementName:e(359),getElementKey:t=>t[e(297)](e(332))}),this[e(337)]=new l(this[e(274)][e(317)],{elementName:e(281),getElementKey:t=>t[e(297)](e(332))})}[f(329)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(368)][t(343)](e=>{const n=t,i=o[n(368)][n(348)][n(320)]();let s=!1;return this[n(360)](e,i)&&(s=!0),this[n(367)](e,i)&&(s=!0),this[n(347)](e,i)&&(s=!0),this[n(294)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(370)](e)&&(s=!0),s}),this[t(309)](o[t(368)],t(330),()=>{const e=t;o[e(326)]({isUndoable:!1},t=>{this[e(342)](t)})},{priority:t(366)}),this[t(309)](n,t(369),()=>{const e=t;this[e(315)]=[],this[e(279)][e(321)](),this[e(285)][e(321)](),this[e(337)][e(321)]()},{priority:t(277)})}[f(303)](){return this[f(290)]}[f(282)](t){const e=f;return this[e(315)][e(286)](e=>e.id===t)||null}[f(339)](){const t=f;return Array[t(289)](this[t(315)])}[f(311)](){return this[f(305)]}[f(361)](t){this[f(305)]=t}[f(298)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(315)][o(319)];i++)this[o(356)](t,i)&&(n=!0);return n}[f(353)](t,e){const o=f,n=t[o(283)](o(334),{});return t[o(340)](n,e),this[o(290)]=n,n}[f(342)](t){const e=f;if(!this[e(315)][e(319)]||this[e(290)])return;const o=this[e(315)][0][e(323)][e(316)],n=this[e(353)](t,o);for(const o of this[e(315)])o[e(324)][e(310)]||t[e(302)](o[e(324)],n,e(273));this[e(298)](t)}[f(360)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(279)][o(320)](e);if(r[o(319)]&&(this[o(290)]=r[0]),i[o(319)])if(i[o(319)]>1||this[o(290)]&&i[o(307)](t=>t!==this[o(290)])){const e=t[o(283)](o(334),{}),s=[];this[o(290)]&&s[o(328)](this[o(290)]),s[o(328)](...i),t[o(302)](e,s[0],o(373));for(const n of s)t[o(365)](t[o(304)](n),t[o(327)](e,o(273))),t[o(288)](n);this[o(290)]=e,this[o(298)](t),n=!0}else this[o(290)]=i[0];if(s[o(319)]&&o(308)===this[o(290)]?.[o(316)][o(296)]){for(const e of this[o(315)])t[o(288)](e[o(323)]),n=!0;this[o(315)]=[],this[o(290)]=null}return n}[f(367)](t,e){const o=f;let n=!1;const i=this[o(274)][o(354)][o(363)](o(364)),{inserted:s,moved:r}=this[o(337)][o(320)](e);for(const e of[...r,...s]){const s=e[o(297)](o(332)),r=this[o(282)](s);r&&(r[o(324)]=e),h(t,i,e)&&(n=!0)}return n}[f(347)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(285)][o(320)](e);for(const e of i)this[o(280)](t,e)&&(n=!0);for(const e of s)this[o(278)](t,e)&&(n=!0);for(const e of r)this[o(276)](t,e)&&(n=!0);return n}[f(318)](t){const e=f;if(!this[e(290)])return!1;let o=!1;if(this[e(290)][e(357)]!==this[e(315)][e(319)]){const n=[];for(const t of this[e(290)][e(352)]()){const i=t[e(297)](e(332));this[e(282)](i)||(n[e(349)](t),o=!0)}for(const o of n)t[e(288)](o)}const n=new Set,i=[];for(const t of this[e(290)][e(352)]()){const s=t[e(297)](e(332));n[e(355)](s)?(i[e(349)](t),o=!0):n[e(312)](s)}for(const o of i)t[e(288)](o);return this[e(290)][e(357)]||(t[e(288)](this[e(290)]),this[e(290)]=null,o=!0),o}[f(278)](t,e){const o=f;if(this[o(315)][o(286)](t=>t[o(323)]===e))return!1;let n=!1;const i=e[o(297)](o(332)),s=this[o(315)][o(372)](t=>t.id===i);-1!==s&&(t[o(288)](this[o(315)][s][o(323)]),this[o(315)][o(313)](s,1),n=!0);let r=this[o(290)]?function(t,e){const n=o;for(const o of t[n(352)]())if(o[n(297)](n(332))===e)return o;return null}(this[o(290)],i):null;r||(r=t[o(283)](o(281),{footnoteId:i}),this[o(290)]&&(t[o(302)](r,this[o(290)],o(273)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(274)][o(317)],this[o(315)],e);this[o(315)][o(313)](c,0,a);let l=c;return-1!==s&&(l=Math[o(287)](c,s)),this[o(298)](t,l)&&(n=!0),n}[f(280)](t,e){const o=f,n=this[o(315)][o(372)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(315)][n];return o(308)!==s[o(324)][o(316)][o(296)]&&(t[o(288)](s[o(324)]),i=!0),this[o(315)][o(313)](n,1),this[o(298)](t,n)&&(i=!0),i}[f(276)](t,e){const o=f,n=e[o(297)](o(332)),i=this[o(315)][o(372)](t=>t.id===n),s=this[o(315)][i];let r=!1;s[o(323)]=e,this[o(315)][o(313)](i,1);const a=m(this[o(274)][o(317)],this[o(315)],e);return this[o(315)][o(313)](a,0,s),this[o(298)](t,Math[o(287)](i,a))&&(r=!0),r}[f(356)](t,e){const o=f;if(!this[o(290)])return!1;const n=this[o(315)][e];let i;return i=this[o(305)]?this[o(305)]({footnote:n,container:this[o(290)],digits:String(this[o(315)][o(319)])[o(319)],value:e+1}):String(e+1),n[o(323)][o(297)](o(292))!=i&&(t[o(322)](o(292),i,n[o(323)]),!0)}[f(370)](t){const e=f;if(!this[e(290)]||this[e(315)][e(319)]<2)return!1;if(function(t,o){const n=e;if(t[n(319)]!==o[n(319)])return!1;for(let e=0;e<t[n(319)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(315)][e(284)](t=>t.id),Array[e(289)](this[e(290)][e(352)]())[e(284)](t=>t[e(297)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(315)][e(319)];n++){const i=this[e(315)][n],s=t[e(299)](i[e(324)]),r=t[e(327)](this[e(290)],n);s[e(301)](r)||(t[e(365)](t[e(345)](i[e(324)]),r),o=!0)}return o}[f(294)](t){const e=f;if(!this[e(315)][e(319)])return!1;const{model:o}=this[e(274)];let n=!1;for(let i=0;i<this[e(315)][e(319)]-1;i++){const s=this[e(315)][i],r=this[e(315)][i+1],a=o[e(299)](s[e(323)]),c=o[e(299)](r[e(323)]);e(362)===a[e(346)](c)&&(this[e(276)](t,s[e(323)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(357)])return!1;const i=n(e?371:338);return t[n(302)](t[n(283)](i),o),!0}function p(){const t=["after","get","footnotes.multiBlock","move","low","_handleFootnoteDefinitionsChanges","document","set","_sortFootnoteDefinitions","paragraph","findIndex","before","710300oUkQet","end","editor","FootnotesTracker","_handleMovedFootnoteReference","high","_handleInsertedFootnoteReference","_footnoteDefsContainerTracker","_handleRemoveFootnoteReferenceById","footnoteDefinition","getFootnote","createElement","map","_footnoteRefsTracker","find","min","remove","from","_footnotesDefinitions","534716XRnGXc","footnoteCounter","180fZuJYG","_ensureFootnotesReferencesHaveProperOrder","33523KPfeyW","rootName","getAttribute","_updateFootnotesCounters","createPositionBefore","9806952bIYVfV","isEqual","insert","getFootnotesDefinitionsObjectElement","createRangeIn","_footnoteFormatter","getRootNames","some","$graveyard","listenTo","parent","getFootnotesFormatter","add","splice","singleton","_footnotes","root","model","_handleFootnotesDefinitionsObjectSync","length","getChanges","reset","setAttribute","reference","definition","isOfficialPlugin","enqueueChange","createPositionAt","push","init","change:data","15lfQqZB","footnoteId","16XkmQUF","footnotesDefinitions","indexOf","5010520KhMXbd","_footnoteDefsTracker","footnoteInlineContent","getFootnotes","append","isPremiumPlugin","_ensureFootnotesDefinitionsContainerExists","registerPostFixer","125683OEfVqM","createRangeOn","compareWith","_handleFootnoteReferencesChanges","differ","unshift","27031620jywjJP","pluginName","getChildren","_insertEmptyFootnotesDefinitionsContainer","config","has","_updateFootnoteRefCounter","childCount","1038lpRffg","footnoteRef","_handleFootnotesDefinitionsObjectChanges","setFootnoteFormatter"];return(p=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(319)])return 0;const i=t[n(299)](o);for(let o=0;o<e[n(319)];o++){const s=e[o],r=t[n(299)](s[n(323)]);if(n(373)===i[n(346)](r))return o}const s=o[n(316)];let r=-1;for(let t=e[n(319)]-1;t>=0;t--)if(e[t][n(323)][n(316)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(368)][n(306)](),c=a[n(335)](s[n(296)]),l=a[c+1];if(l)for(let t=0;t<e[n(319)];t++)if(e[t][n(323)][n(316)][n(296)]===l)return t;return e[n(319)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=209]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(430073===parseInt(e(217))/1+parseInt(e(209))/2*(parseInt(e(214))/3)+-parseInt(e(229))/4+parseInt(e(210))/5*(parseInt(e(242))/6)+-parseInt(e(213))/7+parseInt(e(221))/8+-parseInt(e(219))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(238)](){const t=g,e=this[t(216)][t(220)][t(240)][t(224)],o=this[t(223)](e);this[t(233)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(240)],r=this[e(223)](s);if(!r)return;const a=o[e(236)][e(215)](e(230)),c=t?.[e(234)]??(0,i.uid)();!function(t){const o=e;return o(243)==typeof t&&t[o(231)]>0&&!/\s/[o(227)](t)&&!/^\d/[o(227)](t)}(c)?(0,i.logWarning)(e(218)):(n[e(211)](t=>{const o=e,i=t[o(239)](o(222),{footnoteId:c});n[o(232)](i,r,null)}),a[e(226)](c))}[g(223)](t){const e=g,{model:o}=this[e(216)],{schema:n}=o,i=t[e(228)]();for(const t of i[e(241)]())if(n[e(212)](t)||n[e(237)](t))return null;const s=i[e(225)];return n[e(244)](s,e(222))?s:null}}function b(){const t=["string","checkChild","291748ZFXjuP","5lhqjEh","change","isBlock","195160BJbYNf","3ODcpUG","get","editor","11788NjVjpi","insert-footnote-command-executed-with-invalid-id","5656446RznEFA","model","6390056ZodTSZ","footnoteRef","_getPositionToInsertFootnote","selection","end","_moveSelectionToFootnoteDefinition","test","getFirstRange","1155764yFHNvO","FootnotesEditing","length","insertObject","isEnabled","footnoteId","execute","plugins","isObject","refresh","createElement","document","getItems","2513814FUTGKt"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new 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 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:1772150400;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:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=_;function A(){const t=["getFootnotesDefinitionsObjectElement","init","find","getSelectedBlocks","append","flatMap","344793tccqhI","get","25487aDHmsO","getData","reduce","sourceEditorId","getChildren","setAttribute","footnoteInlineContent","editor","insert","parse","getFootnotes","listenTo","requires","config","getFirstRange","push","document","drop","footnotes.multiBlock","footnoteId","footnotesDefinitions","method","dataTransfer","content","getAttribute","createElement","entries","htmlProcessor","3230840TKlzim","create","createRangeIn","isOfficialPlugin","data","string","_handleCopyFootnotesDefinitions","toModel","_insertEmptyFootnotesDefinitionsContainer","editing","definition","822036NzljcO","length","from","selection","clipboardInput","pluginName","hasAttribute","isPremiumPlugin","setData","getRanges","root","_defineClipboardIntegration","1944608EtDnnn","add","stringify","remove","contentInsertion","outputTransformation","footnoteDefinition","change","5uREEuq","keys","822KqulSu","element","footnoteRef","9678051Plhqed","getFootnote","cloneElement","FootnotesClipboard","includes","application/ckeditor5-footnotes","_handlePasteFootnotesDefinitions","toView","600608qMuqVp","toData","end"];return(A=function(){return t})()}!function(t){const e=_,o=t();for(;;)try{if(419182===-parseInt(e(417))/1+-parseInt(e(450))/2+-parseInt(e(459))/3+parseInt(e(429))/4*(parseInt(e(437))/5)+parseInt(e(439))/6*(parseInt(e(461))/7)+-parseInt(e(406))/8+parseInt(e(442))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(422)](){return T(445)}static get[T(473)](){return[v,P.ClipboardPipeline]}static get[T(409)](){return!0}static get[T(424)](){return!0}[T(454)](){this[T(428)]()}[T(428)](){const t=T;this[t(412)](),this[t(448)]()}[T(412)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(460)](P.ClipboardPipeline),s=o[t(460)](d);this[t(472)](i,t(434),(o,i)=>{const r=t,a=V(n[r(408)](i[r(484)]));if(!a[r(418)])return;const c=s[r(471)](),l=a[r(463)]((t,o)=>{const n=r,i=c[n(455)](t=>t.id===o);if(i){const o=e[n(410)][n(449)](i[n(416)],{isClipboardPipeline:!0}),s=e[n(410)][n(488)][n(451)](o);t[i.id]=s}return t},Object[r(407)](null));i[r(483)][r(425)](r(447),JSON[r(431)](l))})}[T(448)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(415)],r=n[t(460)](P.ClipboardPipeline),a=n[t(460)](d),c=e[t(474)][t(460)](t(479));let l=null;this[t(472)](s[t(477)],t(421),(e,o)=>{const n=t,i=o[n(483)][n(462)](n(447));l=i?JSON[n(470)](i):null}),this[t(472)](r,t(433),(n,s)=>{const r=t,f=s[r(464)]===this[r(468)].id;f&&r(478)===s[r(482)]||o[r(436)](t=>{const n=r;let u=a[n(453)]();const d=!!u&&Array[n(419)](o[n(477)][n(420)][n(456)]())[n(446)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(440),e(441)))return!0;return!1}(o[n(408)](s[n(484)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(407)](null);for(const e of i[o(465)]())e.is(o(440),o(435))&&e[o(423)](o(480))&&(s[e[o(485)](o(480))]=t[o(444)](e,!0));return Object[o(438)](s)[o(418)]?s:null}(t,s[n(484)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(408)](e))n.is(o(440),o(481))&&i[o(476)](n);for(const e of i)t[o(432)](e)}(t,s[n(484)]),!l)return;const{selection:h}=o[n(477)],p=h[n(475)]()[n(427)];u&&!d||(u=L(t,s[n(484)]),u||=a[n(414)](t,p));const m=Array[n(419)](h[n(426)]())[n(458)](V),g=function(t,e,o){const s=n,r=Object[s(407)](null);for(const{item:n}of t[s(408)](e))if(n.is(s(440),s(441))){const e=n[s(485)](s(480));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(466)](s(480),r[e],n)}return r}(t,s[n(484)],t=>{const e=n;return!f||!!a[e(443)](t)&&!m[e(446)](t)});for(const[o,i]of Object[n(487)](l)){const s=g[o]||o;let r;if(n(411)!=typeof i)r=i,s!==o&&t[n(466)](n(480),s,r);else{r=t[n(486)](n(435),{footnoteId:s});const o=e[n(410)][n(488)][n(449)](i);let a;if(c)a=e[n(410)][n(413)](o,r);else{a=t[n(486)](n(467));const i=e[n(410)][n(413)](o,a);t[n(469)](i,a)}t[n(457)](a,r)}t[n(469)](r,u,n(452))}l=null})})}}function _(t,e){const o=A();return(_=function(t,e){return o[t-=406]})(t,e)}function L(t,e){const o=T;for(const{item:n}of t[o(408)](e))if(n.is(o(440),o(481)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(440),e(441))&&o[e(430)](n[e(485)](e(480)));return Array[e(419)](o)}var O=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),q=o(741),H=o.n(q),Q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=U().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();K()(Q.A,G);Q.A&&Q.A.locals&&Q.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,O.ButtonView)),e.add("menuBar:insertFootnote",J(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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Y(){var t=["1068790lKkTEh","pluginName","isOfficialPlugin","487609aXFtQb","isPremiumPlugin","881106ZCKXCB","306267Kmrmfl","1960077ayNfQw","requires","2717190ZJPLUT","4106152xGSPim","4SImiie","Footnotes"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=251]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(275802===parseInt(e(259))/1+-parseInt(e(261))/2+parseInt(e(262))/3+-parseInt(e(254))/4*(parseInt(e(256))/5)+-parseInt(e(252))/6+parseInt(e(263))/7+parseInt(e(253))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Z(257)](){return Z(255)}static get[Z(251)](){return[v,D,X]}static get[Z(258)](){return!0}static get[Z(260)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=402]})(t,e)}function nt(){const t=["upper-latin","5WEykTQ","19220311jqDfbG","lower-latin","decimal-leading-zero","decimal","218628MdlmVr","upper-roman","444nGShfJ","6RvczxR","upper-alpha","2374WoHDUK","1360912nEyEQW","63avifiY","lower-roman","871283HQGAXV","9630880VNOqiD","4478574FYnTlM","lower-alpha"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(716709===-parseInt(e(408))/1*(parseInt(e(411))/2)+parseInt(e(409))/3*(-parseInt(e(406))/4)+-parseInt(e(420))/5*(parseInt(e(417))/6)+parseInt(e(415))/7+-parseInt(e(412))/8*(-parseInt(e(413))/9)+-parseInt(e(416))/10+parseInt(e(402))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(405),et(404),et(403),et(419),et(418),et(410),et(414),et(407)],st=at;function rt(){const t=["4026500wOtSBt","_updateFootnotesCounters","1684900uqQcly","includes","refresh","3275QHjZJw","execute","model","289944hIJbsF","setAttribute","plugins","2701476ASIdvT","getAttribute","getFootnotesDefinitionsObjectElement","value","39223wVXpKo","5610oUaLuc","4DxZeIH","change","isEnabled","2159684FEHdfn","80zotlPU","footnotesListStyle","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=457]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(592342===-parseInt(e(472))/1+parseInt(e(477))/2+-parseInt(e(468))/3*(parseInt(e(474))/4)+parseInt(e(462))/5*(parseInt(e(473))/6)+-parseInt(e(459))/7+parseInt(e(478))/8*(-parseInt(e(465))/9)+parseInt(e(457))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(461)](){const t=st,{editor:e}=this,o=e[t(467)][t(480)](d)[t(470)]();this[t(476)]=!!o,this[t(471)]=o?.[t(469)](t(479))??null}[st(463)]({value:t}){const e=st,{editor:o}=this,n=o[e(467)][e(480)](d),i=n[e(470)]();i&&it[e(460)](t)&&o[e(464)][e(475)](o=>{const s=e;o[s(466)](s(479),t,i),n[s(458)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=139]})(t,e)}const ft=lt;function ut(){const t=["201984dygQog","isEnabled","6930vRRPtO","15dlpGfq","1632fezxok","25587CuXENY","refresh","isInteger","2505832unBSrS","34735404utilOZ","get","model","change","setAttribute","getAttribute","558730QPKkEa","plugins","execute","3940PodSeG","48rVUnaa","value","footnotesListStart","_updateFootnotesCounters","94312XYQCkY","2gUdmhh","getFootnotesDefinitionsObjectElement"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(873463===parseInt(e(141))/1*(-parseInt(e(150))/2)+-parseInt(e(145))/3*(parseInt(e(149))/4)+-parseInt(e(155))/5*(-parseInt(e(152))/6)+-parseInt(e(160))/7+-parseInt(e(156))/8*(parseInt(e(157))/9)+parseInt(e(144))/10*(-parseInt(e(154))/11)+parseInt(e(161))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(158)](){const t=ft,{editor:e}=this,o=e[t(142)][t(162)](d)[t(151)]();this[t(153)]=!!o,this[t(146)]=o?.[t(140)](t(147))??null}[ft(143)]({value:t}){const e=ft,{editor:o}=this,n=o[e(142)][e(162)](d),i=n[e(151)]();i&&Number[e(159)](t)&&o[e(163)][e(164)](o=>{const s=e;o[s(139)](s(147),t,i),n[s(148)](o)})}}const ht=pt;function pt(t,e){const o=gt();return(pt=function(t,e){return o[t-=155]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(526152===-parseInt(e(184))/1*(parseInt(e(254))/2)+-parseInt(e(177))/3+-parseInt(e(160))/4*(-parseInt(e(183))/5)+parseInt(e(186))/6*(parseInt(e(245))/7)+parseInt(e(223))/8*(parseInt(e(158))/9)+parseInt(e(171))/10*(parseInt(e(210))/11)+-parseInt(e(209))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(gt);class mt extends t.Plugin{static get[ht(253)](){return ht(162)}static get[ht(246)](){return[v,d]}static get[ht(181)](){return!0}static get[ht(240)](){return!0}[ht(178)](){const t=ht,{editor:e}=this;e[t(255)][t(203)](t(233),t(191)),e[t(255)][t(203)](t(247),1),e[t(226)][t(230)](t(185),new ct(e)),e[t(226)][t(230)](t(175),new dt(e)),this[t(193)](),this[t(237)](),this[t(199)](),this[t(200)]()}[ht(193)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(170)](t(227),{allowAttributes:[t(172),t(165)]})}[ht(237)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(155)](t(228))[t(230)](e=>{const o=t;e.on(o(159),(t,e,n)=>{const s=o,r=e[s(167)],a=e[s(220)]?.[s(241)];r[s(173)](s(208))&&a?.is(s(257),s(227))&&(function(t,e,o,n){const i=s;if(!n[i(157)](e,i(165)))return;let r=1;const a=o[i(215)][i(174)](t,{attributes:i(201)});if(a){const e=Number[i(164)](t[i(190)](i(201)),10);Number[i(243)](e)||(r=e)}!a&&e[i(194)](i(165))||o[i(229)][i(205)](i(165),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(157)](e,i(172)))return;let r=i(191),a=!1;if(o[i(215)][i(174)](t,{attributes:i(204)})){const e={1:i(191),a:i(195),A:i(224),i:i(207),I:i(188)}[t[i(190)](i(204))];e&&(r=e),a=!0}o[i(215)][i(174)](t,{styles:i(214)})&&(r=function(t){const e=i;switch(t){case e(195):return e(197);case e(224):return e(218);default:return t}}(t[i(156)](i(214))),a=!0),!a&&e[i(194)](i(172))||o[i(229)][i(205)](i(172),r,e)}(r,a,n,i))})}),o[t(155)](t(244))[t(230)](e=>{const o=t;e.on(o(189),(t,e,n)=>{const i=o;if(!n[i(215)][i(174)](e[i(192)],t[i(212)]))return;const s=wt(e[i(192)],n[i(196)]),{attributeNewValue:r}=e;null==r||1===r?n[i(229)][i(248)](i(201),s):n[i(229)][i(205)](i(201),String(r),s)}),e.on(o(182),(t,e,n)=>{const i=o;if(!n[i(215)][i(174)](e[i(192)],t[i(212)]))return;const s=wt(e[i(192)],n[i(196)]),{attributeNewValue:r}=e;r&&i(191)!==r?n[i(229)][i(163)](i(214),r,s):n[i(229)][i(234)](i(214),s)})})}[ht(200)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(169)][t(217)](d),i=this[t(221)](),s=this[t(202)]();o[t(179)][t(242)](e=>{const r=t,a=o[r(179)][r(187)][r(250)]();let c=!1;for(const t of a){if(r(232)!==t[r(204)]||r(249)===t[r(212)])continue;const n=o[r(180)](t[r(222)][r(198)]);for(const t of n[r(256)]())t.is(r(257),r(227))&&(!t[r(194)](r(165))&&o[r(236)][r(157)](t,r(165))&&(e[r(205)](r(165),s,t),c=!0),!t[r(194)](r(172))&&o[r(236)][r(157)](t,r(172))&&(e[r(205)](r(172),i,t),c=!0))}return c&&n[r(219)](e),c})}[ht(199)](){const t=ht,{editor:e}=this;e[t(169)][t(217)](d)[t(252)](e=>this[t(239)](e))}[ht(221)](){const t=ht;return this[t(168)][t(255)][t(217)](t(233))}[ht(202)](){const t=ht;return this[t(168)][t(255)][t(217)](t(247))}[ht(239)]({container:t,value:e,digits:o}){const n=ht,i=t[n(190)](n(172)),s=t[n(190)](n(165)),r=Math[n(166)](e)+(s??1)-1;switch(i){case n(206):return function(t,e){const o=n;return String(t)[o(225)](e,"0")}(r,Math[n(238)](2,o));case n(195):case n(197):return yt(r,!1);case n(224):case n(218):return yt(r,!0);case n(207):return vt(r,!1);case n(188):return vt(r,!0);default:return String(r)}}}function gt(){const t=["getChildren","FootnotesPropertiesEditing","setStyle","parseInt","footnotesListStart","floor","viewItem","editor","plugins","extend","4380WQVzQf","footnotesListStyle","hasClass","consume","footnotesStart","find","1247718DzFVZi","init","document","createRangeOn","isOfficialPlugin","attribute:footnotesListStyle:footnotesDefinitions","4761895OCGXQe","2SJARQX","footnotesStyle","4362GfxrCS","differ","upper-roman","attribute:footnotesListStart:footnotesDefinitions","getAttribute","decimal","item","_defineSchema","hasAttribute","lower-alpha","mapper","lower-latin","nodeAfter","_defineFormatter","_definePostfixer","start","_getDefaultStartIndex","define","type","setAttribute","decimal-leading-zero","lower-roman","footnotes-list","11844984sRVGuC","19679OjYJRU","from","name","fromCharCode","list-style-type","consumable","model","get","upper-latin","_updateFootnotesCounters","modelCursor","_getDefaultListStyle","position","56usYNHL","upper-alpha","padStart","commands","footnotesDefinitions","upcast","writer","add","toLowerCase","insert","footnotes.footnotesProperties.defaultListStyle","removeStyle","toUpperCase","schema","_defineConverters","max","_formatFootnoteListValue","isPremiumPlugin","parent","registerPostFixer","isNaN","downcast","1141nCDuOt","requires","footnotes.footnotesProperties.defaultStartIndex","removeAttribute","$text","getChanges","toViewElement","setFootnoteFormatter","pluginName","941652uhApGW","config","getItems","element","for","getStyle","checkAttribute","1306710djBSmS","element:ol","4bQqdhf"];return(gt=function(){return t})()}function wt(t,e){const o=ht,n=e[o(251)](t);return Array[o(211)](n[o(161)]())[o(176)](t=>t.is(o(257),"ol")&&t[o(173)](o(208)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(213)](97+t)+n,i=Math[o(166)]((i-1)/26)}return e?n[o(235)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(231)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["24LTCozV","20766768BIQPJZ","40zZttcw","3435HkiQCY","11AJCIVT","167505IfIFyU","85681KxJBlw","isOfficialPlugin","88LSxVJW","1132268lIhnQa","326IhxOFr","FootnotesProperties","64988ssgBUV","isPremiumPlugin","2436201ttJiuC","pluginName","requires"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=411]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(605177===parseInt(e(424))/1+parseInt(e(411))/2*(parseInt(e(421))/3)+-parseInt(e(427))/4+-parseInt(e(423))/5*(parseInt(e(418))/6)+parseInt(e(413))/7*(parseInt(e(426))/8)+-parseInt(e(415))/9*(parseInt(e(420))/10)+parseInt(e(422))/11*(parseInt(e(419))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(416)](){return xt(412)}static get[xt(417)](){return[mt,Ft]}static get[xt(425)](){return!0}static get[xt(414)](){return!0}}function Tt(){var t=["13922216gYIdRi","54511119wVmMwy","156830serHgw","9432792vASVLg","298235ELBNQt","9218985dEaBDS","1226620UMCNTZ","23FhXvAw","18MWwvaV"];return(Tt=function(){return t})()}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=425]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(979575===-parseInt(e(430))/1*(parseInt(e(425))/2)+parseInt(e(431))/3*(parseInt(e(429))/4)+-parseInt(e(428))/5+-parseInt(e(426))/6+parseInt(e(427))/7+-parseInt(e(432))/8+parseInt(e(433))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();